OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Differentiate Sim App Dialog layout for AOSP" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 01:20:40 +0000 (01:20 +0000)]
Merge "Differentiate Sim App Dialog layout for AOSP" into pi-dev

6 years agoMerge "Add stats logging to ServiceManager and NPMS" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 01:13:07 +0000 (01:13 +0000)]
Merge "Add stats logging to ServiceManager and NPMS" into pi-dev

6 years agoMerge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance" into...
Chen Xu [Thu, 12 Apr 2018 01:02:21 +0000 (01:02 +0000)]
Merge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance" into pi-dev

6 years agoMerge "Turning print proto dump back on." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 01:02:17 +0000 (01:02 +0000)]
Merge "Turning print proto dump back on." into pi-dev

6 years agoMerge "Update timeout log from Slog.wtf() to Slog.w()." into pi-dev
Sudheer Shanka [Thu, 12 Apr 2018 00:47:23 +0000 (00:47 +0000)]
Merge "Update timeout log from Slog.wtf() to Slog.w()." into pi-dev

6 years agoMerge "Add API to compute charge time remaining." into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 00:27:53 +0000 (00:27 +0000)]
Merge "Add API to compute charge time remaining." into pi-dev

6 years agoMerge "Fix FingerprintDialogView when show is called before animation is complete...
TreeHugger Robot [Thu, 12 Apr 2018 00:17:27 +0000 (00:17 +0000)]
Merge "Fix FingerprintDialogView when show is called before animation is complete" into pi-dev

6 years agoMerge "Fix FingerprintService package comparison" into pi-dev
TreeHugger Robot [Thu, 12 Apr 2018 00:16:55 +0000 (00:16 +0000)]
Merge "Fix FingerprintService package comparison" into pi-dev

6 years agoMerge "Fixes clicking on foreground user in the switcher." into pi-dev
Jovana Knezevic [Thu, 12 Apr 2018 00:01:11 +0000 (00:01 +0000)]
Merge "Fixes clicking on foreground user in the switcher." into pi-dev

6 years agoMerge "Updating strings for activity interceptor dialog" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 23:39:46 +0000 (23:39 +0000)]
Merge "Updating strings for activity interceptor dialog" into pi-dev

6 years agoAdd stats logging to ServiceManager and NPMS
Makoto Onuki [Wed, 11 Apr 2018 20:51:02 +0000 (13:51 -0700)]
Add stats logging to ServiceManager and NPMS

ServiceManager:
- Do an event log every N getService() calls with total time spent
in getService().
where N = 100 for core UIDs and 200 for other apps.

- Do an event log if getService() takes longer than N ms.
where N = 10 for core UIDs and 50 for other apps.

... with some extra throttling.

NPMS:
- Do the basic "stats logger" log for updateNetworkEnabledNL() and
isUidNetworkingBlocked()

This CL also enhances StatsLogegr so it now can show the slowest call
and the max # of calls per-second.

Bug: 77853238
Test: Manual test:
- Insert a SIM card
- Set data limit
- toggle airplane mode
- toggle wifi
- toggle mobile data

Then
- "dumpsys netpolicy" and "dumpsys activity processes" and check the stats
- also check "adb logcat -b all | grep ' service_manager'"

Change-Id: I5789541063f95d0eac501189816c8604a4571ba0

6 years agoMerge "APIs to disable data usage notifications." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 23:05:03 +0000 (23:05 +0000)]
Merge "APIs to disable data usage notifications." into pi-dev

6 years agoMerge "Only show mobile data turn off dialog once." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 22:50:51 +0000 (22:50 +0000)]
Merge "Only show mobile data turn off dialog once." into pi-dev

6 years agoAdd API to compute charge time remaining.
Michael Wright [Wed, 11 Apr 2018 22:06:36 +0000 (23:06 +0100)]
Add API to compute charge time remaining.

This is so unbundled applications (e.g. dreams) can present a charge
time indicator that is in sync with the rest of the system.

Bug: 77919650
Test: manual
Change-Id: I7d62dea4fd49eb173b4f052a0fc36f4e7ce5b6bb

