Commit Graph

13140 Commits

Author SHA1 Message Date
TreeHugger Robot
703f31db63 Merge "Add subtype for layout direction to Slice" into pi-dev 2018-03-31 04:16:35 +00:00
TreeHugger Robot
35201a6af2 Merge "Add some methods to manage slice permissios" into pi-dev 2018-03-31 00:26:06 +00:00
Mady Mellor
209af08eca Add subtype for layout direction to Slice
Test: make
Bug: 73123366
Change-Id: I1446dadd8a50e7682d640aa55a7d4a20faf52416
2018-03-30 14:24:13 -07:00
TreeHugger Robot
4ced90cb12 Merge "Add auto-grant permission slice API" into pi-dev 2018-03-30 18:45:00 +00:00
Jason Monk
71888552d8 Add some methods to manage slice permissios
Test: update-api
Bug: 77323760
Change-Id: I72284957c7dfc3bcf12bb24a6be4902762e95fed
2018-03-30 14:29:38 -04:00
TreeHugger Robot
7790a2f2d1 Merge "Add more AppComponentFactory docs" into pi-dev 2018-03-30 17:08:23 +00:00
Jason Monk
42e03f8756 Add auto-grant permission slice API
Test: slice manager tests
Bug: 77313888
Change-Id: I21e9200c5c8cd7ff812d3f5eac997a704a9b86a2
2018-03-30 11:39:36 -04:00
TreeHugger Robot
ea3377b4d4 Merge "Slices: Fix up some formatting and add examples" into pi-dev 2018-03-30 15:09:26 +00:00
Jason Monk
c138696489 Add more AppComponentFactory docs
Test: TH
Change-Id: I9978d182433a71a04d019304ebe59bd7de8bfeae
Fixes: 74408467
2018-03-30 09:57:36 -04:00
Rubin Xu
69196f6fad Merge "Remove password blacklist API" into pi-dev 2018-03-30 13:38:31 +00:00
Remi NGUYEN VAN
bd2c0fa813 Merge "Allow null subscriberId in NetworkStatsManager." into pi-dev 2018-03-30 07:39:23 +00:00
Remi NGUYEN VAN
786b7ad260 Allow null subscriberId in NetworkStatsManager.
Use a MATCH_MOBILE_WILDCARD template to avoid filtering by
subscriberId when querying statistics from NetworkStatsService.

Bug: 74038898
Change-Id: I8296220472a9ba37044dd1a5ede9bdb45d3ed339
Fixes: 74038898
Test: runtest frameworks-net, CTS tests pass
Merged-In: I1e4e283c6eaecf33d12488e41e0c524f6ff83954
Merged-In: Ia84d2c7cc63bf8b8bf30f133e0382fd7103bf490
(cherry-picked from aosp I4b39e7031416cb33b23d89aa36ff0f774eaa942f)
2018-03-30 12:18:23 +09:00
TreeHugger Robot
929ce0086a Merge "AppStandby exemption: sync requested by FG apps" into pi-dev 2018-03-30 01:26:35 +00:00
TreeHugger Robot
dedc5d7141 Merge "Return PERMISSION_DENIED instead of NPE when missing ActivityManager" into pi-dev 2018-03-30 01:26:27 +00:00
TreeHugger Robot
68256e09d9 Merge changes I3e542532,Id8f2147f into pi-dev
* changes:
  Update notification blocking documentation.
  Wait before computing contact affinity
2018-03-30 00:10:22 +00:00
Erik Wolsheimer
e21576fd28 Return PERMISSION_DENIED instead of NPE when missing ActivityManager
Bug: 75005160
Change-Id: I710c5ee9f3d679240bf708102ef508041d0a3122
2018-03-29 23:34:10 +00:00
TreeHugger Robot
04446f9f68 Merge "Allow PO to call setSystemSetting." into pi-dev 2018-03-29 22:24:25 +00:00
Makoto Onuki
75ad2496eb AppStandby exemption: sync requested by FG apps
Bug: 72443754
Fix: 72443754

Test: atest ${ANDROID_BUILD_TOP}/frameworks/base/services/tests/servicestests/src/com/android/server/content/SyncOperationTest.java
Test: Manual test with contacts sync:

Precondition: Put the contacts sync in RARE bucket.

adb shell dumpsys deviceidle tempwhitelist -r com.google.android.syncadapters.contacts
adb shell am make-uid-idle com.google.android.syncadapters.contacts
adb shell am set-standby-bucket com.google.android.syncadapters.contacts 40

Test 1: Toggle contacts sync from the Settings -> Account

- Make sure a sync happens.

Test 2: Mutate a contact on the WEB

