OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Catch IllegalArgumentException when disconnect" into oc-mr1-dev
Sungsoo Lim [Fri, 4 Aug 2017 00:22:00 +0000 (00:22 +0000)]
Merge "Catch IllegalArgumentException when disconnect" into oc-mr1-dev

6 years agoMerge "Do not call ItemCallback after disconnected" into oc-mr1-dev
Sungsoo Lim [Fri, 4 Aug 2017 00:21:27 +0000 (00:21 +0000)]
Merge "Do not call ItemCallback after disconnected" into oc-mr1-dev

6 years agoMerge "Bit: Don't ignore errors and crashes" into oc-mr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 23:41:40 +0000 (23:41 +0000)]
Merge "Bit: Don't ignore errors and crashes" into oc-mr1-dev

6 years agoMerge "Ignore isolated uid's process state in BatteryStats tracking" into oc-dr1-dev
Amith Yamasani [Thu, 3 Aug 2017 23:18:29 +0000 (23:18 +0000)]
Merge "Ignore isolated uid's process state in BatteryStats tracking" into oc-dr1-dev
am: 5a800cf069

Change-Id: I99d131e00dc43982f41e8837f44a66c71312615a

6 years agoMerge "Use normal API for legacy wallpaper restore" into oc-mr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 23:07:53 +0000 (23:07 +0000)]
Merge "Use normal API for legacy wallpaper restore" into oc-mr1-dev

6 years agoMerge "Ignore isolated uid's process state in BatteryStats tracking" into oc-dr1-dev
Amith Yamasani [Thu, 3 Aug 2017 23:07:32 +0000 (23:07 +0000)]
Merge "Ignore isolated uid's process state in BatteryStats tracking" into oc-dr1-dev

6 years agoMerge "Multi-user and WallpaperColors" into oc-dr1-dev
Lucas Dupin [Thu, 3 Aug 2017 22:56:50 +0000 (22:56 +0000)]
Merge "Multi-user and WallpaperColors" into oc-dr1-dev
am: e09e5ef21b  -s ours

Change-Id: Ib197bc342f3829e683a8cba1b2f1cb1856514b1b

6 years agoMerge "Multi-user and WallpaperColors" into oc-dr1-dev
Lucas Dupin [Thu, 3 Aug 2017 22:48:27 +0000 (22:48 +0000)]
Merge "Multi-user and WallpaperColors" into oc-dr1-dev

6 years agoMerge "Backup all backupable settings" into oc-mr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 20:58:35 +0000 (20:58 +0000)]
Merge "Backup all backupable settings" into oc-mr1-dev

6 years agoMerge "NetworkRecommendationProviders require the location permission." into oc-mr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 20:37:16 +0000 (20:37 +0000)]
Merge "NetworkRecommendationProviders require the location permission." into oc-mr1-dev

6 years agoRemove "Couldn't pair" prompt on ACTION_PAIRING_CANCEL
Andre Eisenbach [Thu, 3 Aug 2017 19:00:00 +0000 (19:00 +0000)]
Remove "Couldn't pair" prompt on ACTION_PAIRING_CANCEL
am: 61ad5ae921

Change-Id: Iadbb0716f82a42366d8aba687208a1df81eafb70

6 years agoRemove "Couldn't pair" prompt on ACTION_PAIRING_CANCEL
Andre Eisenbach [Wed, 2 Aug 2017 23:51:10 +0000 (16:51 -0700)]
Remove "Couldn't pair" prompt on ACTION_PAIRING_CANCEL

ACTION_PAIRING_CANCEL is triggered as a result of an ACL connection
going down, causing a "Couldn't pair" prompt. This can happen on some
car kits, even if the pairing is successful and the car kit briefly
tearing down the ACL connection after pairing and resuming it
immediately afterwards.

If a connection gets disconnected during a normal bonding procedure, the
UNBOND_REASON_REMOTE_DEVICE_DOWN reason code for the
ACTION_BOND_STATE_CHANGED already indicates this issue and will inform
the user.

Bug: 63975046
Test: manual
Change-Id: I663d8b7700741927c72e38e30cd993c0b81511a9

6 years agoMerge "Update toast UI" into oc-dr1-dev
Sergey Vasilinets [Thu, 3 Aug 2017 18:25:19 +0000 (18:25 +0000)]
Merge "Update toast UI" into oc-dr1-dev
am: 436b1e2f0e

Change-Id: Ia346c80194c8792e51be927cc19e4555d3c1527f

