OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:22:52 +0000 (17:22 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Fix KeyButtonDrawable dark intensity logic error" into pi-dev
Mike Digman [Mon, 19 Mar 2018 17:22:39 +0000 (17:22 +0000)]
Merge "Fix KeyButtonDrawable dark intensity logic error" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:17:52 +0000 (17:17 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:17:12 +0000 (17:17 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Add disable2 flag for rotate suggestions" into pi-dev
Mike Digman [Mon, 19 Mar 2018 17:13:30 +0000 (17:13 +0000)]
Merge "Add disable2 flag for rotate suggestions" into pi-dev

6 years agoMerge "Light greylist additions." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 17:08:45 +0000 (17:08 +0000)]
Merge "Light greylist additions." into pi-dev

6 years agoMerge "Update mobile data off dialog." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:58:23 +0000 (16:58 +0000)]
Merge "Update mobile data off dialog." into pi-dev

6 years agoMerge "Enable cleartext for captive portal apps" into pi-dev
Lorenzo Colitti [Mon, 19 Mar 2018 16:49:47 +0000 (16:49 +0000)]
Merge "Enable cleartext for captive portal apps" into pi-dev

6 years agoMerge "Frameworks: Make MockUtils more robust" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:47:30 +0000 (16:47 +0000)]
Merge "Frameworks: Make MockUtils more robust" into pi-dev

6 years agoMerge "Removed flaky annotation from testFocusedWindowMultipleDisplays" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:46:19 +0000 (16:46 +0000)]
Merge "Removed flaky annotation from testFocusedWindowMultipleDisplays" into pi-dev

6 years agoMerge "Whitelist FullBackupDataOutput" into pi-dev
Sarah Edris [Mon, 19 Mar 2018 16:42:39 +0000 (16:42 +0000)]
Merge "Whitelist FullBackupDataOutput" into pi-dev

6 years agoMerge "Softens one of the battery strings per UI request" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:27:41 +0000 (16:27 +0000)]
Merge "Softens one of the battery strings per UI request" into pi-dev

6 years agoMerge "StatsManager log lines should be in logcat" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 16:18:53 +0000 (16:18 +0000)]
Merge "StatsManager log lines should be in logcat" into pi-dev

6 years agoMerge "Insert correct app transition events for recents anim" into pi-dev
Jorim Jaggi [Mon, 19 Mar 2018 15:36:05 +0000 (15:36 +0000)]
Merge "Insert correct app transition events for recents anim" into pi-dev

6 years agoMerge "Fix SyncResutl.delayUntil javadoc" into pi-dev
Makoto Onuki [Mon, 19 Mar 2018 15:12:36 +0000 (15:12 +0000)]
Merge "Fix SyncResutl.delayUntil javadoc" into pi-dev

6 years agoInsert correct app transition events for recents anim
Jorim Jaggi [Thu, 15 Mar 2018 14:51:32 +0000 (15:51 +0100)]
Insert correct app transition events for recents anim

The transition delay will be the latency until all the leashes
were created etc. Thus, the actual latency is going to be in
WINDOWS_DRAWN_DELAY.

Also fix an issue where we inadvertently started a transition,
and then the transition logger was hanging.

Bug: 72967764
Test: Swipe up from home button, observe eventlog
Change-Id: I2b1fb7d9d694a629a33653c1fa3d5ed47f53de6b

6 years agoUpdate mobile data off dialog.
Amin Shaikh [Fri, 9 Mar 2018 19:50:59 +0000 (14:50 -0500)]
Update mobile data off dialog.

Show the mobile data turn off dialog until the user taps the turn off
button. All subsequent toggles will immediately toggle data on/off. Also
update the message copy.

Fixes: 74072757
Test: runtest systemui && manual
Change-Id: I489d5c3c19d52a6f531b1b925b3210019412243b

6 years agoLight greylist additions.
Mathew Inwood [Mon, 19 Mar 2018 14:31:17 +0000 (14:31 +0000)]
Light greylist additions.

