Home
last modified time | relevance | path

Searched refs:pkgs (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/uidmigration/src/android/uidmigration/cts/
DSharedUserMigrationTest.kt58 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 …]
DAppIdMigrationTest.kt72 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/
DSuspendPackageTest.java108 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/
DUserControlDisabledPackagesTest.java61 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()
DCreateAndManageUserTest.java654 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/
DCtsContentCaptureService.java176 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/
DLocationDisabledAppOpsTest.java73 List<PackageInfo> pkgs = in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled() local
80 for (PackageInfo pi : pkgs) { in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled()
/cts/tests/tests/security/src/android/security/cts/
DLocationDisabledAppOpsTest.java80 List<PackageInfo> pkgs = in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled() local
87 for (PackageInfo pi : pkgs) { in testLocationAppOpIsIgnoredForAppsWhenLocationIsDisabled()
/cts/tests/app/src/android/app/cts/
DUiModeManagerTest.java581 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/
DCtsContentCaptureService.java684 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/
DNotificationListenerVerifierActivity.java2051 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/
DPackageManagerTest.java1102 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()