OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Merge "Add Notification Flag behavior test" am: 89bb1971d0 am: dee5f9a738...
Android Build Merger (Role) [Thu, 21 Dec 2017 20:06:07 +0000 (20:06 +0000)]
Merge "Merge "Add Notification Flag behavior test" am: 89bb1971d0 am: dee5f9a738 am: a33e1dd26f  -s ours"

6 years agoMerge "Add Notification Flag behavior test" am: 89bb1971d0 am: dee5f9a738
Yan Sun [Thu, 21 Dec 2017 20:05:39 +0000 (20:05 +0000)]
Merge "Add Notification Flag behavior test" am: 89bb1971d0 am: dee5f9a738
am: a33e1dd26f  -s ours

Change-Id: I98caf6c319a21ebd5f85c1c740691ddcd31894ba

6 years agoMerge "Merge "Fix random systemui crashes during cts test DO NOT MERGE" am: d8514e82a...
Android Build Merger (Role) [Thu, 21 Dec 2017 20:01:19 +0000 (20:01 +0000)]
Merge "Merge "Fix random systemui crashes during cts test DO NOT MERGE" am: d8514e82aa  -s ours am: e9940be86d am: cb9ded1d30  -s ours"

6 years agoMerge "Fix random systemui crashes during cts test DO NOT MERGE" am: d8514e82aa ...
Chrison.chai [Thu, 21 Dec 2017 20:00:54 +0000 (20:00 +0000)]
Merge "Fix random systemui crashes during cts test DO NOT MERGE" am: d8514e82aa  -s ours am: e9940be86d
am: cb9ded1d30  -s ours

Change-Id: I879999d0033e242d02c50bf6ea4a2c40a433a871

6 years agoMerge "Merge "Testables lib should not statically link mockito" am: 47d04fc5c0 am...
Android Build Merger (Role) [Thu, 21 Dec 2017 19:59:57 +0000 (19:59 +0000)]
Merge "Merge "Testables lib should not statically link mockito" am: 47d04fc5c0 am: b42cd23425 am: 0a6f66e9a9  -s ours"

6 years agoMerge "Testables lib should not statically link mockito" am: 47d04fc5c0 am: b42cd23425
Philip P. Moltmann [Thu, 21 Dec 2017 19:59:29 +0000 (19:59 +0000)]
Merge "Testables lib should not statically link mockito" am: 47d04fc5c0 am: b42cd23425
am: 0a6f66e9a9  -s ours

Change-Id: I86a59fd6006a3ba59b237044c61ab1d5c2a61333

6 years agoMerge "Merge "Receiving side Call handover API implementation." am: 3c7bc2dc06 am...
Android Build Merger (Role) [Thu, 21 Dec 2017 19:54:55 +0000 (19:54 +0000)]
Merge "Merge "Receiving side Call handover API implementation." am: 3c7bc2dc06 am: 151c15445a am: c65e740f98  -s ours"

6 years agoMerge "Receiving side Call handover API implementation." am: 3c7bc2dc06 am: 151c15445a
Sanket Padawe [Thu, 21 Dec 2017 19:54:03 +0000 (19:54 +0000)]
Merge "Receiving side Call handover API implementation." am: 3c7bc2dc06 am: 151c15445a
am: c65e740f98  -s ours

Change-Id: I457622e41c15891142a51140b083d1d6b465e10e

6 years agoMerge "Obtain cellular related battery statistics"
Siddharth Ray [Thu, 21 Dec 2017 19:53:54 +0000 (19:53 +0000)]
Merge "Obtain cellular related battery statistics"

6 years agoMerge "Use NetworkStatsService to get stats for apps" am: 693d8a2ab1 am: fa7f4015fc
Chenbo Feng [Thu, 21 Dec 2017 19:49:25 +0000 (19:49 +0000)]
Merge "Use NetworkStatsService to get stats for apps" am: 693d8a2ab1 am: fa7f4015fc
am: 09a81e4da1

Change-Id: I90ce68a72afbf596e28d987e925795709d24dd52

6 years agoMerge "Move ServiceListing to SettingsLib and add tests"
TreeHugger Robot [Thu, 21 Dec 2017 19:44:38 +0000 (19:44 +0000)]
Merge "Move ServiceListing to SettingsLib and add tests"

6 years agoMerge "Add Notification Flag behavior test" am: 89bb1971d0
Yan Sun [Thu, 21 Dec 2017 19:36:32 +0000 (19:36 +0000)]
Merge "Add Notification Flag behavior test" am: 89bb1971d0
am: dee5f9a738

