/cts/tests/tests/shortcutmanager/ |
D | Android.bp | 59 srcs: ["packages/src/**/*.java"], 66 "android.content.pm.cts.shortcutmanager.packages.launcher1", 68 manifest: "packages/launchermanifest/AndroidManifest.xml", 69 additional_manifests: ["packages/launchermanifest/AndroidManifest_launcher1.xml"], 79 srcs: ["packages/src/**/*.java"], 86 "android.content.pm.cts.shortcutmanager.packages.launcher2", 88 manifest: "packages/launchermanifest/AndroidManifest.xml", 89 additional_manifests: ["packages/launchermanifest/AndroidManifest_launcher2.xml"], 99 srcs: ["packages/src/**/*.java"], 106 "android.content.pm.cts.shortcutmanager.packages.launcher3", [all …]
|
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/ |
D | PackagesTest.java | 17 package com.android.bedstead.nene.packages; 78 TestApis.packages().find("com.android.providers.telephony"); 80 TestApis.packages().find(TEST_APP_PACKAGE_NAME); 82 TestApis.packages().find(NON_EXISTING_PACKAGE); 101 assertThat(TestApis.packages().features()).contains(INPUT_METHODS_FEATURE); in features_noUserSpecified_containsKnownFeature() 106 assertThrows(NullPointerException.class, () -> TestApis.packages().find(null)); in find_nullPackageName_throwsException() 111 assertThat(TestApis.packages().find(mExistingPackage.packageName())).isNotNull(); in find_existingPackage_returnsPackageReference() 116 assertThat(TestApis.packages().find(NON_EXISTING_PACKAGE)).isNotNull(); in find_nonExistingPackage_returnsPackageReference() 122 () -> TestApis.packages().installedForUser(/* user= */ null)); in installedForUser_nullUserReference_throwsException() 127 Package pkg = TestApis.packages().install(mUser, TEST_APP_APK_FILE); in installedForUser_containsPackageInstalledForUser() [all …]
|
D | PackageTest.java | 17 package com.android.bedstead.nene.packages; 69 TestApis.packages().find(sContext.getPackageName()); 103 assertThat(TestApis.packages().find(PACKAGE_NAME).packageName()).isEqualTo(PACKAGE_NAME); in packageName_returnsPackageName() 108 assertThat(TestApis.packages().find(NON_EXISTING_PACKAGE_NAME).exists()).isFalse(); in exists_nonExistingPackage_returnsFalse() 113 assertThat(TestApis.packages().find(EXISTING_PACKAGE_NAME).exists()).isTrue(); in exists_existingPackage_returnsTrue() 138 Package pkg = TestApis.packages().install(sTestAppApkFile); in uninstallForAllUsers_isUninstalledForAllUsers() 151 Package pkg = TestApis.packages().install(sTestAppApkFile); in uninstall_packageIsInstalledForDifferentUser_isUninstalledForUser() 168 Package pkg = TestApis.packages().install(sTestAppApkFile); in uninstall_packageIsUninstalled() 179 TestApis.packages().install(sTestAppApkFile); in uninstall_packageNotInstalledForUser_doesNotThrowException() 190 Package pkg = TestApis.packages().find(NON_EXISTING_PACKAGE_NAME); in uninstall_packageDoesNotExist_doesNotThrowException() [all …]
|
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/ |
D | RequireHandheldDevice.java | 20 import static com.android.bedstead.nene.packages.CommonPackages.FEATURE_AUTOMOTIVE; 21 import static com.android.bedstead.nene.packages.CommonPackages.FEATURE_LEANBACK; 22 import static com.android.bedstead.nene.packages.CommonPackages.FEATURE_PC; 23 import static com.android.bedstead.nene.packages.CommonPackages.FEATURE_TELEVISION; 24 import static com.android.bedstead.nene.packages.CommonPackages.FEATURE_TOUCHSCREEN; 25 import static com.android.bedstead.nene.packages.CommonPackages.FEATURE_WATCH;
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | KeepUninstalledPackagesBuilder.java | 17 package com.android.bedstead.nene.packages; 93 return add(TestApis.packages().find(pkg)); in add() 100 public KeepUninstalledPackagesBuilder add(Collection<Package> packages) { in add() argument 101 for (Package pkg : packages) { in add() 111 public KeepUninstalledPackagesBuilder addPackageNames(Collection<String> packages) { in addPackageNames() argument 112 return add(packages.stream().map( in addPackageNames() 113 (s) -> TestApis.packages().find(s)).collect(Collectors.toSet())); in addPackageNames()
|
D | Packages.java | 17 package com.android.bedstead.nene.packages; 209 || TestApis.packages().instrumented().isInstantApp()) { in installedForUser() 210 AdbPackageParser.ParseResult packages = parseDumpsys(); in installedForUser() local 211 return packages.mPackages.values().stream() in installedForUser() 288 Collection<Package> beforePackages = TestApis.packages().installedForUser(user); in install() 299 Set<Package> packages = new HashSet<>( in install() 300 TestApis.packages().installedForUser(user)); in install() 301 packages.removeAll(beforePackages); in install() 302 if (packages.isEmpty()) { in install() 305 return packages.iterator().next(); in install() [all …]
|
/cts/hostsidetests/devicepolicy/app/ContentCaptureService/src/com/android/cts/devicepolicy/contentcaptureservice/ |
D | SimpleContentCaptureService.java | 33 final ArraySet<String> packages = new ArraySet<>(); in onConnected() local 34 packages.add("com.android.cts.devicepolicy.contentcaptureapp"); in onConnected() 35 packages.add("com.android.cts.devicepolicy.contentcaptureservice"); in onConnected() 36 packages.add("com.android.cts.deviceandprofileowner"); in onConnected() 38 setContentCaptureWhitelist(packages, null); in onConnected()
|
/cts/tools/utils/ |
D | buildCts.py | 112 packages = [] 116 packages.append(doc.GetAttr('TestPackage', 'appPackageName')) 118 packages.sort() 120 plan = tools.TestPlan(packages) 126 plan = tools.TestPlan(packages) 133 plan = tools.TestPlan(packages) 142 plan = tools.TestPlan(packages) 148 plan = tools.TestPlan(packages) 152 plan = tools.TestPlan(packages) 156 plan = tools.TestPlan(packages) [all …]
|
/cts/tests/tests/sharesheet/packages/ |
D | Android.bp | 23 srcs: ["packages/src/**/*.java"], 31 "android.sharesheet.cts.packages.activitylabeltester", 40 srcs: ["packages/src/**/*.java"], 48 "android.sharesheet.cts.packages.intentfilterlabeltester", 57 srcs: ["packages/src/**/*.java"], 65 "android.sharesheet.cts.packages.excludetester", 74 srcs: ["packages/src/**/*.java"], 82 "android.sharesheet.cts.packages.alternatetype",
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | InputMethodsTest.java | 45 final List<String> packages = Arrays.asList("com.google.pkg.one", "com.google.pkg.two"); in testPermittedInputMethods() local 46 mDevicePolicyManager.setPermittedInputMethods(ADMIN_RECEIVER_COMPONENT, packages); in testPermittedInputMethods() 49 .containsExactlyElementsIn(packages); in testPermittedInputMethods() 70 final List<String> packages = Arrays.asList("com.google.pkg.one", "com.google.pkg.two"); in testPermittedInputMethodsOnParentThrowsIfPackageListIsNotEmptyOrNull() local 74 .setPermittedInputMethods(ADMIN_RECEIVER_COMPONENT, packages)); in testPermittedInputMethodsOnParentThrowsIfPackageListIsNotEmptyOrNull()
|
D | AffiliationTest.java | 71 final String[] packages = {"package1", "package2"}; in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() local 72 mDevicePolicyManager.setLockTaskPackages(ADMIN_RECEIVER_COMPONENT, packages); in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() 73 assertArrayEquals(packages, in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated()
|
/cts/tests/location/common/src/android/location/cts/common/ |
D | TestUtils.java | 170 List<ApplicationInfo> packages = pm.getInstalledApplications(/*flags=*/0); in getPackagesWithPermissions() local 172 for (ApplicationInfo applicationInfo : packages) { in getPackagesWithPermissions() 206 List<String> packages = getPackagesWithPermissions(permission); in revokePermissions() local 207 for (String packageWithPermission : packages) { in revokePermissions() 211 return packages; in revokePermissions() 214 public static void grantLocationPermissions(String permission, List<String> packages) { in grantLocationPermissions() argument 216 for (String packageToGivePermission : packages) { in grantLocationPermissions()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | DeviceIdentifiersTest.java | 61 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getDeviceId_smsAppReturnsSameValue() 75 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getImei_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 89 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getMeid_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 103 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getSubscriberId_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 117 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getSimSerialNumber_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue() 131 RoleContext r = TestApis.packages().find(testApp.packageName()).setAsRoleHolder( in getNai_withReadPrivilegedPhoneStatePermission_withReadPhoneStatePermission_returnsSameValue()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | AmUtils.java | 51 String[] packages = output.split("\\n"); in isProcessRunning() local 52 for (int i = packages.length -1; i >=0; --i) { in isProcessRunning() 53 if (packages[i].equals(packageName)) { in isProcessRunning()
|
/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/ |
D | AdditionalSubtypeLifecycleTest.java | 106 TestApis.packages().find(Ime1Constants.PACKAGE).uninstallFromAllUsers(); in tearDown() 107 TestApis.packages().find(Ime2Constants.PACKAGE).uninstallFromAllUsers(); in tearDown() 120 TestApis.packages().install(currentUser, new File(Ime1Constants.APK_PATH)); in testPerUserAdditionalInputMethodSubtype() 121 TestApis.packages().install(additionalUser, new File(Ime2Constants.APK_PATH)); in testPerUserAdditionalInputMethodSubtype() 154 TestApis.packages().install(currentUser, new File(Ime1Constants.APK_PATH)); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser() 155 TestApis.packages().install(additionalUser, new File(Ime2Constants.APK_PATH)); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser() 163 TestApis.packages().install(currentUser, new File(Ime1Constants.APK_PATH)); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser() 194 TestApis.packages().install(currentUser, new File(Ime1Constants.APK_PATH)); in testClearAdditionalInputMethodSubtypeUponApkUpdateForBackgroundUser() 195 TestApis.packages().install(additionalUser, new File(Ime2Constants.APK_PATH)); in testClearAdditionalInputMethodSubtypeUponApkUpdateForBackgroundUser() 203 TestApis.packages().install(additionalUser, new File(Ime2Constants.APK_PATH)); in testClearAdditionalInputMethodSubtypeUponApkUpdateForBackgroundUser() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/mainline/ |
D | ModuleDetector.java | 62 Set<String> packages = new HashSet<>(); in getPlayManagedModules() local 64 packages.add(info.packageName); in getPlayManagedModules() 67 packages.add(info.packageName); in getPlayManagedModules() 71 if (module.isPlayUpdated && packages.contains(module.packageName) in getPlayManagedModules()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/accessibility/ |
D | AccessibilityService.kt | 20 import com.android.bedstead.nene.packages.Package 29 fun pkg(): Package = TestApis.packages().find(serviceInfo.resolveInfo.serviceInfo.packageName)
|
/cts/hostsidetests/appsecurity/res/apexsigverify/ |
D | README.md | 7 packages/services/Telephony/apex/com.android.telephony.avbpubkey 8 packages/modules/DnsResolver/apex/com.android.resolv.avbpubkey 14 frameworks/base/packages/Tethering/apex/com.android.tethering.avbpubkey 18 packages/modules/Bluetooth/apex/com.android.btservices.avbpubkey 19 packages/modules/SdkExtensions/com.android.sdkext.avbpubkey
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/inputmethods/ |
D | InputMethod.java | 22 import com.android.bedstead.nene.packages.Package; 35 return TestApis.packages().find(mInputMethodInfo.getPackageName()); in pkg()
|
/cts/hostsidetests/appsecurity/test-apps/PackageAccessApp/src/com/android/cts/packageaccessapp/ |
D | PackageAccessTest.java | 95 List<PackageInfo> packages = pm.getInstalledPackages( in testPackageAccess_getPackagesCantSeeTiny() local 97 for (PackageInfo pi : packages) { in testPackageAccess_getPackagesCantSeeTiny() 107 List<PackageInfo> packages = pm.getInstalledPackages( in testPackageAccess_getPackagesCanSeeTiny() local 109 for (PackageInfo pi : packages) { in testPackageAccess_getPackagesCanSeeTiny()
|
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/ |
D | Checkers.java | 78 List<PackageInfo> packages = pm.getPackagesHoldingPermissions( in numberOfSystemAppsWithPermission() local 80 packages.removeIf(packageInfo -> packageInfo.packageName.equals("com.android.shell")); in numberOfSystemAppsWithPermission() 81 return packages.size(); in numberOfSystemAppsWithPermission()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | PackageVerificationsBroadcastReceiver.java | 33 static final BlockingQueue<String> packages = new LinkedBlockingQueue<>(); field in PackageVerificationsBroadcastReceiver 40 packages.put(packageName); in onReceive()
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | PropertyTest.java | 91 Uninstall.packages(PROPERTY_APP1_PACKAGE_NAME); in setupClass() 92 Uninstall.packages(PROPERTY_APP2_PACKAGE_NAME); in setupClass() 101 Uninstall.packages(PROPERTY_APP1_PACKAGE_NAME); in teardownClass() 102 Uninstall.packages(PROPERTY_APP2_PACKAGE_NAME); in teardownClass()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/ |
D | update-apis.sh | 18 cp $SCRIPT_DIR/../../../../../packages/modules/Bluetooth/framework/api/current.txt $SCRIPT_DIR/java… 19 cp $SCRIPT_DIR/../../../../../packages/modules/Wifi/framework/api/current.txt $SCRIPT_DIR/java/apis…
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | SystemPackageDefaultStoppedStateTest.java | 78 List<ResolveInfo> packages = mContext.getPackageManager() in testSystemAppOnNewUser_isInDefaultStoppedState() local 82 boolean packageFound = !packages.isEmpty() && packages.stream().anyMatch(pkg -> in testSystemAppOnNewUser_isInDefaultStoppedState()
|