summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorPavel Grafov <pgrafov@google.com>2020-03-26 16:06:24 +0000
committerPavel Grafov <pgrafov@google.com>2020-04-22 12:50:08 +0100
commita85e246ce5698928b30996020d2169e5a2339fcd (patch)
tree5fe42d9e293b1a36bed0aa34cafda0b17b8d3cdd /tools/aapt2/java/JavaClassGenerator_test.cpp
parent3360c54cd623517a8c906984187d9543654d0e7f (diff)
Warn the user about impending personal app suspension.
* updatePersonalAppsSuspension is invoked for all events relevant to profile maximum time off: user stopped, user unlocked, system boot, deadline alarm goes off, setManagedProfileMaximumTimeOff called. * It takes all relecant bits of state into account: policy, current deadline, user state. It calculates the new state of the deadline, notification and alarm and makes appropriate changes (e.g. schedules the alarm, posts notification, suspens apps). * Updated package manager query flags so that even when personal apps are being suspended while the user is locked, it includes non direct boot aware apps as well. Test: manual, with TestDPC Test: atest OrgOwnedProfileOwnerTest#testWorkProfileMaximumTimeOff Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest Test: atest OrgOwnedProfileOwnerTest#testPersonalAppsSuspensionNormalApp Bug: 149075510 Change-Id: I94d2582c7af91a5d97e67d2baf2e15f0a6d5ffa9
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions