OSDN Git Service

android-x86/frameworks-base.git
6 years agoRemove obsolete aidl list
Colin Cross [Thu, 4 Jan 2018 22:59:10 +0000 (14:59 -0800)]
Remove obsolete aidl list

Remove the obsolete aidl list, framework.aidl is now generated
from the stubs jars.

Bug: 70046217
Test: m checkbuild
Change-Id: I2417f0a8f193bd4db4058f6f0bb05c147e18de25

6 years agoMerge "Track brightness changes in nits rather than backlight values."
TreeHugger Robot [Thu, 4 Jan 2018 17:51:29 +0000 (17:51 +0000)]
Merge "Track brightness changes in nits rather than backlight values."

6 years agoMerge changes from topic "StorageUnitTranslation"
Victor Chang [Thu, 4 Jan 2018 17:35:19 +0000 (17:35 +0000)]
Merge changes from topic "StorageUnitTranslation"

* changes:
  Revert "Switch file size formatters to use ICU's MeasureFormat"
  Revert "Remove use of MeasureUnit.internalGetInstance"

6 years agoMerge "Make accessibility window events more granular"
Phil Weaver [Thu, 4 Jan 2018 17:09:35 +0000 (17:09 +0000)]
Merge "Make accessibility window events more granular"

6 years agoMerge "Removing unused colors."
TreeHugger Robot [Thu, 4 Jan 2018 17:07:38 +0000 (17:07 +0000)]
Merge "Removing unused colors."

6 years agoMerge "Update the ttc index attribute documentation"
TreeHugger Robot [Thu, 4 Jan 2018 16:25:13 +0000 (16:25 +0000)]
Merge "Update the ttc index attribute documentation"

6 years agoMerge "Fix broken build due to missing imports in device owner transfer functionality."
Martijn Coenen [Thu, 4 Jan 2018 15:55:01 +0000 (15:55 +0000)]
Merge "Fix broken build due to missing imports in device owner transfer functionality."

6 years agoFix broken build due to missing imports in device owner transfer functionality.
arangelov [Thu, 4 Jan 2018 15:52:12 +0000 (15:52 +0000)]
Fix broken build due to missing imports in device owner transfer functionality.

Test: None
Change-Id: Ib3563349fe754bd47166d473387ab1fb21c441c8

6 years agoMerge "Avoid setting size/position on Transaction if not needed"
Jorim Jaggi [Thu, 4 Jan 2018 15:39:25 +0000 (15:39 +0000)]
Merge "Avoid setting size/position on Transaction if not needed"

6 years agoMerge "Correct Telephony source directory to match package."
Jake Wharton [Thu, 4 Jan 2018 15:19:54 +0000 (15:19 +0000)]
Merge "Correct Telephony source directory to match package."

6 years agoCorrect Telephony source directory to match package.
Jake Wharton [Wed, 3 Jan 2018 22:16:43 +0000 (17:16 -0500)]
Correct Telephony source directory to match package.

Test: none
Bug: 71549250
Change-Id: I3e4c1d67240d83712f96d076d650af464a9c8277

6 years agoMerge "Add device owner transfer functionality."
Antoan Angelov [Thu, 4 Jan 2018 15:07:03 +0000 (15:07 +0000)]
Merge "Add device owner transfer functionality."

6 years agoMerge "Address review comments from 02a1c08"
Bartosz Fabianowski [Thu, 4 Jan 2018 14:40:06 +0000 (14:40 +0000)]
Merge "Address review comments from 02a1c08"

6 years agoMerge "Adjust permission checking of ensureCanModifyQuietMode"
TreeHugger Robot [Thu, 4 Jan 2018 14:37:24 +0000 (14:37 +0000)]
Merge "Adjust permission checking of ensureCanModifyQuietMode"

6 years agoUpdate the ttc index attribute documentation
Mihai Popa [Thu, 4 Jan 2018 14:15:22 +0000 (14:15 +0000)]
Update the ttc index attribute documentation

The CL updates the documentation of the ttcIndex attribute added for P,
according to the API review comments.

Bug: 71555180
Test: none
Change-Id: I44a617c4f0a10314008fe5d5b380c6a830f3e04f

6 years agoMerge "DPM: Implement Device ID attestation"
TreeHugger Robot [Thu, 4 Jan 2018 14:24:18 +0000 (14:24 +0000)]
Merge "DPM: Implement Device ID attestation"

