Commit Graph

16333 Commits

Author SHA1 Message Date
Alex Light
cfdc4f7686 Merge "Perform agent startup-attach before bind" am: 7ae1299cdd am: d3337c9051 am: b49226d0be
am: a10ebfaa56

Change-Id: I3bc2422269baebdfe9a9a8aa2894b12c4dfe5586
2019-10-09 15:26:37 -07:00
Alex Light
a10ebfaa56 Merge "Perform agent startup-attach before bind" am: 7ae1299cdd am: d3337c9051
am: b49226d0be

Change-Id: I7ef1a8d56ebe123e19f2913c13324bd52ac08de2
2019-10-09 15:14:51 -07:00
Alex Light
b49226d0be Merge "Perform agent startup-attach before bind" am: 7ae1299cdd
am: d3337c9051

Change-Id: I1a23e449d95ddc61aafcb3746bc79f6b734ddbef
2019-10-09 14:58:09 -07:00
Alex Light
d3337c9051 Merge "Perform agent startup-attach before bind"
am: 7ae1299cdd

Change-Id: I9fc9f0daa019ce8110154d8ede8f269b7d3bfea9
2019-10-09 14:42:15 -07:00
Alex Light
7ae1299cdd Merge "Perform agent startup-attach before bind" 2019-10-09 21:25:48 +00:00
Chris Tate
9d23418063 Merge "Move PackageManagerInternal to services.jar" 2019-10-09 17:51:10 +00:00
Varun Shah
b5ceeaf629 Merge "Allow the supervision app to access certain UsageStats APIs." 2019-10-09 03:24:13 +00:00
Christopher Tate
e4f5f2d3f5 Move PackageManagerInternal to services.jar
The one messy internal caller is the settings provider, so a new @hide
API on PackageManager was introduced to decouple the provider from
LocalServices.  That new entry point is only callable by uid 1000,
paralleling the previous system-caller-only availability.

Bug: 140833849
Test: system boots & runs normally
Change-Id: I93ae38b8f55db7864893a97795aea63014bf5e12
2019-10-08 15:49:43 -07:00
Varun Shah
b472b8f281 Allow the supervision app to access certain UsageStats APIs.
Allow the active supervision component to access app usage limit APIs.
This includes #registerAppUsageLimitObserver
and #unregisterAppUsageLimitObserver.

Bug: 138681869
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest#testIsActiveSupervisor
Test: atest AppTimeLimitControllerTests
Test: atest android.app.usage.cts.UsageStatsTest
Change-Id: I3daafc14ccdbf27558c1325b965f2bc6d2dab2f6
2019-10-08 11:45:38 -07:00
Alex Light
2d0691c7e1 Perform agent startup-attach before bind
We were performing agent startup-attach during bind but this was too
late for some agents, as it occurred after Context was created. Change
implementation to make this occur prior to bind.

Test: atest CtsJvmtiAttachingHostTestCases
Bug: 142010970
Change-Id: I5f75e8b3c508116762b7863d9b47251d0e808ea9
2019-10-08 11:09:53 -07:00
TreeHugger Robot
6457e8447b Merge "Add callback to notify frozen RecentTasks" 2019-10-07 23:59:32 +00:00
Vinit Nayak
8e54796add Add callback to notify frozen RecentTasks
TaskStackListener can now know when
RecentTasks recents list has been
frozen and unfrozen.
Launcher needs this to know when to listen
for multiple swipe regions in quickstep
for apps with different orientations.

Fixes: 140116135
Test: Had Launcher be a consumer of new
listener and verified via logs and
debugger that it was sending the correct
callback when quickswitching apps.

Change-Id: I65fb92d2490c91837523b99563d4fef422dabb76
2019-10-07 15:01:01 -07:00
TreeHugger Robot
8e73c69e91 Merge "Add KeyChain.KEY_ALIAS_SELECTION_DENIED constant." 2019-10-07 14:57:42 +00:00
Polina Bondarenko
a75bf0ca59 Add KeyChain.KEY_ALIAS_SELECTION_DENIED constant.
Add KEY_ALIAS_SELECTION_DENIED contant to flag that no private key alias has
been chosen in onChoosePrivateKeyAlias, but no KeyChainActivity selection dialog
should be presented to the user.

Bug: 136649900
Test: run cts --test MixedManagedProfileOwnerTest#testDelegationCertSelection
Change-Id: I9aeea7be0c2a6172ca054f91d49183c843ecfa6e
2019-10-07 15:05:39 +02:00
Kevin Chyn
f8ff281ae0 Merge changes from topic "biometric-ui-credentials"
* changes:
  Animate panel to transparent if profile is managed
  17/n: Show credential UI if setDeviceCredentialAllowed(true) and no biometrics
  16/n: Add PIN/Password
  15/n: Allow Auth UI to start in credential UI
  14/n: Animate to device credential UI when lockout occurs
  13/n: persist device credential across configuration changes
  12/n: Add LockPatternView for setDeviceCredentialAllowed(true)
  11/n: Animate panel to full-screen when "Use Password" is pressed
  Removing old confirm device credential logic