Change-Id: Ib7aa75882fb1b8d3c3380ec680969abe252cbff1

6 years agoMerge "Fix random systemui crashes during cts test DO NOT MERGE" am: d8514e82aa ...
Chrison.chai [Thu, 21 Dec 2017 19:32:18 +0000 (19:32 +0000)]
Merge "Fix random systemui crashes during cts test DO NOT MERGE" am: d8514e82aa  -s ours
am: e9940be86d

Change-Id: I77051a94b2e8694d378973c79310befca933515b

6 years agoMerge "Testables lib should not statically link mockito" am: 47d04fc5c0
Philip P. Moltmann [Thu, 21 Dec 2017 19:28:17 +0000 (19:28 +0000)]
Merge "Testables lib should not statically link mockito" am: 47d04fc5c0
am: b42cd23425

Change-Id: I7d7096cf24234925256895c3527f44e72cf07493

6 years agoMerge "Add TestApi to disable the TextClock clock tick."
TreeHugger Robot [Thu, 21 Dec 2017 19:23:41 +0000 (19:23 +0000)]
Merge "Add TestApi to disable the TextClock clock tick."

6 years agoMerge "Receiving side Call handover API implementation." am: 3c7bc2dc06
Sanket Padawe [Thu, 21 Dec 2017 19:19:54 +0000 (19:19 +0000)]
Merge "Receiving side Call handover API implementation." am: 3c7bc2dc06
am: 151c15445a

Change-Id: Ie5c522cd1c9c3b0da254cf1fa9f1a756361a4e3f

6 years agoMerge "Add Notification Flag behavior test"
Yan Sun [Thu, 21 Dec 2017 19:17:32 +0000 (19:17 +0000)]
Merge "Add Notification Flag behavior test"
am: 89bb1971d0

Change-Id: I0948f245fee622b5acd1a1bb414e7a2e20090dc8

6 years agoMerge "Use NetworkStatsService to get stats for apps" am: 693d8a2ab1
Chenbo Feng [Thu, 21 Dec 2017 19:15:29 +0000 (19:15 +0000)]
Merge "Use NetworkStatsService to get stats for apps" am: 693d8a2ab1
am: fa7f4015fc

Change-Id: I14f614a86214bd4f006415c48b9a8323e06c737f

6 years agoMerge "Fix random systemui crashes during cts test DO NOT MERGE"
Chrison.chai [Thu, 21 Dec 2017 19:14:40 +0000 (19:14 +0000)]
Merge "Fix random systemui crashes during cts test DO NOT MERGE"
am: d8514e82aa  -s ours

Change-Id: Ib0b5affb287771dfc965ebe0a05791849aa919c8

6 years agoMerge "Using new usbhost function usb_device_get_string_ucs2() to get USB descriptor...
TreeHugger Robot [Thu, 21 Dec 2017 19:14:37 +0000 (19:14 +0000)]
Merge "Using new usbhost function usb_device_get_string_ucs2() to get USB descriptor strings."

6 years agoMerge "Testables lib should not statically link mockito"
Philip P. Moltmann [Thu, 21 Dec 2017 19:12:57 +0000 (19:12 +0000)]
Merge "Testables lib should not statically link mockito"
am: 47d04fc5c0

Change-Id: I4aee182a94fa62a8a254f0bbc480b4de1a4ed688

6 years agoMerge "[AWARE] Check dynamic location permission"
Etan Cohen [Thu, 21 Dec 2017 18:47:46 +0000 (18:47 +0000)]
Merge "[AWARE] Check dynamic location permission"

6 years agoMerge "Add userId to RecoverableKeyStoreDb"
Robert Berry [Thu, 21 Dec 2017 18:42:37 +0000 (18:42 +0000)]
Merge "Add userId to RecoverableKeyStoreDb"

6 years agoMerge "Fix doFadingAnimationLocked in sanitized builds."
Ivan Lozano [Thu, 21 Dec 2017 18:29:00 +0000 (18:29 +0000)]
Merge "Fix doFadingAnimationLocked in sanitized builds."

6 years agoMerge "Add asn1 to platform."
Jiuyu Sun [Thu, 21 Dec 2017 18:28:36 +0000 (18:28 +0000)]
Merge "Add asn1 to platform."

6 years agoMerge "doc: Fixing Javadoc formatting problems." into oc-mr1-dev am: 7835c650b2
Andrew Solovay [Thu, 21 Dec 2017 17:56:48 +0000 (17:56 +0000)]
Merge "doc: Fixing Javadoc formatting problems." into oc-mr1-dev am: 7835c650b2
am: 7ad3eb8db0  -s ours

Change-Id: Ib0b4de07702d6a7337e47f72fe1b5d31039a5454

6 years agoMerge "Add Notification Flag behavior test"
Treehugger Robot [Thu, 21 Dec 2017 17:54:34 +0000 (17:54 +0000)]
Merge "Add Notification Flag behavior test"

6 years agoImport translations. DO NOT MERGE am: 406659b709 -s ours am: 1fccf167ff -s ours...
Bill Yi [Thu, 21 Dec 2017 17:53:27 +0000 (17:53 +0000)]
Import translations. DO NOT MERGE am: 406659b709  -s ours am: 1fccf167ff  -s ours am: daa1d87e50  -s ours am: 0e62ea2f4c  -s ours am: c5dff435b0  -s ours
am: 16a7391b2a  -s ours

Change-Id: I5a1fa1ae1bd8cf10fe404fc43f0e5e3357d48af1

6 years agoMove ServiceListing to SettingsLib and add tests
Tony Mantler [Wed, 20 Dec 2017 23:53:33 +0000 (15:53 -0800)]
Move ServiceListing to SettingsLib and add tests

Bug: 70902607
Test: RunSettingsLibRoboTests
Change-Id: I172092f8c249e76667136442080d5fd7a6a6ef01

6 years agoMerge "doc: Fixing Javadoc formatting problems." into oc-mr1-dev
Andrew Solovay [Thu, 21 Dec 2017 17:42:46 +0000 (17:42 +0000)]
Merge "doc: Fixing Javadoc formatting problems." into oc-mr1-dev
am: 7835c650b2

Change-Id: I662ac186b079d88fc503fa546b52b1297b98a036

6 years agoMerge "Receiving side Call handover API implementation."
Sanket Padawe [Thu, 21 Dec 2017 17:41:40 +0000 (17:41 +0000)]
Merge "Receiving side Call handover API implementation."
am: 3c7bc2dc06

Change-Id: I7badcfaf9d308fb05745b0f37ee99603f5eee1c2

6 years agoMerge "Use NetworkStatsService to get stats for apps"
Chenbo Feng [Thu, 21 Dec 2017 17:38:12 +0000 (17:38 +0000)]
Merge "Use NetworkStatsService to get stats for apps"
am: 693d8a2ab1

Change-Id: I81a28a172e69fc405e99eb9c3a4fd0c729ca613d

6 years agoMerge "Enable settings search v2 experiement"
Fan Zhang [Thu, 21 Dec 2017 17:29:32 +0000 (17:29 +0000)]
Merge "Enable settings search v2 experiement"

6 years agoMerge "Allow system server to query local WiFi MAC address"
TreeHugger Robot [Thu, 21 Dec 2017 17:20:04 +0000 (17:20 +0000)]
Merge "Allow system server to query local WiFi MAC address"

6 years agoMerge "Fix accessibility reporting for lock screen PIN"
Phil Weaver [Thu, 21 Dec 2017 17:12:29 +0000 (17:12 +0000)]
Merge "Fix accessibility reporting for lock screen PIN"

6 years agoMerge "Added @TestApi on new Autofill settings for field classification."
TreeHugger Robot [Thu, 21 Dec 2017 17:12:12 +0000 (17:12 +0000)]
Merge "Added @TestApi on new Autofill settings for field classification."

6 years agoUsing new usbhost function usb_device_get_string_ucs2() to get USB descriptor strings.
Paul McLean [Tue, 19 Dec 2017 18:14:36 +0000 (12:14 -0600)]
Using new usbhost function usb_device_get_string_ucs2() to get USB descriptor strings.

Bug: 70163357
Test: Manual - Connect NuForce (micro) DAC. Examine device name descriptor string.
Note also that it doesn't reboot the device on connection. Verify that audio
plays correctly.

Change-Id: I4b607c51a951cf503fde0b485793dfc9e593f932

6 years agoMerge "Add id to SecurityEvent."
Naomi Musgrave [Thu, 21 Dec 2017 16:09:32 +0000 (16:09 +0000)]
Merge "Add id to SecurityEvent."

6 years agoMerge "Move clock to the left, carrier text to the bottom"
TreeHugger Robot [Thu, 21 Dec 2017 16:09:21 +0000 (16:09 +0000)]
Merge "Move clock to the left, carrier text to the bottom"

6 years agoMerge "Add plsCertsNoVerifyOnlyCerts to ApkSignatureVerifier."
TreeHugger Robot [Thu, 21 Dec 2017 16:00:22 +0000 (16:00 +0000)]
Merge "Add plsCertsNoVerifyOnlyCerts to ApkSignatureVerifier."

6 years agoAdd id to SecurityEvent.
Naomi Musgrave [Tue, 28 Nov 2017 10:56:47 +0000 (10:56 +0000)]
Add id to SecurityEvent.

Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java
Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/SecurityEventTest.java
Bug: 63910201
Change-Id: I053ec9d6c8281d637ace5dc89057e5f7b5ad6554

6 years agoMerge "Fix random systemui crashes during cts test DO NOT MERGE"
Treehugger Robot [Thu, 21 Dec 2017 15:27:44 +0000 (15:27 +0000)]
Merge "Fix random systemui crashes during cts test DO NOT MERGE"

6 years agoMerge "Testables lib should not statically link mockito"
Treehugger Robot [Thu, 21 Dec 2017 15:27:23 +0000 (15:27 +0000)]
Merge "Testables lib should not statically link mockito"

6 years agoMerge "Testables lib should not statically link mockito"
Philip P. Moltmann [Thu, 21 Dec 2017 15:24:59 +0000 (15:24 +0000)]
Merge "Testables lib should not statically link mockito"

6 years agoMove clock to the left, carrier text to the bottom
Evan Laird [Mon, 18 Dec 2017 16:22:39 +0000 (11:22 -0500)]
Move clock to the left, carrier text to the bottom

This change moves the clock to the left of status bar and QS screen.
Also removes the date/alarm clock group at the bottom of QS and replaces
it with carrier text.

Test: visual
Bug: 63772836
Bug: 70799093
Change-Id: I7d0a30c126c52745237c647a4af5af46d8418f30

6 years agoFix random systemui crashes during cts test DO NOT MERGE
Chrison.chai [Wed, 15 Nov 2017 01:31:26 +0000 (09:31 +0800)]
Fix random systemui crashes during cts test DO NOT MERGE

    systemui may crash due
    to an uninitialized value of mNavigationBar probably because
    of some race condition during initialization caused by emulation
    performance issues:

    11-01 19:48:58.634  5064  5064 E AndroidRuntime: FATAL EXCEPTION: main
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: Process: com.android.systemui, PID: 5064
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.systemui.statusbar.phone.LightBarTransitionsController.dump (java.io.FileDescriptor, java.io.PrintWriter, java.lang.String[])' on a null object reference
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.systemui.statusbar.phone.LightBarController.dump(LightBarController.java:241)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.systemui.statusbar.phone.StatusBar.dump(StatusBar.java:3448)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.systemui.SystemBars.dump(SystemBars.java:48)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.systemui.SystemUIService.dump(SystemUIService.java:52)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.app.ActivityThread.handleDumpService(ActivityThread.java:3488)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.app.ActivityThread.-wrap9(Unknown Source:0)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.app.ActivityThread.handleMessage(ActivityThread.java:1726)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:105)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.os.Looper.loop(Looper.java:164)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6541)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.internal.os.Zygote.run(Zygote.java:240)
    11-01 19:48:58.634  5064  5064 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)

    This patches adds an explicit checks for (mNavigationBar != null)
    everywhere it is used.

    Test: cts test.

Change-Id: I8056aef54a10bbb1970bc2ce4913e7a618498fd3

6 years agoMerge "Profile lock timeout."
TreeHugger Robot [Thu, 21 Dec 2017 13:37:42 +0000 (13:37 +0000)]
Merge "Profile lock timeout."

6 years agoAdd userId to RecoverableKeyStoreDb
Robert Berry [Thu, 21 Dec 2017 13:37:23 +0000 (13:37 +0000)]
Add userId to RecoverableKeyStoreDb

We need to store the userId (i.e., the uid of the *profile*, not the
app), as well as the app uid. This is because when the screen is
unlocked, the unlock is associated with a specific user profile, not
a specific app. So at that point we need to look up all keys that
are pending sync for that *user*, and upload 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: I6c456cca8974f5e1a15dfde6e9dd4e6bf4c16065

6 years agoMerge "Use testng for utilities in tests"
TreeHugger Robot [Thu, 21 Dec 2017 13:26:16 +0000 (13:26 +0000)]
Merge "Use testng for utilities in tests"

6 years agoMerge "Remove android.test.mock classes from android.jar"
Paul Duffin [Thu, 21 Dec 2017 12:53:20 +0000 (12:53 +0000)]
Merge "Remove android.test.mock classes from android.jar"

6 years agoUse testng for utilities in tests
Bernardo Rufino [Thu, 21 Dec 2017 11:43:16 +0000 (11:43 +0000)]
Use testng for utilities in tests

Frameworks services tests and cts already use it.

Test: m -j RunFrameworksServicesRoboTests
Change-Id: Ib613997e9a7278f6b424cd4ce4aa16c112756564

6 years agoRemove android.test.mock classes from android.jar
Paul Duffin [Fri, 15 Dec 2017 15:49:08 +0000 (15:49 +0000)]
Remove android.test.mock classes from android.jar

This removes all android.test.mock from the main android.jar.

This change is being done now rather than wait until they can all be
removed together because the code base is a moving target. Doing this
change minimizes the window during which other developers could either
revert the previous changes that make this possible or add new code that
relies on the android.test.mock classes being in android.jar and so
would require yet more changes.

Bug: 30188076
Test: make checkbuild
Change-Id: I3d31e4528c99e2e297aaec9c4b657bdd305bd464

6 years agoWorkSource: Fix NPE on set(int) / set(int, String).
Narayan Kamath [Thu, 21 Dec 2017 09:43:38 +0000 (09:43 +0000)]
WorkSource: Fix NPE on set(int) / set(int, String).

mChains might be null.

Bug: 62390666
Test: WorkSourceTest
Test: run cts-dev -m CtsOsTestCases -t android.os.cts.WorkSourceTest
Change-Id: I1dbc2abc576c280ad41ad6214745b0d34c5727a0

6 years agoMerge "Add tests for KeySyncUtils now that SecureBox is available"
Robert Berry [Thu, 21 Dec 2017 08:42:53 +0000 (08:42 +0000)]
Merge "Add tests for KeySyncUtils now that SecureBox is available"

6 years agoMerge "Fix over-granting permission on low ram"
Zhi An Ng [Thu, 21 Dec 2017 06:20:22 +0000 (06:20 +0000)]
Merge "Fix over-granting permission on low ram"

6 years agoMerge "Remove the hacky HashableDimensionKey."
TreeHugger Robot [Thu, 21 Dec 2017 06:16:24 +0000 (06:16 +0000)]
Merge "Remove the hacky HashableDimensionKey."

6 years agoMerge "Add log source filtering in statsd to filter out spams."
TreeHugger Robot [Thu, 21 Dec 2017 06:15:04 +0000 (06:15 +0000)]
Merge "Add log source filtering in statsd to filter out spams."

6 years agoMerge "Notify RecoverableKeyStoreLoader about successful unlock."
TreeHugger Robot [Thu, 21 Dec 2017 05:34:56 +0000 (05:34 +0000)]
Merge "Notify RecoverableKeyStoreLoader about successful unlock."

6 years agoMerge "MacAddress: address api review comments"
Hugo Benichi [Thu, 21 Dec 2017 05:01:49 +0000 (05:01 +0000)]
Merge "MacAddress: address api review comments"

6 years agoMerge changes Ie1eb63dc,Ib7cc4d52
TreeHugger Robot [Thu, 21 Dec 2017 04:55:15 +0000 (04:55 +0000)]
Merge changes Ie1eb63dc,Ib7cc4d52

* changes:
  Renames setCallbackOnComplete method in ContextHubTransaction
  Rename ContextHubTransaction.Result IntDef

6 years agoMerge "New Autofill API:AutofillManager.getAutofillServiceComponentName()"
TreeHugger Robot [Thu, 21 Dec 2017 04:48:35 +0000 (04:48 +0000)]
Merge "New Autofill API:AutofillManager.getAutofillServiceComponentName()"

6 years agoMerge "Remove scale effect from screen off animation"
TreeHugger Robot [Thu, 21 Dec 2017 04:10:23 +0000 (04:10 +0000)]
Merge "Remove scale effect from screen off animation"

6 years agoMerge "Update BatteryStatsImpl to track per-procstate cpu times."
Sudheer Shanka [Thu, 21 Dec 2017 03:51:40 +0000 (03:51 +0000)]
Merge "Update BatteryStatsImpl to track per-procstate cpu times."

6 years agoNotify RecoverableKeyStoreLoader about successful unlock.
Dmitry Dementyev [Tue, 19 Dec 2017 22:47:26 +0000 (14:47 -0800)]
Notify RecoverableKeyStoreLoader about successful unlock.

Use simple pattern matching to distinguish between between pin and
passwords.

Test: none
Bug: 66499222
Change-Id: I5cf7c37b22b2c90a9d6a61bd40de45d69cb1364d

6 years agoRemove the hacky HashableDimensionKey.
Yao Chen [Wed, 20 Dec 2017 00:46:36 +0000 (16:46 -0800)]
Remove the hacky HashableDimensionKey.

+ Add a real HashableDimensionKey as a wrapper of the dimension.
So we can get rid of the maps that we kept.

Pay down technical debt and reduce memory usage.

Test: statsd_test & manual
Change-Id: I233280cf1e2ce93da6a8cd4e8514abb066f4016d

6 years agoAdd log source filtering in statsd to filter out spams.
Yao Chen [Mon, 18 Dec 2017 20:53:50 +0000 (12:53 -0800)]
Add log source filtering in statsd to filter out spams.

+ Add log source whitelist in StatsdConfig
+ Some changes in UidMap API. Listener needs to be wp instead of sp.
+ Update dogfood app config to have log source
+ Increase the stats service thread pool size to 10 (9+1).

TODO: add unit tests(b/70805664). This unit test takes some time to write.

Test: statsd_test & manual

Change-Id: I129b1cc13db5114db7417580962bd7cc4438519d

6 years agoMerge "Add more methods to RecoverableKeyStoreLoader."
TreeHugger Robot [Thu, 21 Dec 2017 02:01:15 +0000 (02:01 +0000)]
Merge "Add more methods to RecoverableKeyStoreLoader."

6 years agoMerge "Support new Autofill session after service returns a null FillResponse."
TreeHugger Robot [Thu, 21 Dec 2017 02:00:56 +0000 (02:00 +0000)]
Merge "Support new Autofill session after service returns a null FillResponse."

6 years agoMerge "Settings: Add LOCAL_MAC_ADDRESS permission"
TreeHugger Robot [Thu, 21 Dec 2017 01:48:30 +0000 (01:48 +0000)]
Merge "Settings: Add LOCAL_MAC_ADDRESS permission"

6 years agoMerge "Limit collapsed SB notification icons to 4"
TreeHugger Robot [Thu, 21 Dec 2017 01:37:56 +0000 (01:37 +0000)]
Merge "Limit collapsed SB notification icons to 4"

6 years agoMerge "Add in-memory storage for listeners used by RecoverableKeyStoreLoader"
TreeHugger Robot [Thu, 21 Dec 2017 01:37:05 +0000 (01:37 +0000)]
Merge "Add in-memory storage for listeners  used by RecoverableKeyStoreLoader"

6 years agoMerge "Implement startRecoverySession"
TreeHugger Robot [Thu, 21 Dec 2017 01:27:18 +0000 (01:27 +0000)]
Merge "Implement startRecoverySession"

6 years agoMerge changes from topic "work_mode_api1"
TreeHugger Robot [Thu, 21 Dec 2017 01:20:28 +0000 (01:20 +0000)]
Merge changes from topic "work_mode_api1"

* changes:
  Add access control to trySetWorkModeEnabled and make it public
  Merge setQuietModeEnabled and trySetQuietModeDisabled into one API

6 years agoFix accessibility reporting for lock screen PIN
Phil Weaver [Wed, 20 Dec 2017 18:54:13 +0000 (10:54 -0800)]
Fix accessibility reporting for lock screen PIN

Now reporting what is shown on the screen and generating
events when that changes as dots replace the numbers.

Bug: 69454936
Test: Manually observing the event stream as I enter a PIN
on the lock screen.

Change-Id: I4c0afe1140006192b57febb500ea982976645652

6 years agoAdd asn1 to platform.
Holly Jiuyu Sun [Mon, 11 Dec 2017 21:28:03 +0000 (13:28 -0800)]
Add asn1 to platform.

Add unit test.

Bug: 38206971
Test: unit test
Change-Id: Ifb7c7d13ad0f980ba986b3aa6c3213ad26658489

6 years agoAdded @TestApi on new Autofill settings for field classification.
Felipe Leme [Wed, 20 Dec 2017 23:54:33 +0000 (15:54 -0800)]
Added @TestApi on new Autofill settings for field classification.

Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest CtsAutoFillServiceTestCases:UserDataTest

Bug: 70407264

Change-Id: Ia4413e5aa8973bafa0149093c6c17602dd498ae5

6 years agoAdd plsCertsNoVerifyOnlyCerts to ApkSignatureVerifier.
Dan Cashman [Mon, 18 Dec 2017 18:38:20 +0000 (10:38 -0800)]
Add plsCertsNoVerifyOnlyCerts to ApkSignatureVerifier.

There are currently two conceptual operations performed by PackageParser
while parsing APKs: collecting certificates and verifying them.
ApkSignatureVerifier relies on the systemDir flag to indicate whether or
not it should do a full verification of a package, but this only applies
when verifying V1 (jar signed) APKs.  This distinction should be explicitly
made.  This creates cleaner code and also saves time when verifying V2
signed systemDir APKs.

Bug: 64686581
Test: Builds, boots, passes
android.appsecurity.cts.PkgInstallSignatureVerificationTest.

Change-Id: Ie8a0f8cad3dd8f70da791f2f1f4516e84e2ae4d0

6 years agoTestables lib should not statically link mockito
Philip P. Moltmann [Wed, 20 Dec 2017 23:41:32 +0000 (15:41 -0800)]
Testables lib should not statically link mockito

- All users of the lib already statically link mockito
- We should allow the users to decide what flavor they use

Test: m -j checkbuild
Change-Id: Ibbdb8be8022432a13b872865ade47b92b28976c6
Merged-In: Ibbdb8be8022432a13b872865ade47b92b28976c6

6 years agoMacAddress: address api review comments
Hugo Benichi [Fri, 15 Dec 2017 01:07:35 +0000 (10:07 +0900)]
MacAddress: address api review comments

1) toSafeString() is renamed to toOuiString()
2) toOuiString() returns a String that only contains the first 3 bytes
   of the mac address.

Bug: 70336442
Test: runtest frameworks-net
Change-Id: I798d8fec32dbff5687a682028e5d90eb941f81c1
Merged-In: I798d8fec32dbff5687a682028e5d90eb941f81c1

(cherry pick from commit a0ecf38d302ef67aa9f767b1072369f8c417952d)

6 years agoTestables lib should not statically link mockito
Philip P. Moltmann [Wed, 20 Dec 2017 23:32:16 +0000 (15:32 -0800)]
Testables lib should not statically link mockito

- All users of the lib already statically link mockito
- We should allow the users to decide what flavor they use

Test: m -j checkbuild
Change-Id: Ibbdb8be8022432a13b872865ade47b92b28976c6

6 years agoMerge "Allow hover tooltips for disabled views."
TreeHugger Robot [Wed, 20 Dec 2017 23:15:51 +0000 (23:15 +0000)]
Merge "Allow hover tooltips for disabled views."

6 years agoRenames setCallbackOnComplete method in ContextHubTransaction
Arthur Ishiguro [Wed, 20 Dec 2017 20:09:21 +0000 (12:09 -0800)]
Renames setCallbackOnComplete method in ContextHubTransaction

setOnCompleteCallback seems easier to understand.

Bug: 67734082
Test: None
Change-Id: Ie1eb63dc5b90a35e847bd5d2a350f97ca277342d

6 years agoObtain cellular related battery statistics
Siddharth Ray [Mon, 13 Nov 2017 22:20:47 +0000 (14:20 -0800)]
Obtain cellular related battery statistics

API to obtain cellular battery stats for power
drain diagnostics.

Test: Manual

BUG:67647477
Change-Id: Iffdb1471cd55847b6454313c94497ab2cd6533cc

6 years agoMerge "Always show window divider to accessibility"
Phil Weaver [Wed, 20 Dec 2017 22:33:55 +0000 (22:33 +0000)]
Merge "Always show window divider to accessibility"

6 years agoMerge "Sort "Recent Location Requests" by recency."
Maggie Wang [Wed, 20 Dec 2017 22:31:43 +0000 (22:31 +0000)]
Merge "Sort "Recent Location Requests" by recency."

6 years agoMerge "Fix broken MenuLayoutPortraitTest"
TreeHugger Robot [Wed, 20 Dec 2017 22:24:22 +0000 (22:24 +0000)]
Merge "Fix broken MenuLayoutPortraitTest"

6 years agoSettings: Add LOCAL_MAC_ADDRESS permission
Roshan Pius [Thu, 14 Dec 2017 18:34:00 +0000 (10:34 -0800)]
Settings: Add LOCAL_MAC_ADDRESS permission

This permission is needed for displaying the WIFI MAC address.

Bug: 70638295
Test: Wifi network details page shows the wifi MAC address.
Change-Id: Iaa595d520abf36ba55cfa9e888b169baae6ea1fb

6 years agoMerge "Add strings for Wifi Wake onboarding notification."
Eric Schwarzenbach [Wed, 20 Dec 2017 22:02:28 +0000 (22:02 +0000)]
Merge "Add strings for Wifi Wake onboarding notification."

6 years agoNew Autofill API:AutofillManager.getAutofillServiceComponentName()
Felipe Leme [Thu, 14 Dec 2017 21:27:44 +0000 (13:27 -0800)]
New Autofill API:AutofillManager.getAutofillServiceComponentName()

Also minor fixes on isFieldClassificationEnabled() to make sure it's ignored
when not called by the service app and its calls are properly synchronized.

Test: atest CtsAutoFillServiceTestCases:LoginActivityTest#testGetAutofillServiceComponentName

Fixes: 70678279

Change-Id: I58ccb313d22c30af907f3da62f727f067240fa66

6 years agoSort "Recent Location Requests" by recency.
Maggie [Tue, 12 Dec 2017 02:02:36 +0000 (18:02 -0800)]
Sort "Recent Location Requests" by recency.

The list of apps with recent location requests is currently displayed in
alphabetical order on device (Settings -> Security & Location ->
Location). Sort this list by recency: (1) apps that are currently
requesting location are displayed  on the top. (2) For apps that are not currently
requesting location, the ones with most recent location request finish
time come first.

Bug: 70350519
Test: Robolectric
Test: manual
Change-Id: I5c757defcd7645d254c9c47e3c83f7e323247a71

6 years agoAdd TestApi to disable the TextClock clock tick.
George Mount [Wed, 20 Dec 2017 21:36:10 +0000 (13:36 -0800)]
Add TestApi to disable the TextClock clock tick.

Bug: 70771205

In order to test TextClock being only updated by the 12/24
hour setting, we must disable the clock tick from causing
the text to change. Otherwise whenever the minute changes,
the clock text would update. This leads to a flaky test.

Test: I4917a2296744697f1b50a17e3c5eb5873d567a47
Change-Id: Ifb669af3e6b882eb7c158b7de16e7eb2f0c48f61

6 years agoMerge "Receiving side Call handover API implementation."
Sanket Padawe [Wed, 20 Dec 2017 21:54:38 +0000 (21:54 +0000)]
Merge "Receiving side Call handover API implementation."

6 years agoFix over-granting permission on low ram
Ng Zhi An [Tue, 19 Dec 2017 19:19:30 +0000 (11:19 -0800)]
Fix over-granting permission on low ram

Bug: 69258381
Bug: 69587247
Test: cts-tradefed run gts-dev -m GtsPermissionTestCases
Change-Id: Id51723dfaa711c18962a9ba1caa9cfc35e6cc53d

6 years agoMerge "doc: Fixing Javadoc formatting problems." into oc-mr1-dev
Andrew Solovay [Wed, 20 Dec 2017 21:34:26 +0000 (21:34 +0000)]
Merge "doc: Fixing Javadoc formatting problems." into oc-mr1-dev

6 years agoImplement startRecoverySession
Robert Berry [Wed, 20 Dec 2017 15:59:37 +0000 (15:59 +0000)]
Implement startRecoverySession

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

6 years agoMerge "Add subtype for priority"
Mady Mellor [Wed, 20 Dec 2017 21:16:17 +0000 (21:16 +0000)]
Merge "Add subtype for priority"

6 years agoMerge "Improve nine patch scaling"
TreeHugger Robot [Wed, 20 Dec 2017 21:09:27 +0000 (21:09 +0000)]
Merge "Improve nine patch scaling"

6 years agoMerge "Use RecoverableKeyStoreDb in RecoverableKeyGenerator"
Robert Berry [Wed, 20 Dec 2017 21:06:55 +0000 (21:06 +0000)]
Merge "Use RecoverableKeyStoreDb in RecoverableKeyGenerator"

6 years agoMerge "Unhide HINT_HIDDEN from slices api and rename to HINT_SHORTCUT"
TreeHugger Robot [Wed, 20 Dec 2017 21:04:38 +0000 (21:04 +0000)]
Merge "Unhide HINT_HIDDEN from slices api and rename to HINT_SHORTCUT"

6 years agoMerge "Back PlatformKeyManager with database"
Robert Berry [Wed, 20 Dec 2017 21:01:33 +0000 (21:01 +0000)]
Merge "Back PlatformKeyManager with database"