OSDN Git Service

android-x86/frameworks-base.git
6 years agoFix visibility issues with android.test.mock.stubs
Paul Duffin [Tue, 19 Dec 2017 15:11:47 +0000 (15:11 +0000)]
Fix visibility issues with android.test.mock.stubs

This ensures that the API definitions for the android.test.mock package
matches the definitions in the api/current.txt file.

Bug: 30188076
Test: make update-api
Change-Id: Id325b8cf2f189117ac4cfe7634095ab710eee004

6 years agoMerge "Make WebView data directory configurable."
TreeHugger Robot [Tue, 19 Dec 2017 10:06:29 +0000 (10:06 +0000)]
Merge "Make WebView data directory configurable."

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 19 Dec 2017 09:26:18 +0000 (09:26 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Add PlatformKeyManager helper for RecoverableKeyStoreLoader"
Robert Berry [Tue, 19 Dec 2017 07:50:30 +0000 (07:50 +0000)]
Merge "Add PlatformKeyManager helper for RecoverableKeyStoreLoader"

6 years agoMerge "Statsd anomaly detection atom"
TreeHugger Robot [Tue, 19 Dec 2017 07:28:27 +0000 (07:28 +0000)]
Merge "Statsd anomaly detection atom"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 19 Dec 2017 07:25:30 +0000 (07:25 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 19 Dec 2017 07:12:23 +0000 (07:12 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Tue, 19 Dec 2017 07:04:34 +0000 (07:04 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Increase screen-on delay in ConnOnActivityStartTest."
TreeHugger Robot [Tue, 19 Dec 2017 04:58:42 +0000 (04:58 +0000)]
Merge "Increase screen-on delay in ConnOnActivityStartTest."

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 19 Dec 2017 03:44:46 +0000 (19:44 -0800)]
Import translations. DO NOT MERGE

Change-Id: I221002ba36f7421b5f894f4db4ef05ecf5e4e16f
Auto-generated-cl: translation import

6 years agoMerge "Add RecoverableKeyStoreLoader implementation in LockSettingsService."
TreeHugger Robot [Tue, 19 Dec 2017 03:17:29 +0000 (03:17 +0000)]
Merge "Add RecoverableKeyStoreLoader implementation in LockSettingsService."

6 years agoMerge "Remove IIncidentReportCompleted and gmscore WW module would listen to android...
TreeHugger Robot [Tue, 19 Dec 2017 02:30:28 +0000 (02:30 +0000)]
Merge "Remove IIncidentReportCompleted and gmscore WW module would listen to android.intent.action.DROPBOX_ENTRY_ADDED and look up incident tag then upload the report."

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 19 Dec 2017 02:10:17 +0000 (18:10 -0800)]
Import translations. DO NOT MERGE

Change-Id: If9842d6d8f20245c2e29ec0827e859135d2e8916
Auto-generated-cl: translation import

6 years agoMerge "align metrics start time to the previous 5 min start, instead of the next...
TreeHugger Robot [Tue, 19 Dec 2017 01:51:50 +0000 (01:51 +0000)]
Merge "align metrics start time to the previous 5 min start, instead of the next 5 min start. Also refactor config check condition to be more readable."

6 years agoIncrease screen-on delay in ConnOnActivityStartTest.
Sudheer Shanka [Tue, 19 Dec 2017 01:44:50 +0000 (17:44 -0800)]
Increase screen-on delay in ConnOnActivityStartTest.

Test: ran the test.
Change-Id: Ib3ae7719b2621877f5dbeea0de8d18cdebfbd3b9

6 years agoMerge "incidentd: Adding graphicsstats dump."
TreeHugger Robot [Tue, 19 Dec 2017 01:34:49 +0000 (01:34 +0000)]
Merge "incidentd: Adding graphicsstats dump."

6 years agoMerge "Renaming a file causes it to be rescanned"
Sean Stout [Tue, 19 Dec 2017 01:14:30 +0000 (01:14 +0000)]
Merge "Renaming a file causes it to be rescanned"

6 years agoMerge "incidentd: Dumping java process meminfo data."
TreeHugger Robot [Tue, 19 Dec 2017 01:07:49 +0000 (01:07 +0000)]
Merge "incidentd: Dumping java process meminfo data."

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 19 Dec 2017 01:05:03 +0000 (17:05 -0800)]
Import translations. DO NOT MERGE

Change-Id: I74e2abd1288eb7ae69b5832f5450fbb71980ddef
Auto-generated-cl: translation import

6 years agoMerge "Rename set_wakeup_callback" am: 7e3de17f3d am: 5611305abe
Steve Paik [Tue, 19 Dec 2017 00:56:33 +0000 (00:56 +0000)]
Merge "Rename set_wakeup_callback" am: 7e3de17f3d am: 5611305abe
am: 9eb7d2e002

Change-Id: I1c50e19d06d3f667f9eb4e00156d22494cbb44c3

6 years agoMerge "Private API became public..." am: eb44ebbfcd am: 85fc4d6dd6
Elliott Hughes [Tue, 19 Dec 2017 00:50:31 +0000 (00:50 +0000)]
Merge "Private API became public..." am: eb44ebbfcd am: 85fc4d6dd6
am: 746a738276

Change-Id: Ifb1fd8dc812d160cd998ba23371e0cfff0c43adb

6 years agoMerge "[ipsec-qtaguid] Tag sockets upon creation of encap sockets" am: d0ac50bcad...
Benedict Wong [Tue, 19 Dec 2017 00:41:55 +0000 (00:41 +0000)]
Merge "[ipsec-qtaguid] Tag sockets upon creation of encap sockets" am: d0ac50bcad am: 8caa274ade
am: 9de5c77303

Change-Id: I4140f386687c579044f9b5fe59dd7e05f86000fe

6 years agoMerge "Rename set_wakeup_callback" am: 7e3de17f3d
Steve Paik [Tue, 19 Dec 2017 00:40:59 +0000 (00:40 +0000)]
Merge "Rename set_wakeup_callback" am: 7e3de17f3d
am: 5611305abe

Change-Id: I3434d6657ca905b12fb73beca65473f3149202bb

6 years agoMerge "Private API became public..." am: eb44ebbfcd
Elliott Hughes [Tue, 19 Dec 2017 00:35:58 +0000 (00:35 +0000)]
Merge "Private API became public..." am: eb44ebbfcd
am: 85fc4d6dd6

Change-Id: I9ccfc88dc7d86462e323e32ce2b13726e05ec1c3

6 years agoMerge "Move heavy-weight process state down to cached range."
TreeHugger Robot [Tue, 19 Dec 2017 00:29:31 +0000 (00:29 +0000)]
Merge "Move heavy-weight process state down to cached range."

6 years agoMerge "Rename set_wakeup_callback"
Steve Paik [Tue, 19 Dec 2017 00:29:22 +0000 (00:29 +0000)]
Merge "Rename set_wakeup_callback"
am: 7e3de17f3d

Change-Id: Ic4a3d630d76e333e71a746a237d45a5fb3414994

6 years agoMerge "[ipsec-qtaguid] Tag sockets upon creation of encap sockets" am: d0ac50bcad
Benedict Wong [Tue, 19 Dec 2017 00:27:57 +0000 (00:27 +0000)]
Merge "[ipsec-qtaguid] Tag sockets upon creation of encap sockets" am: d0ac50bcad
am: 8caa274ade

Change-Id: I2f27c76a1f493ff4f0bd423c06f159e629866d4d

6 years agoMerge "Private API became public..."
Elliott Hughes [Tue, 19 Dec 2017 00:24:28 +0000 (00:24 +0000)]
Merge "Private API became public..."
am: eb44ebbfcd

Change-Id: I9ec4e8bb8609a29ed48d2862913c007d8f4e83c6

6 years agoMerge changes I798d8fec,I4a2d5866 am: c5212b6654 am: 99be302c71
Hugo Benichi [Tue, 19 Dec 2017 00:23:04 +0000 (00:23 +0000)]
Merge changes I798d8fec,I4a2d5866 am: c5212b6654 am: 99be302c71
am: fe9e89820d  -s ours

Change-Id: Ib8024661997e84e64cd56a3ca9ee17c514122ead

6 years agoMerge changes from topic "aod_wallpapers"
TreeHugger Robot [Tue, 19 Dec 2017 00:18:49 +0000 (00:18 +0000)]
Merge changes from topic "aod_wallpapers"

* changes:
  Hide AoD wallpaper after 1min
  Support wallpapers in AoD

6 years agoMerge "[ipsec-qtaguid] Tag sockets upon creation of encap sockets"
Benedict Wong [Tue, 19 Dec 2017 00:16:29 +0000 (00:16 +0000)]
Merge "[ipsec-qtaguid] Tag sockets upon creation of encap sockets"
am: d0ac50bcad

Change-Id: If2f71108d0c3d5742ee39b041f5fa886aac820cb

6 years agoImport translations. DO NOT MERGE
Bill Yi [Tue, 19 Dec 2017 00:06:28 +0000 (16:06 -0800)]
Import translations. DO NOT MERGE

Change-Id: I73ab704a940d42820e1df773a877f969292e6213
Auto-generated-cl: translation import

6 years agoMerge "Rename set_wakeup_callback"
Treehugger Robot [Tue, 19 Dec 2017 00:06:15 +0000 (00:06 +0000)]
Merge "Rename set_wakeup_callback"

6 years agoMerge changes I798d8fec,I4a2d5866 am: c5212b6654
Hugo Benichi [Tue, 19 Dec 2017 00:06:00 +0000 (00:06 +0000)]
Merge changes I798d8fec,I4a2d5866 am: c5212b6654
am: 99be302c71

Change-Id: I41b507c4e4bf9b8b9082f5e7eaab8985b5bbef41

6 years agoMerge "Add popup item content to id/content where applicable"
TreeHugger Robot [Tue, 19 Dec 2017 00:05:31 +0000 (00:05 +0000)]
Merge "Add popup item content to id/content where applicable"

6 years agoAdd RecoverableKeyStoreLoader implementation in LockSettingsService.
Dmitry Dementyev [Mon, 11 Dec 2017 19:33:12 +0000 (11:33 -0800)]
Add RecoverableKeyStoreLoader implementation in LockSettingsService.

1) Updates to ILockSettings.aidl
Since we can't pass arbitrary exception using IPC, Serrvice
converts them to ServiceSpecificException with an error code.

2) Added RecoverableKeyStoreManager class which is used as interface
between RecoverableKeyStoreLoader implementation and
LockSettingsService.

Test: none
Bug: 66499222

Change-Id: I03b695bc0ced1a91ea7ca5de179e121053dfe416

6 years agoStatsd anomaly detection atom
Bookatz [Mon, 18 Dec 2017 21:01:10 +0000 (13:01 -0800)]
Statsd anomaly detection atom

Creates an atom to represent when statsd's anomaly detection alert
fires, so that statsd can log when it detects an anomaly (in the output
and for any further processing).

Test: manually confirmed that atom was logged
Change-Id: I3376e4038bdc3402a536aab7cebad24b104a9aee

6 years agoMerge "Private API became public..."
Elliott Hughes [Mon, 18 Dec 2017 23:58:15 +0000 (23:58 +0000)]
Merge "Private API became public..."

6 years agoMerge changes I798d8fec,I4a2d5866
Hugo Benichi [Mon, 18 Dec 2017 23:57:15 +0000 (23:57 +0000)]
Merge changes I798d8fec,I4a2d5866
am: c5212b6654

Change-Id: Idf04186ece2738c113e2e33c5e7a5133aa437933

6 years agoalign metrics start time to the previous 5 min start, instead
Chenjie Yu [Mon, 18 Dec 2017 23:20:00 +0000 (15:20 -0800)]
align metrics start time to the previous 5 min start, instead
of the next 5 min start. Also refactor config check condition
to be more readable.

