OSDN Git Service

android-x86/frameworks-base.git
7 years agoMerge "Fix crash when using list of enabled a11y services" into oc-dev
TreeHugger Robot [Fri, 7 Apr 2017 00:08:20 +0000 (00:08 +0000)]
Merge "Fix crash when using list of enabled a11y services" into oc-dev

7 years agoMerge "Fix injected settings titles not matching a locale change." into oc-dev
William Luh [Fri, 7 Apr 2017 00:00:40 +0000 (00:00 +0000)]
Merge "Fix injected settings titles not matching a locale change." into oc-dev

7 years agoMerge "SurfaceControl: Crash due to invalid JNI cast" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 23:35:31 +0000 (23:35 +0000)]
Merge "SurfaceControl: Crash due to invalid JNI cast" into oc-dev

7 years agoMerge "Set android.display thread to top-app cpusets and schedtune group" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 22:51:38 +0000 (22:51 +0000)]
Merge "Set android.display thread to top-app cpusets and schedtune group" into oc-dev

7 years agoMerge "Add intent to intialize programs on APP installed" into oc-dev
Dongwon Kang [Thu, 6 Apr 2017 22:49:46 +0000 (22:49 +0000)]
Merge "Add intent to intialize programs on APP installed" into oc-dev

7 years agoMerge "Don't start a partition when session is pending FillResponse authentication...
TreeHugger Robot [Thu, 6 Apr 2017 22:41:59 +0000 (22:41 +0000)]
Merge "Don't start a partition when session is pending FillResponse authentication." into oc-dev

7 years agoMerge "Preserve app window when it requests a relaunch" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 22:32:35 +0000 (22:32 +0000)]
Merge "Preserve app window when it requests a relaunch" into oc-dev

7 years agoMerge "Add lower case charging string." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 22:30:45 +0000 (22:30 +0000)]
Merge "Add lower case charging string." into oc-dev

7 years agoMerge "Removed deprecated onFillRequest() method" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 22:20:45 +0000 (22:20 +0000)]
Merge "Removed deprecated onFillRequest() method" into oc-dev

7 years agoMerge "Use hwservicemanager getTransport." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 22:15:04 +0000 (22:15 +0000)]
Merge "Use hwservicemanager getTransport." into oc-dev

7 years agoMerge "Add showChargingMethod in BatteryInfo" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 22:06:21 +0000 (22:06 +0000)]
Merge "Add showChargingMethod in BatteryInfo" into oc-dev

7 years agoMerge "Add tests for verifying network availability on activity start." into oc-dev
Sudheer Shanka [Thu, 6 Apr 2017 22:06:14 +0000 (22:06 +0000)]
Merge "Add tests for verifying network availability on activity start." into oc-dev

7 years agoMerge "Fix testWaitForNetworkStateUpdate." into oc-dev
Sudheer Shanka [Thu, 6 Apr 2017 22:05:51 +0000 (22:05 +0000)]
Merge "Fix testWaitForNetworkStateUpdate." into oc-dev

7 years agoFix injected settings titles not matching a locale change.
William Luh [Fri, 31 Mar 2017 22:08:16 +0000 (15:08 -0700)]
Fix injected settings titles not matching a locale change.

The injected tiles code currently treats the string metadata value
for the title key in the Activity's manifest as the title itself.
When the language on the device is changed the title remains in the
previous language until a reboot.

This CL will make injected tiles attempt to treat the string metadata
value as a resource variable to get the integer res id and then
properly load the localized title using the res id. To be backwards
compatible, if the res id is 0, we treat the string metadata value as
the title itself (current behavior).

Bug:36470694
Test: make RunSettingsLibRoboTests
Change-Id: I3963534a3a3a27d0455c4ed1ad4fa574b03d67fc

7 years agoMerge "Rename getIntent() to getRenderIntent()" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 21:34:13 +0000 (21:34 +0000)]
Merge "Rename getIntent() to getRenderIntent()" into oc-dev

7 years agoMerge changes I6f00614d,I987eeab2 into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 21:21:55 +0000 (21:21 +0000)]
Merge changes I6f00614d,I987eeab2 into oc-dev

* changes:
  Convert 16 bit bitmaps to 8 bit on devices that do not have GLES3.0
  Fix HardwareBitmapTests.testBitmapConfigFromRGB565