Gathered from dogfood bugreports.

Test: m

Bug: 74940461
Change-Id: I08a450f987ae0e87ab6f7306e9d89a7ca3368f70

6 years agoRemoved flaky annotation from testFocusedWindowMultipleDisplays
Wale Ogunwale [Mon, 19 Mar 2018 14:35:32 +0000 (07:35 -0700)]
Removed flaky annotation from testFocusedWindowMultipleDisplays

No longer flaky

https://dashboards.corp.google.com/google::_550f6bcf_09dd_4963_b94c_d243e37d002f?f=class_name:in:com.android.server.wm.DisplayContentTests&f=test_name:in:com.android.server.wm.DisplayContentTests.testFocusedWindowMultipleDisplays&f=run_date_usec:eq:(null)&f=presubmit:in:false&f=build_id:eq:(null)

Change-Id: I10504a24144e7636ab7205a079415f6d4eeba043
Fixes: 37908381
Test: self

6 years agoMerge "ConfirmationDialog: Fail if accessibility services are running." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 14:27:16 +0000 (14:27 +0000)]
Merge "ConfirmationDialog: Fail if accessibility services are running." into pi-dev

6 years agoWhitelist FullBackupDataOutput
Sarah Edris [Mon, 19 Mar 2018 12:48:28 +0000 (12:48 +0000)]
Whitelist FullBackupDataOutput

Bug: 74424953
Test: N/A
Change-Id: I3b0386fa004352ef32cb03ba2c53a53bd0f6e1f1

6 years agoMerge "Fix test failure" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 14:02:13 +0000 (14:02 +0000)]
Merge "Fix test failure" into pi-dev

6 years agoMerge "Add more hidden APIs on the light greylist" into pi-dev
David Brazdil [Mon, 19 Mar 2018 13:31:55 +0000 (13:31 +0000)]
Merge "Add more hidden APIs on the light greylist" into pi-dev

6 years agoMerge "Fix lockscreen notification launch animation" into pi-dev
Jorim Jaggi [Mon, 19 Mar 2018 13:23:30 +0000 (13:23 +0000)]
Merge "Fix lockscreen notification launch animation" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 19 Mar 2018 13:12:52 +0000 (06:12 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Icb81b9c2336d04310365592f1cccb53dad0c0403

6 years agoMerge "Trace currently resumed app" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 13:06:30 +0000 (13:06 +0000)]
Merge "Trace currently resumed app" into pi-dev

6 years agoMerge "Close file descriptors of ProfilerInfo" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 12:53:21 +0000 (12:53 +0000)]
Merge "Close file descriptors of ProfilerInfo" into pi-dev

6 years agoMerge "Don't allow focus on activity in minimized split-screen." into pi-dev
Wale Ogunwale [Mon, 19 Mar 2018 12:30:08 +0000 (12:30 +0000)]
Merge "Don't allow focus on activity in minimized split-screen." into pi-dev

6 years agoMerge "DPM: Fix isActivePasswordSufficient for non-FBE devices" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 11:20:27 +0000 (11:20 +0000)]
Merge "DPM: Fix isActivePasswordSufficient for non-FBE devices" into pi-dev

6 years agoAdd more hidden APIs on the light greylist
David Brazdil [Fri, 16 Mar 2018 17:24:51 +0000 (17:24 +0000)]
Add more hidden APIs on the light greylist

Uses reported by the public.

Bug: 64382372
Bug: 74524607
Bug: 74271830
Bug: 74498446
Bug: 74272004
Bug: 74322289
Bug: 74278847
Bug: 74175716
Bug: 74131602
Bug: 74357020
Bug: 74265544
Bug: 74130810
Bug: 74537180
Bug: 74496079
Bug: 74600951
Test: make
Change-Id: I884e76101bdd3d6b08a690810a5b4f5e09306980

