OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Add TestablesTests to device-tests for APCT suite" into pi-dev
Julien Desprez [Thu, 22 Mar 2018 23:41:29 +0000 (23:41 +0000)]
Merge "Add TestablesTests to device-tests for APCT suite" into pi-dev

6 years agoMerge "Make PrecomputedText Spannable for supporting selection" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 23:21:54 +0000 (23:21 +0000)]
Merge "Make PrecomputedText Spannable for supporting selection" into pi-dev

6 years agoMerge "Fix StorageManager stack use after scope." into pi-dev
Yao Chen [Thu, 22 Mar 2018 23:19:21 +0000 (23:19 +0000)]
Merge "Fix StorageManager stack use after scope." into pi-dev

6 years agoChanges ONN notification texts to re-use with CNN
Mehdi Alizadeh [Tue, 20 Mar 2018 23:51:26 +0000 (16:51 -0700)]
Changes ONN notification texts to re-use with CNN

Changes the notification text for Open Network Notifier generic, to be
able to use the same notifications for both ONN and CNN. Also updates
some comments.

Bug: 76031490
Test: manual test to see the notification and verify the text
Change-Id: Idd921703ab99ded8dc67a31c3409ef8046ff8887

6 years agoAdds entries for Soft AP channel and bandwidth
Mehdi Alizadeh [Thu, 15 Mar 2018 20:02:51 +0000 (13:02 -0700)]
Adds entries for Soft AP channel and bandwidth

Bug: 72643031
Test: It builds
Change-Id: I4d6053df5bb9c5d7eee6857bcc097a49922f7966

6 years agoMerge "Add MANAGE_IPSEC_TUNNELS Permission" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 23:10:11 +0000 (23:10 +0000)]
Merge "Add MANAGE_IPSEC_TUNNELS Permission" into pi-dev

6 years agoMerge "Only print out services if they did something." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 23:01:31 +0000 (23:01 +0000)]
Merge "Only print out services if they did something." into pi-dev

6 years agoMerge "Don't try to create a process group when not root." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 23:00:54 +0000 (23:00 +0000)]
Merge "Don't try to create a process group when not root." into pi-dev

6 years agoMerge "Allow apps to call startRecognition(UUID, Bundle, ComponentName, RecognitionCo...
TreeHugger Robot [Thu, 22 Mar 2018 23:00:31 +0000 (23:00 +0000)]
Merge "Allow apps to call startRecognition(UUID, Bundle, ComponentName, RecognitionConfig) via reflection" into pi-dev

6 years agoMerge "Fix smart_linkify_enabled flag." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 22:56:58 +0000 (22:56 +0000)]
Merge "Fix smart_linkify_enabled flag." into pi-dev

6 years agoMerge "QS edit mode fixes." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 22:51:09 +0000 (22:51 +0000)]
Merge "QS edit mode fixes." into pi-dev

6 years agoMerge "Fixes hiding track for quick scrub" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 22:43:28 +0000 (22:43 +0000)]
Merge "Fixes hiding track for quick scrub" into pi-dev

6 years agoMerge "PhoneWindowTest: promote to presubmit" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 22:41:40 +0000 (22:41 +0000)]
Merge "PhoneWindowTest: promote to presubmit" into pi-dev

6 years agoMerge "Assign -1 as default value of window type and owner uid." into pi-dev
Rose Liu [Thu, 22 Mar 2018 22:27:50 +0000 (22:27 +0000)]
Merge "Assign -1 as default value of window type and owner uid." into pi-dev

6 years agoMerge "Removed urlBarResourceId." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 22:22:30 +0000 (22:22 +0000)]
Merge "Removed urlBarResourceId." into pi-dev

6 years agoMerge "APIs to suspend packages with SUSPEND_APPS permission" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 22:15:31 +0000 (22:15 +0000)]
Merge "APIs to suspend packages with SUSPEND_APPS permission" into pi-dev

6 years agoMerge "Listen to all attached QS pages." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 22:07:37 +0000 (22:07 +0000)]
Merge "Listen to all attached QS pages." into pi-dev

6 years agoMerge "Add vol up + power ringer toggle gesture" into pi-dev
Julia Reynolds [Thu, 22 Mar 2018 22:03:48 +0000 (22:03 +0000)]
Merge "Add vol up + power ringer toggle gesture" into pi-dev