6 years agoFixes clicking on foreground user in the switcher.
jovanak [Tue, 10 Apr 2018 22:14:50 +0000 (15:14 -0700)]
Fixes clicking on foreground user in the switcher.

When foreground user is clicked, keyguard should be dismissed. If other user is clicked,  we should switch to that user.

Bug: 77653809
Bug: 77808082
Test: Switcher tested in emulator and mojave by clicking on foreground and non-foreground users.
Change-Id: I72e56f8e157419ea05f155be647c11e6d98bde2c

6 years agoMerge "Updating BatteryStats to account for Ambient Display sipper." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 22:28:17 +0000 (22:28 +0000)]
Merge "Updating BatteryStats to account for Ambient Display sipper." into pi-dev

6 years agoMerge "Adds user broadcasts to UserManagerHelper." into pi-dev
Jovana Knezevic [Wed, 11 Apr 2018 22:20:33 +0000 (22:20 +0000)]
Merge "Adds user broadcasts to UserManagerHelper." into pi-dev

6 years agoMerge "keystore: Add documentation for user presence required." into pi-dev
Allen Webb [Wed, 11 Apr 2018 22:19:28 +0000 (22:19 +0000)]
Merge "keystore: Add documentation for user presence required." into pi-dev

6 years agoMerge "Add targetSdk check around new LinearLayout weighted measure behavior" into...
Chet Haase [Wed, 11 Apr 2018 22:17:44 +0000 (22:17 +0000)]
Merge "Add targetSdk check around new LinearLayout weighted measure behavior" into pi-dev

6 years agoMerge "[Magnifier-39] Hide both handles on overlap" into pi-dev
Mihai Popa [Wed, 11 Apr 2018 22:15:35 +0000 (22:15 +0000)]
Merge "[Magnifier-39] Hide both handles on overlap" into pi-dev

6 years agoMerge "Fix ripple effect for floating toolbar menu items" into pi-dev
Mihai Popa [Wed, 11 Apr 2018 22:14:51 +0000 (22:14 +0000)]
Merge "Fix ripple effect for floating toolbar menu items" into pi-dev

6 years agoAPIs to disable data usage notifications.
Jeff Sharkey [Tue, 10 Apr 2018 18:38:29 +0000 (12:38 -0600)]
APIs to disable data usage notifications.

Certain carriers have requested the ability to disable the warning,
limit, and rapid data usage notifications shown by the OS, so give
them that ability on a per-subId basis.  (The notifications are still
enabled by default.)

Unhide NOT_CONGESTED to match setSubscriptionOverrideCongested().

Fix bug in getPrimarySubscriptionPlanLocked() to find the first
currently active plan; the first non-recurring plan may be no longer
active.  Fix bug in SubscriptionPlan which allowed invalid negative
or zero-length Period objects.

Bug: 778516917750688277662747
Test: atest com.android.server.NetworkPolicyManagerServiceTest
Test: atest android.telephony.cts.SubscriptionManagerTest
Exempt-From-Owner-Approval: SDK deadline, responding to API feedback
Change-Id: Ib6e6dbadd5022937c3f0661ab4b66aa617f0b5af

6 years agoMerge "Separates current process user and foreground user" into pi-dev
Jovana Knezevic [Wed, 11 Apr 2018 22:06:15 +0000 (22:06 +0000)]
Merge "Separates current process user and foreground user" into pi-dev

6 years agoMerge "Update the recents onboarding UI to the latest mock." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 21:36:31 +0000 (21:36 +0000)]
Merge "Update the recents onboarding UI to the latest mock." into pi-dev

6 years agoDifferentiate Sim App Dialog layout for AOSP
goneil [Mon, 9 Apr 2018 23:03:41 +0000 (16:03 -0700)]
Differentiate Sim App Dialog layout for AOSP

Final Sim App Dialog layout for AOSP.
Added string lengths.

Bug: 72511181
Change-Id: Ia840d279f6c06ba86f63cbcadf36f2ed597547c7
Test: Local build and install.

6 years agoMerge "[QS] Update mobile tile secondary text" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 21:29:20 +0000 (21:29 +0000)]
Merge "[QS] Update mobile tile secondary text" into pi-dev