7 years agoSurfaceControl: Crash due to invalid JNI cast
Patrik Torstensson [Mon, 27 Mar 2017 14:04:11 +0000 (15:04 +0100)]
SurfaceControl: Crash due to invalid JNI cast

The (void*)buffer.get on ARM32 is 4 byte, so the calling convention
will put the argument in [sp, #12]. However, the caller actually
expects a long (the signature of gGraphicBufferClassInfo.builder),
which means it will expect it to be in [sp, #16]

Test: Tested on mtk device
Fixes: 36631082
Fixes: 36974487
Change-Id: I0f723125e612d096c0d76ca3360d895f3f23f286
(cherry picked from commit 98dd5d9a85e8911cf41dea6198d4111f737a5892)

7 years agoSet android.display thread to top-app cpusets and schedtune group
Joel Fernandes [Tue, 4 Apr 2017 23:32:15 +0000 (16:32 -0700)]
Set android.display thread to top-app cpusets and schedtune group

android.display being in the foreground cpuset group is an issue. As
seen on M/S, during heavily CPU load it is not given core 3 even though
it might be free and causes jank. This patch adds the thread to the
top-app group to ensure it is placed on all cores during scheduling
decisions.

Doing this required a couple of changes:
- new API to set per-thread cpusets
- changes to DisplayManagerService to set the thread to top-app group
- changes to SystemServer to set the policy toward the end, as doing it
  during start of the DisplayManagerService was in issue (issue being
  SystemServer calls setSystemProcess.. -> setProcessGroup which overrides
  the group settings for threads in the system server process, including
  android.display)

Bug: 36631902
Test: Boot and make sure android.display thread is in the top-app group

Change-Id: Icc394ea0ffcf159d11728ad38de114234a29d20f
Signed-off-by: Joel Fernandes <joelaf@google.com>
(cherry picked from commit 474d311cb098e86c078c3f615e1161e2854f1847)

7 years agoMerge "Use additions/emoji-data.txt instead of hardcoded values" into oc-dev
Roozbeh Pournader [Thu, 6 Apr 2017 21:13:22 +0000 (21:13 +0000)]
Merge "Use additions/emoji-data.txt instead of hardcoded values" into oc-dev

7 years agoMerge "Force direction of phone number fields to (practically) LTR" into oc-dev
Roozbeh Pournader [Thu, 6 Apr 2017 21:13:01 +0000 (21:13 +0000)]
Merge "Force direction of phone number fields to (practically) LTR" into oc-dev

7 years agoMerge "Shows a Toast when manual autofill request cannot be fulfilled." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 21:06:43 +0000 (21:06 +0000)]
Merge "Shows a Toast when manual autofill request cannot be fulfilled." into oc-dev

7 years agoMerge "Update comment on why Keep is needed." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 20:32:37 +0000 (20:32 +0000)]
Merge "Update comment on why Keep is needed." into oc-dev

7 years agoDon't start a partition when session is pending FillResponse authentication.
Felipe Leme [Thu, 6 Apr 2017 20:27:52 +0000 (13:27 -0700)]
Don't start a partition when session is pending FillResponse authentication.

BUG: 35707731
Test: fixed testFillResponseAuthBothFields and testFillResponseAuthJustOneField

Change-Id: Ib74e46dd37feb7e5c03e40cfbe8133ace6db0709

7 years agoMerge "Add a service to rank apps for ResolverActivity." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 20:25:42 +0000 (20:25 +0000)]
Merge "Add a service to rank apps for ResolverActivity." into oc-dev

7 years agoAdd lower case charging string.
jackqdyulei [Mon, 3 Apr 2017 18:31:40 +0000 (11:31 -0700)]
Add lower case charging string.

The previous charging string is "75% - Charging", this cl add lower
case string to make it "75% - charging".

Bug: 36558216
Test: Build
Change-Id: I683843de0b6cbd45bea6a465c7b6d8ee0b7c4f93

7 years agoMerge "Revert "Remove SystemProperty gating-flag for virtual displays."" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 20:17:51 +0000 (20:17 +0000)]
Merge "Revert "Remove SystemProperty gating-flag for virtual displays."" into oc-dev

7 years agoAdd showChargingMethod in BatteryInfo
jackqdyulei [Fri, 24 Mar 2017 19:13:49 +0000 (12:13 -0700)]
Add showChargingMethod in BatteryInfo

This toggle is used to decide whether to show charging method.
If it is off, then "Charging over ac" will become "Charging"

