/cts/tests/tests/uidmigration/src/android/uidmigration/cts/ |
D | SharedUserMigrationTest.kt | 58 val pkgs = mPm.getPackagesForUid(uid).assertNotNull() in reset() constant 59 assertTrue(pkgs.sameAs(Const.INSTALL_TEST_PKG, Const.INSTALL_TEST_PKG2)) in reset() 73 var pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testNewInstallOnly() variable 75 assertTrue(pkgs.sameAs(Const.INSTALL_TEST_PKG, Const.INSTALL_TEST_PKG2)) in testNewInstallOnly() 85 pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testNewInstallOnly() 87 assertTrue(pkgs.sameAs(Const.INSTALL_TEST_PKG2)) in testNewInstallOnly() 102 var pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testBestEffort() variable 104 assertTrue(pkgs.sameAs(Const.INSTALL_TEST_PKG, Const.INSTALL_TEST_PKG2)) in testBestEffort() 113 pkgs = mPm.getPackagesForUid(uid).assertNotNull() in testBestEffort() 114 assertTrue(pkgs.sameAs(Const.INSTALL_TEST_PKG)) in testBestEffort() [all …]
|
D | AppIdMigrationTest.kt | 72 var pkgs = mPm.getPackagesForUid(uid).assertNotNull() in <lambda>() variable 73 assertTrue(pkgs.sameAs(Const.INSTALL_TEST_PKG, Const.INSTALL_TEST_PKG + "2")) in <lambda>() 80 pkgs = mPm.getPackagesForUid(uid).assertNotNull() in <lambda>() 81 assertTrue(pkgs.sameAs(Const.INSTALL_TEST_PKG + "2")) in <lambda>()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SuspendPackageTest.java | 108 private String[] setSuspendedPackages(boolean suspend, Collection<String> pkgs) { in setSuspendedPackages() argument 109 String[] pkgsArray = new String[pkgs.size()]; in setSuspendedPackages() 110 pkgs.toArray(pkgsArray); in setSuspendedPackages() 114 private String[] setSuspendedPackages(boolean suspend, String... pkgs) { in setSuspendedPackages() argument 115 Log.d(TAG, "Calling setPackagesSuspended(" + suspend + ", " + Arrays.toString(pkgs)); in setSuspendedPackages() 117 mDevicePolicyManager.setPackagesSuspended(ADMIN_RECEIVER_COMPONENT, pkgs, suspend); in setSuspendedPackages()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | UserControlDisabledPackagesTest.java | 61 final ArrayList<String> pkgs = new ArrayList<>(); in testForceStopWithUserControlDisabled() local 62 pkgs.add(SIMPLE_APP_PKG); in testForceStopWithUserControlDisabled() 73 final ArrayList<String> pkgs = new ArrayList<>(); in testClearSetUserControlDisabledPackages() local 74 mDevicePolicyManager.setUserControlDisabledPackages(getWho(), pkgs); in testClearSetUserControlDisabledPackages() local 86 final ArrayList<String> pkgs = new ArrayList<>(); in testFgsStopWithUserControlDisabled() local 87 pkgs.add(SIMPLE_APP_PKG); in testFgsStopWithUserControlDisabled()
|
D | CreateAndManageUserTest.java | 654 Set<String> pkgs = new HashSet<>(pkgsArray.length); in onEnabled() local 656 pkgs.add(pkg); in onEnabled() 658 method.invoke(null, context, dpm, who, pkgs); in onEnabled()
|
/cts/tests/translation/src/android/translation/cts/ |
D | CtsContentCaptureService.java | 176 final ArraySet<String> pkgs = new ArraySet<>(1); in setAllowSelf() local 177 pkgs.add(SERVICE_PACKAGE); in setAllowSelf() 178 mAllowList = new Pair<>(pkgs, null); in setAllowSelf()
|
/cts/tests/location/location_none/src/android/location/cts/none/ |
D | LocationDisabledAppOpsTest.java | 73 List<PackageInfo> pkgs = in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled() local 80 for (PackageInfo pi : pkgs) { in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | LocationDisabledAppOpsTest.java | 80 List<PackageInfo> pkgs = in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled() local 87 for (PackageInfo pi : pkgs) { in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled()
|
/cts/tests/app/src/android/app/cts/ |
D | UiModeManagerTest.java | 581 UiModeManager.OnProjectionStateChangedListener listener = (t, pkgs) -> { in testReadProjectionState_listener() 582 Log.i(TAG, "onProjectionStateChanged(" + t + "," + pkgs + ")"); in testReadProjectionState_listener() 585 projectingPackages.addAll(pkgs); in testReadProjectionState_listener() 764 getContext().getMainExecutor(), (t, pkgs) -> { }); in testReadProjectionState_addOnProjectionStateChangedListenerDenied() 777 UiModeManager.OnProjectionStateChangedListener listener = (t, pkgs) -> { }; in testReadProjectionState_removeOnProjectionStateChangedListenerDenied()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | CtsContentCaptureService.java | 684 final ArraySet<String> pkgs = new ArraySet<>(1); in whitelistSelf() local 685 pkgs.add(MY_PACKAGE); in whitelistSelf() 686 whitelist(new Pair<>(pkgs, null)); in whitelistSelf()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | NotificationListenerVerifierActivity.java | 2051 ArrayList<String> pkgs = new ArrayList<>(); in setUp() local 2052 pkgs.add("com.android.settings"); in setUp() 2053 MockListener.getInstance().migrateNotificationFilter(0, pkgs); in setUp()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 1102 List<PackageInfo> pkgs = mPackageManager.getInstalledPackages( in testGetInstalledPackages() local 1107 PackageInfo pkgInfo = findPackageOrFail(pkgs, PACKAGE_NAME); in testGetInstalledPackages() 2769 final String[] pkgs = pm.getPackagesForUid(Process.toSdkSandboxUid(10239)); in testGetPackagesForUid_sdkSandboxUid() local 2770 assertEquals(1, pkgs.length); in testGetPackagesForUid_sdkSandboxUid() 2771 assertEquals(pm.getSdkSandboxPackageName(), pkgs[0]); in testGetPackagesForUid_sdkSandboxUid() local 3623 List<PackageInfo> pkgs = mPackageManager.getInstalledPackages( in testQas() local 3625 PackageInfo pkgInfo = findPackageOrFail(pkgs, HELLO_WORLD_PACKAGE_NAME); in testQas()
|