6 years agoMerge "Update toast UI" into oc-dr1-dev
Sergey Vasilinets [Thu, 3 Aug 2017 18:14:24 +0000 (18:14 +0000)]
Merge "Update toast UI" into oc-dr1-dev

6 years agoUse normal API for legacy wallpaper restore
Christopher Tate [Tue, 1 Aug 2017 23:32:49 +0000 (16:32 -0700)]
Use normal API for legacy wallpaper restore

No longer do we play crazy rename-into-place tricks!  Just take
the restored image and treat it as an ordinary new system wallpaper,
and let the system machinery do all its proper work.  While we're at
it, we get rid of the now-spurious shenanigans about backing up the
wallpaper under the 'android' package, an overdue and welcome bit
of thinning.

In addition, we now fully migrate a legacy wallpaper image to have
both a source and a display crop in place.  We were previously
not generating the equivalent source image, which made N+ backups
unable to store the image properly.

Fix 64269208
Fix 62809439
Test: manual (set wallpaper under M, backup, flash to ToT,
      force restore)

Change-Id: If9b26b777f0fda95cf37c3c790a3fa4e82ff0340

6 years agoMerge "Remove LangId related code." into oc-mr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 17:54:29 +0000 (17:54 +0000)]
Merge "Remove LangId related code." into oc-mr1-dev

6 years agoMerge "Save PackageDexUsage on PMS shutdown" into oc-mr1-dev
Calin Juravle [Thu, 3 Aug 2017 17:16:57 +0000 (17:16 +0000)]
Merge "Save PackageDexUsage on PMS shutdown" into oc-mr1-dev

6 years agoMerge "Update colour to match toasts." into oc-mr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 16:54:41 +0000 (16:54 +0000)]
Merge "Update colour to match toasts." into oc-mr1-dev

6 years agoMerge "Address Broadcast Radio HAL review notes." into oc-mr1-dev
Tomasz Wasilczyk [Thu, 3 Aug 2017 16:52:31 +0000 (16:52 +0000)]
Merge "Address Broadcast Radio HAL review notes." into oc-mr1-dev

6 years agoMerge "Multi-user and WallpaperColors" into oc-mr1-dev
Lucas Dupin [Thu, 3 Aug 2017 16:23:41 +0000 (16:23 +0000)]
Merge "Multi-user and WallpaperColors" into oc-mr1-dev

6 years agoMerge "AOD: Unregister touchscreen sensors while pulsing" into oc-dr1-dev
Adrian Roos [Thu, 3 Aug 2017 15:05:16 +0000 (15:05 +0000)]
Merge "AOD: Unregister touchscreen sensors while pulsing" into oc-dr1-dev
am: a957c56da0

Change-Id: Ie526be7c78cff21fe18eb42c7130a9aa68dc961e

6 years agoMerge "Assist: Only call lockscreenShown when it is actually shown" into oc-dr1-dev
Adrian Roos [Thu, 3 Aug 2017 15:01:04 +0000 (15:01 +0000)]
Merge "Assist: Only call lockscreenShown when it is actually shown" into oc-dr1-dev
am: bc3c1d0170

Change-Id: I598d82fcd14702151a924dd481fa067613c76b0e

6 years agoMerge "AOD: Unregister touchscreen sensors while pulsing" into oc-dr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 14:57:54 +0000 (14:57 +0000)]
Merge "AOD: Unregister touchscreen sensors while pulsing" into oc-dr1-dev

6 years agoMerge "Assist: Only call lockscreenShown when it is actually shown" into oc-dr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 14:51:28 +0000 (14:51 +0000)]
Merge "Assist: Only call lockscreenShown when it is actually shown" into oc-dr1-dev

6 years agoUpdate colour to match toasts.
Kenny Guy [Wed, 2 Aug 2017 18:41:23 +0000 (19:41 +0100)]
Update colour to match toasts.

Toasts are now black on white so update
icon we use in the toast to be black.

Test: Manual
Bug: 64120926
Change-Id: Iae153b98e187f58e0a0ab5eb315860bc97437a7f

6 years agoMerge "Move key eviction past system services user cleanup." into oc-mr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 12:59:57 +0000 (12:59 +0000)]
Merge "Move key eviction past system services user cleanup." into oc-mr1-dev

