OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Presubmit FormatterTest and SpannableStringBuilderTest"
Siyamed Sinir [Mon, 18 Dec 2017 22:24:53 +0000 (22:24 +0000)]
Merge "Presubmit FormatterTest and SpannableStringBuilderTest"

6 years agoMerge "Merge "Merge "[CHERRY-PICK] API for apps to tag sockets with their own UID...
Android Build Merger (Role) [Mon, 18 Dec 2017 22:15:26 +0000 (22:15 +0000)]
Merge "Merge "Merge "[CHERRY-PICK] API for apps to tag sockets with their own UID." am: bef8c59634 am: 826657a9c2" into oc-mr1-dev-plus-aosp am: 11448df5a1  -s ours"

6 years agoMerge "Merge "[CHERRY-PICK] API for apps to tag sockets with their own UID." am:...
Android Build Merger (Role) [Mon, 18 Dec 2017 22:14:52 +0000 (22:14 +0000)]
Merge "Merge "[CHERRY-PICK] API for apps to tag sockets with their own UID." am: bef8c59634 am: 826657a9c2" into oc-mr1-dev-plus-aosp
am: 11448df5a1  -s ours

Change-Id: I3289c409e2014c898cba8ba14768ea174937ffed

6 years agoMerge "docs: Touch-up edits to ShortcutManager class reference. am: 4777f37f78 am...
Android Build Merger (Role) [Mon, 18 Dec 2017 22:08:50 +0000 (22:08 +0000)]
Merge "docs: Touch-up edits to ShortcutManager class reference. am: 4777f37f78 am: 6f2f0f639b"

6 years agoMerge "Add isMobileDataEnabled in TelephonyManager."
TreeHugger Robot [Mon, 18 Dec 2017 22:08:38 +0000 (22:08 +0000)]
Merge "Add isMobileDataEnabled in TelephonyManager."

6 years agodocs: Touch-up edits to ShortcutManager class reference. am: 4777f37f78
Kevin Hufnagle [Mon, 18 Dec 2017 22:07:56 +0000 (22:07 +0000)]
docs: Touch-up edits to ShortcutManager class reference. am: 4777f37f78
am: 6f2f0f639b

Change-Id: I7be85e7c7dbbc26a76a840422cfe4c95041840b0

6 years agoMerge "Merge "[CHERRY-PICK] API for apps to tag sockets with their own UID." am:...
Android Build Merger (Role) [Mon, 18 Dec 2017 21:57:05 +0000 (21:57 +0000)]
Merge "Merge "[CHERRY-PICK] API for apps to tag sockets with their own UID." am: bef8c59634 am: 826657a9c2" into oc-mr1-dev-plus-aosp

6 years agoMerge "[CHERRY-PICK] API for apps to tag sockets with their own UID." am: bef8c59634
Benedict Wong [Mon, 18 Dec 2017 21:56:41 +0000 (21:56 +0000)]
Merge "[CHERRY-PICK] API for apps to tag sockets with their own UID." am: bef8c59634
am: 826657a9c2

Change-Id: Ia06653e6c1cccddcd2de17dd88a9ef47263f5c79

6 years agodocs: Touch-up edits to ShortcutManager class reference.
Kevin Hufnagle [Mon, 18 Dec 2017 21:55:02 +0000 (21:55 +0000)]
docs: Touch-up edits to ShortcutManager class reference.
am: 4777f37f78

Change-Id: Ibc90a8a2771a3e9fe5e59398be986b75490c60c2

6 years agoMerge "Update SmsMessage.FORMAT_ Javadocs."
Jeff Davidson [Mon, 18 Dec 2017 21:52:01 +0000 (21:52 +0000)]
Merge "Update SmsMessage.FORMAT_ Javadocs."

6 years agoMerge "[CHERRY-PICK] API for apps to tag sockets with their own UID."
Benedict Wong [Mon, 18 Dec 2017 21:46:18 +0000 (21:46 +0000)]
Merge "[CHERRY-PICK] API for apps to tag sockets with their own UID."
am: bef8c59634

Change-Id: I38da928c8484eb0bbb5d9cbc473d6d36de35e1e8

6 years agoMerge "Implements onNanoAppAborted callback"
TreeHugger Robot [Mon, 18 Dec 2017 21:45:50 +0000 (21:45 +0000)]
Merge "Implements onNanoAppAborted callback"

6 years agoMerge "[CHERRY-PICK] API for apps to tag sockets with their own UID."
Benedict Wong [Mon, 18 Dec 2017 21:32:10 +0000 (21:32 +0000)]
Merge "[CHERRY-PICK] API for apps to tag sockets with their own UID."