6 years agoAdjust permission checking of ensureCanModifyQuietMode
Tony Mak [Thu, 28 Dec 2017 13:23:10 +0000 (13:23 +0000)]
Adjust permission checking of ensureCanModifyQuietMode

Two changes:
1. Verify caller package matches with calling UID before checking
   is it default launcher.

2. If IntentSender is specified, only caller with MANAGED_USERS
   can call through it.

Test: run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.QuietModeHostsideTest

Bug: 70212757

Change-Id: Iac118d988eb05097a56f343552c0b8845cf96749

6 years agoAvoid setting size/position on Transaction if not needed
Jorim Jaggi [Wed, 3 Jan 2018 16:05:00 +0000 (17:05 +0100)]
Avoid setting size/position on Transaction if not needed

Passing the JNI layer is quite expensive. Avoid updating the
position/size if not needed by storing the last size.

Test: AppTransitionTests
Test: go/wm-smoke
Bug: 71510789
Change-Id: Ibb3660114fb0e573c9cd2144e5af11f57a96a9d6

6 years agoFix z-order when transfering animations
Jorim Jaggi [Fri, 29 Dec 2017 13:48:02 +0000 (14:48 +0100)]
Fix z-order when transfering animations

We need to reparent the transfered leash to the the animation
layer, not the original parent

Test: Open Play Movies, observe correct z-order during cold-launch
Test: go/wm-smoke
Test: SurfaceAnimatorTest
Change-Id: Ic5a68c68514bb3560b6877a9a29c506aeccee2bf

6 years agoMerge "Fix issue with 0 duration animations"
Jorim Jaggi [Thu, 4 Jan 2018 11:47:34 +0000 (11:47 +0000)]
Merge "Fix issue with 0 duration animations"

6 years agoMerge "1/ Use FieldMatcher to specify the value fields in value metric. 2/ rename...
TreeHugger Robot [Thu, 4 Jan 2018 11:19:42 +0000 (11:19 +0000)]
Merge "1/ Use FieldMatcher to specify the value fields in value metric. 2/ rename number_of_buckets as num_buckets 3/ use double for the Alert's threshold"

6 years agoMerge "Call setGenerationId inside generateAndLoadKey to simplify the code just a...
TreeHugger Robot [Thu, 4 Jan 2018 10:02:27 +0000 (10:02 +0000)]
Merge "Call setGenerationId inside generateAndLoadKey to simplify the code just a little"

6 years agoUse the same VaultParams encoding as the server side
Bo Zhu [Thu, 4 Jan 2018 08:11:35 +0000 (00:11 -0800)]
Use the same VaultParams encoding as the server side

Change-Id: I99887f2e52c24726b40fa4cfedc0a1854490160f
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

6 years agoCall setGenerationId inside generateAndLoadKey to simplify the code just a little
Bo Zhu [Thu, 4 Jan 2018 07:51:27 +0000 (23:51 -0800)]
Call setGenerationId inside generateAndLoadKey to simplify the code just a little

Change-Id: Ie4cc656def75449f0129db09496f4717e2473d70
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

6 years ago1/ Use FieldMatcher to specify the value fields in value metric.
Yangster-mac [Thu, 4 Jan 2018 01:17:20 +0000 (17:17 -0800)]
1/ Use FieldMatcher to specify the value fields in value metric.
2/ rename number_of_buckets as num_buckets
3/ use double for the Alert's threshold

Test: statsd unit tests passed.
Change-Id: Id1f55f14d3712eddee561681e3cd77343f086c7a

6 years agoMerge "Refactor leak tests"
Søren Gjesse [Thu, 4 Jan 2018 07:12:14 +0000 (07:12 +0000)]
Merge "Refactor leak tests"

6 years agoMerge "Implement opening session for HAL 2.0."
Tomasz Wasilczyk [Thu, 4 Jan 2018 06:04:01 +0000 (06:04 +0000)]
Merge "Implement opening session for HAL 2.0."

6 years agoMerge "[M11n] Add missing defensive copies"
TreeHugger Robot [Thu, 4 Jan 2018 02:35:06 +0000 (02:35 +0000)]
Merge "[M11n] Add missing defensive copies"