6 years agoMerge "Inform SurfaceFlinger of which Surface is the RoundedCorners overlay." into...
Robert Carr [Thu, 3 Aug 2017 12:53:38 +0000 (12:53 +0000)]
Merge "Inform SurfaceFlinger of which Surface is the RoundedCorners overlay." into oc-dr1-dev
am: 48ed8aa4d0

Change-Id: I3030c64c30f6c16dc9c8a01e21a5dc6b58cbd273

6 years agoMerge "AOD: Do not change wakeup animation during DozeService teardown" into oc-dr1-dev
Adrian Roos [Thu, 3 Aug 2017 12:48:38 +0000 (12:48 +0000)]
Merge "AOD: Do not change wakeup animation during DozeService teardown" into oc-dr1-dev
am: e8107cf358

Change-Id: I2042c1d15844e34929286e91283ddb9942faea8f

6 years agoMerge "Inform SurfaceFlinger of which Surface is the RoundedCorners overlay." into...
TreeHugger Robot [Thu, 3 Aug 2017 12:45:07 +0000 (12:45 +0000)]
Merge "Inform SurfaceFlinger of which Surface is the RoundedCorners overlay." into oc-dr1-dev

6 years agoMerge "AOD: Do not change wakeup animation during DozeService teardown" into oc-dr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 12:34:59 +0000 (12:34 +0000)]
Merge "AOD: Do not change wakeup animation during DozeService teardown" into oc-dr1-dev

6 years agoUpdate toast UI
sergeyv [Thu, 3 Aug 2017 11:58:20 +0000 (04:58 -0700)]
Update toast UI

- lighter background
- no text shadow

bug: 6423613664232075
Test: n/a
Change-Id: I4c57cc1f4f30efd6edf7b3cb405f0f7741f7d838

6 years agoUpdate work briefcase asset.
Kenny Guy [Tue, 20 Jun 2017 15:42:07 +0000 (16:42 +0100)]
Update work briefcase asset.

Bug: 36497538
Test: Manual - visually checked icons.

Change-Id: I1d5dd1b80bd32667e47dfc4a1c355a5106271d72
(cherry picked from commit d49d28a8aee5ee00f5e8368bb1448b991608cf4a)

6 years agoCatch IllegalArgumentException when disconnect
Sungsoo Lim [Thu, 3 Aug 2017 05:01:57 +0000 (14:01 +0900)]
Catch IllegalArgumentException when disconnect

IllegalArgumentException can happen, if unbindService() is called
after the service is stopped.

Bug: 63439915
Test: Passed MediaBrowserTest
Change-Id: I70ecb9e907af66b9b65960dd4029e55e81639c03

6 years agoDo not call ItemCallback after disconnected
Sungsoo Lim [Thu, 3 Aug 2017 04:36:22 +0000 (13:36 +0900)]
Do not call ItemCallback after disconnected

Bug: 64119114
Test: Passed MediaBrowserTest
Change-Id: Icf3283710abe7c03f4a73532b33ec2a306d2280b

6 years agoMerge "SettingsLib: wifi: add support for tracking carrier Wi-Fi APs" into oc-mr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 04:28:24 +0000 (04:28 +0000)]
Merge "SettingsLib: wifi: add support for tracking carrier Wi-Fi APs" into oc-mr1-dev

6 years agoMerge "Version guard Application.onCreate strict mode fix" into oc-mr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 04:04:13 +0000 (04:04 +0000)]
Merge "Version guard Application.onCreate strict mode fix" into oc-mr1-dev

6 years agoMerge "Add check that layer size <= maxTextureSize" into oc-mr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 03:11:18 +0000 (03:11 +0000)]
Merge "Add check that layer size <= maxTextureSize" into oc-mr1-dev

6 years agoMerge "Address API review comments" into oc-mr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 02:10:16 +0000 (02:10 +0000)]
Merge "Address API review comments" into oc-mr1-dev

6 years agoMulti-user and WallpaperColors
Lucas Dupin [Fri, 14 Jul 2017 18:55:05 +0000 (11:55 -0700)]
Multi-user and WallpaperColors

Test: set different wallpapers for different users and switch between them.
Test: re-ran cts tests at cts/tests/app/src/android/app/cts/WallpaperManagerTest.java
Change-Id: Ic06d1dc6db26869a2948590863ca9b8ac81c630e
Fixes: 63513694

6 years agoMerge "Check CookieHandler in setDataSource with cookies" into oc-dr1-dev
Sungsoo Lim [Thu, 3 Aug 2017 01:03:48 +0000 (01:03 +0000)]
Merge "Check CookieHandler in setDataSource with cookies" into oc-dr1-dev
am: 6a2ee3b180

