OSDN Git Service

android-x86/frameworks-base.git
7 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

7 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

7 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

7 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

7 years agoMerge "Use EGL_EXT_gl_colorspace_scrgb instead of *_linear" into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 18:35:10 +0000 (18:35 +0000)]
Merge "Use EGL_EXT_gl_colorspace_scrgb instead of *_linear" into oc-dr1-dev

7 years agoMerge "Added null test to avoid regression for onRemoteVolumeChanged." into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 18:22:03 +0000 (18:22 +0000)]
Merge "Added null test to avoid regression for onRemoteVolumeChanged." into oc-dr1-dev

7 years agoMerge "Fix race condition when destroying view" into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 17:47:59 +0000 (17:47 +0000)]
Merge "Fix race condition when destroying view" into oc-dr1-dev

7 years agoGracefully handle focus loops created by app dev.
Evan Rosky [Wed, 12 Jul 2017 17:58:07 +0000 (10:58 -0700)]
Gracefully handle focus loops created by app dev.

Instead of ANR in an infinite loop, this will detect
a cycle and return null.

Bug: 62960867
Test: Added in CTS FocusFinderTest#testChainVisibility
Change-Id: Ifb4638e3350642f065c40b3bea112cc12efff447

7 years agoMerge "LightStatus: Fix notification icon color filter" into oc-dr1-dev
Adrian Roos [Wed, 2 Aug 2017 17:23:31 +0000 (17:23 +0000)]
Merge "LightStatus: Fix notification icon color filter" into oc-dr1-dev

7 years agoMerge "Fixed an issue where icons were jumping" into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 17:16:18 +0000 (17:16 +0000)]
Merge "Fixed an issue where icons were jumping" into oc-dr1-dev

7 years agoMerge "Clarifies how the autofill service should check for signature hashes." into...
Felipe Leme [Wed, 2 Aug 2017 16:00:41 +0000 (16:00 +0000)]
Merge "Clarifies how the autofill service should check for signature hashes." into oc-dev
am: c8f0fd7076

Change-Id: Ida9652bb511ea0aa180e649992a9e5fa6409b2be

7 years agoMerge "Clarifies how the autofill service should check for signature hashes." into...
Felipe Leme [Wed, 2 Aug 2017 15:52:05 +0000 (15:52 +0000)]
Merge "Clarifies how the autofill service should check for signature hashes." into oc-dev

7 years agoFix NPE when reading icon for removed session.
Jeff Sharkey [Wed, 2 Aug 2017 15:28:53 +0000 (09:28 -0600)]
Fix NPE when reading icon for removed session.

The underlying session may have been destroyed before we go back to
read out the icon.

Test: builds, boots
Bug: 63795821
Change-Id: I16eb32c74a0e3b1d0605392878d65f28437006a6

7 years agoSend TYPE_NOTIFICATION_STATE_CHANGED events for IMPORTANCE_LOW notifications.
Dan Sandler [Wed, 2 Aug 2017 00:55:59 +0000 (20:55 -0400)]
Send TYPE_NOTIFICATION_STATE_CHANGED events for IMPORTANCE_LOW notifications.

They shouldn't make noise, but because they appear on-screen
we should report them to a11y services to potentially
announce them to the user in some other way.

Bug: 38500162
Test: runtest systemui-notification
Change-Id: I3a022329f54d17c7229a05130dce14c0101ec24a

7 years agoLightStatus: Fix notification icon color filter
Adrian Roos [Wed, 2 Aug 2017 14:57:11 +0000 (16:57 +0200)]
LightStatus: Fix notification icon color filter

Fixes an issue with the color filter applied to status bar icons where the
tint's alpha channel was ignored.

Change-Id: Idf22c70524fb718995d09ef339b825425ca5f7a7
Fixes: 64139391
Test: Look at light status bar with notifications; verify that icons have slightly gray tint instead of fully black

7 years agoSysUI: Move all sensor operations to the background thread
Adrian Roos [Wed, 2 Aug 2017 14:26:50 +0000 (16:26 +0200)]
SysUI: Move all sensor operations to the background thread

Registering / unregistering listeners for sensors now frequently takes several hundred
miliseconds. Work around this by moving all sensor operations off the main thread.