6 years agoMerge "Make isUsingUnifiedPassword throw when used on parent instance"
TreeHugger Robot [Mon, 18 Dec 2017 21:26:32 +0000 (21:26 +0000)]
Merge "Make isUsingUnifiedPassword throw when used on parent instance"

6 years agoMerge "Removed Parcelable from FieldClassification."
TreeHugger Robot [Mon, 18 Dec 2017 21:04:15 +0000 (21:04 +0000)]
Merge "Removed Parcelable from FieldClassification."

6 years agoMerge "Returns signing version from ApkSignatureVerifier"
TreeHugger Robot [Mon, 18 Dec 2017 20:58:13 +0000 (20:58 +0000)]
Merge "Returns signing version from ApkSignatureVerifier"

6 years agoMerge "AudioService: fix isInCommunication()"
TreeHugger Robot [Mon, 18 Dec 2017 20:53:35 +0000 (20:53 +0000)]
Merge "AudioService: fix isInCommunication()"

6 years agoMerge "Removes unnecessary logs from ContextHubService"
TreeHugger Robot [Mon, 18 Dec 2017 20:48:32 +0000 (20:48 +0000)]
Merge "Removes unnecessary logs from ContextHubService"

6 years agoMerge "Use broadcast receiver to update BT A2DP status"
Eric Laurent [Mon, 18 Dec 2017 20:10:46 +0000 (20:10 +0000)]
Merge "Use broadcast receiver to update BT A2DP status"

6 years agoMerge "Fix issue #70722141: Fix broken WindowTest.testSetLocalFocus"
TreeHugger Robot [Mon, 18 Dec 2017 20:05:41 +0000 (20:05 +0000)]
Merge "Fix issue #70722141: Fix broken WindowTest.testSetLocalFocus"

6 years agoMerge "Implemented multiple matches on FieldClassification.getMatches()"
TreeHugger Robot [Mon, 18 Dec 2017 19:56:43 +0000 (19:56 +0000)]
Merge "Implemented multiple matches on FieldClassification.getMatches()"

6 years agoPresubmit FormatterTest and SpannableStringBuilderTest
Siyamed Sinir [Mon, 18 Dec 2017 19:21:09 +0000 (11:21 -0800)]
Presubmit FormatterTest and SpannableStringBuilderTest

Adds the following tests to presubmit.
- android.text.format.FormatterTest
- android.text.SpannableStringBuildeTest

Test: None
Bug: 70506734
Change-Id: Ie5a93be3673df143ee1f33ca39173784457c336a

6 years agoMerge changes from topics "tv-settings-manage-power", "applicationsstate-lifecycle"
Tony Mantler [Mon, 18 Dec 2017 19:45:53 +0000 (19:45 +0000)]
Merge changes from topics "tv-settings-manage-power", "applicationsstate-lifecycle"

* changes:
  Move PowerWhitelistBackend to SettingsLib
  Move ApplicationsState to support lib Lifecycle

6 years ago[CHERRY-PICK] API for apps to tag sockets with their own UID.
Jeff Sharkey [Wed, 29 Nov 2017 18:18:23 +0000 (11:18 -0700)]
[CHERRY-PICK] API for apps to tag sockets with their own UID.

This enables app A to create a socket, pass it to app B, and have
app B accept blame for the traffic performed on that socket.

Also adds helpful public APIs for tagging raw FileDescriptor sockets
instead of making developers go through shady SocketImpl wrappers.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.AppSecurityTests#testAppFailAccessPrivateData
Bug: 63932076
Change-Id: I08925c843974675fc82e4080cec2eaab9ab7cd41
Merged-In: I08925c843974675fc82e4080cec2eaab9ab7cd41
(cherry picked from commit 70dc4f4d16082c598cd1774d366c1e60c2016126)

6 years agoImplements onNanoAppAborted callback
Arthur Ishiguro [Mon, 18 Dec 2017 18:02:35 +0000 (10:02 -0800)]
Implements onNanoAppAborted callback

Bug: 67734082
Bug: 31049861
Test: Fake a handleAppAbort callback at the HAL implementation for
walleye, run a test app that registers a client callback, and verify
client receives the onNanoAppAborted callback.
Change-Id: Ic1ab3a1ef0f903a9aad04f732dac1a04f3fc5169

6 years agoMerge "Revert "Add platform key generation ID to WrappedKey instances""
Robert Berry [Mon, 18 Dec 2017 18:58:48 +0000 (18:58 +0000)]
Merge "Revert "Add platform key generation ID to WrappedKey instances""