Change-Id: Ia42104e2fb75d867279fe8d553c807d5dcfac06d

6 years agoMerge "Check CookieHandler in setDataSource with cookies" into oc-dr1-dev
Sungsoo Lim [Thu, 3 Aug 2017 00:52:27 +0000 (00:52 +0000)]
Merge "Check CookieHandler in setDataSource with cookies" into oc-dr1-dev

6 years agoCheck CookieHandler in setDataSource with cookies
Sungsoo Lim [Mon, 24 Jul 2017 13:29:27 +0000 (22:29 +0900)]
Check CookieHandler in setDataSource with cookies

If the caller of MediaPlayer.setDataSource has installed its own
CookieHandler when cookies are provided, MediaPlayer.setDataSource
requires that the CookieHandler has to be of CookieManager type.

Bug: 63638018
Test: manual
Change-Id: I1539d1fa83440ddfb00cc958cd46b9917fe3a296

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
Bill Yi [Thu, 3 Aug 2017 00:31:04 +0000 (00:31 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
am: e1f66b297d  -s ours

Change-Id: I533bd4785a565770f4b678b08aa64c27a9261833

6 years agoMerge "Add documentation for MIN notification interaction with fg services." into...
TreeHugger Robot [Thu, 3 Aug 2017 00:29:25 +0000 (00:29 +0000)]
Merge "Add documentation for MIN notification interaction with fg services." into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Thu, 3 Aug 2017 00:12:34 +0000 (00:12 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

6 years agoMerge "Don't show scary UI when rescue party kicks in." into oc-mr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 23:39:39 +0000 (23:39 +0000)]
Merge "Don't show scary UI when rescue party kicks in." into oc-mr1-dev

6 years agoMerge "Move VR preference for portrait orientation." into oc-dr1-dev
Santos Cordon [Wed, 2 Aug 2017 23:22:17 +0000 (23:22 +0000)]
Merge "Move VR preference for portrait orientation." into oc-dr1-dev
am: 7c4069d255

Change-Id: Ifc4138b41e801baf2acb06f83fd77115a74e71f2

6 years agoMulti-user and WallpaperColors
Lucas Dupin [Fri, 14 Jul 2017 18:55:05 +0000 (11:55 -0700)]
Multi-user and WallpaperColors

Test: set different wallpapers for different users and switch between them.
Test: re-ran cts tests at cts/tests/app/src/android/app/cts/WallpaperManagerTest.java
Change-Id: Ic06d1dc6db26869a2948590863ca9b8ac81c630e
Merged-In: Ic06d1dc6db26869a2948590863ca9b8ac81c630e
Fixes: 63513694

6 years agoAdd check that layer size <= maxTextureSize
John Reck [Wed, 2 Aug 2017 23:11:43 +0000 (16:11 -0700)]
Add check that layer size <= maxTextureSize

Ensure that RenderNode fitsOnLayer() is true before assigning
it a layer.

Bug: 63814070
Test: repro steps in bug no longer crash
Change-Id: I28bb2cb173a5efde24e2384f2606fea85b394ac8

6 years agoMerge "Merge changes from topic 'do_not_roam_on_traffic' into oc-dr1-dev am: 54e6518f...
Android Build Merger (Role) [Wed, 2 Aug 2017 23:14:40 +0000 (23:14 +0000)]
Merge "Merge changes from topic 'do_not_roam_on_traffic' into oc-dr1-dev am: 54e6518fc8" into oc-mr1-dev

6 years agoMerge changes from topic 'do_not_roam_on_traffic' into oc-dr1-dev
Ningyuan Wang [Wed, 2 Aug 2017 23:10:14 +0000 (23:10 +0000)]
Merge changes from topic 'do_not_roam_on_traffic' into oc-dr1-dev
am: 54e6518fc8

Change-Id: Ic02b8506afbd900d1fec0946148cd8f1a76ee5ce

6 years agoMerge "Merge "Prevent crash dialogs from appearing in demo mode" into oc-dr1-dev...
Android Build Merger (Role) [Wed, 2 Aug 2017 23:09:40 +0000 (23:09 +0000)]
Merge "Merge "Prevent crash dialogs from appearing in demo mode" into oc-dr1-dev am: 8d753bc3a3" into oc-mr1-dev

6 years agoMerge "Prevent crash dialogs from appearing in demo mode" into oc-dr1-dev
Christine Franks [Wed, 2 Aug 2017 23:07:31 +0000 (23:07 +0000)]
Merge "Prevent crash dialogs from appearing in demo mode" into oc-dr1-dev
am: 8d753bc3a3

Change-Id: I138f6c945606caaaf129de5625c4d9bb7add42d8

6 years agoMerge "Merge "WakeAndUnlock: Make sure to wait for screen turning on" into oc-dr1...
Android Build Merger (Role) [Wed, 2 Aug 2017 23:07:00 +0000 (23:07 +0000)]
Merge "Merge "WakeAndUnlock: Make sure to wait for screen turning on" into oc-dr1-dev am: 46f2cdeb63" into oc-mr1-dev

6 years agoMerge "WakeAndUnlock: Make sure to wait for screen turning on" into oc-dr1-dev
Adrian Roos [Wed, 2 Aug 2017 23:05:12 +0000 (23:05 +0000)]
Merge "WakeAndUnlock: Make sure to wait for screen turning on" into oc-dr1-dev
am: 46f2cdeb63

Change-Id: Ibdbeefd3c375504e935f938fe6e5008644ef7b66

6 years agoMerge "Merge "Remove Conferenceable update squelching" into oc-dr1-dev am: 4b6ef9c92d...
Android Build Merger (Role) [Wed, 2 Aug 2017 23:04:34 +0000 (23:04 +0000)]
Merge "Merge "Remove Conferenceable update squelching" into oc-dr1-dev am: 4b6ef9c92d" into oc-mr1-dev

6 years agoMerge "Remove Conferenceable update squelching" into oc-dr1-dev
Brad Ebinger [Wed, 2 Aug 2017 23:02:46 +0000 (23:02 +0000)]
Merge "Remove Conferenceable update squelching" into oc-dr1-dev
am: 4b6ef9c92d

Change-Id: I30fbedd2fa26482d520fef48f0dd81aa923b06b7

6 years agoMerge "Merge "Fix keyboard focus in VR" into oc-dr1-dev am: 986995d481" into oc-mr1-dev
Android Build Merger (Role) [Wed, 2 Aug 2017 23:02:16 +0000 (23:02 +0000)]
Merge "Merge "Fix keyboard focus in VR" into oc-dr1-dev am: 986995d481" into oc-mr1-dev

6 years agoMerge "Fix keyboard focus in VR" into oc-dr1-dev
Tarandeep Singh [Wed, 2 Aug 2017 22:59:51 +0000 (22:59 +0000)]
Merge "Fix keyboard focus in VR" into oc-dr1-dev
am: 986995d481

Change-Id: I693c1256583dc1081c6402668401c6aab2337d16

6 years agoMerge "Merge "camera2: Fix template requirements" into oc-dev am: 2976109d89 am:...
Android Build Merger (Role) [Wed, 2 Aug 2017 22:59:25 +0000 (22:59 +0000)]
Merge "Merge "camera2: Fix template requirements" into oc-dev am: 2976109d89 am: 615f9e1277" into oc-mr1-dev

6 years agoMerge "camera2: Fix template requirements" into oc-dev am: 2976109d89
Chien-Yu Chen [Wed, 2 Aug 2017 22:58:15 +0000 (22:58 +0000)]
Merge "camera2: Fix template requirements" into oc-dev am: 2976109d89
am: 615f9e1277

Change-Id: I9ea51423e88f90648f480c55d4567db6cee6ef98

6 years agoMerge "Merge "Ensure that all displays are updated upon any changes to rotation....
Android Build Merger (Role) [Wed, 2 Aug 2017 22:57:53 +0000 (22:57 +0000)]
Merge "Merge "Ensure that all displays are updated upon any changes to rotation." into oc-dr1-dev am: adec8518af" into oc-mr1-dev

6 years agoMerge "Ensure that all displays are updated upon any changes to rotation." into oc...
Santos Cordon [Wed, 2 Aug 2017 22:56:40 +0000 (22:56 +0000)]
Merge "Ensure that all displays are updated upon any changes to rotation." into oc-dr1-dev
am: adec8518af

Change-Id: Id3700db64134667e48d6d4f5f5566e6a3c9f4f00

6 years agoMerge "Merge "Fixed a clipping issue in AOD" into oc-dr1-dev am: 0ee78fd385" into...
Android Build Merger (Role) [Wed, 2 Aug 2017 22:56:16 +0000 (22:56 +0000)]
Merge "Merge "Fixed a clipping issue in AOD" into oc-dr1-dev am: 0ee78fd385" into oc-mr1-dev

6 years agoMerge "Fixed a clipping issue in AOD" into oc-dr1-dev
Selim Cinek [Wed, 2 Aug 2017 22:55:01 +0000 (22:55 +0000)]
Merge "Fixed a clipping issue in AOD" into oc-dr1-dev
am: 0ee78fd385

Change-Id: I5c793c7dc11e1acac82feed8f4bada2a9f493ede

6 years agoMerge "Move VR preference for portrait orientation." into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 22:54:52 +0000 (22:54 +0000)]
Merge "Move VR preference for portrait orientation." into oc-dr1-dev

6 years agoMerge "Merge "Start all visible running activities when attaching app" into oc-dr1...
Android Build Merger (Role) [Wed, 2 Aug 2017 22:54:38 +0000 (22:54 +0000)]
Merge "Merge "Start all visible running activities when attaching app" into oc-dr1-dev am: 2af6f25f43" into oc-mr1-dev

6 years agoMerge "Start all visible running activities when attaching app" into oc-dr1-dev
Jorim Jaggi [Wed, 2 Aug 2017 22:53:25 +0000 (22:53 +0000)]
Merge "Start all visible running activities when attaching app" into oc-dr1-dev
am: 2af6f25f43

Change-Id: I54f1aedb4cbcc4d11d8e79c7b9f5c496902baaca

6 years agoMerge "Merge "SysUI: Move all sensor operations to the background thread" into oc...
Android Build Merger (Role) [Wed, 2 Aug 2017 22:52:59 +0000 (22:52 +0000)]
Merge "Merge "SysUI: Move all sensor operations to the background thread" into oc-dr1-dev am: e81cdeea1c" into oc-mr1-dev

6 years agoMerge "SysUI: Move all sensor operations to the background thread" into oc-dr1-dev
Adrian Roos [Wed, 2 Aug 2017 22:51:23 +0000 (22:51 +0000)]
Merge "SysUI: Move all sensor operations to the background thread" into oc-dr1-dev
am: e81cdeea1c

Change-Id: Idd7b5d3741f629b560e9de5b985d895a45e8a532

6 years agoMerge "Merge "Fix NPE when reading icon for removed session." into oc-dr1-dev am...
Android Build Merger (Role) [Wed, 2 Aug 2017 22:51:00 +0000 (22:51 +0000)]
Merge "Merge "Fix NPE when reading icon for removed session." into oc-dr1-dev am: 65abebbadd" into oc-mr1-dev

6 years agoMerge "Fix NPE when reading icon for removed session." into oc-dr1-dev
Jeff Sharkey [Wed, 2 Aug 2017 22:49:42 +0000 (22:49 +0000)]
Merge "Fix NPE when reading icon for removed session." into oc-dr1-dev
am: 65abebbadd

Change-Id: I6ef312422ea84b352f8d07a9937c64394b14776a

6 years agoMerge "Give DeviceStorageMonitorService it's own thread." into oc-mr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 22:48:44 +0000 (22:48 +0000)]
Merge "Give DeviceStorageMonitorService it's own thread." into oc-mr1-dev

6 years agoMerge "Gracefully handle focus loops created by app dev." into oc-dr1-dev
Evan Rosky [Wed, 2 Aug 2017 22:42:21 +0000 (22:42 +0000)]
Merge "Gracefully handle focus loops created by app dev." into oc-dr1-dev
am: ae938cee71

Change-Id: I0b0fe6f7cc07362e98f7a5a2b54aa66bbd5ffc7f

6 years agoMerge "Send TYPE_NOTIFICATION_STATE_CHANGED events for IMPORTANCE_LOW notifications...
Daniel Sandler [Wed, 2 Aug 2017 22:38:22 +0000 (22:38 +0000)]
Merge "Send TYPE_NOTIFICATION_STATE_CHANGED events for IMPORTANCE_LOW notifications." into oc-dr1-dev
am: c7937c13f6  -s ours

Change-Id: I466f7aa7f0cb0385343cabab94289c59c5f290eb

6 years agoMerge changes from topic 'do_not_roam_on_traffic' into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 22:09:15 +0000 (22:09 +0000)]
Merge changes from topic 'do_not_roam_on_traffic' into oc-dr1-dev

* changes:
  Add traffic thresholds to prevent wifi network changes
  WifiInfo: Add getters for success tx/rx rate

6 years agoMerge "Prevent crash dialogs from appearing in demo mode" into oc-dr1-dev
Christine Franks [Wed, 2 Aug 2017 21:54:28 +0000 (21:54 +0000)]
Merge "Prevent crash dialogs from appearing in demo mode" into oc-dr1-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 2 Aug 2017 21:51:56 +0000 (14:51 -0700)]
Import translations. DO NOT MERGE