6 years agoChange getGroupIdLevel1() to use subId from TelephonyManager Instance
fionaxu [Wed, 11 Apr 2018 19:47:46 +0000 (12:47 -0700)]
Change getGroupIdLevel1() to use subId from TelephonyManager Instance

Bug: 77905912
Test: Build
Change-Id: I720971ce115147b994e27611a0dcf052989180ec

6 years agoMerge "Lint to identify "deprecated at birth" APIs." into pi-dev
Jeff Sharkey [Wed, 11 Apr 2018 21:25:51 +0000 (21:25 +0000)]
Merge "Lint to identify "deprecated at birth" APIs." into pi-dev

6 years agoMerge "Properly disconnect after skipping an operation." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 20:44:32 +0000 (20:44 +0000)]
Merge "Properly disconnect after skipping an operation." into pi-dev

6 years agoMerge "Make setServiceId a TestApi" into pi-dev
Hall Liu [Wed, 11 Apr 2018 20:21:48 +0000 (20:21 +0000)]
Merge "Make setServiceId a TestApi" into pi-dev

6 years agoMerge "Fixing missing reportDrawFinish method in windowCallbacksCompat" into pi-dev
Sunny Goyal [Wed, 11 Apr 2018 20:01:01 +0000 (20:01 +0000)]
Merge "Fixing missing reportDrawFinish method in windowCallbacksCompat" into pi-dev

6 years agoMerge "Cleanup after updating Vehicle permissions" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 19:50:50 +0000 (19:50 +0000)]
Merge "Cleanup after updating Vehicle permissions" into pi-dev

6 years agoMerge "Show onboarding screen from dnd tile" into pi-dev
Julia Reynolds [Wed, 11 Apr 2018 19:36:41 +0000 (19:36 +0000)]
Merge "Show onboarding screen from dnd tile" into pi-dev

6 years agoFix FingerprintService package comparison
Kevin Chyn [Wed, 11 Apr 2018 19:28:59 +0000 (12:28 -0700)]
Fix FingerprintService package comparison

Test: manual test following steps b/77633366 comment #4

Change-Id: I623c5bb3bf5af669752deab602a94747277affd4
Fixes: 77633366

6 years agokeystore: Add documentation for user presence required.
Allen Webb [Tue, 10 Apr 2018 17:33:42 +0000 (10:33 -0700)]
keystore: Add documentation for user presence required.

Test: make -j50 docs
Bug: 77600728
Change-Id: I6334bc0fc7a7d4faced6b03522c350ce74303443
Signed-off-by: Allen Webb <allenwebb@google.com>
6 years agoMerge "Add SigningInfo class to expose package signing details." into pi-dev
Daniel Cashman [Wed, 11 Apr 2018 19:21:07 +0000 (19:21 +0000)]
Merge "Add SigningInfo class to expose package signing details." into pi-dev

6 years agoOnly show mobile data turn off dialog once.
Amin Shaikh [Wed, 11 Apr 2018 19:20:32 +0000 (15:20 -0400)]
Only show mobile data turn off dialog once.

Change-Id: I9eb8c27ea08f67478e2aacfa091a1320bac828ae
Fixes: 77909752
Test: manual

6 years agoSeparates current process user and foreground user
jovanak [Mon, 2 Apr 2018 23:40:15 +0000 (16:40 -0700)]
Separates current process user and foreground user

User switcher wrongly called methods on the current process user,
which is always User 0 for SysUI.

Instead, user switcher requires knowledge about foreground user.
The process of user switching = changing the foreground
user.

Split tests between unit and robolectric.
Robolectric tests enable shadowing ActivityManager and UserHandle.

Fixes:77485524
Test: Unit and robolectric tests.
Change-Id: I20cc32f132ce48b4507a6907bdc9d103c04f4a30

6 years agoMerge "DO NOT MERGE - Hide IWLAN system API" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 18:36:31 +0000 (18:36 +0000)]
Merge "DO NOT MERGE - Hide IWLAN system API" into pi-dev

6 years agoFixing missing reportDrawFinish method in windowCallbacksCompat
Sunny Goyal [Wed, 11 Apr 2018 18:29:24 +0000 (11:29 -0700)]
Fixing missing reportDrawFinish method in windowCallbacksCompat

Test: Verified on launcher that there is no ANR
Bug: 77695434
Change-Id: I1c382ea24fee15835637ed9d4055161a99ff3625

6 years agoMerge "Trim the invalid uids and tags when reading uids/tags from chain." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 18:29:40 +0000 (18:29 +0000)]
Merge "Trim the invalid uids and tags when reading uids/tags from chain." into pi-dev

6 years agoUpdate the recents onboarding UI to the latest mock.
Tracy Zhou [Sun, 8 Apr 2018 06:54:46 +0000 (23:54 -0700)]
Update the recents onboarding UI to the latest mock.

Screenshot: https://screenshot.googleplex.com/ks6kWo0R2gd

Bug: 70180942
Test: manual test
Change-Id: Iabe6431db59e0539db5a1952cbb07f95ed6fa7ed

6 years agoMerge "MessageQueue: explicitly remove FD event listeners." into pi-dev
David Pursell [Wed, 11 Apr 2018 18:05:52 +0000 (18:05 +0000)]
Merge "MessageQueue: explicitly remove FD event listeners." into pi-dev

6 years agoMerge "Mark CTS-tested APIs as @TestApi" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 18:03:44 +0000 (18:03 +0000)]
Merge "Mark CTS-tested APIs as @TestApi" into pi-dev

6 years agoMerge "BufferingParams: add annotation @TestApi" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 18:01:24 +0000 (18:01 +0000)]
Merge "BufferingParams: add annotation @TestApi" into pi-dev

6 years agoMerge "Fix docs and bug in SliceManager#bindSlice" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 17:52:22 +0000 (17:52 +0000)]
Merge "Fix docs and bug in SliceManager#bindSlice" into pi-dev

6 years agoMerge "Revert "Update docs to match encryption requirements"" into pi-dev
Colin Cross [Wed, 11 Apr 2018 17:28:39 +0000 (17:28 +0000)]
Merge "Revert "Update docs to match encryption requirements"" into pi-dev

6 years agoRevert "Update docs to match encryption requirements"
Colin Cross [Wed, 11 Apr 2018 17:27:24 +0000 (17:27 +0000)]
Revert "Update docs to match encryption requirements"

This reverts commit cebb55ea9d98dc7ba93eed520b874ac24ff96800.

Reason for revert: broke docs builds

Change-Id: I3a4b8d274141efec90fae2ed0b9324194288c635

6 years agoAdds user broadcasts to UserManagerHelper.
jovanak [Tue, 10 Apr 2018 22:59:11 +0000 (15:59 -0700)]
Adds user broadcasts to UserManagerHelper.

Same broadcasts supported by UserSwitcherController.

Car User switcher listens to user changes.
Switcher needs to hear when the user is switched to dismiss the
keyguard,which causes the switching animation to terminate.

Bug:77653809
Test: Unit tests.
Change-Id: I633cbd9045e7254dcc173ca0e1118fca06c669df

6 years agoMerge "[DO NOT MERGE] - Hide Tunnel Mode IpSec API" into pi-dev
Nathan Harold [Wed, 11 Apr 2018 17:09:07 +0000 (17:09 +0000)]
Merge "[DO NOT MERGE] - Hide Tunnel Mode IpSec API" into pi-dev

6 years agoMerge "StatsManager throws exceptions" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 17:02:06 +0000 (17:02 +0000)]
Merge "StatsManager throws exceptions" into pi-dev

6 years agoMerge "Dismiss keyguard when switching user if lockscreen is disabled on new user...
TreeHugger Robot [Wed, 11 Apr 2018 17:02:00 +0000 (17:02 +0000)]
Merge "Dismiss keyguard when switching user if lockscreen is disabled on new user" into pi-dev

6 years agoMerge "Ensure ActivityStack's cached resumed activity is updated." into pi-dev
Bryce Lee [Wed, 11 Apr 2018 17:00:26 +0000 (17:00 +0000)]
Merge "Ensure ActivityStack's cached resumed activity is updated." into pi-dev

6 years agoMerge "Greylist methods with varargs and intrinsics" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 16:58:49 +0000 (16:58 +0000)]
Merge "Greylist methods with varargs and intrinsics" into pi-dev