6 years agoMerge "Add API to get eUICC's OTA status" am: 15a410a75a am: 412aecc2b0
Qingxi Li [Thu, 4 Jan 2018 02:20:13 +0000 (02:20 +0000)]
Merge "Add API to get eUICC's OTA status" am: 15a410a75a am: 412aecc2b0
am: dba6365966

Change-Id: I130bb1a4df3ea092c0e33ea1da7377e6faa38b96

6 years agoMerge "Add API to get eUICC's OTA status" am: 15a410a75a
Qingxi Li [Thu, 4 Jan 2018 02:09:32 +0000 (02:09 +0000)]
Merge "Add API to get eUICC's OTA status" am: 15a410a75a
am: 412aecc2b0

Change-Id: I50ec4a84ddc30e5232bd0cabb8a721ebb7feca47

6 years agoMerge "Add API to get eUICC's OTA status"
Qingxi Li [Thu, 4 Jan 2018 02:02:04 +0000 (02:02 +0000)]
Merge "Add API to get eUICC's OTA status"
am: 15a410a75a

Change-Id: I634b04834840946b07d995222e5a26c029d0a053

6 years agoMerge "Add API to get eUICC's OTA status"
Treehugger Robot [Thu, 4 Jan 2018 01:50:43 +0000 (01:50 +0000)]
Merge "Add API to get eUICC's OTA status"

6 years agoMerge "Enable incidentd, it will just be idle while no one triggers it."
TreeHugger Robot [Thu, 4 Jan 2018 01:40:41 +0000 (01:40 +0000)]
Merge "Enable incidentd, it will just be idle while no one triggers it."

6 years agoMerge changes I93166347,Id09322c5,I878f80f0,I7a7b1b44,Iae2dbc23
TreeHugger Robot [Thu, 4 Jan 2018 01:33:21 +0000 (01:33 +0000)]
Merge changes I93166347,Id09322c5,I878f80f0,I7a7b1b44,Iae2dbc23

* changes:
  Expose new ContextHubService APIs
  Adds ContextHubClient to callback parameters
  Renames RESULT_FAILED_PENDING to RESULT_FAILED_BUSY
  Changes transaction Listener to OnCompleteListener
  Adds Nullable/NonNull annotations to Context Hub APIs

6 years agoMerge "Revert "Fix object pool for lifecycler""
TreeHugger Robot [Thu, 4 Jan 2018 01:32:27 +0000 (01:32 +0000)]
Merge "Revert "Fix object pool for lifecycler""

6 years agoMerge "Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint...
Android Build Merger (Role) [Thu, 4 Jan 2018 01:22:31 +0000 (01:22 +0000)]
Merge "Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc-mr1-dev am: 4689a6d979" into oc-mr1-dev-plus-aosp
am: 9f4d06b586  -s ours

Change-Id: I27a5784ab5764b2d10fd6bc2ba76da68b89d8658

6 years agoMerge changes I9de0ffe9,Idc804896 am: 153fb1c6e0 am: 99161bc1c7
Colin Cross [Thu, 4 Jan 2018 01:17:42 +0000 (01:17 +0000)]
Merge changes I9de0ffe9,Idc804896 am: 153fb1c6e0 am: 99161bc1c7
am: 52d4011195

Change-Id: Ia3b7f49d4dbd38660570c7c84991a69f86bf24e4

6 years agoMerge "Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint...
Android Build Merger (Role) [Thu, 4 Jan 2018 01:12:02 +0000 (01:12 +0000)]
Merge "Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc-mr1-dev am: 4689a6d979" into oc-mr1-dev-plus-aosp

6 years agoMerge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc...
Pankaj Kanwar [Thu, 4 Jan 2018 01:10:55 +0000 (01:10 +0000)]
Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc-mr1-dev
am: 4689a6d979

Change-Id: I190f53b2d8aa4202a9f20f3831581414185962d3

6 years agoMerge changes I9de0ffe9,Idc804896 am: 153fb1c6e0
Colin Cross [Thu, 4 Jan 2018 01:10:47 +0000 (01:10 +0000)]
Merge changes I9de0ffe9,Idc804896 am: 153fb1c6e0
am: 99161bc1c7

Change-Id: Id831c5ab771fa59ac9906d473ffeb7720fbbdf54

6 years agoMerge changes I9de0ffe9,Idc804896
Colin Cross [Thu, 4 Jan 2018 01:04:20 +0000 (01:04 +0000)]
Merge changes I9de0ffe9,Idc804896
am: 153fb1c6e0