Change-Id: I7be023a0638a0f1bd3cabd9be1ef400a450e4935
Auto-generated-cl: translation import
Exempt-From-Owner-Approval: translation import

6 years agoBit: Don't ignore errors and crashes
Makoto Onuki [Wed, 2 Aug 2017 21:40:12 +0000 (14:40 -0700)]
Bit: Don't ignore errors and crashes

Bit used to only see success results and failures (== assertion failures?),
and didn't see "errors" (other exceptions) and test process crashes.

Fixed it.

Now it also returns an error status code if there was a test failure.

Bug 64292779
Test: manual

Change-Id: Iaba93910d32abfc615ae595746a0e9be1108583a

6 years agoNetworkRecommendationProviders require the location permission.
Jeremy Joslin [Fri, 14 Jul 2017 22:00:53 +0000 (15:00 -0700)]
NetworkRecommendationProviders require the location permission.

Any NetworkRecommendationProvider bound to by the system must have
access to location (i.e. it holds the location permission and
location is enabled on the device).

If the location permission is revoked then the binding will be
disconnected and the system will revert to the default network
recommendation provider (if set and valid). If location access
is disabled on the device then the binding will be disconnected
but the system won't fall back to the default provider (because
it won't have location either), instead the current provider will
be re-enabled when location access is enabled again.