6 years agoMerge "Synchronize stack position and size update for split screen" into pi-dev
Chavi Weingarten [Wed, 11 Apr 2018 16:53:42 +0000 (16:53 +0000)]
Merge "Synchronize stack position and size update for split screen" into pi-dev

6 years agoMerge "Pass app version to agent in adb restore for kv." into pi-dev
Anton Philippov [Wed, 11 Apr 2018 16:53:30 +0000 (16:53 +0000)]
Merge "Pass app version to agent in adb restore for kv." into pi-dev

6 years agoMerge "Update volume logging" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 16:49:15 +0000 (16:49 +0000)]
Merge "Update volume logging" into pi-dev

6 years agoMerge "Configurable sampling rate for hidden API access log events." into pi-dev
Mathew Inwood [Wed, 11 Apr 2018 16:45:19 +0000 (16:45 +0000)]
Merge "Configurable sampling rate for hidden API access log events." into pi-dev

6 years agoMerge "Handle logd reconnect." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 16:45:11 +0000 (16:45 +0000)]
Merge "Handle logd reconnect." into pi-dev

6 years agoMerge "DisplayCutout: Draw anti-aliased bounds in soft overlay" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 16:44:32 +0000 (16:44 +0000)]
Merge "DisplayCutout: Draw anti-aliased bounds in soft overlay" into pi-dev

6 years agoLint to identify "deprecated at birth" APIs.
Jeff Sharkey [Wed, 11 Apr 2018 16:05:44 +0000 (10:05 -0600)]
Lint to identify "deprecated at birth" APIs.

When API council requests changes, teams regularly perform the
requested refactoring, but simply mark the old APIs as @Deprecated
without @removed, due to internal users.

As part of finalizing an SDK, we should ensure that no new APIs are
marked @Deprecated, since they're typically cleanup that someone
forgot to finish.  This extension to the lint script makes it easy
to identify these cases.

$ python tools/apilint/apilint.py --show-deprecations-at-birth \
        api/current.txt ../../prebuilts/sdk/api/28.txt

$ python tools/apilint/apilint.py --show-deprecations-at-birth \
        api/system-current.txt ../../prebuilts/sdk/system-api/28.txt

Bug: 77588754
Test: manual inspection
Change-Id: Ie9658006bb08f780bee0e503481d3bafec1038a1

6 years ago[QS] Update mobile tile secondary text
Rohan Shah [Tue, 10 Apr 2018 04:34:50 +0000 (00:34 -0400)]
[QS] Update mobile tile secondary text

Since the mobile data string is required for the content description,
adding a new string for the short version and updating the footer impl
and icon setup logic to reference the content description instead.

Test: Manually, via string check in QS
Bug: 77693344
Change-Id: I794500bcd445f98d69c096f6bf2f3b7d147c2780

6 years agoMerge "Fix AccessibilityEvent#getContentChangeTypes doc" into pi-dev
Phil Weaver [Wed, 11 Apr 2018 16:38:28 +0000 (16:38 +0000)]
Merge "Fix AccessibilityEvent#getContentChangeTypes doc" into pi-dev

6 years agoProperly disconnect after skipping an operation.
Philip P. Moltmann [Wed, 11 Apr 2018 16:23:19 +0000 (09:23 -0700)]
Properly disconnect after skipping an operation.

If we skip an operation we used to just return. This lead to the service
staying connected, holding the wakelock and consuming power.

Hence after we skip an operation we need to check if we can disconnect
the service, basically treating skipping an operation similar failing
to execute the operation.

Fixes: 77766977
Test: Detected music via sound trigger service and triggered dropping of
operations

Change-Id: Ia837d628193b3a5c2763f4aae666193d624b6d7f

6 years agoShow onboarding screen from dnd tile
Julia Reynolds [Wed, 11 Apr 2018 15:33:32 +0000 (11:33 -0400)]
Show onboarding screen from dnd tile

Increase the DND version and reset the setting so those who
are upgrading P->P see the new flow.

Test: manual
Change-Id: I9286f022d1fa6520305ff03dbce54c4eec0e371a
Fixes: 77658931