6 years agoMerge "MediaSession2: Implement fastForward() / rewind()" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 10:45:03 +0000 (10:45 +0000)]
Merge "MediaSession2: Implement fastForward() / rewind()" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 19 Mar 2018 09:49:10 +0000 (02:49 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ic2f2032f012221333c28ad0793693f2575434e54

6 years agoMediaSession2: Implement fastForward() / rewind()
Jaewan Kim [Thu, 15 Mar 2018 11:31:06 +0000 (20:31 +0900)]
MediaSession2: Implement fastForward() / rewind()

Bug: 74724709
Test: Run CTS with MediaComponents/runcts.sh
Change-Id: Ibd313dc6eed82a5d7cc9fc156f7851aba13f9e29

6 years agoImport translations. DO NOT MERGE
Bill Yi [Mon, 19 Mar 2018 08:34:02 +0000 (01:34 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I689307250cc85c025fca7fd0a0ffbfe30f909fb1

6 years agoMerge "Delete TODO about renumbering statd atoms" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 05:54:22 +0000 (05:54 +0000)]
Merge "Delete TODO about renumbering statd atoms" into pi-dev

6 years agoMerge changes I3ffb6e97,I689df136,Ia67a8eb6 into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 05:49:27 +0000 (05:49 +0000)]
Merge changes I3ffb6e97,I689df136,Ia67a8eb6 into pi-dev

* changes:
  Statsd: remove DurationAnomalyTracker.resetStorage
  Statsd AnomalyDetection stopAlarm also checks old
  Statsd AnomalyDetection improvements

6 years agoMerge "Disable scrim focus on AOD" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 05:03:50 +0000 (05:03 +0000)]
Merge "Disable scrim focus on AOD" into pi-dev

6 years agoMerge "Remove Context requirement from updatable" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 04:02:29 +0000 (04:02 +0000)]
Merge "Remove Context requirement from updatable" into pi-dev

6 years agoMerge changes Ia438f4a2,I356c2d57 into pi-dev
Lucas Dupin [Mon, 19 Mar 2018 03:11:51 +0000 (03:11 +0000)]
Merge changes Ia438f4a2,I356c2d57 into pi-dev

* changes:
  Bouncer notification and QS scrim
  Fix bouncer not showing on top of QS or notif

6 years agoMerge "SystemUI: Temporarily disable test" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 01:18:22 +0000 (01:18 +0000)]
Merge "SystemUI: Temporarily disable test" into pi-dev

6 years agoFrameworks: Make MockUtils more robust
Andreas Gampe [Sun, 18 Mar 2018 23:46:24 +0000 (16:46 -0700)]
Frameworks: Make MockUtils more robust

Avoid a NullPointerException.

Bug: 75459260
Test: mmma frameworks/base/services/tests/servicestests
Change-Id: I2e273b3bd808226507e5e50b537d70edb25950a6

6 years agoMerge "Writes the resource table proto out when writing a LoadedApk." into pi-dev
Cory Smith [Sun, 18 Mar 2018 22:59:27 +0000 (22:59 +0000)]
Merge "Writes the resource table proto out when writing a LoadedApk." into pi-dev

6 years agoSystemUI: Temporarily disable test
Andreas Gampe [Sun, 18 Mar 2018 22:35:39 +0000 (15:35 -0700)]
SystemUI: Temporarily disable test

Bug: 75329085
Test: none
Exempt-From-Owner-Approval: Let TH pass while investigating
Change-Id: I4c007e5162502f0064b65a89408882e4c348e0db

6 years agoWrites the resource table proto out when writing a LoadedApk.
corysmith@google.com [Tue, 13 Mar 2018 16:04:10 +0000 (12:04 -0400)]
Writes the resource table proto out when writing a LoadedApk.

Small fixes for consistancy to use constants instead of strings.

Change-Id: I33439c376e1634b7957730ce16e241b0f5bb92f8
Fixes: 74594854
Test: Manual, tested against blaze test //javatests/com/google/devtools/build/android:UnitTests