BUG:62263953
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest
Change-Id: I93c37eeda47840d92f3ca52767e878dc19b46740
(cherry picked from commit d816abe97bce389dc0f56f3f2553b07483eca125)

6 years agoMerge "WakeAndUnlock: Make sure to wait for screen turning on" into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 21:29:07 +0000 (21:29 +0000)]
Merge "WakeAndUnlock: Make sure to wait for screen turning on" into oc-dr1-dev

6 years agoMerge "Remove Conferenceable update squelching" into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 21:26:19 +0000 (21:26 +0000)]
Merge "Remove Conferenceable update squelching" into oc-dr1-dev

6 years agoMerge "Make InputFilter.AllCaps constructor reject null locales" into oc-mr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 21:08:54 +0000 (21:08 +0000)]
Merge "Make InputFilter.AllCaps constructor reject null locales" into oc-mr1-dev

6 years agoDon't show scary UI when rescue party kicks in.
Jeff Sharkey [Wed, 2 Aug 2017 20:33:04 +0000 (14:33 -0600)]
Don't show scary UI when rescue party kicks in.

We're not actually doing a factory reset yet; we're rebooting to ask
the user if they'd like to reset, so give them a less scary message.

Test: builds, boots
Bug: 63000721
Change-Id: Ibbf5eeb6e21d25dee2d6723b4ba4e42d9ff5c2fd

6 years agoMerge "Fix keyboard focus in VR" into oc-dr1-dev
Tarandeep Singh [Wed, 2 Aug 2017 20:33:02 +0000 (20:33 +0000)]
Merge "Fix keyboard focus in VR" into oc-dr1-dev

6 years agoGive DeviceStorageMonitorService it's own thread.
Jeff Sharkey [Wed, 2 Aug 2017 20:24:35 +0000 (14:24 -0600)]
Give DeviceStorageMonitorService it's own thread.

When devices are low on space, it calls down into installd to clear
cached files, which can block for a long time.  Instead of risking
the wrath of the Watchdog on IoThread, give ourselves a separate
thread.

Test: builds, boots
Bug: 64080821
Change-Id: Iaca00966bb836d58e8d2400d6c9d544023ef1af8

6 years agoMerge "camera2: Fix template requirements" into oc-dev
Chien-Yu Chen [Wed, 2 Aug 2017 19:56:55 +0000 (19:56 +0000)]
Merge "camera2: Fix template requirements" into oc-dev
am: 2976109d89

Change-Id: I20b68b33caf48afeead56116602c6a9b2a33ab26

6 years agoSave PackageDexUsage on PMS shutdown
Calin Juravle [Fri, 28 Jul 2017 23:13:35 +0000 (16:13 -0700)]
Save PackageDexUsage on PMS shutdown