Test: unit test
Change-Id: Iaa6b4a59d27c52996723862d92080d90c9e794cb

6 years agoMerge "Add new key KEY_CARRIER_CONFIG_OVERRIDE_BOOL" am: 7be7d422a2 am: 784a690ec7
Ying Xu [Mon, 18 Dec 2017 23:51:01 +0000 (23:51 +0000)]
Merge "Add new key KEY_CARRIER_CONFIG_OVERRIDE_BOOL" am: 7be7d422a2 am: 784a690ec7
am: 74ee537cca

Change-Id: I35d6ac35a2244cbfcf69cec2da4cd71e721e5e6b

6 years agoMerge "[ipsec-qtaguid] Tag sockets upon creation of encap sockets"
Benedict Wong [Mon, 18 Dec 2017 23:50:52 +0000 (23:50 +0000)]
Merge "[ipsec-qtaguid] Tag sockets upon creation of encap sockets"

6 years agoMerge changes I798d8fec,I4a2d5866
Hugo Benichi [Mon, 18 Dec 2017 23:43:06 +0000 (23:43 +0000)]
Merge changes I798d8fec,I4a2d5866

* changes:
  MacAddress: address api review comments
  Expose the MacAddress class in the api

6 years agoMerge "Add new key KEY_CARRIER_CONFIG_OVERRIDE_BOOL" am: 7be7d422a2
Ying Xu [Mon, 18 Dec 2017 23:42:03 +0000 (23:42 +0000)]
Merge "Add new key KEY_CARRIER_CONFIG_OVERRIDE_BOOL" am: 7be7d422a2
am: 784a690ec7

