OSDN Git Service

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

6 years agoMerge "Added null test to avoid regression for onRemoteVolumeChanged." into oc-dr1-dev
Beverly [Wed, 2 Aug 2017 18:39:02 +0000 (18:39 +0000)]
Merge "Added null test to avoid regression for onRemoteVolumeChanged." into oc-dr1-dev
am: 6407874ae0

Change-Id: Ib0fcc0592a57be6bce184b729f1c25ee02595062

6 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

6 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

6 years agoMerge "Deprecate KEY_EDITABLE_TETHER_APN_BOOL." into oc-mr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 18:09:41 +0000 (18:09 +0000)]
Merge "Deprecate KEY_EDITABLE_TETHER_APN_BOOL." into oc-mr1-dev

6 years agoMerge "Fix race condition when destroying view" into oc-dr1-dev
Lucas Dupin [Wed, 2 Aug 2017 18:03:21 +0000 (18:03 +0000)]
Merge "Fix race condition when destroying view" into oc-dr1-dev
am: b0e5b53bbf

Change-Id: I57e3c07e9390203a6eb201a314f3887fa7a678cd

6 years agoMerge "Always report a uid's initial cached state." into oc-mr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 17:51:48 +0000 (17:51 +0000)]
Merge "Always report a uid's initial cached state." into oc-mr1-dev

6 years agoMerge "Improve docs about exceptions through Binder." into oc-mr1-dev
Dianne Hackborn [Wed, 2 Aug 2017 17:51:01 +0000 (17:51 +0000)]
Merge "Improve docs about exceptions through Binder." into oc-mr1-dev

6 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

6 years agoFix keyboard focus in VR
Tarandeep Singh [Tue, 11 Jul 2017 01:50:00 +0000 (18:50 -0700)]
Fix keyboard focus in VR

Consider this VirtualDisplay (VD) scenario:
HostActivity creates a VD which holds SettingsActivity. When EditText
on SettingsActivity is tapped, it gains focus.
On eventual taps, it loses focus i.e. the Window in VD loses focus and
the host activity in primary display gets the focus instead. This
happens because WM's TaskTapPointerEventListener.onPointerEvent()
is called on the default display only.

Root cause:
1. Tap detector isn't registered for non-default display.
2. Tap detector has no info on which displayId touch was received.
3. InputFlinger doesn't deliver InputMonitor events for
non-default displays (fixed in a separate CL)

Fixing above results in onPointerEvent(MotionEvent) to deliver the
Touch events successfully to VD. We restrict these changes to physical
multi-displays and VR VirtualDisplays (which uses virtual touch device).
[VrManagerService calls WMInternal.setVr2dDisplayId(int)]

In future, displayId should be part of InputEvent. Bug: 64258305

Bug: 62033391
Test: bit FrameworksServicesTests:com.android.server.wm.DisplayContentTests
Change-Id: I3626f4de5aa9bcf905da9abd39f3ab1baefc4c48

6 years agoMake InputFilter.AllCaps constructor reject null locales
Roozbeh Pournader [Wed, 2 Aug 2017 02:30:28 +0000 (19:30 -0700)]
Make InputFilter.AllCaps constructor reject null locales

In I021ff2a97a60396fb1b6e4940d91d3cd6ccb6196, new API for
InputFilter.AllCaps was added. It accepted null as input. This CL
changes that so null locales would be rejected.

Test: bit CtsTextTestCases:android.text.cts.InputFilter_AllCapsTest
Fixes: 64261334
Bug: 37222101

Change-Id: Ic87942c3f341f71bc3c1c833b52ea3e751461e47

6 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

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

Change-Id: I0f6b682d53f764c93d1c1c48490cf1427857b1b4

6 years agoMerge "Fixed an issue where icons were jumping" into oc-dr1-dev
Selim Cinek [Wed, 2 Aug 2017 17:27:46 +0000 (17:27 +0000)]
Merge "Fixed an issue where icons were jumping" into oc-dr1-dev
am: 7a719ab0ed

Change-Id: I145e868610a92ba1af501c62b151c7f55663bec3

6 years agoAddress API review comments
John Reck [Wed, 2 Aug 2017 17:24:18 +0000 (10:24 -0700)]
Address API review comments

Also make it less error-prone to use unmap() incorrectly.
Bug: 64264008
Test: CTS tests pass

Change-Id: I21559676e7a850b76db4b61a31e43833396c6087

6 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

6 years agoMerge "View: fix setTransientState" into oc-mr1-dev
Dake Gu [Wed, 2 Aug 2017 17:18:00 +0000 (17:18 +0000)]
Merge "View: fix setTransientState" into oc-mr1-dev

6 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

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

Change-Id: I8de50b81273e89298a6276d8b17100c90361380e

6 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

6 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

6 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

6 years agoVersion guard Application.onCreate strict mode fix
Kurt Nelson [Mon, 10 Jul 2017 18:09:04 +0000 (11:09 -0700)]
Version guard Application.onCreate strict mode fix