6 years agoMerge changes from topics "DecodeException_ERROR", "AID_autoStart", "onPartialImage...
Leon Scroggins [Thu, 22 Mar 2018 21:53:05 +0000 (21:53 +0000)]
Merge changes from topics "DecodeException_ERROR", "AID_autoStart", "onPartialImage" into pi-dev

* changes:
  Rename ImageDecoder.ERRORs
  Add the ability to autoStart AID from xml
  Re-write onPartialImage API

6 years agoMerge "Fix the heap-after-use in DurationAnomalyTracker" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 21:41:35 +0000 (21:41 +0000)]
Merge "Fix the heap-after-use in DurationAnomalyTracker" into pi-dev

6 years agoMerge "Record Bluetooth Cumulative Stats Properly" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 21:39:03 +0000 (21:39 +0000)]
Merge "Record Bluetooth Cumulative Stats Properly" into pi-dev

6 years agoMerge "Fix UidMap proto output error. And fix a bug in MaxDurationTracker." into...
TreeHugger Robot [Thu, 22 Mar 2018 21:36:50 +0000 (21:36 +0000)]
Merge "Fix UidMap proto output error. And fix a bug in MaxDurationTracker." into pi-dev

6 years agoMerge "Disable Bitmap density scaling to Picture" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 21:34:32 +0000 (21:34 +0000)]
Merge "Disable Bitmap density scaling to Picture" into pi-dev

6 years agoMerge "Enable Autofill Field Classification by default." into pi-dev
Felipe Leme [Thu, 22 Mar 2018 21:20:34 +0000 (21:20 +0000)]
Merge "Enable Autofill Field Classification by default." into pi-dev

6 years agoMerge "Remove old workaround for display issues" into pi-dev
Jorim Jaggi [Thu, 22 Mar 2018 21:18:49 +0000 (21:18 +0000)]
Merge "Remove old workaround for display issues" into pi-dev

6 years agoMerge "Replace pm.dexopt.priv-apps with existing constant" into pi-dev
Victor Hsieh [Thu, 22 Mar 2018 21:17:56 +0000 (21:17 +0000)]
Merge "Replace pm.dexopt.priv-apps with existing constant" into pi-dev

6 years agoAdd MANAGE_IPSEC_TUNNELS Permission
Nathan Harold [Wed, 21 Mar 2018 22:32:42 +0000 (15:32 -0700)]
Add MANAGE_IPSEC_TUNNELS Permission

Add a new MANAGE_IPSEC_TUNNELS permission and
protect all IPsec Tunnel mode APIs with it.
This permission is only granted to the system or
through an AppOp.

Bug: 66955045
Test: compilation
Change-Id: I0f618373b500c493ef2211bece681f74652a1833

6 years agoMerge "Add AppOp for IpSec Tunnels" into pi-dev
Nathan Harold [Thu, 22 Mar 2018 21:14:36 +0000 (21:14 +0000)]
Merge "Add AppOp for IpSec Tunnels" into pi-dev

6 years agoMerge "Add more comments for the isConfigForIdentifiedCarrier()" into pi-dev
Ying Xu [Thu, 22 Mar 2018 21:14:32 +0000 (21:14 +0000)]
Merge "Add more comments for the isConfigForIdentifiedCarrier()" into pi-dev

6 years agoOnly print out services if they did something.
Kweku Adams [Thu, 22 Mar 2018 21:12:55 +0000 (14:12 -0700)]
Only print out services if they did something.

This also fixes a failing CTS test.

Bug: 74975371
Bug: 73490092
Test: flash device and check incident.proto output
Change-Id: I4d0f7d1b45b1b620d903f4b46cbdc04dfe314958