Change-Id: I0e4098cfd0fe0d78e2d5de33a193da1095974ea6

6 years agoincidentd: Adding graphicsstats dump.
Kweku Adams [Thu, 14 Dec 2017 20:56:28 +0000 (12:56 -0800)]
incidentd: Adding graphicsstats dump.

Thanks to ag/3249934, the graphicsstats.proto file no longer needs to
explicitly declare "optimize_for = LITE_RUNTIME".

Bug: 65750815
Test: flash device and check incident.proto output.
Change-Id: I2d3d44d5351c225b2cd45bab0ed3a435a4467187

6 years agoMerge "Add new key KEY_CARRIER_CONFIG_OVERRIDE_BOOL"
Ying Xu [Mon, 18 Dec 2017 23:34:51 +0000 (23:34 +0000)]
Merge "Add new key KEY_CARRIER_CONFIG_OVERRIDE_BOOL"
am: 7be7d422a2

Change-Id: I9d71fb9956f2300d683893da8dd3a78ca8320bc8

6 years agoMerge "Add new key KEY_CARRIER_CONFIG_OVERRIDE_BOOL"
Ying Xu [Mon, 18 Dec 2017 23:26:25 +0000 (23:26 +0000)]
Merge "Add new key KEY_CARRIER_CONFIG_OVERRIDE_BOOL"

6 years agoAdd PlatformKeyManager helper for RecoverableKeyStoreLoader
Robert Berry [Mon, 11 Dec 2017 14:34:29 +0000 (14:34 +0000)]
Add PlatformKeyManager helper for RecoverableKeyStoreLoader

Manages generating the platform key and then loading it into AndroidKeyStore
with different permissions for 'decrypt' and 'encrypt'. Encrypt should be always
available, so as to enable us to generate application keys at any time, and be
able to sync them wrapped with the platform key to disk. Decrypt should only be
available shortly after a screen unlock - i.e., so that we can unwrap the keys
persisted to disk, then rewrap them with the recovery key and sync them to the
remote storage.

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

6 years agoMerge "Add PlatformEncryptionKey (again)"
Robert Berry [Mon, 18 Dec 2017 23:24:44 +0000 (23:24 +0000)]
Merge "Add PlatformEncryptionKey (again)"