In I30b3eafa4a833fc42d0a938da9446007ade80480 we fixed an outstanding bug
around clobbering strict mode in Application.onCreate and allowing disk
writes to go unreported.

This guards that fix to only take effect once an app targets > SDK 26
and applies a ThreadPolicy inside Application.onCreate.

Bug: 63436909
Test: Ran apps with violations
Change-Id: Ib0ac1626e2ef322c4e61bbdf493d1f724b08652d

6 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

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 15:20:57 +0000 (15:20 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Fix deadlock between AMS and EphemeralResolverConnection" into oc-mr1-dev
Todd Kennedy [Wed, 2 Aug 2017 14:59:19 +0000 (14:59 +0000)]
Merge "Fix deadlock between AMS and EphemeralResolverConnection" into oc-mr1-dev

6 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

6 years agoMerge "Import translations. DO NOT MERGE" into oc-mr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 14:49:10 +0000 (14:49 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-mr1-dev

6 years agoMerge "Import translations. DO NOT MERGE" into oc-dr1-dev
Bill Yi [Wed, 2 Aug 2017 14:35:59 +0000 (14:35 +0000)]
Merge "Import translations. DO NOT MERGE" into oc-dr1-dev
am: 9ce641fd81  -s ours

Change-Id: I1dff9545bf7cc357ef8d3bac8954d59c0c23b5c4

6 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.

6 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

6 years agoMerge "Add new API to retrieve app names in a batch" into oc-mr1-dev
Todd Kennedy [Wed, 2 Aug 2017 14:23:16 +0000 (14:23 +0000)]
Merge "Add new API to retrieve app names in a batch" into oc-mr1-dev

6 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

6 years agoEnsure that all displays are updated upon any changes to rotation.
Santos Cordon [Fri, 28 Jul 2017 18:08:23 +0000 (11:08 -0700)]
Ensure that all displays are updated upon any changes to rotation.

There's generally only ever 1 display on most devices, so this code
has no change. If any additional displays have rotation support, their
displays will be updated accordingly with this change. At the moment,
this only affect VR's virtual display.

This fixes a bug where the Activity on a virtual display never ran
through PhoneWindowManager's rotation policy until it came across an
Activity that had any value for screenOrientation.
The result would be that the activity would display the natural
landscape orientation of the virtual display instead of the portrait
preference that is written into PhoneWindowManager. This change ensures
that the rotation is confirmed with PhoneWindowManager during Activity
layout.

Test: Before change - Run virtual display and see that it doesn't get
it's orientation set via PhoneWindowManager's policy.  After change -
see that the orientation is updated accordingly as part of this change.
Bug: 6328931262862109

Change-Id: I7de7aea790fd11daba36097227e13874bd9aacaa

6 years agoWakeAndUnlock: Make sure to wait for screen turning on
Adrian Roos [Mon, 31 Jul 2017 14:40:19 +0000 (16:40 +0200)]
WakeAndUnlock: Make sure to wait for screen turning on

Fixes an issue where instead of waiting for screen on
we start the unlock transition immediately when the screen
is already on. Instead, we have to wait for it to turn off
and then on again.

Change-Id: Ib1f66edc6ad2d3e71c4bf928b4b0e7531babf6e0
Fixes: 64080116
Test: Unlock via fingerprint a lot. Verify the status bar does not flicker.

6 years agoStart all visible running activities when attaching app
Jorim Jaggi [Wed, 2 Aug 2017 12:37:49 +0000 (14:37 +0200)]
Start all visible running activities when attaching app

This fixes an issue where a translucent activity was on top of a
normal activity in the same process. Now, when reopening the
translucent activity after the process has been killed we only
used to start the very top activity, leaving the normal activity
in destroyed state. However, we make the activity visible already
so in window manager we are waiting for it but a window is never
added to it.

This fixes the issue by starting all activities that are visible
and running once the app is attached.

Test: go/wm-smoke
Test: Have app with translucent activity on top of normal
activity, kill app via shell, navigate back to app via recents.
Observe no excessive delay.

Change-Id: I444b7064b8e2e878fac5fa9ac8b36e0e2fe248bc
Fixes: 33269100

6 years agoMerge "Refine condition for starting window skip" into oc-dr1-dev
Jorim Jaggi [Wed, 2 Aug 2017 12:22:58 +0000 (12:22 +0000)]
Merge "Refine condition for starting window skip" into oc-dr1-dev
am: 612de053b8

Change-Id: I687dad0a2177c8235e0a2acfd574a92a2a5cd6bb

6 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

6 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

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

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

6 years agoMerge "Show correct security type for PasspointConfiguration" into oc-mr1-dev
TreeHugger Robot [Wed, 2 Aug 2017 06:01:04 +0000 (06:01 +0000)]
Merge "Show correct security type for PasspointConfiguration" into oc-mr1-dev