6 years agoAllow apps to call startRecognition(UUID, Bundle, ComponentName, RecognitionConfig...
Philip P. Moltmann [Thu, 22 Mar 2018 21:06:43 +0000 (14:06 -0700)]
Allow apps to call startRecognition(UUID, Bundle, ComponentName, RecognitionConfig) via reflection

- We don't want to make this a @SystemAPI as this will change
- We need 1st party apps to call this on Pixel devices

Test: Built
Bug: 73829108
Change-Id: I6954767020811ea99ceec17fd17b790c4a1bc0db

6 years agoQS edit mode fixes.
Amin Shaikh [Wed, 21 Mar 2018 21:03:37 +0000 (17:03 -0400)]
QS edit mode fixes.

- Remove secondary text for system tiles
- Show app name as secondary text for app tiles
- Fix left side cutoff

Change-Id: I010995c8fc42eb8b77360ade4830049e494c129a
Fixes: 74983414
Test: visual

6 years agoAssign -1 as default value of window type and owner uid.
rongliu [Wed, 14 Mar 2018 22:43:40 +0000 (15:43 -0700)]
Assign -1 as default value of window type and owner uid.

Bug: 74622357
Test: Test with ag/3738015 together. Layers without buffers have window
type -1 and owner uid -1.

Change-Id: I6f010bf1327671a06874b75bc0a63a3fb010ced7

6 years agoMerge "Update RECOVER_KEYSTORE permission documentation." into pi-dev
Dmitry Dementyev [Thu, 22 Mar 2018 20:33:34 +0000 (20:33 +0000)]
Merge "Update RECOVER_KEYSTORE permission documentation." into pi-dev

6 years agoMerge "Remove unsigned-integer-overflow signed-integer-overflow from sanitizer."...
Yao Chen [Thu, 22 Mar 2018 20:24:41 +0000 (20:24 +0000)]
Merge "Remove unsigned-integer-overflow signed-integer-overflow from sanitizer." into pi-dev

6 years agoMerge "Rename handover failure constant per API review comments." into pi-dev
Tyler Gunn [Thu, 22 Mar 2018 20:22:20 +0000 (20:22 +0000)]
Merge "Rename handover failure constant per API review comments." into pi-dev

6 years agoMerge "Revert "Enable hidden API blacklist"" into pi-dev
Mathieu Chartier [Thu, 22 Mar 2018 20:11:07 +0000 (20:11 +0000)]
Merge "Revert "Enable hidden API blacklist"" into pi-dev

6 years agoRevert "Enable hidden API blacklist"
David Brazdil [Thu, 22 Mar 2018 18:42:41 +0000 (18:42 +0000)]
Revert "Enable hidden API blacklist"

This reverts commit 16bfa11b73a34be1f1c72d2ffe86702f85378e92.

Reason for revert: Revert until b/76138670 is fixed

Bug: 64382372
Bug: 76138670
Bug: 76157445
Change-Id: Iaf6c76b773fbea4d4710b38808dee2e7e06f5e78

6 years agoMerge "Update duration text" into pi-dev
Julia Reynolds [Thu, 22 Mar 2018 20:04:40 +0000 (20:04 +0000)]
Merge "Update duration text" into pi-dev

6 years agoAPIs to suspend packages with SUSPEND_APPS permission
Suprabh Shukla [Fri, 9 Mar 2018 02:21:50 +0000 (18:21 -0800)]
APIs to suspend packages with SUSPEND_APPS permission

Changed the existing hidden api setPackagesSuspendedAsUser to a system
api setPackagesSuspended that can be called by apps with either
MANAGE_USERS or SUSPEND_APPS permission. Additionally, the suspending
app can now specify optional extra information meant to be used by the
suspended apps and the launcher to deal with this state.

The following other APIs are added:
 - isPackageSuspended(): Apps can query whether they are in a suspended
 state
 - @SystemApi getPackageSuspendedAppExtras(String): Apps with permission
 SUSPEND_APPS can get the appExtras passed to PM when suspending the
 app.
 - @SystemApi setPackageSuspendedAppExtras(String, PersistableBundle):
 Apps with permission SUSPEND_APPS can update app extras for a
 suspended package.
 - getPackageSuspendedAppExtras(): Apps can call to get the appExtras
 passed in to PM when they were suspended.

Test: Can be run via:
atest com.android.server.pm.PackageManagerSettingsTests
atest com.android.server.pm.PackageUserStateTest
atest com.android.server.pm.SuspendPackagesTest

Bug: 74336673
Change-Id: I3b9ed2c8478b34ee2e8986f5f5fddb2839d102e3

6 years agoMerge "Revert "Update material_deep_teal_500 to #008577."" into pi-dev
Andrew Sapperstein [Thu, 22 Mar 2018 19:31:23 +0000 (19:31 +0000)]
Merge "Revert "Update material_deep_teal_500 to #008577."" into pi-dev

6 years agoFix smart_linkify_enabled flag.
Abodunrinwa Toki [Fri, 16 Mar 2018 21:08:50 +0000 (21:08 +0000)]
Fix smart_linkify_enabled flag.

The flag should only ensure that smart linkify calls behave in the
legacy way instead of totally disabling linkify.
Also, to keep the flag consistent with smart_selection_enabled and
smart_text_share_enabled flags, the flag should only disable the
SmartLinkify (i.e. Linkify.addLinksAsync) feature not TextClassifier
APIs (i.e. TextClassifier.generateLinks).

Also fixes issue with non-focusable TextViews by firing the primary
action instead of showing the floating toolbar. (b/73156794)

Bug: 75967597
Bug: 73156794
Test: bit FrameworksCoreTests:android.text.util.LinkifyTest
Test: bit CtsTextTestCases:android.text.util.cts.LinkifyTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Test: manual - checked behaviour turning flag on/off
Test: manual - checked behaviour with TextView.setFocusableInTouchMode(true/false)
Change-Id: I541f60161b9cd63ce7e57235607500f2fb0841e7

6 years agoAdd more comments for the isConfigForIdentifiedCarrier()
yinxu [Fri, 16 Mar 2018 17:16:53 +0000 (10:16 -0700)]
Add more comments for the isConfigForIdentifiedCarrier()

This is a clean cherry-pick from:
https://android-review.git.corp.google.com/c/platform/frameworks/base/+/642231

Bug:74945742
Test: Compile
Change-Id: Ife3fdf797ca8877ec495d61a8aeed56fa20282a7
Merged-in: Ife3fdf797ca8877ec495d61a8aeed56fa20282a7
(cherry picked from commit cea0d8d4883c94482d936abd4d097617921c6fa7)

6 years agoRemoved urlBarResourceId.
Felipe Leme [Thu, 22 Mar 2018 03:02:42 +0000 (20:02 -0700)]
Removed urlBarResourceId.

It will be removed before the final P build.

Test: atest FrameworksServicesTests:AutofillManagerServiceTest CtsAutoFillServiceTestCases
Fixes: 74445943

Change-Id: I9bc243a3c1ae78f2c385dbb907d362d8ab16b34c

6 years agoMerge "Add NonNull Annotations To IpSec API Surface" into pi-dev
Nathan Harold [Thu, 22 Mar 2018 18:31:03 +0000 (18:31 +0000)]
Merge "Add NonNull Annotations To IpSec API Surface" into pi-dev

6 years agoMerge "Move provider access stats to frameworks/base" into pi-dev
Makoto Onuki [Thu, 22 Mar 2018 17:42:13 +0000 (17:42 +0000)]
Merge "Move provider access stats to frameworks/base" into pi-dev

6 years agoMerge "heif: fix Exif extraction in mtp database" into pi-dev
Chong Zhang [Thu, 22 Mar 2018 17:39:52 +0000 (17:39 +0000)]
Merge "heif: fix Exif extraction in mtp database" into pi-dev

6 years agoMerge "Don't allow null ids on FillResponse.Builder.setAuthentication()" into pi-dev
Felipe Leme [Thu, 22 Mar 2018 17:36:18 +0000 (17:36 +0000)]
Merge "Don't allow null ids on FillResponse.Builder.setAuthentication()" into pi-dev

6 years agoMerge "Fixed autofill service metadata name on javadoc sample." into pi-dev
Felipe Leme [Thu, 22 Mar 2018 17:33:36 +0000 (17:33 +0000)]
Merge "Fixed autofill service metadata name on javadoc sample." into pi-dev

6 years agoMerge "Remove the hard-coded counterId in VaultParams" into pi-dev
Bo Zhu [Thu, 22 Mar 2018 17:32:10 +0000 (17:32 +0000)]
Merge "Remove the hard-coded counterId in VaultParams" into pi-dev

6 years agoMerge "Unhide RecoveryController#getRootCertificates()" into pi-dev
Robert Berry [Thu, 22 Mar 2018 17:23:05 +0000 (17:23 +0000)]
Merge "Unhide RecoveryController#getRootCertificates()" into pi-dev

6 years agoMerge "Unhide RecoverySession#recoverKeyChainSnapshot() method" into pi-dev
Robert Berry [Thu, 22 Mar 2018 17:19:33 +0000 (17:19 +0000)]
Merge "Unhide RecoverySession#recoverKeyChainSnapshot() method" into pi-dev

6 years agoRename ImageDecoder.ERRORs
Leon Scroggins III [Thu, 22 Mar 2018 13:21:29 +0000 (09:21 -0400)]
Rename ImageDecoder.ERRORs

Bug: 73788969
Test: I501e8b76aacd785cb994165ab01dc1b39fea3a1c

Move them into ImageDecoder.DecodeException, which is where they are
actually used. This also provides some more context, so that the prefix
"ERROR_" is no longer necessary, fixing the redundancy/awkwardness in
ERROR_SOURCE_ERROR. Further rename that to SOURCE_MALFORMED_DATA, which
is more descriptive, and does not imply a Java Error.

Change-Id: Ied17ad343650f9c33d9a35b0f9d00ccc22264bd6

6 years agoMerge "Make QSTileImpl#mListeners thread safe." into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 17:07:01 +0000 (17:07 +0000)]
Merge "Make QSTileImpl#mListeners thread safe." into pi-dev