6 years agoAdd targetSdk check around new LinearLayout weighted measure behavior
Chet Haase [Wed, 21 Mar 2018 21:09:44 +0000 (14:09 -0700)]
Add targetSdk check around new LinearLayout weighted measure behavior

Bug: 73827180
Test: Existing CTS tests in LinearLayoutTest
Change-Id: I88dfde3743d0f954cd275be6a0032fe30ef55c03
(cherry picked from commit 28230e5efa86aa324fef3e95395d61a4518fa804)

6 years agoMerge "Fix null running task info in SysUI tests" into pi-dev
Mike Digman [Wed, 11 Apr 2018 16:12:47 +0000 (16:12 +0000)]
Merge "Fix null running task info in SysUI tests" into pi-dev

6 years agoDisplayCutout: Draw anti-aliased bounds in soft overlay
Adrian Roos [Tue, 10 Apr 2018 22:17:08 +0000 (15:17 -0700)]
DisplayCutout: Draw anti-aliased bounds in soft overlay

To do so, we cannot use the Region from DisplayCutout, because it is conceptionally
a binary Bitmap. Instead, we need the exact curve as a Path.

Also fixes a theoretical bug where the DisplayCutout
was cached even though the display height changed.

Change-Id: I9356f4589186fedc5dc95010c7bd1a1fa20edf5e
Fixes: 77868940
Test: Enable display cutout in developer options, verify the edges look smoth and not jagged.
Test: atest DisplayCutoutTest

6 years agoMerge "Revert "Check permissions only against packagesettings"" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 16:05:39 +0000 (16:05 +0000)]
Merge "Revert "Check permissions only against packagesettings"" into pi-dev

6 years agoMerge "Change fonts.xml to add 34 new fonts in OTF." into pi-dev
Siyamed Sinir [Wed, 11 Apr 2018 16:04:52 +0000 (16:04 +0000)]
Merge "Change fonts.xml to add 34 new fonts in OTF." into pi-dev

6 years agoMerge "Add an API to check whether the recoverable keystore is enabled" into pi-dev
Bo Zhu [Wed, 11 Apr 2018 15:58:27 +0000 (15:58 +0000)]
Merge "Add an API to check whether the recoverable keystore is enabled" into pi-dev

6 years agoMerge "Allow shared users to rotate signing certs in an OTA" into pi-dev
Chad Brubaker [Wed, 11 Apr 2018 15:57:21 +0000 (15:57 +0000)]
Merge "Allow shared users to rotate signing certs in an OTA" into pi-dev

6 years agoMerge "Fix mic enumeration CTS fail on marlin." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 15:46:49 +0000 (15:46 +0000)]
Merge "Fix mic enumeration CTS fail on marlin." into pi-dev

6 years agoRevert "Check permissions only against packagesettings"
Patrick Baumann [Wed, 11 Apr 2018 14:51:30 +0000 (14:51 +0000)]
Revert "Check permissions only against packagesettings"

This reverts commit b00eb6459127018ec7641f407d5873a0c417416d.

Reason for revert: Boot issues after OTA
Bug: 76228188
Fixes: 77888575
Change-Id: I5ca2605cb6befea46ce50198bc72bdd4b6e84f1a

6 years agoMerge "Added gamma correction tests." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 14:48:17 +0000 (14:48 +0000)]
Merge "Added gamma correction tests." into pi-dev

6 years agoDismiss keyguard when switching user if lockscreen is disabled on new user
Alex Chau [Wed, 11 Apr 2018 14:41:32 +0000 (15:41 +0100)]
Dismiss keyguard when switching user if lockscreen is disabled on new user

Test: Manual
Bug: 77535056
Change-Id: I55d590644b0187c624bca8aef5c21656315ecd87

6 years agoGreylist methods with varargs and intrinsics
David Brazdil [Sat, 7 Apr 2018 19:00:35 +0000 (20:00 +0100)]
Greylist methods with varargs and intrinsics

This is due to a related Doclava change.

Bug: 64382372
Test: make
Change-Id: I8fba27a529a83751ab27859b1c1b791ab85786cf

6 years agoMerge "[WebView Tracing API] documentation fixes." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 14:38:02 +0000 (14:38 +0000)]
Merge "[WebView Tracing API] documentation fixes." into pi-dev