This ensures that we persist the in memory data between restarts (makes
testing much easier).

Bug: 64151900
Test: Manual, flash + restart + check the dex usage file

(cherry picked from commit 6ef7f0b8c6e72e849a220513425a9fd37804af90)

Change-Id: I7bd99fc03c3a40cbbf5d615886f857b5f84f438c

6 years agoMerge "camera2: Fix template requirements" into oc-dev
TreeHugger Robot [Wed, 2 Aug 2017 19:43:31 +0000 (19:43 +0000)]
Merge "camera2: Fix template requirements" into oc-dev

6 years agoMerge "Ensure that all displays are updated upon any changes to rotation." into oc...
TreeHugger Robot [Wed, 2 Aug 2017 19:38:08 +0000 (19:38 +0000)]
Merge "Ensure that all displays are updated upon any changes to rotation." into oc-dr1-dev

6 years agoMerge "Use EGL_EXT_gl_colorspace_scrgb instead of *_linear" into oc-dr1-dev
Romain Guy [Wed, 2 Aug 2017 19:33:19 +0000 (19:33 +0000)]
Merge "Use EGL_EXT_gl_colorspace_scrgb instead of *_linear" into oc-dr1-dev
am: 8e8debbe21

Change-Id: I5e6ab8d1b1531980c9d699f4cacbafdcad56501d

6 years agoAssist: Only call lockscreenShown when it is actually shown
Adrian Roos [Wed, 2 Aug 2017 19:32:54 +0000 (21:32 +0200)]
Assist: Only call lockscreenShown when it is actually shown

Fixes an issue where lockscreenShown called during onStartedWakingUp. Instead,
we now call it only when the lockscreen is actually shown, not when the layout
is requested for doze.

Change-Id: Idd196bf4fd5027e64a872ac8c0387531e8f59606
Fixes: 64141781
Test: Trigger Elmyra from AOD, verify Assistant shows.

6 years agoMerge "Fixed a clipping issue in AOD" into oc-dr1-dev
Selim Cinek [Wed, 2 Aug 2017 19:28:07 +0000 (19:28 +0000)]
Merge "Fixed a clipping issue in AOD" into oc-dr1-dev

6 years agoMerge "Start all visible running activities when attaching app" into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 19:20:19 +0000 (19:20 +0000)]
Merge "Start all visible running activities when attaching app" into oc-dr1-dev

6 years agoMerge "SysUI: Move all sensor operations to the background thread" into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 19:16:46 +0000 (19:16 +0000)]
Merge "SysUI: Move all sensor operations to the background thread" into oc-dr1-dev

6 years agoMerge "media: Add scaled video thumbnail extractor api." into oc-mr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 19:14:23 +0000 (19:14 +0000)]
Merge "media: Add scaled video thumbnail extractor api." into oc-mr1-dev

6 years agoMerge "Fix NPE when reading icon for removed session." into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 19:09:04 +0000 (19:09 +0000)]
Merge "Fix NPE when reading icon for removed session." into oc-dr1-dev

6 years agoMerge "Gracefully handle focus loops created by app dev." into oc-dr1-dev
Evan Rosky [Wed, 2 Aug 2017 19:08:18 +0000 (19:08 +0000)]
Merge "Gracefully handle focus loops created by app dev." into oc-dr1-dev

6 years agoAOD: Unregister touchscreen sensors while pulsing
Adrian Roos [Wed, 2 Aug 2017 18:50:16 +0000 (20:50 +0200)]
AOD: Unregister touchscreen sensors while pulsing

While we're pulsing, the touch screen is fully on. Keeping touchscreen
sensors registered can lead to the sensorhub and kernel touch driver
racing on who gets to control the touchscreen; the losing party may
also logspam and consume increased power.

To avoid this, we unregister touchscreen sensors when turning the screen
on.

Change-Id: Ie236d0a40c92d7fc544bd34ff883e613915c8e46
Fixes: 64160164
Test: receive notification; adb shell dumpsys sensorservice, verify double tap sensor is not registered; verify it is again registered after swiping away the notification.

6 years agoMerge "Send TYPE_NOTIFICATION_STATE_CHANGED events for IMPORTANCE_LOW notifications...
Daniel Sandler [Wed, 2 Aug 2017 18:40:34 +0000 (18:40 +0000)]
Merge "Send TYPE_NOTIFICATION_STATE_CHANGED events for IMPORTANCE_LOW notifications." into oc-dr1-dev