6 years agoRevert "Add platform key generation ID to WrappedKey instances"
Robert Berry [Mon, 18 Dec 2017 18:56:22 +0000 (18:56 +0000)]
Revert "Add platform key generation ID to WrappedKey instances"

This reverts commit 9fa18c621e82d4a6e2b647fc3268ddc89e64b73c.

Reason for revert: broke the build, sorry

Change-Id: I6425160e9ac565664e25ee5c92ce1a5813dd4c28

6 years agoRemoves unnecessary logs from ContextHubService
Arthur Ishiguro [Fri, 15 Dec 2017 23:21:42 +0000 (15:21 -0800)]
Removes unnecessary logs from ContextHubService

Bug: 67734082
Test: None
Change-Id: Ibb6d2626334603bbda4e826e5fd7f7c47c7a436d

6 years agodocs: Touch-up edits to ShortcutManager class reference.
Kevin Hufnagle [Mon, 18 Dec 2017 17:57:39 +0000 (09:57 -0800)]
docs: Touch-up edits to ShortcutManager class reference.

Test: make ds-docs -j16

Bug: 64727234
Change-Id: Ieb2c2f6ee6706f206e2cc0d5be8bc3a5cdd9f345

6 years agoMerge "New motion curves in resources for material2"
TreeHugger Robot [Mon, 18 Dec 2017 18:45:35 +0000 (18:45 +0000)]
Merge "New motion curves in resources for material2"

6 years agoMake isUsingUnifiedPassword throw when used on parent instance
Pavel Grafov [Mon, 18 Dec 2017 18:02:47 +0000 (18:02 +0000)]
Make isUsingUnifiedPassword throw when used on parent instance

It doesn't make sense to call it via parent instance.

Bug: 70788883
Test: cts-tradefed run cts -m DevicePolicyManager -t com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled
Change-Id: I66334757ca8e9ee2525dbe88c83216563837aee6

6 years agoMerge "Publish Bluetooth HID Device Profile Service API" am: fbd4ea125f am: 6047c90e9b
Hansong Zhang [Mon, 18 Dec 2017 18:14:38 +0000 (18:14 +0000)]
Merge "Publish Bluetooth HID Device Profile Service API" am: fbd4ea125f am: 6047c90e9b
am: cab953250f  -s ours

Change-Id: I8c798b9a2852493a0efff555036c97ebfd2eb3dd

6 years agoMerge "Adopt robolectric 3.5.1"
TreeHugger Robot [Mon, 18 Dec 2017 18:07:35 +0000 (18:07 +0000)]
Merge "Adopt robolectric 3.5.1"

6 years agoMerge "Publish Bluetooth HID Device Profile Service API" am: fbd4ea125f
Hansong Zhang [Mon, 18 Dec 2017 18:06:19 +0000 (18:06 +0000)]
Merge "Publish Bluetooth HID Device Profile Service API" am: fbd4ea125f
am: 6047c90e9b

Change-Id: Icd57d9a0d70bd4bc0dfe1396335254ccef9528b4

6 years agoMerge "docs: Revised wording, section order for ShortcutManager API ref." into oc...
Kevin Hufnagle [Mon, 18 Dec 2017 18:01:46 +0000 (18:01 +0000)]
Merge "docs: Revised wording, section order for ShortcutManager API ref." into oc-mr1-dev am: d642148c84
am: 87ce35c371

Change-Id: I0de0bea5712143e70f851f42fadaed0aa0eece64

6 years agoMerge "Publish Bluetooth HID Device Profile Service API"
Hansong Zhang [Mon, 18 Dec 2017 17:59:44 +0000 (17:59 +0000)]
Merge "Publish Bluetooth HID Device Profile Service API"
am: fbd4ea125f

Change-Id: I97a3b9f865af9d50d52674702c6706729f9ab419

6 years agoReturns signing version from ApkSignatureVerifier
Patrick Baumann [Thu, 14 Dec 2017 18:50:18 +0000 (10:50 -0800)]
Returns signing version from ApkSignatureVerifier

This is a first step at a larger goal of moving instant app
verifications from parsing logic into install logic.

Test: manual - install v1 and v2 instant app and static lib
Test: android.appsecurity.cts.PkgInstallSignatureVerificationTest passes.
Change-Id: Iab50b91a6fb8ef014b573bb9f733d30c1aa6022f
Bug: 68860689