6 years agoPhoneWindowTest: promote to presubmit
Adrian Roos [Thu, 22 Mar 2018 16:38:07 +0000 (17:38 +0100)]
PhoneWindowTest: promote to presubmit

Bug: 73807928
Test: atest PhoneWindowTest
Change-Id: I1204f7049b6e182c5dd1f9f236e285ee7b9405ca

6 years agoUpdate RECOVER_KEYSTORE permission documentation.
Dmitry Dementyev [Thu, 22 Mar 2018 16:32:13 +0000 (09:32 -0700)]
Update RECOVER_KEYSTORE permission documentation.

Previous comment used outdated name for class managing recoverable
keystore.
Bug: 74976894
Test: none

Change-Id: I44460014d0ac5817d48e16bf281d2bb4ffe06823

6 years agoDisable Bitmap density scaling to Picture
Leon Scroggins III [Thu, 22 Mar 2018 16:36:22 +0000 (12:36 -0400)]
Disable Bitmap density scaling to Picture

Bug: 76144110
Test: I95165583649a1df86782d3684f7bf9bcd8dab7bd

This matches the behavior of DisplayListCanvas. Not scaling means that
we can draw a Bitmap to a Picture, and then play that back in HW mode
and see the same result.

Change-Id: I7421431bad0531112e06ab5c14814b6b6f1591d9