2019-10-05 02:37:26 +00:00
Jacky Kao
61178c5f13 Merge "Implementing new API : getWindowsOnAllDisplays()" 2019-10-05 00:07:04 +00:00
TreeHugger Robot
f25b446cae Merge "Add Resources Perf Tests" 2019-10-04 21:54:30 +00:00
Makoto Onuki
496d47ab03 Merge "MoveAppStandbyController to the jobscheduler module" 2019-10-04 17:01:41 +00:00
Makoto Onuki
ec55b7a13d Merge "Clean up SystemServiceRegistry." 2019-10-04 17:01:22 +00:00
Jacky Kao
c7be7b52a2 Implementing new API : getWindowsOnAllDisplays()
1. Implementing the new API for supporting multi-display.
SparseArray<List<AccessibilityWindowInfo>> getWindowsOnAllDisplays()
2. Modifying the documents of this API and its function is to get the window lists of
default display.
List<AccessibilityWindowInfo> getWindows()

Bug: 133279356
Test: a11y CTS & unit tests
Change-Id: Id4e874f43390bdf4196d106a44bbca18bf9fd1d6
2019-10-04 08:31:14 +08:00
Makoto Onuki
a72e04fcd9 MoveAppStandbyController to the jobscheduler module
Bug: 137763703
Test: boot
Test: atest AppStandbyControllerTests
Change-Id: I03799c976f6c8b3e775a1a6321885a9cb069a0a0
2019-10-03 15:41:26 -07:00
Chen Xu
d6b2673181 remove API RoleManager.getFinancialSms
getFinancialSms is not functional and not used today, thus
remove it to avoid future confusion

Bug: 138745655
Bug: 140908357
Test: atest android.telephony.cts.SmsManagerTest
Change-Id: Ib57d0fc189b6c894227894ee02b592f7ee46f22f
2019-10-03 14:37:53 -07:00
joshmccloskey
568d32935f Removing old confirm device credential logic
Test: Verified that confirm device credential still works
in the biometricpromptdemo app
Bug: 140128468
Change-Id: I28fc3c0dc16677ad953284ffa9670d7abd34cd40
2019-10-03 14:00:16 -07:00
Elliott Hughes
b43a2eacba Merge "Remove a user/userdebug difference." am: 363a602bd1 am: 47991c1b07 am: df703bcdf2
am: 593650f907

Change-Id: I7d777426c71a6b623c5957d287f1aa75afdd2afe
2019-10-03 12:49:54 -07:00
Elliott Hughes
593650f907 Merge "Remove a user/userdebug difference." am: 363a602bd1 am: 47991c1b07
am: df703bcdf2

Change-Id: I5b41fb959df5c8ea1585aec9eebeac037e0885d8
2019-10-03 12:37:16 -07:00
Elliott Hughes
df703bcdf2 Merge "Remove a user/userdebug difference." am: 363a602bd1
am: 47991c1b07

Change-Id: I67b907540790306ff3b8ee1fc23ff9c6787dbf8c
2019-10-03 12:21:45 -07:00
Elliott Hughes
47991c1b07 Merge "Remove a user/userdebug difference."
am: 363a602bd1

Change-Id: I6b3287ca1b534f71abbdd652065a536b0a912a50
2019-10-03 12:14:30 -07:00
Makoto Onuki
3ff9876cbd Clean up SystemServiceRegistry.
Now modules don't need to deal with ContextImpl.

Bug: 137763703
Test: boot
Change-Id: I7213eb3cd897679c0dbd20459430e0a2fdd6201e
2019-10-02 14:57:39 -07:00
Elliott Hughes
e14fa97af9 Remove a user/userdebug difference.
There isn't much users can do to get app developers to care anyway, so
leaving this on just for apps with debuggable="true" should be
sufficient.

Bug: http://b/141754375
Test: treehugger
Change-Id: I3a796f9c4b9358fce499649c3f289e956ee9a97a
2019-10-02 11:40:03 -07:00
Mark Renouf
817d014bf0 Merge "Support frame-synchronized clipping on SurfaceView" 2019-10-02 15:03:15 +00:00
Adam He
1fa3acc02f Merge "Allow empty scheme in setWebDomain()." 2019-10-01 21:22:27 +00:00
TreeHugger Robot
c087fbc6f4 Merge "View attr debug: avoid 'Invalid ID 0x00000000'" 2019-10-01 07:08:40 +00:00
TreeHugger Robot
0617359e5a Merge "Allowing more than one app to suspend apps" 2019-09-30 22:43:18 +00:00
Abhijeet Kaur
74ccee9f23 Merge "Use bugreport mode enums from BugreportParams" 2019-09-30 13:42:41 +00:00
TreeHugger Robot
312565f1be Merge "Stop LockSettingsService from calling DevicePolicyManager directly" 2019-09-28 04:49:43 +00:00
Abhijeet Kaur
bcb384b95a Use bugreport mode enums from BugreportParams
All callers of requestBugReport(enum) have been migrated to use
wrappers, so it's safe to switch the internal enum we use for bugreport
mode from ActivityManager constants to BugreportParams enum.