6 years agoStatsManager log lines should be in logcat
Bookatz [Sat, 17 Mar 2018 00:13:33 +0000 (17:13 -0700)]
StatsManager log lines should be in logcat

Change the Slog.d to Slog.w and enable them, so that we can see them.
They seem to represent important failure events when people call the
public API into StatsManager.

Bug: 74997752
Test: none
Change-Id: I1c577b32358158f73453a8a3066013e0f3733d87

6 years agoBouncer notification and QS scrim
Lucas Dupin [Tue, 13 Mar 2018 21:00:24 +0000 (14:00 -0700)]
Bouncer notification and QS scrim

Show front scrim when the notification panel is expanded,
otherwise pin would be overlayed on top of notifications.

Change-Id: Ia438f4a2794eb9510ec05ad86cc8c19e2e716358
Fixes: 74550013
Test: double tap on notification when locked
Test: tap on QS edit button when locked
Test: unlock by swipping up
Test: fling quickly on keyguard

6 years agoMerge "Modify time only mode flag into set of values instead of just one." into pi-dev
Michael Kwan [Sat, 17 Mar 2018 22:05:38 +0000 (22:05 +0000)]
Merge "Modify time only mode flag into set of values instead of just one." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sat, 17 Mar 2018 15:22:58 +0000 (15:22 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Add placeholder on DND settings screen." into pi-dev
Julia Reynolds [Sat, 17 Mar 2018 14:28:41 +0000 (14:28 +0000)]
Merge "Add placeholder on DND settings screen." into pi-dev

6 years agoRemove Context requirement from updatable
Christofer Ã…kersten [Thu, 15 Mar 2018 11:24:39 +0000 (20:24 +0900)]
Remove Context requirement from updatable

Bug: 74843539
Test: runtest-cts-MediaComponents && atest VideoView2Test
Change-Id: Iba5422f8d092205316ec3fa2c10da6d3f983fde6

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 17 Mar 2018 06:33:48 +0000 (23:33 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I4f0cac1ca19646cb5e45c5d84814883a3c11c1d6

6 years agoMerge "Docstring Updates for applyTransportModeTransform" into pi-dev
TreeHugger Robot [Sat, 17 Mar 2018 03:44:46 +0000 (03:44 +0000)]
Merge "Docstring Updates for applyTransportModeTransform" into pi-dev

6 years agoMerge "Don't truncate empty text on low density" into pi-dev
Julia Reynolds [Sat, 17 Mar 2018 01:36:04 +0000 (01:36 +0000)]
Merge "Don't truncate empty text on low density" into pi-dev

6 years agoMerge "Add new semantic Person fields" into pi-dev
Julia Reynolds [Sat, 17 Mar 2018 01:35:20 +0000 (01:35 +0000)]
Merge "Add new semantic Person fields" into pi-dev

6 years agoAdd placeholder on DND settings screen.
Julia Reynolds [Thu, 15 Mar 2018 13:27:31 +0000 (09:27 -0400)]
Add placeholder on DND settings screen.

Test: make
Bug: 74321426
Change-Id: Ie457b3c994a0d851d835a56a01c28a0acbf102e3

6 years agoMerge "Add cycle-clean option in AppLaunch" into pi-dev
Gopinath Elanchezhian [Sat, 17 Mar 2018 00:55:05 +0000 (00:55 +0000)]
Merge "Add cycle-clean option in AppLaunch" into pi-dev

6 years agoDocstring Updates for applyTransportModeTransform
Nathan Harold [Tue, 6 Mar 2018 21:22:22 +0000 (13:22 -0800)]
Docstring Updates for applyTransportModeTransform

-Add anotations to usages of PolicyDirection for
 apply...() methods.
-Update the comments on DIRECTION_IN and DIRECTION_OUT
 to better reflect their current usage.
-Add a better explanation to the rekey procedure doc.
-Remove disused createTunnelInterface() stub.

Bug: 73751066
Test: make docs
Merged-In: I9f2ec864466148a18899f1e952c74a525902ccbc
Change-Id: I9f2ec864466148a18899f1e952c74a525902ccbc
(cherry picked from commit f4cdf25a906d0f52ffd76508d660b843b13b3ff8)

6 years agoMerge "Hide notifications when in Lockdown mode" into pi-dev
Chad Brubaker [Sat, 17 Mar 2018 00:16:34 +0000 (00:16 +0000)]
Merge "Hide notifications when in Lockdown mode" into pi-dev

6 years agoMerge "Add null check to RecentTasks.java" into pi-dev
Wale Ogunwale [Fri, 16 Mar 2018 23:53:29 +0000 (23:53 +0000)]
Merge "Add null check to RecentTasks.java" into pi-dev

6 years agoMerge "Allow carrier-privileged apps to register telephony listeners." into pi-dev
Jeff Davidson [Fri, 16 Mar 2018 23:48:51 +0000 (23:48 +0000)]
Merge "Allow carrier-privileged apps to register telephony listeners." into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 23:30:49 +0000 (23:30 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Create snapshot even if no PendingIntent is registered" into pi-dev
Robert Berry [Fri, 16 Mar 2018 23:13:53 +0000 (23:13 +0000)]
Merge "Create snapshot even if no PendingIntent is registered" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 22:59:32 +0000 (22:59 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoDelete TODO about renumbering statd atoms
Bookatz [Fri, 16 Mar 2018 22:47:57 +0000 (15:47 -0700)]
Delete TODO about renumbering statd atoms

Test: none
Bug: 72553942
Change-Id: If59ee407dffaed713a3a2f7543314aef3e70ef2c

6 years agoMerge "App Time Limits API in UsageStats" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 22:40:46 +0000 (22:40 +0000)]
Merge "App Time Limits API in UsageStats" into pi-dev

6 years agoMerge "Unhide getKey() and importKey() and the whole class of RecoveryController...
Aseem Kumar [Fri, 16 Mar 2018 22:27:37 +0000 (22:27 +0000)]
Merge "Unhide getKey() and importKey() and the whole class of RecoveryController. Added @RequiresPermission(android.permission.RECOVER_KEYSTORE) on all public APIs of RecoveryController." into pi-dev

6 years agoStatsd: remove DurationAnomalyTracker.resetStorage
Bookatz [Fri, 16 Mar 2018 22:25:49 +0000 (15:25 -0700)]
Statsd: remove DurationAnomalyTracker.resetStorage

The explicit resetStorage function in the subclass isn't needed.
It does exactly what its superclass does.
The previous check for !mAlarms.empty() was actually not needed, since
there can be legit cases where !mAlarms.empty() (namely, when the
mMostRecentBucket is moved forward initially - we may call reset, but we
still want the old alarms to remain).

Test: still pass
Change-Id: I3ffb6e97c02b75170c246f57d55ccf59cd368b9c
Fixes: 74607818

6 years agoSoftens one of the battery strings per UI request
Salvador Martinez [Fri, 16 Mar 2018 22:15:30 +0000 (15:15 -0700)]
Softens one of the battery strings per UI request

Bug: 74448640
Test: robotests updated
Change-Id: I25a18dcad343fd0eeeeac504570eea7a1a325a1a

6 years agoMerge "Also show "last BS off time" in dumpsys power" into pi-dev
Makoto Onuki [Fri, 16 Mar 2018 21:48:20 +0000 (21:48 +0000)]
Merge "Also show "last BS off time" in dumpsys power" into pi-dev

6 years agoDon't truncate empty text on low density
Julia Reynolds [Thu, 15 Mar 2018 19:20:16 +0000 (15:20 -0400)]
Don't truncate empty text on low density

Test: manual inspection
Change-Id: I0c94d23cf0a2b14bc855f5ef39687ece783739c1
Fixes: 74980883

6 years agoFix KeyButtonDrawable dark intensity logic error
Mike Digman [Fri, 16 Mar 2018 20:47:38 +0000 (13:47 -0700)]
Fix KeyButtonDrawable dark intensity logic error

The implication of this logic error was that tinting always
appeared unset, so rotate logic never applied the current tint
to recreated TintedKeyButtonDrawables.

Change-Id: Id499b82163b28d341794e2cdee50c2be184d2be7
Fixes: 75297451
Test: manual

6 years agoFix test failure
Jason Monk [Fri, 16 Mar 2018 21:07:02 +0000 (17:07 -0400)]
Fix test failure

Test: uiservicestests
Change-Id: I2b4b117489aedb72fa9aecfdbb6b658026df91da
Fixes: 75301012

6 years agoCreate snapshot even if no PendingIntent is registered
Robert Berry [Thu, 15 Mar 2018 15:28:05 +0000 (15:28 +0000)]
Create snapshot even if no PendingIntent is registered

When the user first unlocks the phone after booting, the system
app has not yet started. As such, it will not have had a chance to
register a PendingIntent. But if it has ever previously initialized,
the framework can still create a snapshot, and should. Otherwise, it
may be up to 72 hours before the user unlocks their phone again using
the primary method, which adds delay to the key sync.

Bug: 73921897
Test: runtest frameworks-services -p \
      com.android.server.locksettings.recoverablekeystore

Change-Id: Idfaf53194e6a2f5d5ce0123d72f46197392d2c99

6 years agometrics constant for volume gesture.
Julia Reynolds [Fri, 16 Mar 2018 13:09:45 +0000 (09:09 -0400)]
metrics constant for volume gesture.

Test: make
Bug: 75252670
Change-Id: Ifa4412d8e440d2259c534f5ad7a9914ef4239a6c

6 years agoStatsd AnomalyDetection stopAlarm also checks old
Bookatz [Fri, 16 Mar 2018 17:09:59 +0000 (10:09 -0700)]
Statsd AnomalyDetection stopAlarm also checks old

Every time stopAlarm() is called, it should also,
right then, check to see if the alarm should actually
have already fired (but didn't due to AlarmManager lag).
Right now, the client needs to do this check separately,
but they always go together. Indeed, MaxDurationTracker
forgot to do the check, which is a bug. It would make
much more sense if the stopAlarm takes care of it for
them, to prevent such mistakes.

Bug: 75273733
Test: make statsd_test && adb sync data && adb shell data/nativetest64/statsd_test/statsd_test
Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t android.cts.statsd.alert
Change-Id: I689df13690df822090ac34b1171e948be1ad0d9f

6 years agoUnhide getKey() and importKey() and the whole class of RecoveryController.
Aseem Kumar [Mon, 12 Mar 2018 21:34:58 +0000 (14:34 -0700)]
Unhide getKey() and importKey() and the whole class of RecoveryController.
Added @RequiresPermission(android.permission.RECOVER_KEYSTORE) on all
public APIs of RecoveryController.

Bug: 73900159
Test: adb shell am instrument -w -e package \
com.android.server.locksettings.recoverablekeystore \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I1047c038603869307d7a2462a2e5635fcd1c94c2

6 years agoAdd disable2 flag for rotate suggestions
Mike Digman [Fri, 16 Mar 2018 17:54:22 +0000 (10:54 -0700)]
Add disable2 flag for rotate suggestions

The SUW team has requested a programmatic way to hide rotation
suggestions during setup. Piggyback on disable2 with new flag,
callbacks already available in NavBarFragment. Downgrade
permissions for disable2 to match disable so SUW can use.

Test: manual with SUW variant
Fixes: 75291849
Change-Id: I1021ee5e1628c36ebf53afe843f903006474163e

6 years agoModify time only mode flag into set of values instead of just one.
Michael Kwan [Fri, 16 Mar 2018 19:25:50 +0000 (12:25 -0700)]
Modify time only mode flag into set of values instead of just one.

The time only mode flag has not been used yet, so the change should
be low impact.

Bug: 38259902
Test: m -j32
Change-Id: Ie01870633dbaaf51989a148f105a995f58f0da4e

6 years agoDisable scrim focus on AOD
Lucas Dupin [Wed, 14 Mar 2018 19:41:39 +0000 (12:41 -0700)]
Disable scrim focus on AOD

Test: tests/src/com/android/systemui/statusbar/phone/ScrimControllerTest.java
Change-Id: I5ca941454fe7d0d058970323838b1f3e94fa5f33
Fixes: 74726963

6 years agoAdd new semantic Person fields
Julia Reynolds [Thu, 15 Mar 2018 12:37:10 +0000 (08:37 -0400)]
Add new semantic Person fields

Bug: 74431200
Test: cts
Change-Id: I9eda447ae371ef635e9044a13ba7973bd69520ce

6 years agoMerge "Do not sleep activities in focused stack when keyguard is going away" into...
Bryce Lee [Fri, 16 Mar 2018 19:11:56 +0000 (19:11 +0000)]
Merge "Do not sleep activities in focused stack when keyguard is going away" into pi-dev

6 years agoAdd cycle-clean option in AppLaunch
gopinath [Fri, 16 Mar 2018 02:24:38 +0000 (19:24 -0700)]
Add cycle-clean option in AppLaunch

If cycle-clean is enabled then all the apps will be
killed at the end of the cycle and cache will dropped.

Cycle time is also enabled to measure the sum of launch times
during each cycle.

Above two options will enable use to measure app launch time under
memeory pressue by not killing the app between the launches and
by killing all the apps and dropping the cache before each cycle
and measuring the cycle time.

Bug: b/73091210

Tested : Tested with nodropcache, no force stop between launches
and cycle clean option and the cycle time avg,min and max
is printed as expected.

Change-Id: I8fb22439a9fe191104ce024c8a85a2688068cd60

6 years agoMerge "Deleting Visibility from WifiConfiguration" into pi-dev
Oscar Shu [Fri, 16 Mar 2018 18:45:27 +0000 (18:45 +0000)]
Merge "Deleting Visibility from WifiConfiguration" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 16 Mar 2018 18:42:12 +0000 (11:42 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I510439c0816ad0b800b0eae982024b580a686333

6 years agoStatsd AnomalyDetection improvements
Bookatz [Wed, 14 Mar 2018 17:44:24 +0000 (10:44 -0700)]
Statsd AnomalyDetection improvements

Various fixes and improvements to statsd's anomaly detection.

Bug: 74607818
Test: make statsd_test && adb sync data && adb shell data/nativetest64/statsd_test/statsd_test

Change-Id: Ia67a8eb6da0ea9293f698949e1565f7f024a7cb9

6 years agoEnable cleartext for captive portal apps
Adam Newman [Fri, 16 Mar 2018 17:36:35 +0000 (10:36 -0700)]
Enable cleartext for captive portal apps

When a user attempts to visit a captive portal the Activity will attempt
to load http://connectivitycheck.gstatic.com/generate_204 and a
walled-garden will typically intercept this and respond with a 302
redirect to a sign-in flow.

The new default of disabling cleartext unless explicitly enabled breaks
captive portal operation. This change enables cleartext for the two
applications that contain a CaptivePortalLoginActivity.

Bug: 75279991
Test: Manually associated with captive portals.
Change-Id: I081dfed067b3a78a81bfd3ec10afaf953b6baf3f

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 16 Mar 2018 18:21:56 +0000 (11:21 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I657ea734aa601490b7e058c446cac74bd1d2406c

6 years agoMerge "Fix privacy tags based on PWG review meeting." into pi-dev
Yi Jin [Fri, 16 Mar 2018 18:18:11 +0000 (18:18 +0000)]
Merge "Fix privacy tags based on PWG review meeting." into pi-dev

6 years agoMerge "Clear calling UID before resolving intent types." into pi-dev
Bryce Lee [Fri, 16 Mar 2018 18:04:00 +0000 (18:04 +0000)]
Merge "Clear calling UID before resolving intent types." into pi-dev

6 years agoFix bouncer not showing on top of QS or notif
Lucas Dupin [Fri, 16 Mar 2018 00:53:17 +0000 (17:53 -0700)]
Fix bouncer not showing on top of QS or notif

Bug: 74726131
Test: packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Test: unlock with fp
Test: unlock with pattern
Test: edit QS - look at bouncer
Test: tap on notification when locked
Change-Id: I356c2d5700531cc9bb9b4179f12d4fd65f8bfc41

6 years agoMerge "Renamed getNetworkId and getSystemId" into pi-dev
Jack Yu [Fri, 16 Mar 2018 17:39:54 +0000 (17:39 +0000)]
Merge "Renamed getNetworkId and getSystemId" into pi-dev

6 years agoMerge "autofill: ViewRootImpl.dispatchKeyFromIme() should not be dropped" into pi-dev
Dake Gu [Fri, 16 Mar 2018 17:32:25 +0000 (17:32 +0000)]
Merge "autofill: ViewRootImpl.dispatchKeyFromIme() should not be dropped" into pi-dev

6 years agoFix lockscreen notification launch animation
Jorim Jaggi [Fri, 16 Mar 2018 16:49:49 +0000 (17:49 +0100)]
Fix lockscreen notification launch animation

When launching a notification from the lockscreen, we immediately
start an app transition because the app is started in invisible
/stopped state. Then, we try to take a screenshot, but nothing
is visible yet because the AppWindowToken is hidden.

Furthermore this fixes a bug where we were starting a remote
animation too aggressively.

Test: Launch anything from lockscreen
Test: go/wm-smoke
Change-Id: Iea9366813fa5780460a9ab2738f2a17f65fbeb15
Fixes: 73187454

6 years agoAdd null check to RecentTasks.java
Alice Sheng [Fri, 16 Mar 2018 16:45:58 +0000 (09:45 -0700)]
Add null check to RecentTasks.java

isRecentComponentHomeActivity throws a null pointer exception if
mRecentsComponent is null.

Bug: 75261682
Change-Id: Ia177b00ae11a42ddaa13350da686c96cd61436af

6 years agoAlso show "last BS off time" in dumpsys power
Makoto Onuki [Fri, 16 Mar 2018 16:24:36 +0000 (09:24 -0700)]
Also show "last BS off time" in dumpsys power

Change-Id: I53d7727847b84b29bdc8285c50ce59def4378684
Fix: 75024658
Bug: 75024658
Test: Manual test with dumpsys power
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/BatterySavingStatsTest.java

6 years agoMerge "onUnsyncableAccount: Better docs, main thread" into pi-dev
Philip P. Moltmann [Fri, 16 Mar 2018 16:04:08 +0000 (16:04 +0000)]
Merge "onUnsyncableAccount: Better docs, main thread" into pi-dev

6 years agoMerge "Make PrecomputedText Spannable for supporting selection" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 15:43:46 +0000 (15:43 +0000)]
Merge "Make PrecomputedText Spannable for supporting selection" into pi-dev

6 years agoMerge "Fix stuck exiting windows" into pi-dev
Jorim Jaggi [Fri, 16 Mar 2018 14:35:01 +0000 (14:35 +0000)]
Merge "Fix stuck exiting windows" into pi-dev

6 years agoMerge "DisplayCutout: Fix corner cutout issues in SystemUI" into pi-dev
Adrian Roos [Fri, 16 Mar 2018 14:27:30 +0000 (14:27 +0000)]
Merge "DisplayCutout: Fix corner cutout issues in SystemUI" into pi-dev

6 years agoMerge "Enable optional divider in AccessPointPreference" into pi-dev
Adam Newman [Fri, 16 Mar 2018 14:26:25 +0000 (14:26 +0000)]
Merge "Enable optional divider in AccessPointPreference" into pi-dev