6 years agoMerge "Move container focusability logic to ActivityStackSupervisor." into pi-dev
Bryce Lee [Wed, 11 Apr 2018 14:23:39 +0000 (14:23 +0000)]
Merge "Move container focusability logic to ActivityStackSupervisor." into pi-dev

6 years agoFix docs and bug in SliceManager#bindSlice
Jason Monk [Tue, 10 Apr 2018 19:00:18 +0000 (15:00 -0400)]
Fix docs and bug in SliceManager#bindSlice

Test: cts
Change-Id: I812af1eda072c2af0b29454a05ea777d8f4c3c62
Fixes: 73123733

6 years agoPass app version to agent in adb restore for kv.
Anton Philippov [Wed, 11 Apr 2018 13:41:58 +0000 (14:41 +0100)]
Pass app version to agent in adb restore for kv.

This is a temporary solution for P to unblock GTS tests.

Bug: 77852250
Test: manual:
1. adb backup -f saved-wifi-api100.ab -keyvalue com.android.providers.settings
2. adb restore saved-wifi-api100.ab
3. See that SettingsBackupAgent receives appVersionCode in onRestore()

Change-Id: I6092bea570e7e27cb5b72165e9284ad2befc21b6

6 years agoMerge "Address API comments on NetworkStats#getDefaultNetwork." into pi-dev
Florian Mayer [Wed, 11 Apr 2018 13:55:51 +0000 (13:55 +0000)]
Merge "Address API comments on NetworkStats#getDefaultNetwork." into pi-dev

6 years agoMerge "Update docs to match encryption requirements" into pi-dev
Robert Berry [Wed, 11 Apr 2018 13:49:45 +0000 (13:49 +0000)]
Merge "Update docs to match encryption requirements" into pi-dev

6 years agoMerge "Fix spacing between signal and text on qs footer." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 13:39:47 +0000 (13:39 +0000)]
Merge "Fix spacing between signal and text on qs footer." into pi-dev

6 years agoMerge "Don't show dev warning toast if notifs for app off" into pi-dev
Beverly Tai [Wed, 11 Apr 2018 13:30:30 +0000 (13:30 +0000)]
Merge "Don't show dev warning toast if notifs for app off" into pi-dev

6 years agoMerge "Rename onProfileAudioStateChanged() to onAudioModeChanged()" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 13:17:26 +0000 (13:17 +0000)]
Merge "Rename onProfileAudioStateChanged() to onAudioModeChanged()" into pi-dev

6 years agoMerge "Fix restore from higher SDKs in SettingsBackupAgent" into pi-dev
Anton Philippov [Wed, 11 Apr 2018 13:08:44 +0000 (13:08 +0000)]
Merge "Fix restore from higher SDKs in SettingsBackupAgent" into pi-dev

6 years agoUpdate volume logging
Julia Reynolds [Tue, 10 Apr 2018 20:07:57 +0000 (16:07 -0400)]
Update volume logging

- Log settings click and ringer toggle
- Log stream for volume change and mute instead of value

Test: manual
Change-Id: Id72e4b79ca9875b7c80b58527c303d3af0af9492
Fixes: 74201925

6 years agoMerge "Minor TextClassifier fixes" into pi-dev
Jan Althaus [Wed, 11 Apr 2018 12:19:43 +0000 (12:19 +0000)]
Merge "Minor TextClassifier fixes" into pi-dev

6 years agoMerge "Hide mandatory backup's API." into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 12:02:20 +0000 (12:02 +0000)]
Merge "Hide mandatory backup's API." into pi-dev

6 years agoMinor TextClassifier fixes
Jan Althaus [Mon, 9 Apr 2018 14:14:36 +0000 (16:14 +0200)]
Minor TextClassifier fixes

- Fix incorrect nullable annotation (usage/APIs already correct)
- Fix outdated doc reference
- Fixed visibility of TextClassification fields

Bug: 74461129
Test: N/A
Change-Id: I107cc978c9385ac2ad706fa8e0a8a3ecb215cf36

6 years agoHide mandatory backup's API.
Lenka Trochtova [Tue, 10 Apr 2018 09:01:58 +0000 (11:01 +0200)]
Hide mandatory backup's API.

