OSDN Git Service
Lucas Dupin [Mon, 19 Mar 2018 19:38:05 +0000 (12:38 -0700)]
Temporarily show wallpaper when pulsing
Test: visual
Bug:
63868547
Change-Id: Iaf6cee337400d5da6b79e34fef326429fc1925f4
TreeHugger Robot [Mon, 19 Mar 2018 16:18:53 +0000 (16:18 +0000)]
Merge "StatsManager log lines should be in logcat" 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
Makoto Onuki [Mon, 19 Mar 2018 15:12:36 +0000 (15:12 +0000)]
Merge "Fix SyncResutl.delayUntil javadoc" into pi-dev
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
TreeHugger Robot [Mon, 19 Mar 2018 14:27:16 +0000 (14:27 +0000)]
Merge "ConfirmationDialog: Fail if accessibility services are running." into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 14:02:13 +0000 (14:02 +0000)]
Merge "Fix test failure" 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
Jorim Jaggi [Mon, 19 Mar 2018 13:23:30 +0000 (13:23 +0000)]
Merge "Fix lockscreen notification launch animation" into pi-dev
TreeHugger Robot [Mon, 19 Mar 2018 13:06:30 +0000 (13:06 +0000)]
Merge "Trace currently resumed app" 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
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
TreeHugger Robot [Mon, 19 Mar 2018 11:20:27 +0000 (11:20 +0000)]
Merge "DPM: Fix isActivePasswordSufficient for non-FBE devices" into pi-dev
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
TreeHugger Robot [Mon, 19 Mar 2018 10:45:03 +0000 (10:45 +0000)]
Merge "MediaSession2: Implement fastForward() / rewind()" into pi-dev
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
TreeHugger Robot [Mon, 19 Mar 2018 05:54:22 +0000 (05:54 +0000)]
Merge "Delete TODO about renumbering statd atoms" 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
TreeHugger Robot [Mon, 19 Mar 2018 05:03:50 +0000 (05:03 +0000)]
Merge "Disable scrim focus on AOD" 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
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
TreeHugger Robot [Mon, 19 Mar 2018 01:18:22 +0000 (01:18 +0000)]
Merge "SystemUI: Temporarily disable test" 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
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
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
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
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
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
TreeHugger Robot [Sat, 17 Mar 2018 15:22:58 +0000 (15:22 +0000)]
Merge "Import translations. DO NOT MERGE" 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
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
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
TreeHugger Robot [Sat, 17 Mar 2018 03:44:46 +0000 (03:44 +0000)]
Merge "Docstring Updates for applyTransportModeTransform" 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
Julia Reynolds [Sat, 17 Mar 2018 01:35:20 +0000 (01:35 +0000)]
Merge "Add new semantic Person fields" into pi-dev
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
Gopinath Elanchezhian [Sat, 17 Mar 2018 00:55:05 +0000 (00:55 +0000)]
Merge "Add cycle-clean option in AppLaunch" into pi-dev
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)
Chad Brubaker [Sat, 17 Mar 2018 00:16:34 +0000 (00:16 +0000)]
Merge "Hide notifications when in Lockdown mode" 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
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
TreeHugger Robot [Fri, 16 Mar 2018 23:30:49 +0000 (23:30 +0000)]
Merge "Import translations. DO NOT MERGE" 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
TreeHugger Robot [Fri, 16 Mar 2018 22:59:32 +0000 (22:59 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev
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
TreeHugger Robot [Fri, 16 Mar 2018 22:40:46 +0000 (22:40 +0000)]
Merge "App Time Limits API in UsageStats" into pi-dev
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
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
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
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
Jason Monk [Fri, 16 Mar 2018 21:07:02 +0000 (17:07 -0400)]
Fix test failure
Test: uiservicestests
Change-Id: I2b4b117489aedb72fa9aecfdbb6b658026df91da
Fixes:
75301012
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
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
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
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
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
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
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
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
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
Oscar Shu [Fri, 16 Mar 2018 18:45:27 +0000 (18:45 +0000)]
Merge "Deleting Visibility from WifiConfiguration" into pi-dev
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
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
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
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
Bryce Lee [Fri, 16 Mar 2018 18:04:00 +0000 (18:04 +0000)]
Merge "Clear calling UID before resolving intent types." into pi-dev
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
Jack Yu [Fri, 16 Mar 2018 17:39:54 +0000 (17:39 +0000)]
Merge "Renamed getNetworkId and getSystemId" 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
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
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
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
Philip P. Moltmann [Fri, 16 Mar 2018 16:04:08 +0000 (16:04 +0000)]
Merge "onUnsyncableAccount: Better docs, main thread" 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
Jorim Jaggi [Fri, 16 Mar 2018 14:35:01 +0000 (14:35 +0000)]
Merge "Fix stuck exiting windows" 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
Adam Newman [Fri, 16 Mar 2018 14:26:25 +0000 (14:26 +0000)]
Merge "Enable optional divider in AccessPointPreference" into pi-dev
Alan Viverette [Fri, 16 Mar 2018 13:53:46 +0000 (13:53 +0000)]
Merge "Restore "Update packages for 1.0.0-beta1"" into pi-dev
Jorim Jaggi [Wed, 10 Jan 2018 12:50:28 +0000 (13:50 +0100)]
Trace currently resumed app
Since we now have the ability to multi-hour systraces from
devices used daily, it's useful to do additional segmentation
and understanding what part of an app's runtime is due to it
being in foreground vs background.
Test: go/wm-smoke
Test: Take trace, check whether currently resumed app is being
traced.
Bug:
69862220
Change-Id: Idaf9af4c366dfedb29d07b75f7eaf17d9a2165a0
Adrian Roos [Fri, 16 Mar 2018 13:01:00 +0000 (13:01 +0000)]
Merge "DisplayCutout: Add corner cutout overlay" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 12:45:47 +0000 (12:45 +0000)]
Merge "Add uses of hidden APIs from vendor apps" into pi-dev
Jorim Jaggi [Fri, 16 Mar 2018 12:14:48 +0000 (12:14 +0000)]
Merge "Boost thread priorities when running recents anim" into pi-dev
Wale Ogunwale [Thu, 15 Mar 2018 23:41:05 +0000 (16:41 -0700)]
Don't allow focus on activity in minimized split-screen.
Return false for ActivityRecord.isFocusable() for activities in minimized
split-screen since their windows can't be focused or interacted with.
Also, move focus off split-screen primary stack when we enter minimize
mode.
Change-Id: Iecec5d55123f1c3530c461314fa69498575ef5c3
Fixes:
74404706
Fixes:
74837107
Fixes:
74919175
Test: Put an app in split-screen, launch it from launch again, and observe ANR.
Test: atest ActivityManagerAppConfigurationTests#testDialogWhenLargeSplitSmall
Test: atest ActivityManagerSplitScreenTests#testNoUserLeaveHintOnMultiWindowModeChanged
Madiyar Aitbayev [Sat, 3 Mar 2018 18:48:58 +0000 (18:48 +0000)]
Close file descriptors of ProfilerInfo
When using "am start --start-profiler" command, am doesn't close
instances of related ParcelFileDescriptor of the profiler file path,
but relies on garbage collection, so at the system level the file
kept open for longer than it is needed. In a result, some processes
that monitors the file close event using unix inotify_add_watch
method would wait 20~30 Seconds.
This change closes file descriptors after passing it to ActivityThread
process, which is similar to what "am profile start" does.
Bug: b/
73891014
Test: tested manually by flashing into Pixel XL device.
Change-Id: I5b63b96335fdaf86f0cd0caec2c53c32c0e41d72
(cherry picked from commit
b101e4b052330b04de62753dc49e2f233e109117)
Annie Meng [Fri, 16 Mar 2018 10:25:32 +0000 (10:25 +0000)]
Merge "DO NOT MERGE Create a setting for backup/restore agent timeouts" into pi-dev
David Brazdil [Tue, 13 Mar 2018 09:41:23 +0000 (09:41 +0000)]
Add uses of hidden APIs from vendor apps
These will move into the dark greylist once we remove the UI toast.
Merge them with light greylist for now.
Bug:
64382372
Bug:
74589747
Bug:
74588266
Bug:
74586173
Bug:
74586969
Test: make
Change-Id: I8c1d3b67b763e8b14a66874705ba7165cf421e72
Merged-In: I5d0ec308a0187d67df6d9a4f0778c9285dc1e2af
Eran Messeri [Fri, 9 Mar 2018 17:14:14 +0000 (17:14 +0000)]
DPM: Fix isActivePasswordSufficient for non-FBE devices
For non-FBE devices (devices will full disk encryption or no encryption
at all) the password metrics are not kept in plaintext anymore, so it
is not possible to evaluate the sufficiency of the password when new
password quality requirements are set. Instead, the sufficiency value is
stored in a checkpoint that gets loaded after boot and used before the
user has entered any credentials.
However this checkpoint value was not evaluated correctly (there was a
circular dependency between setting it and reading it) and was not
stored on the right DevicePolicyData object.
Fix the checkpoint value to be the correct one and stored on the right
object, by doing the following:
* Removing the short-circuit introduced in ag/
2866930.
* Change the default checkpoint value to true, to prevent re-introducing
b/
63887564, and because a newly-created profile, before any password
requirements are set, has a sufficient password.
* Get rid of the circular dependency between setting and reading
mPasswordValidAtLastCheckpoint, by extracting from
isActivePasswordSufficientForUserLocked a function that does not look at
the checkpoint value.
* Store the checkpoint value in the DevicePolicyData object of the
credential owner, as this is where isActivePasswordSufficient reads it.
More details can be found in https://docs.google.com/document/d/15CRewlsy1lyonjAWg3VmhLC5jAyVKazUMKlcPnnId58/edit#
Bug:
71697938,
73347414
Test: cts-tradefed run commandAndExit cts-dev -s 127.0.0.1:56619 -a x86_64 -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminHostSideTestApi23#testResetPassword_nycRestrictions -l DEBUG on a gce instance.
Change-Id: Ide5b2e53cf100b087822844ca51b3bc69e7ddf82
Hyundo Moon [Thu, 15 Mar 2018 05:00:07 +0000 (14:00 +0900)]
MediaSession2: Implement getPlayerState/Position/BufferedPosition
Bug:
74578458
Test: Passed CTS
Change-Id: If215e8e16bdce9fdc04ca18ed8d08ed374d13a98
Jaewan Kim [Fri, 16 Mar 2018 06:35:23 +0000 (06:35 +0000)]
Merge "MediaSession2: Implement PlaylistParams replacements" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 04:00:48 +0000 (04:00 +0000)]
Merge "Frameworks: Fix system server profiling" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 03:36:00 +0000 (03:36 +0000)]
Merge "Delay DropBox until SettingsProvider becomes ready" into pi-dev
Jaewan Kim [Wed, 14 Mar 2018 11:37:38 +0000 (20:37 +0900)]
MediaSession2: Implement PlaylistParams replacements
This includes following changes
- Remove PlaylistParams
- Implement PlaylistParams replacements. Here's the list.
- get/setShuffleMode()
- get/setRepeatMode()
- Note: Playlist metadata APIs are already submitted (b/
74174649)
Bug:
74116823, Bug:
74118768
Test: Run CTS with MediaComponents/runcts.sh
Change-Id: I0267ffeaf92257eb7b81ffc8b6a3f40b5a2f6f9c
TreeHugger Robot [Fri, 16 Mar 2018 03:00:44 +0000 (03:00 +0000)]
Merge "Change FUSE_MAX_WRITE's value to 128KB" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 02:57:51 +0000 (02:57 +0000)]
Merge "Fix buffer size check in replyRead" into pi-dev
Adam Newman [Fri, 9 Mar 2018 00:46:16 +0000 (16:46 -0800)]
Enable optional divider in AccessPointPreference
Create a new preference layout based on layout_preference_two_target
that will allow for the optional use of a second target with a ripple
animation that stops at the hairline divider as well as a toggle for the
hairline divider.
This will enable ConnectedAccessPointPreference to
display a split between the left and right half when a Captive Portal
signin is pending.
Bug:
63929546
Bug:
68031656
Test: make RunSettingsLibRoboTests
Test: manual testing with Captive Portal and normal WiFi networks.
Change-Id: I5c8c513290ed04a8dcc38c3f9d6c149c9cca08aa
(cherry picked from commit
c0a8276d9ffd8177c11c74ec4366e9d1d3546e73)
Rob Carr [Fri, 16 Mar 2018 02:41:13 +0000 (02:41 +0000)]
Merge "Ensure Surface is recreated if children are detached." into pi-dev
Jaewan Kim [Fri, 16 Mar 2018 02:32:44 +0000 (02:32 +0000)]
Merge "MediaSession2: Remove MediaSession2#registerPlayerEventCallback()" into pi-dev
Jaewan Kim [Fri, 16 Mar 2018 02:31:36 +0000 (02:31 +0000)]
Merge "MediaSession2: Remove onPlaylistChanged() without metadata" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 02:30:12 +0000 (02:30 +0000)]
Merge "Add phenotype flag to disable battery saver tron log" into pi-dev
TreeHugger Robot [Fri, 16 Mar 2018 02:14:51 +0000 (02:14 +0000)]
Merge "Fix resetting of wallpaper offset." into pi-dev