Bug: 36558216
Test: RunSettingsLibRoboTests
Change-Id: I98b1f7e7b77d7ce0a7e1aae29e55a33ac79ff0d7
(cherry picked from commit b3c33f63ed120cf4758ec67426bb45291e289fce)

7 years agoMerge "Disable PiP when VR mode starts." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 19:59:53 +0000 (19:59 +0000)]
Merge "Disable PiP when VR mode starts." into oc-dev

7 years agoMerge "Revert "Handle case when snapshot dimensions don't match"" into oc-dev
Jason Monk [Thu, 6 Apr 2017 19:51:03 +0000 (19:51 +0000)]
Merge "Revert "Handle case when snapshot dimensions don't match"" into oc-dev

7 years agoMerge "Xform bitmaps to sRGB on SW and PDF canvases" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 19:48:40 +0000 (19:48 +0000)]
Merge "Xform bitmaps to sRGB on SW and PDF canvases" into oc-dev

7 years agoMerge "Refactor VR state management in ActivityManagerService." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 19:47:29 +0000 (19:47 +0000)]
Merge "Refactor VR state management in ActivityManagerService." into oc-dev

7 years agoForce direction of phone number fields to (practically) LTR
Roozbeh Pournader [Wed, 5 Apr 2017 01:27:10 +0000 (18:27 -0700)]
Force direction of phone number fields to (practically) LTR

Previously, phone number fields defaulted to locale direction, which
created problems for apps that were not aware of LTR requirements for
phone numbers.

Now, we look at the direction of the digits for the locale, and use
that to determine the direction of the edit field. (For practically
all major RTL locales, that direction is LTR.)

Test: Manual
Bug: 33643035
Change-Id: I17c70d8462bd403ea6866057971105f1f5772ba3

7 years agoMerge "Do not show UI when currentID changed." into oc-dev
Philip P. Moltmann [Thu, 6 Apr 2017 19:40:42 +0000 (19:40 +0000)]
Merge "Do not show UI when currentID changed." into oc-dev

7 years agoMerge "Expose ConfigUpdater Intents in SystemApi" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 19:40:22 +0000 (19:40 +0000)]
Merge "Expose ConfigUpdater Intents in SystemApi" into oc-dev

7 years agoMerge "change how instant app installer is updated" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 19:39:00 +0000 (19:39 +0000)]
Merge "change how instant app installer is updated" into oc-dev

7 years agoMerge "ConnectivityService: safer locking" into oc-dev
Sudheer Shanka [Thu, 6 Apr 2017 19:37:11 +0000 (19:37 +0000)]
Merge "ConnectivityService: safer locking" into oc-dev

7 years agoRename getIntent() to getRenderIntent()
Romain Guy [Thu, 6 Apr 2017 19:37:03 +0000 (12:37 -0700)]
Rename getIntent() to getRenderIntent()

Bug: 37077433
Test: compile and ColorSpaceTests
Change-Id: I8eb1fa6136582eaac1d509ebfef7f67b0fffe1aa

7 years agoMerge "Fixed Autofill NPE that crashed some apps." into oc-dev
Felipe Leme [Thu, 6 Apr 2017 19:36:16 +0000 (19:36 +0000)]
Merge "Fixed Autofill NPE that crashed some apps." into oc-dev

7 years agoConvert 16 bit bitmaps to 8 bit on devices that do not have GLES3.0
Romain Guy [Thu, 6 Apr 2017 19:24:29 +0000 (12:24 -0700)]
Convert 16 bit bitmaps to 8 bit on devices that do not have GLES3.0

Bug: 37077308
Test: CtsUiRenderingTests (ran to manually emulate 2.0 devices)
Change-Id: I6f00614d79797835adcfe4716bd331573e1463e3

7 years agoConnectivityService: safer locking
Hugo Benichi [Thu, 6 Apr 2017 07:01:44 +0000 (16:01 +0900)]
ConnectivityService: safer locking

This path changes a dangerous lock path in reportNetworkConnectivity().
This methods is called outside of the main ConnectivityService handler
and takes a lock on a specific NetworkAgentInfo whose connectivity
status is being reported.

While this lock is held, reportNetworkConnectivity() goes on and query
the network policy state for that network, which may ends into
NetworkPolicyManagerService.

Instead, the lock on NetworkAgentInfo is only held long enough to make a
copy of LinkProperties, which is then passed to
NetworkPolicyManagerService without that lock.

