201807 Commits

Author SHA1 Message Date
Vinu Deokaran
6be61a98fc wm: call displayReady for all built in displays when system is ready.
When system has more than one built in display, displayReady needs
to be called for all built in displays when window manager is ready.
Otherwise, some system services, such as presentation, mediarouter,
etc, won't work on these displays.

Bug: 24103683
Change-Id: Ibf08074eff555c14a318236bd06e7b4855503140
2015-10-12 16:00:54 +00:00
Michael Wright
9209c9cd9a Add SystemUI component to watch for keyboard attachment.
Add a new SystemUI component to watch for keyboard attachment /
detachment. If the config specifies the name of a keyboard that is
packaged with the device, then SystemUI will ask the user if they
would like to enable BT (if disabled) and then attempt to pair to the
device.

Bug: 22876536
Change-Id: I786db35524d49706d5e61d8b8bc71194d50113f3
2015-10-12 15:21:37 +01:00
Geoff Mendal
ef2f659641 am ac3b53a7: (-s ours) Import translations. DO NOT MERGE
* commit 'ac3b53a734df0ec994d6068b7c0331da1fa0aa80':
  Import translations. DO NOT MERGE
2015-10-12 14:20:03 +00:00
Geoff Mendal
ac3b53a734 Import translations. DO NOT MERGE
Change-Id: I24c1dbc83857fa0af6a57d0a834fcda1394fd313
Auto-generated-cl: translation import
2015-10-12 07:03:29 -07:00
Lorenzo Colitti
647ec7f80e am 4e4d59ee: Connect the DHCP UDP socket to the server.
* commit '4e4d59eeef86fa8560d35c00168869b0a066f962':
  Connect the DHCP UDP socket to the server.
2015-10-11 13:43:34 +00:00
Lorenzo Colitti
13c5dd5c19 am eb0bbd45: Merge changes Id6a0b0de,I5f03b8b2,I62464b92 into mnc-dr-dev
* commit 'eb0bbd45f62fcaff26151b54a7b3ea16bb67e3be':
  Support DHCP replies with multiple default gateways.
  Accept DHCP responses from non-67 server source ports
  Improve logging of DHCP parse errors using exceptions.
2015-10-11 13:43:24 +00:00
Lorenzo Colitti
4e4d59eeef Connect the DHCP UDP socket to the server.
This makes it so that the socket cannot receive datagrams from
anybody except the DHCP server. This does not improve security,
because we never read from the UDP socket anyway, but it does
make ListeningPortsTest pass.

Bug: 23906864
Bug: 23933386
Change-Id: Ib090273a417f7eb2ac1ee3309260249b72fb8345
2015-10-11 16:06:11 +09:00
Lorenzo Colitti
eb0bbd45f6 Merge changes Id6a0b0de,I5f03b8b2,I62464b92 into mnc-dr-dev
* changes:
  Support DHCP replies with multiple default gateways.
  Accept DHCP responses from non-67 server source ports
  Improve logging of DHCP parse errors using exceptions.
2015-10-11 06:48:33 +00:00
Dianne Hackborn
94252b6207 am 09e405d6: Merge "Fix issue #24743380: VoiceInteractionManagerService doesn\'t use current..." into mnc-dr-dev
* commit '09e405d660c0fe696402d10732084888192ca446':
  Fix issue #24743380: VoiceInteractionManagerService doesn't use current...
2015-10-10 00:48:41 +00:00
Dianne Hackborn
09e405d660 Merge "Fix issue #24743380: VoiceInteractionManagerService doesn't use current..." into mnc-dr-dev 2015-10-10 00:42:02 +00:00
Dianne Hackborn
958b9d2ecc Fix issue #24743380: VoiceInteractionManagerService doesn't use current...
...user for service info

Now it does.

The actual change is basically one line, passing in the current user
when building the service info.  The rest is more debugging output to
be able to see what is going on.