6 years agoincidentd: Dumping java process meminfo data.
Kweku Adams [Wed, 6 Dec 2017 22:53:50 +0000 (14:53 -0800)]
incidentd: Dumping java process meminfo data.

Bug: 65750823
Test: flash device and check incident.proto output
Change-Id: I9b10daddf0580b3fab4ed7970fb838a605eef0e6

6 years agoMove heavy-weight process state down to cached range.
Dianne Hackborn [Sat, 16 Dec 2017 00:32:19 +0000 (16:32 -0800)]
Move heavy-weight process state down to cached range.

This allows us to generally treat heavy-weight processes in
the background as cached processes, applying all of the limitations
we want for such things -- disable wake locks, etc.

Test: run-am-test ActivityManagerProcessStateTest
Bug: 63937884
Change-Id: I7c140c8f48188f6aa9c09731e83e3db4e4405e77

6 years agoMerge "Enabled SQLiteCompatibilityWalFlags class"
Fyodor Kupolov [Mon, 18 Dec 2017 22:29:31 +0000 (22:29 +0000)]
Merge "Enabled SQLiteCompatibilityWalFlags class"

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 ago[ipsec-qtaguid] Tag sockets upon creation of encap sockets
Benedict Wong [Mon, 4 Dec 2017 03:42:36 +0000 (19:42 -0800)]
[ipsec-qtaguid] Tag sockets upon creation of encap sockets

Added calls to tag encap sockets to that of the UID for which the encap
socket is being created on behalf of. This ensures that all data
accounting generated for the UDP-encap-ESP socket is correctly billed to
the right UID.

Bug: 62994731
Test: New tests added to IpSecServiceTest.java, passing
Change-Id: I15365ea9c982fd7b4e3cdeff314ddfba2289c86e

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 agoHide AoD wallpaper after 1min
Lucas Dupin [Wed, 13 Dec 2017 08:13:57 +0000 (00:13 -0800)]
Hide AoD wallpaper after 1min

Hide wallpaper by cross fading back scrim. This increases
battery life since black pixels won't drain power.

Bug: 64155983
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Test: set AoD wallpaper, wait for 1 min.
Test: set AoD wallpaper, wait for 50 sec, go to pulsing, wait 10 sec.
Change-Id: Ie830c2fd20f9e60efbfd9e78f248603df07ae93c

6 years agoAdd PlatformEncryptionKey (again)
Robert Berry [Mon, 18 Dec 2017 19:26:22 +0000 (19:26 +0000)]
Add PlatformEncryptionKey (again)

Version 2 of this. The other change had to be reverted due to breaking
the build. This is almost identical, just with some additional fixes for
the database api.

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

6 years agoSupport wallpapers in AoD
Lucas Dupin [Tue, 22 Aug 2017 19:51:25 +0000 (12:51 -0700)]
Support wallpapers in AoD

Such wallpaper has to define supportsAmbientMode,
and set it to true on its android.service.wallpaper
meta data.

Also introduces WallpaperService.Engine#onAmbientModeChanged
to notify a live wallpaper that the display state has changed.

Change-Id: I49e846069a698b3cc3bb6e7cda98172920eaae4c
Bug: 64155983
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/DozeWallpaperStateTest.java
Test: runtest -x frameworks/base/tests/Internal/src/android/app/WallpaperInfoTest.java
Test: runtest -x frameworks/base/tests/Internal/src/android/service/wallpaper/WallpaperServiceTest.java
Test: set AoD wallpaper, go to aod, lock screen, launcher
Test: set regular wallpaper, go to aod, lock screen, launcher

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 agoRename set_wakeup_callback
Steve Paik [Mon, 18 Dec 2017 18:23:31 +0000 (10:23 -0800)]
Rename set_wakeup_callback

Part of refactoring libsuspend.  Renamed set_wakeup_callback
to be consistent with rest of autosuspend_* interfaces.

Bug: 70669809
Test:  Compiles
Change-Id: I15fc8757b2343447ed79d1dd1af162afd5401007

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