6 years agoMerge "docs: Revised wording, section order for ShortcutManager API ref." into oc...
Kevin Hufnagle [Mon, 18 Dec 2017 17:52:36 +0000 (17:52 +0000)]
Merge "docs: Revised wording, section order for ShortcutManager API ref." into oc-mr1-dev
am: d642148c84

Change-Id: Iabb204baf3772b44b6852ec9d7135db0baf228bc

6 years agoMerge "Add RecoverableKeyStoreDb"
Robert Berry [Mon, 18 Dec 2017 17:50:08 +0000 (17:50 +0000)]
Merge "Add RecoverableKeyStoreDb"

6 years agoMerge "Publish Bluetooth HID Device Profile Service API"
Treehugger Robot [Mon, 18 Dec 2017 17:47:35 +0000 (17:47 +0000)]
Merge "Publish Bluetooth HID Device Profile Service API"

6 years agoMerge "docs: Revised wording, section order for ShortcutManager API ref." into oc...
Kevin Hufnagle [Mon, 18 Dec 2017 17:42:48 +0000 (17:42 +0000)]
Merge "docs: Revised wording, section order for ShortcutManager API ref." into oc-mr1-dev

6 years agoRemoved Parcelable from FieldClassification.
Felipe Leme [Mon, 18 Dec 2017 17:38:36 +0000 (09:38 -0800)]
Removed Parcelable from FieldClassification.

Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest

Bug: 70407264

Change-Id: I667bb15e2341a926cdf35e928261bd5fa474a22b

6 years agoImplemented multiple matches on FieldClassification.getMatches()
Felipe Leme [Mon, 18 Dec 2017 17:30:53 +0000 (09:30 -0800)]
Implemented multiple matches on FieldClassification.getMatches()

Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest

Bug:70291841

Change-Id: Icc015d7c76f0f11e398c3093b4ea070c8f35f589

6 years agoMerge "Add recovery flow utils to KeySyncUtils"
Robert Berry [Mon, 18 Dec 2017 17:01:09 +0000 (17:01 +0000)]
Merge "Add recovery flow utils to KeySyncUtils"

6 years agoMerge "Add platform key generation ID to WrappedKey instances"
Robert Berry [Mon, 18 Dec 2017 16:55:31 +0000 (16:55 +0000)]
Merge "Add platform key generation ID to WrappedKey instances"

6 years agoMerge "rename pulled atoms to shorter names"
TreeHugger Robot [Mon, 18 Dec 2017 16:41:15 +0000 (16:41 +0000)]
Merge "rename pulled atoms to shorter names"

6 years agoAdd RecoverableKeyStoreDb
Robert Berry [Fri, 15 Dec 2017 23:01:22 +0000 (23:01 +0000)]
Add RecoverableKeyStoreDb

Adds database for storing recoverable keys. They are indexed by the
uid of the application that created them, and the alias of the key.
This is the same alias that is used to get the key from
AndroidKeyStore. The database stores the wrapped key, and the version
of the platform key that did the wrapping. It also stores information
about when the key was last synced.

This is used to get the status of the key. e.g., if the platform key
id is not the current platform key id, this is now an unsyncable key.
If the last-synced time is not set, this is a valid key but one that
has not yet been synced. etc., etc.

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

6 years agoAdd recovery flow utils to KeySyncUtils
Robert Berry [Fri, 15 Dec 2017 14:03:16 +0000 (14:03 +0000)]
Add recovery flow utils to KeySyncUtils

Currently KeySyncUtils only contains methods for the backup to cloud
flow. This adds utility methods for the restore flow, also. We still
haven't merged SecureBox, so the class they defer to at the moment
throws for most of these methods, meaning we can't yet add meaningful
unit tests.

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

6 years agoMerge "API updated for ICU4J 60.1"
Victor Chang [Mon, 18 Dec 2017 14:57:47 +0000 (14:57 +0000)]
Merge "API updated for ICU4J 60.1"

6 years agoMerge "Add MtpStorageManager for monitoring filesystem events"
TreeHugger Robot [Mon, 18 Dec 2017 13:52:14 +0000 (13:52 +0000)]
Merge "Add MtpStorageManager for monitoring filesystem events"

6 years agoShow Floating Toolbar when tapping a selectable TextLink in TextView.
Richard Ledley [Thu, 30 Nov 2017 10:54:08 +0000 (10:54 +0000)]
Show Floating Toolbar when tapping a selectable TextLink in TextView.

Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest\#testToolbarAppearsAfterLinkClicked
Bug: b/67629726
Change-Id: Ied7a1903a308db37d0eb288c8e611da8229f381a

6 years agoMerge "Fix flakey shortcut manager tests."
Makoto Onuki [Mon, 18 Dec 2017 02:36:47 +0000 (02:36 +0000)]
Merge "Fix flakey shortcut manager tests."

6 years agoMerge "Turn off verbose logging, remove the fake config."
TreeHugger Robot [Sun, 17 Dec 2017 17:01:36 +0000 (17:01 +0000)]
Merge "Turn off verbose logging, remove the fake config."

6 years agoMerge "add feature: GaugeMetricProducer now takes repeated list of fields bug fix...
TreeHugger Robot [Sun, 17 Dec 2017 16:58:46 +0000 (16:58 +0000)]
Merge "add feature: GaugeMetricProducer now takes repeated list of fields bug fix: GaugeMetricProducer now works better with pulled events. unit test also includes GaugeMetricProducer_test"

6 years agoMerge "Split logging related functinonality out into NotificationLogger."
TreeHugger Robot [Sun, 17 Dec 2017 09:05:12 +0000 (09:05 +0000)]
Merge "Split logging related functinonality out into NotificationLogger."

6 years agorename pulled atoms to shorter names
Chenjie Yu [Wed, 13 Dec 2017 01:54:33 +0000 (17:54 -0800)]
rename pulled atoms to shorter names

Test: unit test
Change-Id: I337341dc69ea658f5972cd9962c536a1f11d77f9

6 years agoMerge "align metrics to 5min bundary We use one alarm clock for all pulled atoms...
TreeHugger Robot [Sun, 17 Dec 2017 03:14:27 +0000 (03:14 +0000)]
Merge "align metrics to 5min bundary We use one alarm clock for all pulled atoms. If metrics from different configs are not aligned, the clock will be set to repeat at higher and higher frequency, and consume a lot of battery. Current implementation assumes a 5min minimum bucket size. New metric start time is set to be aligned to the start time of statsd in the next 5min. So it will ignore events up to 5min."

6 years agoadd feature: GaugeMetricProducer now takes repeated list of fields
Chenjie Yu [Tue, 12 Dec 2017 01:41:20 +0000 (17:41 -0800)]
add feature: GaugeMetricProducer now takes repeated list of fields
bug fix: GaugeMetricProducer now works better with pulled events.
unit test also includes GaugeMetricProducer_test

Test: unit test
Change-Id: Ic60f09342d14cfb107be2130d445b323a56909e0

6 years agoalign metrics to 5min bundary
Chenjie Yu [Fri, 15 Dec 2017 00:48:54 +0000 (16:48 -0800)]
align metrics to 5min bundary
We use one alarm clock for all pulled atoms.
If metrics from different configs are not aligned,
the clock will be set to repeat at higher and higher
frequency, and consume a lot of battery.
Current implementation assumes a 5min minimum bucket
size. New metric start time is set to be aligned to
the start time of statsd in the next 5min.
So it will ignore events up to 5min.

align puller alarm to minute bundary

Test: unit test
Change-Id: I77ffa3c13de363c780b1000181b9a9b780dd0846

6 years agoAdd platform key generation ID to WrappedKey instances
Robert Berry [Thu, 14 Dec 2017 17:04:07 +0000 (17:04 +0000)]
Add platform key generation ID to WrappedKey instances

This is so that when we persist them, we can tell that they were wrapped
with a specific version of the platform key. This will be useful for us
to provide error messages to the users of recoverable keys. (i.e., in
the case where the user had an application key that was wrapped with a
platform key that is no longer valid, they MUST rotate key.)

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

6 years agoMerge "Throw on attempt to unwrap a WrappedKey with old PlatformKey"
Robert Berry [Sat, 16 Dec 2017 22:54:17 +0000 (22:54 +0000)]
Merge "Throw on attempt to unwrap a WrappedKey with old PlatformKey"

6 years agoTurn off verbose logging, remove the fake config.
Yao Chen [Sat, 16 Dec 2017 22:34:20 +0000 (14:34 -0800)]
Turn off verbose logging, remove the fake config.

Test: statsd_test & manual
Change-Id: I43068c8db006cbbeccacaa9d8426ab4d0394313a

6 years agoMerge "Log if reading cpu freq times takes too long."
Sudheer Shanka [Sat, 16 Dec 2017 20:12:40 +0000 (20:12 +0000)]
Merge "Log if reading cpu freq times takes too long."

6 years agoMerge "Start processes asynchronously in AMS."
Sudheer Shanka [Sat, 16 Dec 2017 18:36:48 +0000 (18:36 +0000)]
Merge "Start processes asynchronously in AMS."

6 years agoMerge "Global app standby flag"
TreeHugger Robot [Sat, 16 Dec 2017 18:30:23 +0000 (18:30 +0000)]
Merge "Global app standby flag"

6 years agoMerge "Make IMM more robust for window focus stealing"
TreeHugger Robot [Sat, 16 Dec 2017 18:23:40 +0000 (18:23 +0000)]
Merge "Make IMM more robust for window focus stealing"

6 years agoGlobal app standby flag
Amith Yamasani [Fri, 15 Dec 2017 18:51:53 +0000 (10:51 -0800)]
Global app standby flag

Disable app standby features if app_standby_enabled
is set to 0. This allows for UI and experiments to
control the feature.

Bug: 70655630
Test: adb shell settings put global app_standby_enabled 0
      adb shell dumpsys usagestats
      adb shell am get-standby-bucket <packagename>

Change-Id: Id6c62b078e52040767100f2997832cc586bb0806

6 years agoMerge "Revert "Log an App Op when an accessibility action is performed.""
TreeHugger Robot [Sat, 16 Dec 2017 11:57:25 +0000 (11:57 +0000)]
Merge "Revert "Log an App Op when an accessibility action is performed.""

6 years agoThrow on attempt to unwrap a WrappedKey with old PlatformKey
Robert Berry [Fri, 15 Dec 2017 15:25:01 +0000 (15:25 +0000)]
Throw on attempt to unwrap a WrappedKey with old PlatformKey

Also brings the decrypt key inline with the representation in
ag/3362855. When getting the latest decrypt/encrypt key we will
always want to know the generation ID, so that we can either
persist that information with the WrappedKey, or check against
WrappedKeys we're attempting to decrypt. As such it makes sense
to have methods return a class that wraps the key and ID, as they
always belong together.

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

6 years agoMerge "Remove recents button and longpress home when connected to service (1/2)"
TreeHugger Robot [Sat, 16 Dec 2017 04:29:35 +0000 (04:29 +0000)]
Merge "Remove recents button and longpress home when connected to service (1/2)"

6 years agoMerge "Allow interval updating when no GPS fix & scheduling not supported."
Mohammed Khider [Sat, 16 Dec 2017 04:19:23 +0000 (04:19 +0000)]
Merge "Allow interval updating when no GPS fix & scheduling not supported."

6 years agoMerge "Stats log api for attribution chain."
TreeHugger Robot [Sat, 16 Dec 2017 04:15:11 +0000 (04:15 +0000)]
Merge "Stats log api for attribution chain."

6 years agoMerge "Map "shell ime" to "shell cmd input_method ime""
TreeHugger Robot [Sat, 16 Dec 2017 03:40:10 +0000 (03:40 +0000)]
Merge "Map "shell ime" to "shell cmd input_method ime""

6 years agoMerge "bugfix: adjust StatsLogEventWrapper length to make sure we don't lose data"
TreeHugger Robot [Sat, 16 Dec 2017 03:15:59 +0000 (03:15 +0000)]
Merge "bugfix: adjust StatsLogEventWrapper length to make sure we don't lose data"

6 years agoMerge "Log daveys"
TreeHugger Robot [Sat, 16 Dec 2017 02:55:35 +0000 (02:55 +0000)]
Merge "Log daveys"

6 years agoMerge "Added back the recents button to activity over lockscreen"
TreeHugger Robot [Sat, 16 Dec 2017 02:50:40 +0000 (02:50 +0000)]
Merge "Added back the recents button to activity over lockscreen"

6 years agoMerge "Delay touching disks when secure keyguard showing."
Jeff Sharkey [Sat, 16 Dec 2017 02:20:32 +0000 (02:20 +0000)]
Merge "Delay touching disks when secure keyguard showing."

6 years agoAdopt robolectric 3.5.1
James Lemieux [Sat, 16 Dec 2017 01:49:49 +0000 (17:49 -0800)]
Adopt robolectric 3.5.1

Bug: 70581603
Test: make RunSettingsLibRoboTests
Change-Id: I18dd5d74dae0570d2909998a0bab1d812b9f8f6e

6 years agoAllow interval updating when no GPS fix & scheduling not supported.
gomo [Thu, 14 Dec 2017 03:04:12 +0000 (19:04 -0800)]
Allow interval updating when no GPS fix & scheduling not supported.

Since Android-L we have the following isse for GPS chipsets that do not
have GPS_CAPABILITY_SCHEDULING:
1) A location request is ongoing with an interval < 1 minute that
mFixInterval < NO_FIX_TIMEOUT. In which case, the TimeOutIntent will
not be set
2) A new location request arrives with a large interval where we want
the TimeOutIntent to kick in if needed
3) The above scenario has to happen in GPS signal denied environment
with no fix possible as a single reported location will cause hibernate()
to be called and engine to be stopped

Bug:68827168
Test: Current tests pass.

Change-Id: I4b3abf4b6f91a8eeb119bdbdb19f2fb0ed9e28cd

6 years agoLog daveys
John Reck [Sat, 16 Dec 2017 00:00:48 +0000 (16:00 -0800)]
Log daveys

Bug: 70339576
Test: Checked that it logged with a lower threshold
Change-Id: I271f8af2a3ee63769edc71291b70f19512974d78

6 years agoMerge "Made Autofill Field Classification API public and documented it."
TreeHugger Robot [Sat, 16 Dec 2017 00:57:50 +0000 (00:57 +0000)]
Merge "Made Autofill Field Classification API public and documented it."

6 years agoRevert "Log an App Op when an accessibility action is performed."
Phil Weaver [Sat, 16 Dec 2017 00:55:51 +0000 (00:55 +0000)]
Revert "Log an App Op when an accessibility action is performed."

CTS tests are now throwing security exceptions for accessibility actions.

This reverts commit 19eb58959b2b9cbf0d082ddc0640a6da99c8a3dc.

Change-Id: I2027ee4cca0fcc2b38bb615a58d992ef309e2d70

6 years agoAudioService: fix isInCommunication()
Eric Laurent [Sat, 16 Dec 2017 00:54:35 +0000 (16:54 -0800)]
AudioService: fix isInCommunication()

Consider we are in call also when audio mode is MODE_IN_CALL.
This removes race conditions occuring when there is a delay between
audio mode being set to MODE_IN_CALL and the actual call state updated
in TelecomManager.

Bug: 70690373
Test: test DTMF level at various call volume on earpiece, speaker, USB
headset

Change-Id: I5e905a36e825211b6d780a285fc7b47cea3edf2b

6 years agoStats log api for attribution chain.
Yangster-mac [Tue, 12 Dec 2017 06:55:49 +0000 (22:55 -0800)]
Stats log api for attribution chain.

Test: all unit test passed.
Change-Id: I628d409e517f4f95c8da1d0c7fd4d514c1d9196d

6 years agoMap "shell ime" to "shell cmd input_method ime"
Yohei Yukawa [Sat, 16 Dec 2017 00:52:05 +0000 (16:52 -0800)]
Map "shell ime" to "shell cmd input_method ime"

This is a follow up CL to my following CLs:
 * Use IBinder#shellCommand() for 'adb shell ime' [1]
 * Add a shell command to reset selected/enabled IMEs [2]

Previously
  adb shell ime <command>
was an alias of
  adb shell cmd input_method <command>

With this CL,
  adb shell ime <command>
is now an alias of
  adb shell cmd input_method ime <command>

This allows us to rename a sub command "reset-ime" to "reset" without
worrying about ambiguity about what will be reset.

Note also that the built-in "dump" command now works only as
  shell cmd input_method dump

 [1]: I9a2dbbf1d4494addbe22c82e2c416eedc4d585f2
      926488d70d09baefee0489537b2915602deaeebf
 [2]: I1e27aa1c9edf5d9a6d529c469ad42fd1e42b13b1
      cc97ebd031b4d4be6f69e3163c362bce6878baf1

Bug: 70475949
Fixes: 70731324
Test: Manually tested as follows.
  1. make -j SoftKeyboard
  2. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  3. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
  4. adb shell ime set com.example.android.softkeyboard/.SoftKeyboard
  5. Make sure that SoftKeyboard is enabled and selected
  6. adb shell ime reset
  7. Make sure that SoftKeyboard is no longer enabled and selected
Change-Id: I2a325dcd6108e357420d47880e4cbd9f81670ec9

6 years agoMerge "Minimal reformat to match internal master." am: 0d75603ea7 am: 5df94f6c14
Elliott Hughes [Sat, 16 Dec 2017 00:47:55 +0000 (00:47 +0000)]
Merge "Minimal reformat to match internal " am: 0d75603ea7 am: 5df94f6c14
am: 98202d9c6a

Change-Id: I990a0933fe9d50a98919452f7f0513d6f036a637

6 years agoMerge "Minimal reformat to match internal master." am: 0d75603ea7
Elliott Hughes [Sat, 16 Dec 2017 00:40:08 +0000 (00:40 +0000)]
Merge "Minimal reformat to match internal " am: 0d75603ea7
am: 5df94f6c14

Change-Id: I33cc16e2a9ecd91e97b0824834760f88b13cac2e

6 years agoMerge "Minimal reformat to match internal master."
Elliott Hughes [Sat, 16 Dec 2017 00:32:22 +0000 (00:32 +0000)]
Merge "Minimal reformat to match internal master."
am: 0d75603ea7

Change-Id: I0447a57265c8a73f40dc6f75964516d31f175165

6 years agoMerge "Fix temporary file name strlcpy size."
Ivan Lozano [Sat, 16 Dec 2017 00:24:47 +0000 (00:24 +0000)]
Merge "Fix temporary file name strlcpy size."

6 years agoMerge "Minimal reformat to match internal master."
Elliott Hughes [Sat, 16 Dec 2017 00:15:02 +0000 (00:15 +0000)]
Merge "Minimal reformat to match internal master."

6 years agoNew motion curves in resources for material2
Doris Liu [Sat, 16 Dec 2017 00:08:13 +0000 (16:08 -0800)]
New motion curves in resources for material2

Bug: 63634960
Test: not yet
Change-Id: I90b8ce5518ede327cdb54b50a326b750d9a795aa

6 years agoPublish Bluetooth HID Device Profile Service API
Hansong Zhang [Thu, 7 Dec 2017 00:20:22 +0000 (16:20 -0800)]
Publish Bluetooth HID Device Profile Service API

Enable the BluetoothHidDevice API in framework.

Bug: 63384609
Test: SL4A HID test; test with apps using BluetoothHidDevice
Merged-In: I52ca4674f11179f865bdff22e0289dfe893c40f5
Change-Id: I52ca4674f11179f865bdff22e0289dfe893c40f5
(cherry picked from commit 7bb587d72b8bb5ba8bd2d7530dbd89b4faac289f)

6 years agoMerge "Adds API for apps to push events to statsd."
TreeHugger Robot [Sat, 16 Dec 2017 00:03:53 +0000 (00:03 +0000)]
Merge "Adds API for apps to push events to statsd."

6 years agoMerge "Add hints for toggles in Slice"
TreeHugger Robot [Sat, 16 Dec 2017 00:00:26 +0000 (00:00 +0000)]
Merge "Add hints for toggles in Slice"

6 years agoMerge "Notify system when uiAutomation terminates"
Phil Weaver [Sat, 16 Dec 2017 00:00:12 +0000 (00:00 +0000)]
Merge "Notify system when uiAutomation terminates"

6 years agoMove PowerWhitelistBackend to SettingsLib
Tony Mantler [Fri, 15 Dec 2017 18:09:37 +0000 (10:09 -0800)]
Move PowerWhitelistBackend to SettingsLib

Bug: 70716754
Test: RunSettingsLibRoboTests
Change-Id: Ia6f94ff643080499a7631f69b08bc6d525a35162

6 years agoFix issue #70722141: Fix broken WindowTest.testSetLocalFocus
Dianne Hackborn [Fri, 15 Dec 2017 23:44:55 +0000 (15:44 -0800)]
Fix issue #70722141: Fix broken WindowTest.testSetLocalFocus

We need to make sure to dispatch every focus change, even if
the focus itself doesn't actually change.

Bug: 70722141
Test: bit CtsViewTestCases:WindowTest\#testSetLocalFocus
Change-Id: I12f4b18b93516f3bf03fb0d4a897a968cda65f41

6 years agodocs: Revised wording, section order for ShortcutManager API ref.
Kevin Hufnagle [Sat, 2 Dec 2017 00:01:36 +0000 (16:01 -0800)]
docs: Revised wording, section order for ShortcutManager API ref.

Provided more thorough description of static shortcut options,
integrated shortcut limits section with the "updating shortcuts"
example, added more links to narrative documentation.

Test: make ds-docs -j8

Bug: 64727234
Change-Id: I70c16082e3e85a31b501c8e313d93200d827c7f4

6 years agoMerge "Consolidate Keystore alias prefixes."
Janis Danisevskis [Fri, 15 Dec 2017 23:48:55 +0000 (23:48 +0000)]
Merge "Consolidate Keystore alias prefixes."

6 years agoMerge "Add android.test.base/stubs dependency"
TreeHugger Robot [Fri, 15 Dec 2017 23:47:40 +0000 (23:47 +0000)]
Merge "Add android.test.base/stubs dependency"