Bug: 36902662
Test: could not repro b/36902662, reportNetworkConnectivity() works.
      $ runtest frameworks-net

Change-Id: Iac4b75bcecbdddb0ac695c8b1a87ae755f62f47f

7 years agoRevert "Handle case when snapshot dimensions don't match"
Jason Monk [Thu, 6 Apr 2017 18:28:19 +0000 (18:28 +0000)]
Revert "Handle case when snapshot dimensions don't match"

This reverts commit aea6b74e17a0f7b105999adad50dd20eac17df35.
Bug: 36991071
Bug: 36703868
Change-Id: Ie71992144e78a6580bfce17dfdf20396af80eacd

7 years agoDo not show UI when currentID changed.
Philip P. Moltmann [Thu, 6 Apr 2017 17:36:32 +0000 (10:36 -0700)]
Do not show UI when currentID changed.

Test: autofill cts tests (no new failures)
Fixes: 36992897
Change-Id: I0c97a84c034533d07544eb3845ff52cdab107f2a

7 years agoAdd a service to rank apps for ResolverActivity.
Kang Li [Wed, 5 Apr 2017 19:30:55 +0000 (12:30 -0700)]
Add a service to rank apps for ResolverActivity.

bug: 36952725,30982298

Test: used PTP before and after this fix.

Change-Id: I5b249af2dd0d9fe32d1e524e8d2675c863e92b5b

7 years agoRevert "Remove SystemProperty gating-flag for virtual displays."
Santos Cordon [Thu, 6 Apr 2017 18:06:31 +0000 (18:06 +0000)]
Revert "Remove SystemProperty gating-flag for virtual displays."

Test team is still relying on this.  We'll keep this until the virtual display input code goes in this week.

This reverts commit abcc8e54f636bd4eaff5f85d54d5ff8b75508bb9.

Change-Id: Ic591f813289191b09367a76be3221183562256a7

7 years agoMerge "Ignore a broken test until it can be fixed." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 18:04:55 +0000 (18:04 +0000)]
Merge "Ignore a broken test until it can be fixed." into oc-dev

7 years agoMerge "Use explicit .c_str() for hidl_string" into oc-dev
Scott Randolph [Thu, 6 Apr 2017 18:01:41 +0000 (18:01 +0000)]
Merge "Use explicit .c_str() for hidl_string" into oc-dev

7 years agoMerge "WindowManager.LayoutParams: Expose privateFlags for CTS" into oc-dev
Rob Carr [Thu, 6 Apr 2017 18:00:50 +0000 (18:00 +0000)]
Merge "WindowManager.LayoutParams: Expose privateFlags for CTS" into oc-dev

7 years agoFix HardwareBitmapTests.testBitmapConfigFromRGB565
Romain Guy [Thu, 6 Apr 2017 18:00:21 +0000 (11:00 -0700)]
Fix HardwareBitmapTests.testBitmapConfigFromRGB565

Bug: 37077304
Test: HardwareBitmapTests.testBitmapConfigFromRGB565
Change-Id: I987eeab243f93f9ee8fe8d1b6a12ddbd23225651

7 years agoMerge "Correct animation glitch for pinned stack." into oc-dev
Rob Carr [Thu, 6 Apr 2017 18:00:16 +0000 (18:00 +0000)]
Merge "Correct animation glitch for pinned stack." into oc-dev

7 years agoMerge "Fix StringDef usage in MediaDrm API" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 17:50:18 +0000 (17:50 +0000)]
Merge "Fix StringDef usage in MediaDrm API" into oc-dev

7 years agoMerge "Don't populate a setting instead of defaulting to 0 when not set." into oc-dev
Sudheer Shanka [Thu, 6 Apr 2017 17:40:54 +0000 (17:40 +0000)]
Merge "Don't populate a setting instead of defaulting to 0 when not set." into oc-dev

7 years agochange how instant app installer is updated
Todd Kennedy [Tue, 4 Apr 2017 22:16:36 +0000 (15:16 -0700)]
change how instant app installer is updated

. only pay attention to package changes if there's no
  installer or the changed package is the installer
. always update the installer component, even if the
  resolved component is identical [the install paths
  might have updated]

Change-Id: I16eba07ccdb55f5cb61ba6172e71ce1698445fa5
Fixes: 36740490
Test: Manually install/remove/update the installer and see that the component is updated