Bug: 77801801
Bug: 73750212
Bug: 64012357

Test: make RunFrameworksServicesRoboTests
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerTes
cts-tradefed run cts -m CtsBackupHostTestCase

Change-Id: I7699755309b3fbff7c3fec2a06a0f409fd4087de

6 years agoAddress API comments on NetworkStats#getDefaultNetwork.
Lorenzo Colitti [Mon, 2 Apr 2018 10:29:26 +0000 (19:29 +0900)]
Address API comments on NetworkStats#getDefaultNetwork.

Bug: 76449091
Test: android.app.usage.cts.NetworkUsageStatsTest passes
Change-Id: I7f21e0bd7bc4b726058fc2e25542ff2c3173fabe

6 years agoAdd logging for smart replies in notifications.
Kenny Guy [Thu, 5 Apr 2018 20:18:38 +0000 (21:18 +0100)]
Add logging for smart replies in notifications.

Log the first time a notification with smart
replies is visible.
Log each click on a smart reply.

Test: atest SystemUITests
Bug: 72153458
Change-Id: I6dc498871000dbb9af978567db3d258b20978781

6 years agoRename onProfileAudioStateChanged() to onAudioModeChanged()
timhypeng [Sun, 8 Apr 2018 05:55:08 +0000 (13:55 +0800)]
Rename onProfileAudioStateChanged() to onAudioModeChanged()

* While receiving BluetoothHeadset.ACTION_AUDIO_STATE_CHANGED
  and TelephonyManager.ACTION_PHONE_STATE_CHANGED intent dispath
  onAudioModeChanged() callback.
* Rename onProfileAudioStateChanged() to onAudioModeChanged()

Bug: 74134939
Test: Build
Change-Id: Iaf037110adba907721f7342eeef360e65cb1da34

6 years agoMerge "Add more API to light greylist" into pi-dev
David Brazdil [Wed, 11 Apr 2018 08:02:11 +0000 (08:02 +0000)]
Merge "Add more API to light greylist" into pi-dev

6 years agoMerge "Review of suspend/unsuspend APIs" into pi-dev
TreeHugger Robot [Wed, 11 Apr 2018 07:36:38 +0000 (07:36 +0000)]
Merge "Review of suspend/unsuspend APIs" into pi-dev

6 years agoHandle logd reconnect.
Yao Chen [Tue, 10 Apr 2018 17:39:53 +0000 (10:39 -0700)]
Handle logd reconnect.

When statsd reconnects to logd, statsd will read all logs from buffer again. To prevent us from
reprocessing old events, we do the following:

1. At any given moment, record the largest timestamp(T_max) and last timestamp (check point) that
   we've seen before.
2. When reconnection happens, we look for the check point until we see a new log with a timestamp
   larger than T_max.
   -> If we found the CP, resume after the CP. Success
   -> If we can't find CP, there is definitely log loss. We reset all configs.

Note:
1. Logd has an API to read logs after a certain timestamp. But this api is vulnerable to
time changes from Settings. So we cannot rely on it.

2. If logd inserts a new log (with older timestamp) before CP, we cannot detect it. It's not
   possible to detect it without record all timestamps we have seen.

Test: statsd_test
Bug: 77813113

Change-Id: Ic3fdb47230807606ab11dc994cb162194adb8448

6 years agoUpdating strings for activity interceptor dialog
Suprabh Shukla [Wed, 11 Apr 2018 00:07:32 +0000 (17:07 -0700)]
Updating strings for activity interceptor dialog

Updated to more descriptive title and button text.
The default message dialog will also show the suspending app name.

Test: atest \
com.android.server.pm.SuspendPackagesTest#testInterceptorActivity

Bug: 75332201
Change-Id: Ica77fb04874a8e32fe0d82ac27a9babd3b186f8d

6 years agoMerge "Flush the bucket when creating the metric producer. Use int64 for value field...
TreeHugger Robot [Wed, 11 Apr 2018 04:49:02 +0000 (04:49 +0000)]
Merge "Flush the bucket when creating the metric producer. Use int64 for value field. E2e test for gauge/value metric." into pi-dev