Change-Id: Ic3537889e1d6e045149942bebb0211afe1192033
Fixes: 64103634
Test: Turn on phone from AOD2. Verify no jank.

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 14:25:24 +0000 (14:25 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoAdded null test to avoid regression for onRemoteVolumeChanged.
Beverly [Fri, 28 Jul 2017 18:05:30 +0000 (14:05 -0400)]
Added null test to avoid regression for onRemoteVolumeChanged.

Change-Id: Iebcf30a381250c06055143528914632a00e474bc
Fixes: 63946353
Test: runtest systemui

7 years agoMerge "Refine condition for starting window skip" into oc-dr1-dev
Jorim Jaggi [Wed, 2 Aug 2017 12:15:40 +0000 (12:15 +0000)]
Merge "Refine condition for starting window skip" into oc-dr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Wed, 2 Aug 2017 07:57:25 +0000 (00:57 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Cherry-picked some Autofill Javadoc improvements from master." into oc-dev
Felipe Leme [Wed, 2 Aug 2017 00:26:37 +0000 (00:26 +0000)]
Merge "Cherry-picked some Autofill Javadoc improvements from " into oc-dev
am: 6829a1dace

Change-Id: I41dec3cb31e6b523927717950f827f45dadabd8b

7 years agoMerge "Cherry-picked some Autofill Javadoc improvements from master." into oc-dev
TreeHugger Robot [Wed, 2 Aug 2017 00:08:15 +0000 (00:08 +0000)]
Merge "Cherry-picked some Autofill Javadoc improvements from " into oc-dev

7 years agoMerge "Fix broken robotests." into oc-dr1-dev
TreeHugger Robot [Tue, 1 Aug 2017 22:38:28 +0000 (22:38 +0000)]
Merge "Fix broken robotests." into oc-dr1-dev

7 years agoFixed an issue where icons were jumping
Selim Cinek [Tue, 1 Aug 2017 00:47:45 +0000 (17:47 -0700)]
Fixed an issue where icons were jumping

Because width and height are different for icons on
some devices, the animation could jump unfortunately.
This was mainly introduced since we changed the
statusbar height.

Test: observe icon animations (Especially on last notification)
Change-Id: Iee4f63467895045146c92d68eb4f9ca8a38d943a
Fixes: 64008528

7 years agoMerge "Fixed an issue where the statusbar was expanded" into oc-dr1-dev
TreeHugger Robot [Tue, 1 Aug 2017 21:37:00 +0000 (21:37 +0000)]
Merge "Fixed an issue where the statusbar was expanded" into oc-dr1-dev

7 years agoMerge "docs: Noted that JobIntentService is usually a better choice" into oc-dev
Andrew Solovay [Tue, 1 Aug 2017 21:21:58 +0000 (21:21 +0000)]
Merge "docs: Noted that JobIntentService is usually a better choice" into oc-dev
am: d71cc3b72e

Change-Id: I8130d71136078d17196e198db6ff36f7f8489a5c

7 years agoMerge "docs: Noted that JobIntentService is usually a better choice" into oc-dev
Andrew Solovay [Tue, 1 Aug 2017 21:07:18 +0000 (21:07 +0000)]
Merge "docs: Noted that JobIntentService is usually a better choice" into oc-dev

7 years agoClarifies how the autofill service should check for signature hashes.
Felipe Leme [Mon, 31 Jul 2017 18:34:14 +0000 (11:34 -0700)]
Clarifies how the autofill service should check for signature hashes.

Test: m update-api

Bug: 64125551
Fixes: 63991811

Change-Id: I1ba66787ef91c0fc5fab20b5e9e9fd47aee46412

7 years agoMerge "Set default value for T3T_PMM." into oc-dr1-dev
TreeHugger Robot [Tue, 1 Aug 2017 19:48:12 +0000 (19:48 +0000)]
Merge "Set default value for T3T_PMM." into oc-dr1-dev

7 years agoMerge "Revert "Fixing occasional jump when launching certain apps from Recents."...
Adam Cohen [Tue, 1 Aug 2017 19:41:42 +0000 (19:41 +0000)]
Merge "Revert "Fixing occasional jump when launching certain apps from Recents."" into oc-dr1-dev

7 years agoMerge "Make it easier to click on phone nav buttons" into oc-dr1-dev
Jason Monk [Tue, 1 Aug 2017 19:41:10 +0000 (19:41 +0000)]
Merge "Make it easier to click on phone nav buttons" into oc-dr1-dev

7 years agoMerge "Reword analog audio not supported notification" into oc-dr1-dev
TreeHugger Robot [Tue, 1 Aug 2017 18:51:53 +0000 (18:51 +0000)]
Merge "Reword analog audio not supported notification" into oc-dr1-dev

7 years agoMerge "Refresh constants when MCC/MNC changes in PowerUI" into oc-dr1-dev
Adam Lesinski [Tue, 1 Aug 2017 18:47:42 +0000 (18:47 +0000)]
Merge "Refresh constants when MCC/MNC changes in PowerUI" into oc-dr1-dev

7 years agoMerge "Cleanup QS dialogs" into oc-dr1-dev
Jason Monk [Tue, 1 Aug 2017 18:31:15 +0000 (18:31 +0000)]
Merge "Cleanup QS dialogs" into oc-dr1-dev

7 years agoMerge "Move ShutdownThread calls to system ui thread." into oc-dr1-dev
Alison Cichowlas [Tue, 1 Aug 2017 18:06:39 +0000 (18:06 +0000)]
Merge "Move ShutdownThread calls to system ui thread." into oc-dr1-dev

7 years agoFixed an issue where the statusbar was expanded
Selim Cinek [Tue, 1 Aug 2017 17:44:29 +0000 (10:44 -0700)]
Fixed an issue where the statusbar was expanded

Since we weren't always updating our state whether
our scrims are visible, we could get stuck in an
uninteractable state.

Test: manual, doubletap on AOD notification
Change-Id: I48eca4f29775578382098cf8be876be09ba037a9
Fixes: 64216359

7 years agoSet default value for T3T_PMM.
Love Khanna [Tue, 1 Aug 2017 13:02:59 +0000 (18:32 +0530)]
Set default value for T3T_PMM.

If HCEF Application does not provide the T3T PMM value, set the
default value (FFFFFFFFFFFFFFFF) as per NCI specification.

Bug: 64112415
Test: CTS Verifier; HCE-F Reader/Emulator Test
Change-Id: I24f212d9bebd978342e4dd04d618572132e7eb4b
(cherry picked from commit 20a77e973f62f145ab7b3a4822ce34407c0ca476)

7 years agoMerge "Fix QS wifi scan state" into oc-dr1-dev
Jason Monk [Tue, 1 Aug 2017 16:41:43 +0000 (16:41 +0000)]
Merge "Fix QS wifi scan state" into oc-dr1-dev

7 years agoMake it easier to click on phone nav buttons
Jason Monk [Fri, 28 Jul 2017 18:35:13 +0000 (14:35 -0400)]
Make it easier to click on phone nav buttons

When touches fall through the normal click targets, redirect them
to the nearest view.

Test: runtest systemui
Change-Id: I48267d9b1e15bf8dbe8725b72326751b03196efa
Fixes: 64080938

7 years agoUse EGL_EXT_gl_colorspace_scrgb instead of *_linear
Romain Guy [Tue, 11 Jul 2017 16:48:28 +0000 (09:48 -0700)]
Use EGL_EXT_gl_colorspace_scrgb instead of *_linear

Since hwui output non-linear scRGB data in wide-gamut, use
the scRGB-nl extension instead of scRGB.

Bug: 62951776
Test: Manual, CtsGraphicsTestCases
Change-Id: Ifdb288e777d12b790b93624ccea9b4f1f6966e52
(cherry picked from commit 26b6a64953f29bbe6b10a5e948d11f47bd0611d6)

7 years agoMerge "Fix exceptions causing HTC dongle (and JBL headset) to fail connection logic...
Paul Mclean [Tue, 1 Aug 2017 15:28:27 +0000 (15:28 +0000)]
Merge "Fix exceptions causing HTC dongle (and JBL headset) to fail connection logic." into oc-dr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Tue, 1 Aug 2017 15:18:52 +0000 (15:18 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoMerge "power: gps: add gps read timeout" into cw-f-dev am: 33676dddbd am: b5da08a276
Maggie Lee [Tue, 1 Aug 2017 15:03:39 +0000 (15:03 +0000)]
Merge "power: gps: add gps read timeout" into cw-f-dev am: 33676dddbd am: b5da08a276
am: d88f4b723d

Change-Id: I63d677df2353fff2d2e786e25b0dc416837f1581

7 years agoMerge changes I49a76582,Iac4b75bc into cw-f-dev am: f18599a15b am: 9295f58d26
Andriy Naborskyy [Tue, 1 Aug 2017 14:56:23 +0000 (14:56 +0000)]
Merge changes I49a76582,Iac4b75bc into cw-f-dev am: f18599a15b am: 9295f58d26
am: 502986f72a

Change-Id: Ic615cfdefcf6a226c868e9203e74070e9000a931

7 years agoDO NOT MERGE ANYWHERE ConnectivityService: move reportNetworkConnectivity to handler...
Hugo Benichi [Tue, 1 Aug 2017 14:55:26 +0000 (14:55 +0000)]
DO NOT MERGE ANYWHERE ConnectivityService: move reportNetworkConnectivity to handler am: 456b91561d  -s ours am: ff55799950  -s ours
am: 17e2448c26  -s ours

Change-Id: Ia38655a26410e9ea78e394e5c59e052739f041a6

7 years agoMerge "power: gps: add gps read timeout" into cw-f-dev am: 33676dddbd
Maggie Lee [Tue, 1 Aug 2017 14:47:57 +0000 (14:47 +0000)]
Merge "power: gps: add gps read timeout" into cw-f-dev am: 33676dddbd
am: b5da08a276

Change-Id: I5d96dd73affe79880583347e32a95be8510a5462

7 years agoCleanup QS dialogs
Jason Monk [Tue, 1 Aug 2017 14:38:02 +0000 (10:38 -0400)]
Cleanup QS dialogs

Test: manual
Change-Id: I3a87b171d9000ac6628f3d83fc2a817136dc3010
Fixes: 64159285
Fixes: 64158814

7 years agoMerge changes I49a76582,Iac4b75bc into cw-f-dev am: f18599a15b
Andriy Naborskyy [Tue, 1 Aug 2017 14:38:26 +0000 (14:38 +0000)]
Merge changes I49a76582,Iac4b75bc into cw-f-dev am: f18599a15b
am: 9295f58d26

Change-Id: Ifd70690f5e275e89d59a15134427e2bcc91e67c7

7 years agoMerge "power: gps: add gps read timeout" into cw-f-dev
Maggie Lee [Tue, 1 Aug 2017 14:37:40 +0000 (14:37 +0000)]
Merge "power: gps: add gps read timeout" into cw-f-dev
am: 33676dddbd

Change-Id: I7e3a779631c2de4a14521c8dac6d5b2d96ce1b29

7 years agoDO NOT MERGE ANYWHERE ConnectivityService: move reportNetworkConnectivity to handler...
Hugo Benichi [Tue, 1 Aug 2017 14:37:06 +0000 (14:37 +0000)]
DO NOT MERGE ANYWHERE ConnectivityService: move reportNetworkConnectivity to handler am: 456b91561d  -s ours
am: ff55799950  -s ours

Change-Id: I6d788c5b7cd5c6877799e5a3e0ad865996147b70

7 years agoMerge "power: gps: add gps read timeout" into cw-f-dev
Maggie Lee [Tue, 1 Aug 2017 14:31:23 +0000 (14:31 +0000)]
Merge "power: gps: add gps read timeout" into cw-f-dev

7 years agoMerge changes I49a76582,Iac4b75bc into cw-f-dev
Andriy Naborskyy [Tue, 1 Aug 2017 14:30:05 +0000 (14:30 +0000)]
Merge changes I49a76582,Iac4b75bc into cw-f-dev
am: f18599a15b

Change-Id: Ib1f6b94a4970bbec28d6bbc7de8969c9d5d3975f

7 years agoDO NOT MERGE ANYWHERE ConnectivityService: move reportNetworkConnectivity to handler
Hugo Benichi [Tue, 1 Aug 2017 14:30:02 +0000 (14:30 +0000)]
DO NOT MERGE ANYWHERE ConnectivityService: move reportNetworkConnectivity to handler
am: 456b91561d  -s ours

Change-Id: Ie54e0712dc83514ff3ddcd6cee1b0bd2e80c73ad

7 years agoMerge changes I49a76582,Iac4b75bc into cw-f-dev
Andriy Naborskyy [Tue, 1 Aug 2017 14:16:30 +0000 (14:16 +0000)]
Merge changes I49a76582,Iac4b75bc into cw-f-dev

* changes:
  DO NOT MERGE ANYWHERE ConnectivityService: move reportNetworkConnectivity to handler
  DO NOT MERGE ANYWHERE ConnectivityService: safer locking

7 years agoFix QS wifi scan state
Jason Monk [Tue, 1 Aug 2017 14:13:43 +0000 (10:13 -0400)]
Fix QS wifi scan state

Test: manual
Change-Id: Icc4e627f1248b5749801ad532220b3b9fade036d
Fixes: 63648257

7 years agoMerge "Disable AOD when accessibility color inversion is on." into oc-dr1-dev
Geoffrey Pitsch [Tue, 1 Aug 2017 14:00:22 +0000 (14:00 +0000)]
Merge "Disable AOD when accessibility color inversion is on." into oc-dr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Tue, 1 Aug 2017 07:32:58 +0000 (07:32 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoMerge "Fine-tune the condition to hide IME switcher" into oc-dr1-dev
Yohei Yukawa [Tue, 1 Aug 2017 06:01:20 +0000 (06:01 +0000)]
Merge "Fine-tune the condition to hide IME switcher" into oc-dr1-dev

7 years agodocs: Noted that JobIntentService is usually a better choice
Andrew Solovay [Tue, 1 Aug 2017 02:13:38 +0000 (19:13 -0700)]
docs: Noted that JobIntentService is usually a better choice

Since IntentService is subject to the O background restrictions,
most devs are better off switching to the new JobIntentService.
(I assume IntentService is not actually deprecated; if it is, tell
me and I'll change this to a @deprecated tag!)

See first comment for doc stage location.

Test: make ds-docs
Bug: 64159987
Change-Id: I83a53d1e6336c2134bf4c61bedd2ae42cd80493a

7 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 1 Aug 2017 02:03:43 +0000 (19:03 -0700)]
Import translations. DO NOT MERGE

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

7 years agoFix broken robotests.
Sundeep Ghuman [Tue, 1 Aug 2017 01:46:45 +0000 (18:46 -0700)]
Fix broken robotests.

In ag/2580164 AccessPoint.java made a reference to WifiTracker, which
in term references WifiNetworkScoreCache. Since the Robolectric in the
platform still has not been updated to support API 26 (Android O), this
caused the test to break.

By definining the class in the test package, the test can be fixed until
proper Android O support is added to the robolectric prebuilts in the
platform code.

Bug: 64217019
Test: make -j40 RunSettingsLibRoboTests
Change-Id: I6cfd5c17d1aba98d43cca4828058493960a7ff79

7 years agoRefresh constants when MCC/MNC changes in PowerUI
Adam Lesinski [Mon, 31 Jul 2017 20:42:00 +0000 (13:42 -0700)]
Refresh constants when MCC/MNC changes in PowerUI

The PowerUI in SystemUI decides whether to show high temperature
warnings to the user based on resources defined for mnc/mcc
configurations. PowerUI only loads the relevant constants once
at startup, meaning any SIM changes that come after the initialization
are not visible. Sometimes, these changes are the first initialization
of mnc/mcc.

PowerUI now listens to configuration changes and updates its internal
state when mnc/mcc changes occur.

Bug: 62845934
Test: manual (put SIM in device and reboot)
Change-Id: Id6a13017924f0367594aa29419aac59ac8b7c157

7 years agoMerge "DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchrono...
Tyler Freeman [Tue, 1 Aug 2017 01:41:18 +0000 (01:41 +0000)]
Merge "DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchronously (2/3)" into cw-f-dev am: a053eaa841  -s ours am: 65d806d043  -s ours
am: 6b2d37ca25  -s ours

Change-Id: I111a86ba53a48ab3db3e5211e86afc0a1d2a21e0

7 years agoMerge "DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchrono...
Tyler Freeman [Tue, 1 Aug 2017 01:33:44 +0000 (01:33 +0000)]
Merge "DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchronously (2/3)" into cw-f-dev am: a053eaa841  -s ours
am: 65d806d043  -s ours

Change-Id: Ie89e28aae64abfc833ed97748654d509cd52c07b

7 years agoMerge "DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchrono...
Tyler Freeman [Tue, 1 Aug 2017 01:24:08 +0000 (01:24 +0000)]
Merge "DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchronously (2/3)" into cw-f-dev
am: a053eaa841  -s ours

Change-Id: If8383edac561ad83edf182ee1c6e9687b180a1c2

7 years agoMerge "DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchrono...
Tyler Freeman [Tue, 1 Aug 2017 01:10:44 +0000 (01:10 +0000)]
Merge "DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchronously (2/3)" into cw-f-dev

7 years agoFix race condition when destroying view
Lucas Dupin [Tue, 1 Aug 2017 00:11:26 +0000 (17:11 -0700)]
Fix race condition when destroying view

Calling ensureView before triggering mRemoveViewRunnable
would halt view re-inflation. Now we make sure that the
view will be removed.

Test: Increased handler delay to simulate race condition.
Change-Id: Ic987f307c268b973058a80ab546da87f43fefb1b
Fixes: 63890571

7 years agoMerge "Show error code in WFC error notification." into oc-dr1-dev
Meng Wang [Tue, 1 Aug 2017 00:28:12 +0000 (00:28 +0000)]
Merge "Show error code in WFC error notification." into oc-dr1-dev

7 years agoMerge "Remoe translations of values-mcc310-mnc260" into oc-dr1-dev
Meng Wang [Tue, 1 Aug 2017 00:28:12 +0000 (00:28 +0000)]
Merge "Remoe translations of values-mcc310-mnc260" into oc-dr1-dev

7 years agoReword analog audio not supported notification
Badhri Jagan Sridharan [Mon, 31 Jul 2017 19:55:46 +0000 (12:55 -0700)]
Reword analog audio not supported notification

New title: Analog audio accessory detected
New message: The attached device is not compatible with this
phone. Tap to learn more.

Also switch to bigTextStyle as the notification message
takes more than one line to display.

Bug: 63962800
Test: Attached analog audio accessory to verify the notification
manually. Also verified that the charging notification remians
untouched.
Change-Id: I5c395bdf3c3dd11f3be8835ec773f087afdc85d9

7 years agopower: gps: add gps read timeout
z00208928 [Fri, 21 Jul 2017 14:26:29 +0000 (22:26 +0800)]
power: gps: add gps read timeout

During download gps file, if network is disconnected, it do not release wakelock
to prevent system to sleep and consume more power until network is connected.
So set gps read tiemout.

Bug: 33469278

Change-Id: I41adf137559d88f76d9da6f63585bfdefc3117b1
Signed-off-by: z00208928 <zhangwei519@huawei.com>
7 years agoFine-tune the condition to hide IME switcher
Yohei Yukawa [Mon, 31 Jul 2017 22:37:14 +0000 (15:37 -0700)]
Fine-tune the condition to hide IME switcher

This is a follow up CL to a previous CL [1] that aimed to avoid
redundant IME switcher icon/notification on the keyguard, which already
has a keyboard icon to show IME switcher.

What the previous attempt overlooked is that when some other window is
shown over the keyguard and accepting text input, then we instead may
want to show the IME switcher icon/notification in the system UI level
because such a window may or may not have the icon to show IME
switcher.

This CL addresses above case by checking whether the keyguard is also
occluded or not.  Bug 64224022 is also filed to find any other better
solution to stop relying on the keyguard visibility.

 [1]: Ibee9123f4a520e77f4baf8bdd3d75364ab451100
      2c93efc9eb188532472edc9e0c3e1ab8121aa20d

Test: Manually done as follows
      1. Enable multiple IMEs
      2. Set a password to lockscreen
      3. Lock screen
      4. Make sure that IME switcher UI is not shown when typing
         password on the keyguard (Bug 5858903 is still fixed)
      5. Show any window that has EditText over the keyguard
      6. Focus in to that EditText
      7. Make sure that IME switcher UI is shown
Fixes: 63585213
Change-Id: I2ae7fc7676e5b64d8910dbc6833d3042e8d2329a

7 years agoRevert "Fixing occasional jump when launching certain apps from Recents."
Adam Cohen [Mon, 31 Jul 2017 22:18:38 +0000 (22:18 +0000)]
Revert "Fixing occasional jump when launching certain apps from Recents."

issue 64098508

This reverts commit 7b088c3e2820809437ad40e88a457c220943692e.

Change-Id: If3c1e324d231c5f29a5c68812fe93af6a7335b11

7 years agoMerge "Camera2: Release input surface on capture session close" into oc-dr1-dev
Eino-Ville Talvala [Mon, 31 Jul 2017 22:21:40 +0000 (22:21 +0000)]
Merge "Camera2: Release input surface on capture session close" into oc-dr1-dev

7 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 31 Jul 2017 22:11:31 +0000 (15:11 -0700)]
Import translations. DO NOT MERGE

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

7 years agoMerge "Remove extraneous invalidate call that unregisters AssetManagers" into oc...
Adam Lesinski [Mon, 31 Jul 2017 22:08:30 +0000 (22:08 +0000)]
Merge "Remove extraneous invalidate call that unregisters AssetManagers" into oc-dr1-dev

7 years agoMerge "When exiting persistent vr, we should exit overall vr mode." into oc-dr1-dev
TreeHugger Robot [Mon, 31 Jul 2017 21:43:44 +0000 (21:43 +0000)]
Merge "When exiting persistent vr, we should exit overall vr mode." into oc-dr1-dev

7 years agoDO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchronously...
Stanley Tng [Tue, 18 Apr 2017 05:35:45 +0000 (22:35 -0700)]
DO NOT MERGE ANYWHERE Allow the Bluetooth MAC address to be updated asynchronously (2/3)

There are intermittent issues where either the returned Bluetooth
MAC address to Java framework is uninitialized or this address update
arrives too late. This fix will do 2 things:
(1) Returns error when MAC address is unavailable in the native code.
(2) Updates the MAC address later by adding a new broadcast event.

Test: Check address for these cases: factory reset, system reboot, and
Bluetooth re-enable.
Bug: 36709382

Merged-In: I09720193e38fdf9139e1bb146f8e1847e2b65b1a
(cherry picked from commit ad4d1d8e28618546953e75d4983335631feb6f2a)

Change-Id: Ifae3adf6e2aad1f0811c03d3114d1bd0452e7c23

7 years agoMove ShutdownThread calls to system ui thread.
Alison Cichowlas [Mon, 31 Jul 2017 15:24:34 +0000 (11:24 -0400)]
Move ShutdownThread calls to system ui thread.

Test: Manual
Fixes: 63680790

Change-Id: I6e431efb7594ba86311aac857dbf3970d48044ac

7 years agoMerge "Reintroduce the contract for random token to be non-negative" into oc-dr1-dev
TreeHugger Robot [Mon, 31 Jul 2017 18:51:17 +0000 (18:51 +0000)]
Merge "Reintroduce the contract for random token to be non-negative" into oc-dr1-dev

7 years agoMerge "Allow foreground AppWindowToken to influence orientation." into oc-dr1-dev
Bryce Lee [Mon, 31 Jul 2017 18:34:23 +0000 (18:34 +0000)]
Merge "Allow foreground AppWindowToken to influence orientation." into oc-dr1-dev

7 years agoMerge "Do not call onConfigurationChanged for appBound position changes." into oc...
Bryce Lee [Mon, 31 Jul 2017 18:32:30 +0000 (18:32 +0000)]
Merge "Do not call onConfigurationChanged for appBound position changes." into oc-dr1-dev

7 years agoDisable AOD when accessibility color inversion is on.
Geoffrey Pitsch [Fri, 28 Jul 2017 19:07:39 +0000 (15:07 -0400)]
Disable AOD when accessibility color inversion is on.

White background drains too much to be always on.

Bug: 62918778
Test: Manual
Change-Id: I78b2f6a5951b108aff4f353dabe2493117032dce

7 years agoCherry-picked some Autofill Javadoc improvements from master.
Felipe Leme [Fri, 28 Jul 2017 16:14:38 +0000 (09:14 -0700)]
Cherry-picked some Autofill Javadoc improvements from 

Test: m update-api

Bug: 64125551
Bug: 63669555
Bug: 63985284

Merged-in: Iba4817f682670e9fd6d891ae221e1fa415252e99
Change-Id: I82cbb54a522b2cf1dfb11aacc9735c932aa9af90

7 years agoCamera2: Release input surface on capture session close
Eino-Ville Talvala [Mon, 31 Jul 2017 16:57:15 +0000 (09:57 -0700)]
Camera2: Release input surface on capture session close

Per the documentation, the input surface of a reprocessable capture
session should be abandoned on the close of a session.

Actually implement this, to avoid unintentional leaks of buffers.

Test: Camera CTS passes
Bug: 38313948
Change-Id: Ia45c39ea925288a5082d6e722ff4b40c55971a37

7 years agoMerge "WakeAndUnlock: Make sure blanking is never animated" into oc-dr1-dev
TreeHugger Robot [Mon, 31 Jul 2017 16:43:07 +0000 (16:43 +0000)]
Merge "WakeAndUnlock: Make sure blanking is never animated" into oc-dr1-dev

7 years agoDo not call onConfigurationChanged for appBound position changes.
Bryce Lee [Fri, 28 Jul 2017 15:33:36 +0000 (08:33 -0700)]
Do not call onConfigurationChanged for appBound position changes.

Since appBounds encodes both dimensions and positions, movement will
cause a diff change. This happens in situations where the dimensions
stay constant, such as dragging a PiP window around.

To avoid flooding the client side with configuration changes, this CL
checks whether the new configuration is equivalent to the existing
configuration with the exception of the position of the appBounds
before sending to the registered callbacks.

Change-Id: I8fbc94458fd9ed3b39494c3587f25e704ec02a7d
Fixes: 63927944
Test: bit FrameworksServicesTests:com.android.server.wm.AppBoundsTests
Test: go/wm-smoke

7 years agoAllow foreground AppWindowToken to influence orientation.
Bryce Lee [Sat, 29 Jul 2017 03:48:43 +0000 (20:48 -0700)]
Allow foreground AppWindowToken to influence orientation.

It is possible for an activity to request an orientation after
finish has been called, causing the system orientation to be
re-evaluated. Since the activity is closing, it will no longer be
eligible to influence orientation. If another stack/task is brought
to the foreground, it will as well won't be able to participate
since it is not considered an opening app and won't be visible. As a
result, we set the orientation to unspecified, leading to the
foreground activity to be resumed in the wrong orientation.

This changelist addresses the issue by allowing an AppWindowToken to
participate in orientation calculations if it is not closing and is
on top of the wm hierarchy, regardless of its visibility.

Change-Id: I0f316d6d824398d084c7648cf2dc2c2d07b4410d
Fixes: 63982461
Fixes: 63513655
Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowTokenTests#testGetOrientation
Test: go/wm-smoke

7 years agoRefine condition for starting window skip
Jorim Jaggi [Mon, 24 Jul 2017 14:44:18 +0000 (16:44 +0200)]
Refine condition for starting window skip

If an app is in draw_pending state because of a pending resize,
we still want to skip starting windows. For that, we actually
check whether the app is visible or not.

Test: go/wm-smoke
Test: Open YouTube, go to PIP
Change-Id: Ib72d5c2302190ca3144c2036a06cacfd7df560f9
Fixes: 63924375

7 years agoWakeAndUnlock: Make sure blanking is never animated
Adrian Roos [Mon, 31 Jul 2017 13:56:24 +0000 (15:56 +0200)]
WakeAndUnlock: Make sure blanking is never animated

Fixes an issue where instead of immediately blanking the screen upon
authenticating via fingerprint we animated to blank because another
animating transition was requested at the same time.

Change-Id: I141079c0d4de1776c8328057d364eeb0964eebaf
Fixes: 64080116
Test: Unlock via fingerprint a lot. Verify no flicker.

7 years agoMerge "AOD: When prox covered disable touch during pulse instead of aborting" into...
Adrian Roos [Mon, 31 Jul 2017 12:29:44 +0000 (12:29 +0000)]
Merge "AOD: When prox covered disable touch during pulse instead of aborting" into oc-dr1-dev

7 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
TreeHugger Robot [Mon, 31 Jul 2017 05:59:57 +0000 (05:59 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev

7 years agoMerge "Scrim opacity must satisfy GAR" into oc-dr1-dev
TreeHugger Robot [Sat, 29 Jul 2017 23:08:04 +0000 (23:08 +0000)]
Merge "Scrim opacity must satisfy GAR" into oc-dr1-dev

7 years agoMerge "Fix issue where clock inflation would fail" into oc-dr1-dev
TreeHugger Robot [Sat, 29 Jul 2017 22:56:28 +0000 (22:56 +0000)]
Merge "Fix issue where clock inflation would fail" into oc-dr1-dev

7 years agoMerge "Fix BLE scan leaks" into oc-dr1-dev
TreeHugger Robot [Sat, 29 Jul 2017 22:08:36 +0000 (22:08 +0000)]
Merge "Fix BLE scan leaks" into oc-dr1-dev

7 years agoMerge "Add a missing null check" into oc-dev
Jeff Sharkey [Sat, 29 Jul 2017 16:04:02 +0000 (16:04 +0000)]
Merge "Add a missing null check" into oc-dev
am: 101fca656d

Change-Id: Iab72d9b62042ab5ceb0d32425b43796d3bdeb1ca

7 years agoMerge "Add a missing null check" into oc-dev
Jeff Sharkey [Sat, 29 Jul 2017 15:56:14 +0000 (15:56 +0000)]
Merge "Add a missing null check" into oc-dev

7 years agoMerge "Force update wifi QS when opening." into oc-dr1-dev
TreeHugger Robot [Sat, 29 Jul 2017 09:10:12 +0000 (09:10 +0000)]
Merge "Force update wifi QS when opening." into oc-dr1-dev

7 years agoDO NOT MERGE ANYWHERE: Add a wakelock timeout when downloading xtra data for GNSS...
Wei Wang [Sat, 29 Jul 2017 03:00:11 +0000 (03:00 +0000)]
DO NOT MERGE ANYWHERE: Add a wakelock timeout when downloading xtra data for GNSS. am: a763fdba09  -s ours am: 452b8f2bd3  -s ours
am: f173b2a4c3  -s ours

Change-Id: Id129412a62ee25b95853d664371d6a1b46bda1b0

7 years agoDO NOT MERGE ANYWHERE: Add a wakelock timeout when downloading xtra data for GNSS...
Wei Wang [Sat, 29 Jul 2017 02:52:46 +0000 (02:52 +0000)]
DO NOT MERGE ANYWHERE: Add a wakelock timeout when downloading xtra data for GNSS. am: a763fdba09  -s ours
am: 452b8f2bd3  -s ours

Change-Id: Iaee8bab95acf6490e468d1a0df66b6aea6e61398