7 years agoShows a Toast when manual autofill request cannot be fulfilled.
Felipe Leme [Thu, 6 Apr 2017 00:11:01 +0000 (17:11 -0700)]
Shows a Toast when manual autofill request cannot be fulfilled.

Bug: 35708229
Test: manual verification
Change-Id: If4fa6556dd94a805727329f0aebc4b37f548b3a1

7 years agoPreserve app window when it requests a relaunch
Wale Ogunwale [Thu, 6 Apr 2017 16:29:24 +0000 (09:29 -0700)]
Preserve app window when it requests a relaunch

Help allow blank screens when the app calls Activity.recreate().

Test: Take YouTube app in-out of split-screen and make sure there is't
      a hole
Fixes 36567223

Change-Id: Ic4915153c2cb88cce9a1bea7500cf89be14c5aa4

7 years agoMake sure pending cookie persistence canceled
Svetoslav Ganov [Wed, 5 Apr 2017 01:12:27 +0000 (18:12 -0700)]
Make sure pending cookie persistence canceled

When a full app is uninstalled we delete its instant app
cookie but were not canceling a pending write which ended
up having the written cookie file after the app is uninstalled.

Test: InstantCookieHostTest#testCookieResetOnNonInstantReinstall

bug:36455310

Change-Id: Iec6d1f95f8ff731885241913808daf12ce3a5587

7 years agoExpose ConfigUpdater Intents in SystemApi
Chad Brubaker [Fri, 10 Mar 2017 21:31:38 +0000 (13:31 -0800)]
Expose ConfigUpdater Intents in SystemApi

The Intents are are in the android namespace and should have been
exposed as SystemApi, but were not previously.

Since there are no classes in the framework that reference these Intents
this adds android.os.ConfigUpdate to have them all in one place.

Test: builds
Change-Id: I2086945301f06b28b491ec876652c37e97315e8c
Fixes: 35252508
Fixes: 35266806
Fixes: 35266833
Fixes: 35271111
(cherry picked from commit 987b0fc4a57c8b8246b12069a5db06693bc3eea6)

7 years agoMerge "Fix build" into oc-dev
Julia Reynolds [Thu, 6 Apr 2017 16:45:04 +0000 (16:45 +0000)]
Merge "Fix build" into oc-dev

7 years agoMerge "Allow permissions to be runtime-only." into oc-dev
Chad Brubaker [Thu, 6 Apr 2017 16:44:07 +0000 (16:44 +0000)]
Merge "Allow permissions to be runtime-only." into oc-dev

7 years agoFixed Autofill NPE that crashed some apps.
Felipe Leme [Thu, 6 Apr 2017 16:39:01 +0000 (09:39 -0700)]
Fixed Autofill NPE that crashed some apps.

It happened when views provided an Accessibility node that had children.

Bug: 37078783
Fixes: 37009008
Test: LoginActivityTest#testAutoFillWhenViewHasChildAccessibilityNodes

Change-Id: Ie694094afe9129b933096a385eb867baf4550e7f

7 years agoFix build
Julia Reynolds [Thu, 6 Apr 2017 16:31:56 +0000 (12:31 -0400)]
Fix build

Test: runtest systemui
Change-Id: I94663b45c8f745c9485cdeb898de5a6bc4f85f0b

7 years agoDisable PiP when VR mode starts.
Winson Chung [Sat, 25 Mar 2017 00:11:33 +0000 (17:11 -0700)]
Disable PiP when VR mode starts.

Bug: 36214284
Test: Ensure that PiP is stopped when VR is enabled.
Change-Id: Ib537e1f360be7b47199d230e5691f6fece0f925f

7 years agoRefactor VR state management in ActivityManagerService.
Ruben Brunk [Fri, 31 Mar 2017 01:01:33 +0000 (18:01 -0700)]
Refactor VR state management in ActivityManagerService.

- Move VR-related state from ActivityManagerService into
  VrController.
- Move VR-related render thread scheduling logic from
  ActivityManagerService into VrController.
- Update state logic to better enforce invariants.

Bug: 36214284

Test: Covered by existing tests.
Change-Id: I02d1488da0c0f65a10dd0369f38f1a0c47cee174

7 years agoMerge "Bind with the correct action" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 16:35:30 +0000 (16:35 +0000)]
Merge "Bind with the correct action" into oc-dev