- Sync is scheduled, but won't run because it has no network access.
- am set-standby-bucket com.google.android.syncadapters.contacts 30
- Sync run runs.

Test 3. adb shell requestsync -n ACCOUNT -t com.google -a com.android.contacts

- Sync is scheduled but won't run.

Test 4. adb shell requestsync -n ACCOUNT -t com.google -a com.android.contacts -f

- Sync is scheduled but it still won't run.

Test 5. adb shell requestsync -n ACCOUNT -t com.google -a com.android.contacts -F

- Sync now runs

Change-Id: I1eb972ed321d2a1a782ae23ccb806671926d3e6b
2018-03-29 14:53:02 -07:00
TreeHugger Robot
92006c1764 Merge "Add permission hint, update permission slice structure" into pi-dev 2018-03-29 21:29:07 +00:00
Julia Reynolds
8d2b053611 Update notification blocking documentation.
Change-Id: I3e5425321d127fbf11adfa1c4ac5bed53fc73e03
Fixes: 73750866
Test: make
2018-03-29 16:39:06 -04:00
yuemingw
c0281f10f5 Allow PO to call setSystemSetting.
As system setting is per user, we should allow PO to call it.

Bug: 77204777
Test: runtest -x services/tests/servicestests/src/
com/android/server/devicepolicy/DevicePolicyManagerTest.java

Change-Id: I84152fa04adb441955b48b676be6e792134b52c2
2018-03-29 20:23:52 +00:00
Rubin Xu
3a021b3762 Remove password blacklist API
Bug: 73750934
Test: compiles
Change-Id: I4a73ea47285b7d0be06f84d45a5166a6642c29cf
2018-03-29 20:36:51 +01:00
Jeff Sharkey
c8156c6a52 Merge "API for granting/revoking runtime permissions." into pi-dev 2018-03-29 15:14:34 +00:00
Eran Messeri
e5f9e833e5 Merge "DPM: API review for installKeyPair" into pi-dev 2018-03-29 15:00:30 +00:00
Eran Messeri
6169239b94 Utilize verbose KeyChain errors
As KeyChain reports detailed error codes about failure to generate keys
or attestation records for them, log these detailed errors and throw an
exception if the hardware does not support Device ID attestation.

Bug: 72642093
Bug: 73448533
Test: cts-tradefed run commandAndExit  cts-dev -s 127.0.0.1:50487 -a x86_64 -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement -l DEBUG
Change-Id: Ib12efcf48c158373e1fc28cc51d67e70282d029e
2018-03-29 10:58:20 +01:00
Eran Messeri
f15d4f4dc5 DPM: API review for installKeyPair
Per API council review, make installKeyPair take a single, integer flags
argument rather than two boolean ones.

Bug: 71818124
Test: cts-tradefed run commandAndExit cts-dev -a armeabi-v7a -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceOwnerTest#testKeyManagement -l DEBUG
Change-Id: Ia04f8d617ae0d1db028bd9bcef3a4bf486449468
2018-03-29 10:14:25 +01:00
Benjamin Franz
3a5dabbb10 Merge "Update to lock task features API" into pi-dev 2018-03-29 09:02:17 +00:00
Eric Sandness
78931a0f95 Merge "Permission Check For DPM Get IME API" into pi-dev 2018-03-29 08:25:09 +00:00
TreeHugger Robot
50c069e489 Merge "Fallback to ML prediction after short ACTIVE states" into pi-dev 2018-03-29 06:03:17 +00:00
TreeHugger Robot
37594c892d Merge "Add slice pinning to list of reasons for usage" into pi-dev 2018-03-29 05:51:24 +00:00
TreeHugger Robot
cfa0f19fa1 Merge "Properly filter alert window notifications" into pi-dev 2018-03-29 03:50:31 +00:00
Mady Mellor
33c5a84707 Add permission hint, update permission slice structure
Test: atest cts/tests/tests/slices
Bug: 75500766
Change-Id: Ic26dbaa121a3745174a6e21171f35abad69c61de
2018-03-28 17:41:26 -07:00
TreeHugger Robot
822dfea6ca Merge "Fix keywords hint and add some hints and a subtype to Slice" into pi-dev 2018-03-28 23:59:37 +00:00
TreeHugger Robot
631f55ba54 Merge "Change MeteredDataDisabled function names for clarity" into pi-dev 2018-03-28 23:18:01 +00:00
Joshua Baxter
9a2d959eff Merge "docs: fixed a couple of typos" into oc-mr1-dev
am: 651ffd426c