Change-Id: I7cd9329c7ea8ef720df36059a491a9d627233d1a

6 years agoMerge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc...
Pankaj Kanwar [Thu, 4 Jan 2018 01:03:27 +0000 (01:03 +0000)]
Merge "[PASSPOINT] Add metrics to determine deployment/avail of Passpoint" into oc-mr1-dev

6 years agoMerge changes I9de0ffe9,Idc804896
Colin Cross [Thu, 4 Jan 2018 00:48:50 +0000 (00:48 +0000)]
Merge changes I9de0ffe9,Idc804896

* changes:
  Use sdkparcelables to generate framework.aidl
  Initial sdkparcelables

6 years agoMerge "Fix some nits while reading the code"
TreeHugger Robot [Thu, 4 Jan 2018 00:45:55 +0000 (00:45 +0000)]
Merge "Fix some nits while reading the code"

6 years agoMerge "Include magnification state graph in unit test javadoc"
Eugene Susla [Thu, 4 Jan 2018 00:37:48 +0000 (00:37 +0000)]
Merge "Include magnification state graph in unit test javadoc"

6 years agoInclude magnification state graph in unit test javadoc
Eugene Susla [Wed, 3 Jan 2018 22:02:57 +0000 (14:02 -0800)]
Include magnification state graph in unit test javadoc

The graph seems helpful for understaning magnification states.

Test: render graph with `dot`, ensure it looks ok
Change-Id: I40c5ab36ca9123b1a85c63ba2208532b6c97a997

6 years agoMerge "Fix magnification unit test"
Eugene Susla [Thu, 4 Jan 2018 00:36:17 +0000 (00:36 +0000)]
Merge "Fix magnification unit test"

6 years ago[M11n] Add missing defensive copies
Eugene Susla [Wed, 3 Jan 2018 22:19:50 +0000 (14:19 -0800)]
[M11n] Add missing defensive copies

Fixes: 71502922
Test: Ensure attached bug no longer reproduces
Change-Id: Id0f6e92fab4f2472cc1c22d47249ec5bbba43b3b

6 years agoMerge "1/ Change all "name" to id in statsD. 2/ Handle Subscription for alert. 3...
TreeHugger Robot [Wed, 3 Jan 2018 23:36:21 +0000 (23:36 +0000)]
Merge "1/ Change all "name" to id in statsD. 2/ Handle Subscription for alert. 3/ Support no_report_metric"

6 years ago1/ Change all "name" to id in statsD.
Yangster-mac [Wed, 3 Jan 2018 00:03:03 +0000 (16:03 -0800)]
1/ Change all "name" to id in statsD.
2/ Handle Subscription for alert.
3/ Support no_report_metric

Bug: 69522276
Test: all statsd unit tests passed.
Change-Id: I851b235f2d149b8602b0cad632d5bf541962f40a

6 years agoEnable incidentd, it will just be idle while no one triggers it.
Yi Jin [Wed, 3 Jan 2018 23:21:10 +0000 (15:21 -0800)]
Enable incidentd, it will just be idle while no one triggers it.

Test: N/A
Change-Id: I169108f0d61fc1fffea629eb2e862bfa7aad65f9

6 years agoMerge "Fix regression in PiP app-ops listener."
TreeHugger Robot [Wed, 3 Jan 2018 23:02:22 +0000 (23:02 +0000)]
Merge "Fix regression in PiP app-ops listener."

6 years agoFix some nits while reading the code
Bo Zhu [Wed, 3 Jan 2018 22:49:43 +0000 (14:49 -0800)]
Fix some nits while reading the code

Test: None
Change-Id: Id231a497ad1c27de257f9e9f02f8373c5c67a68d

6 years agoFix issue with 0 duration animations
Jorim Jaggi [Wed, 3 Jan 2018 14:54:43 +0000 (15:54 +0100)]
Fix issue with 0 duration animations

If the animation length was 0, it was possible that the finish
runnable is run before applying the pending transaction to
reparent the surface onto the leash. In that case, the reparent
to the leash will be executed after, taking precedence. Then,
the leash gets destroyed, and we loose the surface, leading
to all kinds of crashes.

Test: Disable animation duration scale, open a couple of apps,
observe no crash.
Test: go/wm-smoke