7 years agoUse hwservicemanager getTransport.
Steven Moreland [Thu, 6 Apr 2017 16:28:32 +0000 (09:28 -0700)]
Use hwservicemanager getTransport.

libhidl no longer provides a getTransport function. Now, call into the
hwservicemanager which directly interfaces with libvintf.

Test: extensive, see Ia5d1eb41b057ab5d6800f6c3fd22658adecc4be7
Bug: 36377072
Change-Id: I8b0ca845251cd7cd156f3471cbd4b0ce17617be0

7 years agoMerge "Show a link to app settings in notification guts." into oc-dev
Julia Reynolds [Thu, 6 Apr 2017 15:55:25 +0000 (15:55 +0000)]
Merge "Show a link to app settings in notification guts." into oc-dev

7 years agoMerge "Keep track of protected data dirs in DexManager" into oc-dev
Calin Juravle [Thu, 6 Apr 2017 15:54:58 +0000 (15:54 +0000)]
Merge "Keep track of protected data dirs in DexManager" into oc-dev

7 years agoAdd intent to intialize programs on APP installed
Conrad Chen [Wed, 15 Mar 2017 18:58:49 +0000 (11:58 -0700)]
Add intent to intialize programs on APP installed

Adds a new broadcast intent for system APPs to send when some TV APP met
certain requirements is newly installed. The intent will wake up the APP
and notify it to initialize its channel and program list to the system
provider.

Test: build
Bug: 34739955
Change-Id: Ib172b40434db4a439ec0db7bf8b28037d0bfb8a8

7 years agoIgnore a broken test until it can be fixed.
Jason Monk [Thu, 6 Apr 2017 15:31:19 +0000 (11:31 -0400)]
Ignore a broken test until it can be fixed.

Test: runtest systemui
Bug: 37074875
Change-Id: Id5561a3ded2242c711c2edccefb1647437d6f963

7 years agoMerge "Bluetooth Multi Connect" into oc-dev
Joseph Pirozzo [Thu, 6 Apr 2017 15:19:24 +0000 (15:19 +0000)]
Merge "Bluetooth Multi Connect" into oc-dev

7 years agoXform bitmaps to sRGB on SW and PDF canvases
Matt Sarett [Wed, 29 Mar 2017 20:25:10 +0000 (16:25 -0400)]
Xform bitmaps to sRGB on SW and PDF canvases

For picture-backed canvases, we will defer the xform
until playback.

Test: Unit tests and cts test.
Bug: 32984164
Change-Id: Ib74663bcb688b74b6ba8792b403b0475126732af

7 years agoMerge "Remove unneeded methods" into oc-dev
Julia Reynolds [Thu, 6 Apr 2017 15:13:09 +0000 (15:13 +0000)]
Merge "Remove unneeded methods" into oc-dev

7 years agoMerge "Change flag from -includekeyvalue to -keyvalue/-nokeyvalue" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 14:26:53 +0000 (14:26 +0000)]
Merge "Change flag from -includekeyvalue to -keyvalue/-nokeyvalue" into oc-dev

7 years agoDocument Android Wear usage of KEYCODE_WINDOW. am: 03d4a65865
Julius D'souza [Thu, 6 Apr 2017 14:19:58 +0000 (14:19 +0000)]
Document Android Wear usage of KEYCODE_WINDOW. am: 03d4a65865
am: 137006ff5c

Change-Id: I40ba20230d36bfe7b1f397b822f2122172de9da3

7 years agoDocument Android Wear usage of KEYCODE_WINDOW.
Julius D'souza [Thu, 6 Apr 2017 14:12:46 +0000 (14:12 +0000)]
Document Android Wear usage of KEYCODE_WINDOW.
am: 03d4a65865

Change-Id: If938e79a9eddcf3cec97274ad305834c2d58386e

7 years agoMerge "Camera: Initial support for vendor tag caches" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 14:02:06 +0000 (14:02 +0000)]
Merge "Camera: Initial support for vendor tag caches" into oc-dev

7 years agoMerge "Do not stop lock task if it is starting background user" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 13:24:45 +0000 (13:24 +0000)]
Merge "Do not stop lock task if it is starting background user" into oc-dev

7 years agoCanonicalize tz IDs when finding exemplar location
Neil Fuller [Wed, 5 Apr 2017 12:58:26 +0000 (13:58 +0100)]
Canonicalize tz IDs when finding exemplar location

Canonicalize time zone IDs when looking up exemplar location.