Change-Id: I451884e0780aac6ee92fd2cd520071894afdf586
2015-10-09 16:09:25 -07:00
Miao Wang
d22b9b7757 [RenderScript] pass correct length of ains to BLAS functions
bug: 24540091
Change-Id: Ia541bcbee07125c4caf3e0f4863702a3c0b929d5
(cherry picked from commit 0b34f2a3c545cb112a23072c92214e359a8df8c6)
2015-10-09 14:06:55 -07:00
Jeff Sharkey
c88a2d5b33 Default location is "internalOnly" when undefined.
When an app doesn't define installLocation, the default behavior
should be to treat it as internal only.  This matches all the
published developer documentation.

Without this, apps could be unwittingly be moved to adopted storage
devices.

Bug: 24771264
Change-Id: Iaf38ab45329aad6cb5d6deac81fb1781f680189b
2015-10-09 13:22:09 -07:00
Anthony Hugh
6b566ec5fd Merge "Give Android Wear system apps default permission" into cw-e-dev 2015-10-09 18:26:56 +00:00
Pirama Arumuga Nainar
8550261afb am 1078942e: Safely handle interrupts during Thread.join()
* commit '1078942ed8b4029665e950ae576baa024f69e782':
  Safely handle interrupts during Thread.join()
2015-10-09 17:35:23 +00:00
Pirama Arumuga Nainar
bc7391d81a resolved conflicts for 93db3d4b to cw-e-dev
Change-Id: I264c09c2cc7e9f0e3b1a83a52c965238aab55aae
2015-10-09 10:29:03 -07:00
Pirama Arumuga Nainar
1078942ed8 Safely handle interrupts during Thread.join()
Bug: 24342101

Interrupt current thread if InterruptedException is received during
Thread.join().  Also, log the interruption.

Change-Id: I452124915ea3f19610e6d4a3411d741f2f604af2
(cherry picked from commit 83461d73bc50d41f631e1db5c195d12b4eb9e6cf)
2015-10-08 20:14:51 -07:00
Pirama Arumuga Nainar
93db3d4bfd Retry if interrupted before mMessageThread has joined
Bug: 24342101

If interrupted during mMessageThread.join(), retry the join instead of
assuming the thread has joined and continuing.  Continuing to destroy
the context will cause a segfault when the message thread attempts to
use the destroyed context.

Change-Id: I3213091a0e996449bceb403dffca3063786d5a65
(cherry picked from commit 2f25ce7753f7f1f6a0cc549a0df0082286bd5f85)
2015-10-08 20:13:50 -07:00
Anthony Hugh
979b81ac33 Give Android Wear system apps default permission
This change grants Android Wear system components default
permission.

I have also added a new Intent category to help identify
the main Home handler on Wear.

BUG: 23419042
Change-Id: Ie669a9908bd3b03498f75c5ca22c0fddf52a5203
2015-10-08 16:34:28 -07:00
Jason Monk
3a40908185 am 29433f70: Merge "Actually apply after no sims change." into mnc-dr-dev
* commit '29433f701f6722e1f175dd3b735ed025309907b0':
  Actually apply after no sims change.
2015-10-08 20:28:10 +00:00
Jason Monk
29433f701f Merge "Actually apply after no sims change." into mnc-dr-dev 2015-10-08 20:21:00 +00:00
Jeff Sharkey
a0ef104882 am d473a144: Merge "Hold wake-lock during copy operations." into mnc-dr-dev
* commit 'd473a1446e520616c4079594bbcf3c6fbe88ed4f':
  Hold wake-lock during copy operations.
2015-10-08 17:02:38 +00:00
Jeff Sharkey
d473a1446e Merge "Hold wake-lock during copy operations." into mnc-dr-dev 2015-10-08 16:58:54 +00:00
Jason Monk
64f4f9887a Actually apply after no sims change.
Bug: 24244260
Change-Id: I922d45e6dcc4eb85fc7d93824e7d01645a90266e
2015-10-08 10:09:21 -04:00
Puneet Kumar
edc3585ffd am 0a1f0e56: Merge "Add ESC mapping for Pixel C keyboard" into mnc-dr-dev
* commit '0a1f0e56b4ea8c78a1fac3218cfa4efa4cbe3117':
  Add ESC mapping for Pixel C keyboard