Change-Id: I04db7b7c1c3295779b8afead97d7850f808f9081
Fixes: 71499373

6 years agoRevert "Fix object pool for lifecycler"
Andrii Kulian [Wed, 3 Jan 2018 22:00:02 +0000 (22:00 +0000)]
Revert "Fix object pool for lifecycler"

This reverts commit 1c110302fe3236e7477020aa11b9cb0b8226328a.

Reason for revert: Trying to recycle already recycled item on rotation.

Change-Id: I1ae8337da28aa0923cc1d77a23f2ab5e42957495

6 years agoFix magnification unit test
Eugene Susla [Wed, 3 Jan 2018 01:50:14 +0000 (17:50 -0800)]
Fix magnification unit test

Fixes: 70682349
Test: Repro steps from b/70682349
Change-Id: I2a9698c1afbf5140dd14797ec90478ae59c2376a

6 years agoMerge "Add overload to postDelayed which accepts a token."
Jake Wharton [Wed, 3 Jan 2018 21:32:49 +0000 (21:32 +0000)]
Merge "Add overload to postDelayed which accepts a token."

6 years agoAdd overload to postDelayed which accepts a token.
Jake Wharton [Wed, 3 Jan 2018 03:18:24 +0000 (22:18 -0500)]
Add overload to postDelayed which accepts a token.

This adds overload parity with postAtTime.

Test: none
Bug: 71546743
Change-Id: I50936c7ffd5e8512dc865863fe8d4c9fb228a8a9

6 years agoMerge "Checks in statsd that fields are within range."
TreeHugger Robot [Wed, 3 Jan 2018 20:43:48 +0000 (20:43 +0000)]
Merge "Checks in statsd that fields are within range."

6 years agoAdd API to get eUICC's OTA status
Qingxi Li [Wed, 13 Dec 2017 23:13:02 +0000 (15:13 -0800)]
Add API to get eUICC's OTA status

The function will return current eUICC's OTA status and requests calling
app has WRITE_EMBEDDED_SUBSCRIPTIONS.

Test: E2E
Bug: 37279356
Change-Id: I823ed7aa9d86530c4bebd4c0b1a00f0c607105ed

6 years agoMerge "Move Ims related settings from global setting to subscription db." am: f2ebbd1...
Malcolm Chen [Wed, 3 Jan 2018 20:19:12 +0000 (20:19 +0000)]
Merge "Move Ims related settings from global setting to subscription db." am: f2ebbd1356 am: 5bf5c028f7
am: 2bac68a635  -s ours

Change-Id: I947e030dc0759a79a8d487fdba385b18486d0e7d

6 years agoImplement opening session for HAL 2.0.
Tomasz Wasilczyk [Thu, 28 Dec 2017 22:03:15 +0000 (14:03 -0800)]
Implement opening session for HAL 2.0.

Test: bit BroadcastRadioTests:android.hardware.radio.tests.functional.
      RadioTunerTest\#testOpenTuner
Bug: 69958777

Change-Id: Ie371b395986d28dae5f687eeae16f11e4c204490

6 years agoMerge "Avoid NPE when missing underlyingCaps." am: 6522970c1e am: e35adbc4d2
Jeff Sharkey [Wed, 3 Jan 2018 20:14:03 +0000 (20:14 +0000)]
Merge "Avoid NPE when missing underlyingCaps." am: 6522970c1e am: e35adbc4d2
am: 552ab5f4b0

Change-Id: Ifc8edb9643ee601e285557cb3c320e541a5d0f78

6 years agoMerge "Move Ims related settings from global setting to subscription db." am: f2ebbd1356
Malcolm Chen [Wed, 3 Jan 2018 20:04:37 +0000 (20:04 +0000)]
Merge "Move Ims related settings from global setting to subscription db." am: f2ebbd1356
am: 5bf5c028f7

Change-Id: Iab3a7a47da5961471bce7a8e29960ab75e68719b

6 years agoMerge "Avoid NPE when missing underlyingCaps." am: 6522970c1e
Jeff Sharkey [Wed, 3 Jan 2018 19:56:28 +0000 (19:56 +0000)]
Merge "Avoid NPE when missing underlyingCaps." am: 6522970c1e
am: e35adbc4d2