Change-Id: Ie6fb97aae76637023657d751f6ad0ebbc74ff284
2018-03-28 22:06:24 +00:00
TreeHugger Robot
362b3522d1 Merge "fix SliceMetrics typo and disambiguate logTouch" into pi-dev 2018-03-28 21:18:33 +00:00
TreeHugger Robot
88f8de612d Merge "Add autobackup XML support for test BackupTransport flag" into pi-dev 2018-03-28 21:10:54 +00:00
Amith Yamasani
3154dcf94a Fallback to ML prediction after short ACTIVE states
When an app is temporarily elevated to ACTIVE state for some
reason, keep track of the last predicted bucket and drop back
to that if the ACTIVE state ends.

Also keep track of prediction during a forced ACTIVE state, even
if it's not applied right away.

Bug: 77158823
Test: atest AppStandbyControllerTests
Change-Id: Ic6de6c24bb25c5392ac5b41a2c05889d94f23436
2018-03-28 13:49:21 -07:00
Julia Reynolds
3c7de110cc Properly filter alert window notifications
Test: atest SystemUITests
Change-Id: Ie07ffeb7a96469d985261c9a1edb1d7ce82af5c5
Fixes: 77162311
2018-03-28 16:41:01 -04:00
Vishwath Mohan
86ed912f5a Merge "Refactor FingerprintDialog to BiometricDialog" into pi-dev 2018-03-28 18:46:34 +00:00
Robert Berry
39cf42c927 Add autobackup XML support for test BackupTransport flag
We need this to be able to write a CTS test.

Bug: 73710054
Test: runtest frameworks-core -p android.app.backup
Change-Id: I37d4b64d40426c5de47308394e21baebd542ad52
2018-03-28 17:31:45 +00:00
Jan Althaus
08a75e0ee7 Merge "Change TextClassification to use RemoteActions" into pi-dev 2018-03-28 17:04:58 +00:00
Jason Monk
39b9fb373c Slices: Fix up some formatting and add examples
Test: TH
Change-Id: Ia95306d9a44e6a9861958bd7f2b3b697a7ecb4cc
Fixes: 76462142
Fixes: 76461933
2018-03-28 11:08:53 -04:00
TreeHugger Robot
744e6f1738 Merge "Also allow avoiding gfx acceleration at runtime" into pi-dev 2018-03-28 14:58:10 +00:00
Jeff Sharkey
23bc81d34a API for granting/revoking runtime permissions.
Expose these as public API, since they're useful for devices where
the raw "pm grant" or "pm revoke" commands can be flaky.

Test: builds, boots
Bug: 75315597
Change-Id: I2de94587945f08fd09ebe729bb9872542a11ef26
2018-03-28 08:55:15 -06:00
Benjamin Franz
78ae1060c6 Update to lock task features API
1. Throw if notifications is given without home feature, as this
configuration allows potential escape routes.

2. Default power button menu to be on in order to be consistent with
existing lock task behaviour before P.

Bug: 71790952
Bug: 74381063
Test: manual
Change-Id: I2383c087a18739a158d55edcd84d22d1abdb887a
2018-03-28 12:38:31 +01:00
Jan Althaus
20d346eafe Change TextClassification to use RemoteActions
Behavioural changes:
- Every action now as an icon, and instead hints via RemoteAction whether
  the icon should be shown or not.
- Icons are now taken from the app default, not the activity.
  (That way, we can construct a lightweight resource backed Icon)
- Legacy intents are no longer parceled for security reasons.
  (TextClassificatio wasn't parcelable in O)
- TextClassifications built with the new API will always return null for
  getIntent, but provide a getOnClickListener.
- Accessibility descriptions are now provided for action mode items.

Testing changes:
- Removed URI checks from TCM test because PendingIntent hides this info.

Bug: 73950205
Test: atest FrameworksCoreTests:TextClassificationManagerTest
Test: atest FrameworksCoreTests:TextClassificationTest
Test: atest CtsViewTestCases:TextClassificationManagerTest
Test: atest CtsViewTestCases:TextClassifierValueObjectsTest
Test: atest CtsWidgetTestCases:TextViewTest
Test: atest CtsWidgetTestCases:EditTextTest
Change-Id: I6706d2c342a8bbb9de0146a48c8b8aac9d9c7d83
2018-03-28 11:41:39 +02:00
Svet Ganov
0c1c9cd7f2 Add API to query if a UID is active
Test: cts-tradefed run cts-dev -m CtsCameraTestCases

Bug: 72863398

Change-Id: I4bacfd87cac782ef178e9a279cd833b229150ae1
2018-03-28 04:14:53 +00:00
TreeHugger Robot
7eee509df5 Merge "Optimizing TimeSparseArray#put in case of collisions" into pi-dev 2018-03-28 02:10:45 +00:00
TreeHugger Robot
3844e1d83c Merge "Unload wallpaper bitmap and release HwuiContext" into pi-dev 2018-03-28 01:59:26 +00:00