2015-10-08 09:08:30 +00:00
Puneet Kumar
8810285fa5 am 06d1254c: Merge "Add layout and keymap for Pixel C Bluetooth keyboard" into mnc-dr-dev
* commit '06d1254c9b63f0f3304ef4dd1de8602655ef9a3f':
  Add layout and keymap for Pixel C Bluetooth keyboard
2015-10-08 09:08:26 +00:00
Puneet Kumar
0a1f0e56b4 Merge "Add ESC mapping for Pixel C keyboard" into mnc-dr-dev 2015-10-08 08:17:38 +00:00
Puneet Kumar
06d1254c9b Merge "Add layout and keymap for Pixel C Bluetooth keyboard" into mnc-dr-dev 2015-10-08 08:17:23 +00:00
Lorenzo Colitti
025f4a5aae Support DHCP replies with multiple default gateways.
Just use the first one for compatibility with the legacy client.

Bug: 23975855
Change-Id: Id6a0b0de32e8947c12c02eb9a3be417e2f82c99a
2015-10-08 16:28:02 +09:00
Erik Kline
b19238c488 Accept DHCP responses from non-67 server source ports
Bug: 24687559
Change-Id: I5f03b8b2780c558281d8a50d0893fd64f2812add
2015-10-08 15:40:41 +09:00
Erik Kline
496906ee70 Improve logging of DHCP parse errors using exceptions.
Bug: 23975855
Change-Id: I62464b92f0bb568e57bf5e1a63bc75f22c75aac1
2015-10-08 15:40:31 +09:00
Tim Murray
f3acc63015 am 01356906: Merge "Ensure SurfaceView requests WM relayout when size changes." into mnc-dr-dev
* commit '0135690688c8285e022a2a8191c8582f2e6ea759':
  Ensure SurfaceView requests WM relayout when size changes.
2015-10-07 23:28:13 +00:00
Tim Murray
0135690688 Merge "Ensure SurfaceView requests WM relayout when size changes." into mnc-dr-dev 2015-10-07 23:21:14 +00:00
Chien-Yu Chen
02e4400cc7 am ab781275: Merge "MediaActionSound: Fix video stop sound" into mnc-dr-dev
* commit 'ab7812750bca947abc9e8b1ce73a3041dbc2f2a9':
  MediaActionSound: Fix video stop sound
2015-10-07 23:11:20 +00:00
Chien-Yu Chen
ab7812750b Merge "MediaActionSound: Fix video stop sound" into mnc-dr-dev 2015-10-07 23:03:52 +00:00
Matthew Williams
d6af66e89d Correctly reschedule failed periodic
BUG: 24341715
Failed jobs are rescheduled with no override deadline to avoid
running a failed job with unsatisfied constraints.
A periodic job always has an override deadline and the periodic
rescheduling code assumes this.
Hence a periodic that failed until eventual success would be
rescheduled in a bad state.

Change-Id: Id110b3522df2003506a9efdde4e719e1b9932106
(cherry picked from commit 1bde39ad1424008917e1191565f81e0b4617f2fa)
2015-10-07 23:03:41 +00:00
Chien-Yu Chen
d890f4f400 MediaActionSound: Fix video stop sound
Bug: 24745252
Change-Id: I803679d52750e09c7fc7b881523becf9259b558b
2015-10-07 15:17:19 -07:00
Yin-Chia Yeh
a71bb6b986 am 9d688336: am a636be6c: Camera: fix wrong FULL feature string
* commit '9d68833686e04ff5ff910a9d90fe99bc1347aaca':
  Camera: fix wrong FULL feature string