Change-Id: Iacd2f15ad31ec7d5c83b21674e1e1f106a5fbd96

6 years agoMerge "Move Ims related settings from global setting to subscription db."
Malcolm Chen [Wed, 3 Jan 2018 19:52:36 +0000 (19:52 +0000)]
Merge "Move Ims related settings from global setting to subscription db."
am: f2ebbd1356

Change-Id: Ifc49cccd9f9ce47585367a3f0802ced5df94140b

6 years agoMerge "Avoid NPE when missing underlyingCaps."
Jeff Sharkey [Wed, 3 Jan 2018 19:47:22 +0000 (19:47 +0000)]
Merge "Avoid NPE when missing underlyingCaps."
am: 6522970c1e

Change-Id: Ibbd645fa42b8e6d4f4ae05260839ac87a2430519

6 years agoMerge "Send backup success notification to background apps as well"
TreeHugger Robot [Wed, 3 Jan 2018 19:46:02 +0000 (19:46 +0000)]
Merge "Send backup success notification to background apps as well"

6 years agoFix regression in PiP app-ops listener.
Winson Chung [Wed, 3 Jan 2018 19:45:47 +0000 (11:45 -0800)]
Fix regression in PiP app-ops listener.

Bug: 71526100
Test: Launch settings for PiP app, ensure that disabling app-ops setting
      also dismisses PiP app.

Change-Id: I7cb9d131ad38ce8ead06889f52f1ee82d98f5d1d

6 years agoMerge "Move Ims related settings from global setting to subscription db."
Treehugger Robot [Wed, 3 Jan 2018 19:42:24 +0000 (19:42 +0000)]
Merge "Move Ims related settings from global setting to subscription db."

6 years agoMerge "Avoid NPE when missing underlyingCaps."
Jeff Sharkey [Wed, 3 Jan 2018 19:33:00 +0000 (19:33 +0000)]
Merge "Avoid NPE when missing underlyingCaps."

6 years agoMerge "Remove settings suggestion v2 feature flag."
TreeHugger Robot [Wed, 3 Jan 2018 19:31:34 +0000 (19:31 +0000)]
Merge "Remove settings suggestion v2 feature flag."

6 years agoMerge "Add USB config constants to metrics proto"
TreeHugger Robot [Wed, 3 Jan 2018 19:17:24 +0000 (19:17 +0000)]
Merge "Add USB config constants to metrics proto"

6 years agoMerge "Dump per-process state cpu times to batterystats proto."
Sudheer Shanka [Wed, 3 Jan 2018 19:06:51 +0000 (19:06 +0000)]
Merge "Dump per-process state cpu times to batterystats proto."

6 years agoMerge "Proper calculation for overall WiFi MC statistics"
TreeHugger Robot [Wed, 3 Jan 2018 18:55:52 +0000 (18:55 +0000)]
Merge "Proper calculation for overall WiFi MC statistics"

6 years agoMerge "Log warning when can't read from HW RNG"
Alex Klyubin [Wed, 3 Jan 2018 18:08:52 +0000 (18:08 +0000)]
Merge "Log warning when can't read from HW RNG"

6 years agoExpose new ContextHubService APIs
Arthur Ishiguro [Tue, 28 Nov 2017 23:21:38 +0000 (15:21 -0800)]
Expose new ContextHubService APIs

Also deprecates old APIs.

Bug: 67734082
Test: make update-api && make
Change-Id: I93166347ce2ec63f9c0cffd0b8b0bbaa488e5ea4

6 years agoAdds ContextHubClient to callback parameters
Arthur Ishiguro [Tue, 2 Jan 2018 18:44:21 +0000 (10:44 -0800)]
Adds ContextHubClient to callback parameters

Bug: 67734082
Test: make
Change-Id: Id09322c5375ee87a7533e77696e4673854bae4be

6 years agoProper calculation for overall WiFi MC statistics
Ahmed ElArabawy [Tue, 28 Nov 2017 20:18:10 +0000 (12:18 -0800)]
Proper calculation for overall WiFi MC statistics

In current implementations the WiFi MC statistcs are calculating by
aggregating the per uid statistics accross all UIDs. This does not
result in the correct values in case of time overlapping acquisitions of
MC wakelocks by same or different UIDs
This commit creates a separate Timer instance that tracks the actual
time spent with MC Enabled.

Bug: 69854369
Test: Manual Test