ICU's canonical IDs are not guaranteed the same as IANA's.
Various data files (e.g. timezones.xml, tzdata,
time_zones_by_country.xml) are using IANA IDs. ICU's IDs
are often the same, but because they are guaranteed not to
change and IANAs are not there is some drift.

This fixes an issue with the settings picker for ICU IDs:

America/Buenos_Aires
Asia/Rangoon
Asia/Katmandu
Asia/Calcutta

Which are IANA's:

America/Argentina/Buenos_Aires
Asia/Yangon
Asia/Kathmandu
Asia/Kolkata

introduced by commit b4d003da66.

It could also influence some display names for
automatically-selected time zones outside of this list.

The issues was particularly noticeable in locales that
use non-ASCII scripts; ICU performs a fallback if the ID
isn't canonical and would transform and return the last
part of the ID (e.g. Buenos Aires, Yangon, Kathmandu,
Kolkata).

Bug: 36469833
Test: Manual testing in Japanese
Change-Id: I2febdbee58e474d251d0a33f2c8335664a74581f
(cherry picked from commit f92ad8a0190add07779ed454a0908dd3df83f4bd)

7 years agoMerge "Pass FillResponse bundle on subsequent onFillRequest() calls." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 06:23:59 +0000 (06:23 +0000)]
Merge "Pass FillResponse bundle on subsequent onFillRequest() calls." into oc-dev

7 years agoMerge "Overlay a highlight over autofilled views" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 06:22:08 +0000 (06:22 +0000)]
Merge "Overlay a highlight over autofilled views" into oc-dev

7 years agoMerge "Clarify MediaDrm#getKeyRequest docs: init and mimeType" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 06:21:03 +0000 (06:21 +0000)]
Merge "Clarify MediaDrm#getKeyRequest docs: init and mimeType" into oc-dev

7 years agoMerge "Update MediaDrm documentation for provideKeyResponse" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 06:06:48 +0000 (06:06 +0000)]
Merge "Update MediaDrm documentation for provideKeyResponse" into oc-dev

7 years agoMerge "Fix anchor overlap handling in ListPopupWindow" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 05:20:11 +0000 (05:20 +0000)]
Merge "Fix anchor overlap handling in ListPopupWindow" into oc-dev

7 years agoMerge "Partially revert "Add blocking and retrying wrappers for INetd uses."" into...
TreeHugger Robot [Thu, 6 Apr 2017 04:54:44 +0000 (04:54 +0000)]
Merge "Partially revert "Add blocking and retrying wrappers for INetd uses."" into oc-dev

7 years agoMerge "Set AccessPoint metered bit using ScoredNetwork, WifiInfo, and WifiConfigurati...
TreeHugger Robot [Thu, 6 Apr 2017 04:23:02 +0000 (04:23 +0000)]
Merge "Set AccessPoint metered bit using ScoredNetwork, WifiInfo, and WifiConfiguration." into oc-dev

7 years agoOverlay a highlight over autofilled views
Philip P. Moltmann [Mon, 27 Mar 2017 16:55:30 +0000 (09:55 -0700)]
Overlay a highlight over autofilled views

Also clear this overlay once the data changes. Some views call
notifyValueUpdated even if the value did not change. Hence remeber the
data that was autofilled and check if the data really changed.

Make the autofilledDrawable publicly accessible so that virtual views
can use the same UI.

As the activity is not aware that the views were autofilled the state
has to be explicitly persisted over activity lifecycle events as part
of the view. The lifecyle does not work yet as the AutofillIds are not
stable over activity lifecycle events.

Fixes: 34946006
Test: Autofilled and changed all supported views.
      cts-tradefed run cts-dev -m CtsUiRenderingTestCases
Change-Id: I58b105bb221f1b6466dd136dfe5062d3babb5aa8

7 years agoMerge "Move MediaMetrics into its own library" into oc-dev
Ray Essick [Thu, 6 Apr 2017 03:09:18 +0000 (03:09 +0000)]
Merge "Move MediaMetrics into its own library" into oc-dev

7 years agoPartially revert "Add blocking and retrying wrappers for INetd uses."
Joel Scherpelz [Thu, 30 Mar 2017 01:13:03 +0000 (01:13 +0000)]
Partially revert "Add blocking and retrying wrappers for INetd uses."

Direct access to Netd from the bluetooth process is disallowed by
SELinux policy. This change reverts to the old behavior where IpManager
interacts with NetdService indirectly via NetworkManagementService.