2015-10-07 21:41:38 +00:00
Yin-Chia Yeh
9d68833686 am a636be6c: Camera: fix wrong FULL feature string
* commit 'a636be6c9a8a9192f72a111c2b3084a226d37b7e':
  Camera: fix wrong FULL feature string
2015-10-07 21:36:35 +00:00
Robert Carr
57caeb5703 Ensure SurfaceView requests WM relayout when size changes.
In the case of scaled SurfaceViews with a fixed size.
It is possible for the surface layout size to change
without a change to the surface size or position. In this
case we need to inform the window manager so it can update
frames and scaling. This has presented in Camera and required
workarounds such as changing the fixed surface size to trigger
an update (leading to visual artifacts).

Bug:23974105
Change-Id: I195aa0832907c32874b294101b56e198e853dce5
(cherry picked from commit a8fe43f09c0ed2119e55139a482f7f12fbe7d725)
2015-10-07 20:39:11 +00:00
Chris Thornton
b7b5812147 Don't call StopRecognition when recognition was aborted.
If recognition has been aborted, then the call to the sound trigger
device stop recognition has already occurred. The sound trigger helper
would then try to stop it again, which generates an error code for a
stop without a corresponding start event.

BUG=24677430

Change-Id: Ibf5d1da1a8eb06b677e428f047905d15fd5cf21f
2015-10-07 11:33:45 -07:00
Eric Laurent
f5d3f96001 am 2a6f1d4a: Merge "ZenModeHelper: fix cross deadlock with AudioService" into mnc-dr-dev
* commit '2a6f1d4af39a72abecf16cc0a95feda7431afc07':
  ZenModeHelper: fix cross deadlock with AudioService
2015-10-07 13:46:48 +00:00
Eric Laurent
2a6f1d4af3 Merge "ZenModeHelper: fix cross deadlock with AudioService" into mnc-dr-dev 2015-10-07 13:39:51 +00:00
Yin-Chia Yeh
a636be6c9a Camera: fix wrong FULL feature string
Bug: 24678065
Change-Id: I2ca49565b919c87005d941863e22e3852a01a6c6
2015-10-06 13:45:20 -07:00
Selim Cinek
235a6911b0 am 714a61cd: Merge "Ambient display now comes up immediately when a notification comes in" into mnc-dr-dev
* commit '714a61cd586c789b18acfd0567cfea2b4ea170dd':
  Ambient display now comes up immediately when a notification comes in
2015-10-06 02:06:20 +00:00
Selim Cinek
714a61cd58 Merge "Ambient display now comes up immediately when a notification comes in" into mnc-dr-dev 2015-10-06 01:59:50 +00:00
Adam Lesinski
c87996e538 am 8461f2fa: am 46684d2c: Merge "Add anydpi to the providing-resources docs" into mnc-dev
* commit '8461f2fa02c4c2ca2eef5bae391f1d1ff2c28593':
  Add anydpi to the providing-resources docs
2015-10-06 00:57:43 +00:00
Adam Lesinski
8461f2fa02 am 46684d2c: Merge "Add anydpi to the providing-resources docs" into mnc-dev
* commit '46684d2caeef93f43be260d996e925ea6e4147ea':
  Add anydpi to the providing-resources docs
2015-10-06 00:51:13 +00:00
Jean-Michel Trivi
38b987ab79 am 0155856a: Fix AudioService rotation helper thread
* commit '0155856a1d1cb272d83b6175953dd7151fe65daa':
  Fix AudioService rotation helper thread
2015-10-06 00:14:01 +00:00
Pirama Arumuga Nainar
a186456ff5 Safely handle interrupts during Thread.join()
Interrupt current thread if InterruptedException is received during
Thread.join().  Also, log the interruption.

Change-Id: I452124915ea3f19610e6d4a3411d741f2f604af2
(cherry picked from commit 83461d73bc50d41f631e1db5c195d12b4eb9e6cf)
2015-10-05 16:31:34 -07:00