Change-Id: I78533f48300bc9faccc374d684698dae647bde5d
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
6 years agoRenames RESULT_FAILED_PENDING to RESULT_FAILED_BUSY
Arthur Ishiguro [Tue, 2 Jan 2018 17:52:21 +0000 (09:52 -0800)]
Renames RESULT_FAILED_PENDING to RESULT_FAILED_BUSY

Bug: 67734082
Test: None
Change-Id: I878f80f012e8d08bca36b41f921e3d191046e8da

6 years agoChanges transaction Listener to OnCompleteListener
Arthur Ishiguro [Tue, 2 Jan 2018 17:51:01 +0000 (09:51 -0800)]
Changes transaction Listener to OnCompleteListener

Bug: 67734082
Test: None
Change-Id: I7a7b1b448d3a4eeed57fabd333c35faa18c7443d

6 years agoMake accessibility window events more granular
Phil Weaver [Fri, 22 Dec 2017 17:44:28 +0000 (09:44 -0800)]
Make accessibility window events more granular

TYPE_WINDOWS_CHANGED events have meant that "something"
changes with the system windows, so a single event would be
fired for a single small window change or a bunch of window
changes. Services were required to cache the windows and
compare the old ones to the new ones to find out what
changed.

Since AccessibilityEvents are intended to communicate
changes to the UI, this CL sends one TYPE_WINDOWS_CHANGED
for each window that has changed, and provides a way to
get the source of the changing window. It also adds a
windowChangeType field, which contains flags to indicate
what exactly has changed for the window.

Bug: 62231686
Test: Run all a11y unit and cts tests
Change-Id: I6c48e74da26be5ea485ac114a37f3c404a74940e

6 years agoRefactor TestUtils::drawUtf8ToCanvas usage in macrobench tests
Stan Iliev [Tue, 2 Jan 2018 18:43:39 +0000 (13:43 -0500)]
Refactor TestUtils::drawUtf8ToCanvas usage in macrobench tests

Set text encoding inside TestUtils::drawUtf8ToCanvas and use
TestUtils::drawUtf8ToCanvas instead Canvas::drawText.
This CL is a follow-up of ag/3287411.

Test: Ran macrobench tests
Change-Id: I1b2f014d17f26ccc8fbdae9cfeea4ac25fd4c51f

6 years agoMerge "Add integration test for DexLogger."
Alan Stokes [Wed, 3 Jan 2018 15:29:08 +0000 (15:29 +0000)]
Merge "Add integration test for DexLogger."

6 years agoMerge "Clear calling identity when calling getPackageInfo in AMS.isSystemUid"
TreeHugger Robot [Wed, 3 Jan 2018 14:59:21 +0000 (14:59 +0000)]
Merge "Clear calling identity when calling getPackageInfo in AMS.isSystemUid"

6 years agoRevert "Switch file size formatters to use ICU's MeasureFormat"
Victor Chang [Wed, 27 Dec 2017 11:36:25 +0000 (11:36 +0000)]
Revert "Switch file size formatters to use ICU's MeasureFormat"

This reverts commit 4e5b71f084f62203adb732cefc2d2f5ecdaac1c1.

Test: cts-tradefed run cts-dev -m CtsTextTestCases
Bug: 70005649
Bug: 36994779
Change-Id: Ie9a2fd786d48e2a6c291e313cbb4072c7306af9f

6 years agoRevert "Remove use of MeasureUnit.internalGetInstance"
Victor Chang [Wed, 27 Dec 2017 11:35:59 +0000 (11:35 +0000)]
Revert "Remove use of MeasureUnit.internalGetInstance"

This reverts commit aa5629e60809e4775ca1f05e6f1f296a04a450dc.

Test: m
Bug: 70005649
Bug: 36994779
Change-Id: I4591870f564567c40fa450866c3050fd5a7a61ae

6 years agoRefactor leak tests
Søren Gjesse [Thu, 21 Dec 2017 10:42:30 +0000 (11:42 +0100)]
Refactor leak tests

Change the code to not rely on debug mode compilation for D8/R8.

For R8 -dontoptimize is still required (default for tests) to avoid
inlining that could "revert" this change at compile time.

Test: m -j USE_R8=true SystemUITests
Test: Run tests and see failures from b/70879514 are gone