Test: as follows:
    - built (sailfish)
    - flashed
    - booted
    - established bluetooth tethering to another device, ping'd 8.8.8.8
Bug: 36492299

This partially reverts commit af39244a34f4449c12a5f925222c9bc8d8049320.

Change-Id: Icf20b1e24abf7dd3123760f8637928bde7afe06b

7 years agoMerge "BatteryStats: Remove too-verbose logging" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 02:38:52 +0000 (02:38 +0000)]
Merge "BatteryStats: Remove too-verbose logging" into oc-dev

7 years agoPass FillResponse bundle on subsequent onFillRequest() calls.
Felipe Leme [Tue, 4 Apr 2017 20:10:58 +0000 (13:10 -0700)]
Pass FillResponse bundle on subsequent onFillRequest() calls.

BUG: 35707731

Test: existing CtsAutoFillServiceTestCases pass
Test: more tests on PartitionedActivityTest

Change-Id: I510aff54d0d9d7e0cce90f9786e3e1f6cab180f9

7 years agoMerge "Improvements on ViewNodes received on partitioned requests:" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 02:26:32 +0000 (02:26 +0000)]
Merge "Improvements on ViewNodes received on partitioned requests:" into oc-dev

7 years agoSet AccessPoint metered bit using ScoredNetwork, WifiInfo, and WifiConfiguration.
Stephen Chen [Tue, 4 Apr 2017 20:23:31 +0000 (13:23 -0700)]
Set AccessPoint metered bit using ScoredNetwork, WifiInfo, and WifiConfiguration.

Bug: 36888471
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: I5228512a832665916520658acddc9bf93d78a1a1

7 years agoMerge "Make print failure notifications important" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:53:53 +0000 (01:53 +0000)]
Merge "Make print failure notifications important" into oc-dev

7 years agoMerge "Remove SystemProperty gating-flag for virtual displays." into oc-dev
Santos Cordon [Thu, 6 Apr 2017 01:48:06 +0000 (01:48 +0000)]
Merge "Remove SystemProperty gating-flag for virtual displays." into oc-dev

7 years agoMerge "Don't call the Package Manager when holding the settings lock" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:41:47 +0000 (01:41 +0000)]
Merge "Don't call the Package Manager when holding the settings lock" into oc-dev

7 years agoMerge changes from topic 'ipsec-svc-pick' into oc-dev
Nathan Harold [Thu, 6 Apr 2017 01:34:32 +0000 (01:34 +0000)]
Merge changes from topic 'ipsec-svc-pick' into oc-dev

* changes:
  Fix Log Traces for IpSecService
  SystemServer: fix StartIpSecService trace and log
  Add Initial IPsec APIs to IpSecService
  IpSecManager and IpSecTransform API Cleanup
  Change reserveSecurityParameterIndex() to take a remoteAddress
  Add a Skeleton IpSecService

7 years agoMerge "Save FragmentManagerNonConfig during onSaveInstanceState()" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:13:06 +0000 (01:13 +0000)]
Merge "Save FragmentManagerNonConfig during onSaveInstanceState()" into oc-dev

7 years agoMerge "Fixed the obsolete logging" into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 01:05:01 +0000 (01:05 +0000)]
Merge "Fixed the obsolete logging" into oc-dev

7 years agoBatteryStats: Remove too-verbose logging
Adam Lesinski [Thu, 6 Apr 2017 00:54:13 +0000 (17:54 -0700)]
BatteryStats: Remove too-verbose logging

Bug: 36972594
Test: manual
Change-Id: I02976ed924550f73010a453d207d199b13307cfa

7 years agoImprovements on ViewNodes received on partitioned requests:
Felipe Leme [Sat, 1 Apr 2017 00:26:34 +0000 (17:26 -0700)]
Improvements on ViewNodes received on partitioned requests:

- Fixed focus
- Added autofillValue for nodes previously autofilled

BUG: 35707731

Test: existing CtsAutoFillServiceTestCases pass
Test: more tests on PartitionedActivityTest

Change-Id: If4390d002d44c82e3de0339a634041f3998e804e

7 years agoMerge "Created SaveInfo types for email and username." into oc-dev
TreeHugger Robot [Thu, 6 Apr 2017 00:15:23 +0000 (00:15 +0000)]
Merge "Created SaveInfo types for email and username." into oc-dev