Note that in requestBugReport() we have been passing ActivityManager
constant enum for INTERACTIVE bugreport, when sending an intent to
Shell, where BugreportPramas enum was expected, but it worked fine
because they had the same value. We can stop relying on that.

Bug: 137825297
Bug: 141355059
Test: Interactive bugreports created successfully
Change-Id: I1ab5d471a6d5c70fcd201719eae90f820e17cb80
2019-09-27 11:05:21 +01:00
Ryan Mitchell
4043ca78ea Add Resources Perf Tests
This changes adds benchamrks for Resources, ResourcesManager,
OverlayManager, and Resources.Theme.

Bug: 136085555
Test: atest OverlayManagerPerfTest
Test: atest ResourcesManagerPerfTest
Test: atest ResourcesPerfTest
Test: atest ResourcesThemePerfTest

Change-Id: I6a3b3275399c161e55ff6ce34e7bc2ae5556edf1
2019-09-26 14:15:26 -07:00
atrost
1904bb31ad Merge "Refactor ChangeReporter and rate limit stats logging." am: 9a253e12cc am: 76191fa6b0 am: 604f8002d8
am: 7564285e10

Change-Id: Ib6605757514b90ec5fb2df03f08fc7d48d12e08e
2019-09-26 10:59:12 -07:00
atrost
7564285e10 Merge "Refactor ChangeReporter and rate limit stats logging." am: 9a253e12cc am: 76191fa6b0
am: 604f8002d8

Change-Id: I5ed4a64b701041393026b742bc3f451d73c4ed33
2019-09-26 10:52:39 -07:00
atrost
604f8002d8 Merge "Refactor ChangeReporter and rate limit stats logging." am: 9a253e12cc
am: 76191fa6b0

Change-Id: I8c853fb3e09a83ad877f02132608884cfaba966f
2019-09-26 10:45:54 -07:00
atrost
76191fa6b0 Merge "Refactor ChangeReporter and rate limit stats logging."
am: 9a253e12cc

Change-Id: I33b14641d259efea6bf7038da264a3483e71f955
2019-09-26 10:39:31 -07:00
atrost
6624ffa207 Refactor ChangeReporter and rate limit stats logging.
Only log once per change-package-state(resets every app launch if used
from within the app process).

Next: reset every app launch for server usage as well.

Test: using the test app.
Bug: 138374585
Change-Id: I5587f7138cf2cd8d144e88cf294e65c14bb32bfb
2019-09-26 12:59:19 +01:00
Pavel Grafov
64247a1661 Merge "Throw if admin sets password constraints that have no effect." 2019-09-26 10:55:54 +00:00
TreeHugger Robot
cb364f996f Merge "Notify AutofillManager that activity is finishing on onDestroy()." 2019-09-26 03:49:46 +00:00
Suprabh Shukla
d3278449d7 Allowing more than one app to suspend apps
We want to allow wellbeing apps to suspend in managed profiles.
This requires changing the internal data design of package-suspend
state to allow more than one suspending package, each with their
own parameters, namely - dialog info, app extras and launcher extras.

Also, removed the restriction of using setPackagesSuspendedAsUser when a
PO/DO exists

Test: atest com.android.server.pm.PackageUserStateTest
atest com.android.server.pm.PackageManagerSettingsTests
atest com.android.server.wm.ActivityStartInterceptorTest
atest GtsSuspendAppsTestCases

Bug: 138812320
Change-Id: If1263142fc9e6687e95af9b8d71ba8eff0c0fae9
2019-09-25 17:11:17 -07:00
Lucas Dupin
16a4825807 Merge "Merge "Fix wrong Notification refactor" into qt-qpr1-dev am: 9c743a222d" into qt-qpr1-dev-plus-aosp
am: 33094b44d8

Change-Id: I808e7fb137d8a7e3e7d67235db4adecdb0fc23dc
2019-09-25 15:57:15 -07:00
Lucas Dupin
f43017962e Merge "Fix wrong Notification refactor" into qt-qpr1-dev
am: 9c743a222d

Change-Id: Ia329bece21b35d6379fbed7c72900ec7b0945131
2019-09-25 15:44:58 -07:00
Adam He
323fbe0e55 Allow empty scheme in setWebDomain().
We will supply a default "http://" scheme for URIs without one to the
parser.

Fixes: 140887246
Test: manual verification
Change-Id: Ib580f13fb66885437f99d4935976708523a62d95
2019-09-25 15:06:42 -07:00
Eran Messeri
3acf4a3e2d Merge "API for individual attestation" 2019-09-25 22:02:31 +00:00
TreeHugger Robot
781e42dda4 Merge "Mention singleTask case in Activity#isVoiceInteractionRoot" 2019-09-25 13:37:52 +00:00