6 years agoReplace pm.dexopt.priv-apps with existing constant
Victor Hsieh [Wed, 21 Mar 2018 23:49:53 +0000 (16:49 -0700)]
Replace pm.dexopt.priv-apps with existing constant

It was missed before during the rename.

Test: build
Bug: 63920015
Change-Id: Icb20a328b3d8acedca06cf6a781443d5611bb43d

6 years agoMerge "Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES." into pi-dev
Felipe Leme [Thu, 22 Mar 2018 16:24:53 +0000 (16:24 +0000)]
Merge "Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES." into pi-dev

6 years agoMerge "Add OWNERS for GlobalSettingsToPropertiesMapper" into pi-dev
Fyodor Kupolov [Thu, 22 Mar 2018 16:21:24 +0000 (16:21 +0000)]
Merge "Add OWNERS for GlobalSettingsToPropertiesMapper" into pi-dev

6 years agoMerge "Audio presentation: Docs & Testability fixes" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 16:14:19 +0000 (16:14 +0000)]
Merge "Audio presentation: Docs & Testability fixes" into pi-dev

6 years agoMerge "GNSS Model Name constant string and comment updates" into pi-dev
Wyatt Riley [Thu, 22 Mar 2018 16:10:08 +0000 (16:10 +0000)]
Merge "GNSS Model Name constant string and comment updates" into pi-dev

6 years agoEnable Autofill Field Classification by default.
Felipe Leme [Thu, 22 Mar 2018 16:08:31 +0000 (09:08 -0700)]
Enable Autofill Field Classification by default.

Bug: 76028992
Test: locally changed FieldsClassificationTest to not set it

Change-Id: I842124852f76f599a8ac1cb06271ebc3324c36c9

6 years agoFix UidMap proto output error. And fix a bug in MaxDurationTracker.
Yao Chen [Thu, 22 Mar 2018 00:21:23 +0000 (17:21 -0700)]
Fix UidMap proto output error. And fix a bug in MaxDurationTracker.

Bug: 76118312
Bug: 76145379

Test: adb shell cmd stats dump-report
      statsd_test
Change-Id: I9a987525df5b37fcefd5f28700bfa1c3952f6692

6 years agoRevert "Update material_deep_teal_500 to #008577."
Andrew Sapperstein [Thu, 22 Mar 2018 15:54:23 +0000 (15:54 +0000)]
Revert "Update material_deep_teal_500 to #008577."

This reverts commit 5c228d5eb975de5e15970ae11ebddf95010875fe.

Reason for revert: Breaks presubmit. b/76126268

Change-Id: Iffd8bbb62d05cae1c2a5dabfab2824899c5ff3cf
Bug: 74118164
Bug: 76126268
Test: presubmit

6 years agoListen to all attached QS pages.
Amin Shaikh [Thu, 22 Mar 2018 11:24:41 +0000 (07:24 -0400)]
Listen to all attached QS pages.

Instead of only listening to the tiles on the current QS page, listen to
its neighbors as well. Remove all custom page tracking logic and rely on
the PagerAdapter lifecycle to update the listening status of each page.

Change-Id: Idb8452d532147467704bf6654c662342da78eddd
Fixes: 34804413
Test: visual

6 years agoFixed autofill service metadata name on javadoc sample.
Felipe Leme [Thu, 22 Mar 2018 15:39:09 +0000 (08:39 -0700)]
Fixed autofill service metadata name on javadoc sample.

Bug: 72811034
Test: nope

Change-Id: I0367fa6ad1fa21c51dadb9706830bc50c3139cab

6 years agoRename handover failure constant per API review comments.
Tyler Gunn [Mon, 19 Mar 2018 20:14:10 +0000 (20:14 +0000)]
Rename handover failure constant per API review comments.

Expanding EMERG to EMERGENCY.

Test: Build code
Bug: 74831393
Merged-In: Ic0555b20dc508d022c0165a5d9dc3b40b33db70e
Change-Id: Ic0555b20dc508d022c0165a5d9dc3b40b33db70e
(cherry picked from commit a4ef504bdc3044920d4996b93c30751a2fbce217)

6 years agoMerge "Add Settings.Global.WIFI_SCORE_PARAMS" into pi-dev
Michael Plass [Thu, 22 Mar 2018 15:03:51 +0000 (15:03 +0000)]
Merge "Add Settings.Global.WIFI_SCORE_PARAMS" into pi-dev

6 years agoAdd vol up + power ringer toggle gesture
Mike Digman [Tue, 20 Feb 2018 22:35:17 +0000 (14:35 -0800)]
Add vol up + power ringer toggle gesture

It only runs when the screen is on.

Test: manual, invoking gesture with different system settings
Bug: 75252670
Change-Id: I934d0bbb0a9fffecf34ebaadf77f3e1241d4faf7

6 years agoMove provider access stats to frameworks/base
Makoto Onuki [Wed, 21 Mar 2018 04:22:37 +0000 (21:22 -0700)]
Move provider access stats to frameworks/base

Bug: 76037330
Test: boot and dumpsys activity provider ContactsProvider2
Change-Id: I69cfe0edc98da00d1212f57871646488f87eb8dd

6 years agoMerge "DO NOT MERGE Revert "DO NOT MERGE Update references to backup/restore agent...
TreeHugger Robot [Thu, 22 Mar 2018 14:04:20 +0000 (14:04 +0000)]
Merge "DO NOT MERGE Revert "DO NOT MERGE Update references to backup/restore agent timeouts"" into pi-dev

6 years agoMerge "Small fix for the key grant alias used in importKey" into pi-dev
Robert Berry [Thu, 22 Mar 2018 13:55:31 +0000 (13:55 +0000)]
Merge "Small fix for the key grant alias used in importKey" into pi-dev

6 years agoUnhide RecoverySession#recoverKeyChainSnapshot() method
Robert Berry [Wed, 21 Mar 2018 16:31:52 +0000 (16:31 +0000)]
Unhide RecoverySession#recoverKeyChainSnapshot() method

The other methods expose raw key materials, which is a security flaw. This
new API is already being used by GMSCore, via reflection (although falling
back to the old methods if it is not available). Would be good to switch it
on ASAP.

Bug: 74345822
Test: Tested with GMSCore
Change-Id: I30d53c9e825888d1122c72d23b7c1c10c6edb1e9

6 years agoUnhide RecoveryController#getRootCertificates()
Robert Berry [Wed, 21 Mar 2018 21:57:07 +0000 (21:57 +0000)]
Unhide RecoveryController#getRootCertificates()

This is so we can add a GTS test to affirm that GMS devices include the
Google Cloud Key Vault root certificate.

Test: runtest frameworks-core -p android.security.keystore.recovery
Bug: 74621045
Change-Id: Ib6431f5739f3dff066832e6aa300dd9da5bc0727

6 years agoMerge "Unhide the new RecoverySession#start with the alias for root cert" into pi-dev
Robert Berry [Thu, 22 Mar 2018 13:48:31 +0000 (13:48 +0000)]
Merge "Unhide the new RecoverySession#start with the alias for root cert" into pi-dev

6 years agoDO NOT MERGE Revert "DO NOT MERGE Update references to backup/restore agent timeouts"
Artem Iglikov [Thu, 22 Mar 2018 12:18:07 +0000 (12:18 +0000)]
DO NOT MERGE Revert "DO NOT MERGE Update references to backup/restore agent timeouts"

This reverts commit f77cae61250c727630616b5672df2781e84a7e80.

Reason for revert: crashes SUW

Bug: 76128378
Change-Id: Ia77af64892aa5a03109cc4ef4c2c04b256000ba9

6 years agoAdd the ability to autoStart AID from xml
Leon Scroggins III [Wed, 21 Mar 2018 18:42:09 +0000 (14:42 -0400)]
Add the ability to autoStart AID from xml

Bug: 73529437
Test: Ic818bbf1091d12631aedd6475d225fa4a708b29c
Change-Id: I4807409895a057e775bfee5dea407e8dc1af94be

6 years agoMerge "Remove unnecessary Context from ApiLoader" into pi-dev
Christofer Åkersten [Thu, 22 Mar 2018 11:49:41 +0000 (11:49 +0000)]
Merge "Remove unnecessary Context from ApiLoader" into pi-dev

6 years agoMerge "Fix index error" into pi-dev
Julia Reynolds [Thu, 22 Mar 2018 11:39:28 +0000 (11:39 +0000)]
Merge "Fix index error" into pi-dev

6 years agoMerge "Adds support for a fall-back model when the language-specific model is not...
TreeHugger Robot [Thu, 22 Mar 2018 10:50:47 +0000 (10:50 +0000)]
Merge "Adds support for a fall-back model when the language-specific model is not found." into pi-dev

6 years agoMerge "Finalise STK call control strings" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 08:49:38 +0000 (08:49 +0000)]
Merge "Finalise STK call control strings" into pi-dev

6 years agoMerge "Letterbox: make letterbox work with drag resizing" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 06:16:00 +0000 (06:16 +0000)]
Merge "Letterbox: make letterbox work with drag resizing" into pi-dev

6 years agoRemove unnecessary Context from ApiLoader
Christofer Åkersten [Thu, 22 Mar 2018 05:53:53 +0000 (14:53 +0900)]
Remove unnecessary Context from ApiLoader

Bug: 76001644
Test: compile
Change-Id: I6ac81dac16374d90facfe33c68607c5c286b335f

6 years agoRemove the hard-coded counterId in VaultParams
Bo Zhu [Thu, 22 Mar 2018 05:46:55 +0000 (22:46 -0700)]
Remove the hard-coded counterId in VaultParams

Bug: 72221676
Test: Manual test and runtest frameworks-services -p
com.android.server.locksettings.recoverablekeystore

Change-Id: I51cfac6478d59f41c1107106a14af008463f7de7

6 years agoFinalise STK call control strings
Jordan Liu [Thu, 22 Mar 2018 00:39:12 +0000 (17:39 -0700)]
Finalise STK call control strings

Bug: 64685331
Bug: 70352301
Test: manual
Change-Id: I53e9ec5e520f960b7adb3a29770e1f57065eb4c8
Merged-In: I53e9ec5e520f960b7adb3a29770e1f57065eb4c8

6 years agoMerge "Remove java-symbol for deleted string." into pi-dev
Andrew Sapperstein [Thu, 22 Mar 2018 05:27:35 +0000 (05:27 +0000)]
Merge "Remove java-symbol for deleted string." into pi-dev

6 years agoMerge "Enable new data usage settings features." into pi-dev
Andreas Terzis [Thu, 22 Mar 2018 05:02:10 +0000 (05:02 +0000)]
Merge "Enable new data usage settings features." into pi-dev