Bug: 70879514
Change-Id: Ic8bb2bd3a91da0ecb2ec4e40183f47e4daf6323c

6 years agoMerge "Make Network watchlist use ConfigUpdater to get watchlist"
Ricky Wai [Wed, 3 Jan 2018 14:16:40 +0000 (14:16 +0000)]
Merge "Make Network watchlist use ConfigUpdater to get watchlist"

6 years agoAdd device owner transfer functionality.
arangelov [Mon, 11 Dec 2017 20:10:11 +0000 (20:10 +0000)]
Add device owner transfer functionality.

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.MixedDeviceOwnerTransferTest
Test: bit FrameworksServicesTests:com.android.server.devicepolicy.DevicePolicyManagerTest
Bug: 69542799
Change-Id: I2119aebc1554c804c8dd41383fd10e8354e77620

6 years agoMerge "PowerManagerService: Account for WorkChains in wakeLockAffectsUser."
Narayan Kamath [Wed, 3 Jan 2018 13:03:18 +0000 (13:03 +0000)]
Merge "PowerManagerService: Account for WorkChains in wakeLockAffectsUser."

6 years agoMerge "Hide windows immediately after policy visibility anim"
Jorim Jaggi [Wed, 3 Jan 2018 12:12:32 +0000 (12:12 +0000)]
Merge "Hide windows immediately after policy visibility anim"

6 years agoMerge "Fix a11y window positions"
Jorim Jaggi [Wed, 3 Jan 2018 11:46:40 +0000 (11:46 +0000)]
Merge "Fix a11y window positions"

6 years agoAddress review comments from 02a1c08
Bartosz Fabianowski [Wed, 3 Jan 2018 10:49:06 +0000 (11:49 +0100)]
Address review comments from 02a1c08

This CL addresses a few remaining review comments from 02a1c08,
"Add notification on succesful backups"

Bug: 63885845
Test: make RunFrameworksServicesRoboTests
Change-Id: Id42777a213c37400f24f6ecb11ecacbd55a2e123

6 years agoMerge "Support chained attribution for alarm related WorkSources."
Narayan Kamath [Wed, 3 Jan 2018 11:34:58 +0000 (11:34 +0000)]
Merge "Support chained attribution for alarm related WorkSources."

6 years agoMerge "Remove @SystemApi from inherited methods of AudioFocusInfo"
TreeHugger Robot [Wed, 3 Jan 2018 11:31:12 +0000 (11:31 +0000)]
Merge "Remove @SystemApi from inherited methods of AudioFocusInfo"

6 years agoAdd integration test for DexLogger.
Alan Stokes [Tue, 19 Dec 2017 11:48:19 +0000 (11:48 +0000)]
Add integration test for DexLogger.

Bug: 63927552
Bug: 68703204
Test: atest DexLoggerIntegrationTests
Change-Id: Ib61cf433ef4729c4e4a0539682b5ddbefdb65575

6 years agoMerge "Fix bug where PlatformKeyManager did not save generation ID"
TreeHugger Robot [Wed, 3 Jan 2018 10:04:37 +0000 (10:04 +0000)]
Merge "Fix bug where PlatformKeyManager did not save generation ID"

6 years agoSupport chained attribution for alarm related WorkSources.
Narayan Kamath [Thu, 21 Dec 2017 18:32:47 +0000 (18:32 +0000)]
Support chained attribution for alarm related WorkSources.

.. those passed down via the AlarmManager.set() variant that takes
a WorkSource. This required a minor re-arrangement of code in
the ActivityManager. We now treat WorkSources as opaque in the
AlarmManager and simply push them down to the AM (and eventually
to BatteryStats) where they are picked apart.

Test: BatteryStatsNoteTest, AlarmManagerTest
Bug: 62390666
Change-Id: I118f1a1d16aafa41b4f401f1a6a3ba4d2d5eca8f

6 years agoSend backup success notification to background apps as well
Bartosz Fabianowski [Tue, 2 Jan 2018 17:10:18 +0000 (18:10 +0100)]
Send backup success notification to background apps as well

When the backup manager is configured to notify one or more apps of
successful backups, the notifications should be sent to apps that are
currently stopped as well.

Bug: 63885845
Test: cts-tradefed run cts-dev --module CtsBackupHostTestCase
Change-Id: I7086aee105229e0f8db4b1ec26639d53a4e0af37