6 years agoMerge "Set FIELD_AUTOFILL_NUM_DATASETS to -1 when service return no response." into...
Felipe Leme [Thu, 22 Mar 2018 04:50:04 +0000 (04:50 +0000)]
Merge "Set FIELD_AUTOFILL_NUM_DATASETS to -1 when service return no response." into pi-dev

6 years agoMerge "Make sure at least one non-aux IME is enabled" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 03:08:38 +0000 (03:08 +0000)]
Merge "Make sure at least one non-aux IME is enabled" into pi-dev

6 years agoUnhide the new RecoverySession#start with the alias for root cert
Bo Zhu [Thu, 22 Mar 2018 02:50:50 +0000 (19:50 -0700)]
Unhide the new RecoverySession#start with the alias for root cert

Bug: 76033708
Test: none, it's just unhiding APIs
Change-Id: Iec1e44d24bb1704da082404566233ada83b8eb81

6 years agoMerge "ScheduledJobStateChanged: add stop reason" into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 01:30:52 +0000 (01:30 +0000)]
Merge "ScheduledJobStateChanged: add stop reason" into pi-dev

6 years agoAdd TestablesTests to device-tests for APCT suite
jdesprez [Thu, 22 Mar 2018 00:55:33 +0000 (17:55 -0700)]
Add TestablesTests to device-tests for APCT suite

APCT is being converted to a suite style. Tag
TestablesTests to be included in new style run.

Test: build device-tests
Bug: 74440293
Change-Id: I642dae21f8484c6f20a0babe88f36abb8b25ff7f

6 years agoMerge "Updated the javadoc of ContentResolver.addPeriodicSync to correct the minimum...
Makoto Onuki [Thu, 22 Mar 2018 00:51:03 +0000 (00:51 +0000)]
Merge "Updated the javadoc of ContentResolver.addPeriodicSync to correct the minimum interval of periodic sync." into pi-dev

6 years agodocs: fixing typo in reference document
kopriva [Thu, 22 Mar 2018 00:39:02 +0000 (00:39 +0000)]
docs: fixing typo in reference document
am: 60b06bd217

Change-Id: Ie0a6380e8287d49b4d80f8742e51345372e5b8a9

6 years agoMerge changes I7f413e38,I20aba7e9 into pi-dev
TreeHugger Robot [Thu, 22 Mar 2018 00:29:38 +0000 (00:29 +0000)]
Merge changes I7f413e38,I20aba7e9 into pi-dev

* changes:
  Remove FlpHardwareProvider
  Create the stubs lib for com.android.location.provider

6 years agoFix the heap-after-use in DurationAnomalyTracker
Yao Chen [Thu, 22 Mar 2018 00:04:34 +0000 (17:04 -0700)]
Fix the heap-after-use in DurationAnomalyTracker

Bug: 74531081
Test: cts
Change-Id: I21a50944a119b7576c76fd25fae23b9c2d8d96ab

6 years agoSmall fix for the key grant alias used in importKey
Bo Zhu [Wed, 21 Mar 2018 21:33:15 +0000 (14:33 -0700)]
Small fix for the key grant alias used in importKey

Bug: 74345822
Test: atest RecoveryControllerHostTest#testImportKey_ValidKey
Change-Id: I54812b3d7465ee508fe48886f5897470fe7455a0

6 years agoRemove unsigned-integer-overflow signed-integer-overflow from sanitizer.
Yao Chen [Wed, 21 Mar 2018 23:38:26 +0000 (16:38 -0700)]
Remove unsigned-integer-overflow signed-integer-overflow from sanitizer.

Sanitizer is picking on the protobuf generated code. Need to figure out why
Disable them to unblock development first.

Bug: 76117312
Test: manual
Change-Id: I3f3a39dfe933f4c1b1cf4063d621392b66f0adea

6 years agoRenamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES.
Felipe Leme [Wed, 21 Mar 2018 00:12:17 +0000 (17:12 -0700)]
Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES.

The syntax of that setting changed from P Developer Preview1 to the final P, so
it's safer to use a new name than risk breaking devices during the update.

Bug: 74458004
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest\
FrameworksCoreTests:SettingsBackupTest

Change-Id: I1c507e8eae20f598dfe259178667ae6c2bc892ff