Home
last modified time | relevance | path

Searched refs:Package (Results 1 – 25 of 51) sorted by relevance

123

/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DTestCaseReport.java159 private static TestSuite.Package.Class.ClassType chkTestType(ClassDef classDef) { in chkTestType()
162 return TestSuite.Package.Class.ClassType.UNKNOWN; in chkTestType()
167 return TestSuite.Package.Class.ClassType.UNKNOWN; in chkTestType()
173 return TestSuite.Package.Class.ClassType.JUNIT4; in chkTestType()
175 return TestSuite.Package.Class.ClassType.PARAMETERIZED; in chkTestType()
178 return TestSuite.Package.Class.ClassType.JUNIT4; in chkTestType()
183 return TestSuite.Package.Class.ClassType.JUNIT3; in chkTestType()
185 return TestSuite.Package.Class.ClassType.UNKNOWN; in chkTestType()
201 private static TestSuite.Package.Builder parseApkTestCase(List<String> apkList, in parseApkTestCase()
205 TestSuite.Package.Builder tsPkgBuilder = TestSuite.Package.newBuilder(); in parseApkTestCase()
[all …]
DComparisonReport.java79 for (TestSuite.Package pkg : ts.getPackagesList()) { in writeComparisonReport()
80 for (TestSuite.Package.Class cls : pkg.getClassesList()) { in writeComparisonReport()
81 for (TestSuite.Package.Class.Method mtd : cls.getMethodsList()) { in writeComparisonReport()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/roles/
DRoleContext.java22 import com.android.bedstead.nene.packages.Package;
35 private final Package mPackage;
39 public RoleContext(String role, Package pkg, UserReference user) { in RoleContext()
57 Package roleHolderPackage = Package.of( in close()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/devicepolicy/
DDevicePolicyController.java22 import com.android.bedstead.nene.packages.Package;
33 protected final Package mPackage;
36 DevicePolicyController(UserReference user, Package pkg, ComponentName componentName) { in DevicePolicyController()
56 public Package pkg() { in pkg()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackages.java196 public Collection<Package> installedForUser() { in installedForUser()
203 public Collection<Package> installedForUser(UserReference user) { in installedForUser()
221 .map(i -> new Package(i.packageName)) in installedForUser()
230 .map(i -> new Package(i.packageName)) in installedForUser()
236 public Package install(File apkFile) { in install()
241 public Package install(byte[] apkFile) { in install()
258 public Package install(UserReference user, File apkFile) { in install()
288 Collection<Package> beforePackages = TestApis.packages().installedForUser(user); in install()
298 Package installedPackage = Poll.forValue("newly installed packages", () -> { in install()
299 Set<Package> packages = new HashSet<>( in install()
[all …]
DKeepUninstalledPackagesBuilder.java83 public KeepUninstalledPackagesBuilder add(Package pkg) { in add()
100 public KeepUninstalledPackagesBuilder add(Collection<Package> packages) { in add()
101 for (Package pkg : packages) { in add()
DComponentReference.java37 final Package mPackage;
53 public ComponentReference(Package packageName, String className) { in ComponentReference()
59 this(new Package(component.getPackageName()), component.getClassName()); in ComponentReference()
65 public Package pkg() { in pkg()
DPackage.java97 public final class Package { class
113 public static Package of(String packageName) { in of()
114 return new Package(packageName); in of()
117 Package(String packageName) { in Package() method in Package
132 public Package installExisting(UserReference user) { in installExisting()
155 public Package install(UserReference user, File apkFile) { in install()
168 public Package install(UserReference user, Supplier<File> apkFile) { in install()
181 public Package installBytes(UserReference user, byte[] apkFile) { in installBytes()
195 public Package installBytes(UserReference user, Supplier<byte[]> apkFile) { in installBytes()
208 public Package uninstallFromAllUsers() { in uninstallFromAllUsers()
[all …]
DProcessReference.java30 private final Package mPackage;
35 ProcessReference(Package pkg, int pid, int uid, UserReference user) { in ProcessReference()
48 public Package pkg() { in pkg()
/cts/common/device-side/interactive/src/main/java/com/android/interactive/steps/
DSelectAppStep.java32 import com.android.bedstead.nene.packages.Package;
41 public class SelectAppStep extends Step<Package> {
128 protected final Predicate<Package> mPackageMatcher;
134 protected SelectAppStep(String instruction, List<Package> packages) { in SelectAppStep()
138 protected SelectAppStep(String instruction, Predicate<Package> packageMatcher) { in SelectAppStep()
147 pass(Package.of(resolveInfo.activityInfo.packageName)); in appSelected()
167 if (mPackageMatcher.test(Package.of(resolveInfo.activityInfo.packageName))) { in getAppAdapter()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/packages/
DPackageTest.java68 private static final Package sInstrumentedPackage =
118 assertThat(Package.of(PACKAGE_NAME).packageName()).isEqualTo(PACKAGE_NAME); in of_returnsPackageWithCorrectPackageName()
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()
190 Package pkg = TestApis.packages().find(NON_EXISTING_PACKAGE_NAME); in uninstall_packageDoesNotExist_doesNotThrowException()
259 Package pkg = TestApis.packages().find(sContext.getPackageName()); in denyPermission_ownPackage_permissionIsNotGranted_doesNotThrowException()
266 Package pkg = TestApis.packages().find(sContext.getPackageName()); in denyPermission_ownPackage_permissionIsGranted_throwsException()
322 Package pkg = TestApis.packages().find(sTestApp.packageName()); in installedOnUsers_includesUserWithPackageInstalled()
340 final Package notRunningPackage = TestApis.packages().installedForUser().stream() in forceStop_whenNoRunningProcess_doesNotThrowException()
[all …]
DPackagesTest.java77 private final Package mExistingPackage =
79 private final Package mTestAppReference =
81 private final Package mDifferentTestAppReference =
127 Package pkg = TestApis.packages().install(mUser, TEST_APP_APK_FILE); in installedForUser_containsPackageInstalledForUser()
139 Package pkg = null; in installedForUser_doesNotContainPackageNotInstalledForUser()
185 Package pkg = in install_instrumentedUser_isInstalled()
197 Package pkg = in install_byteArray_instrumentedUser_isInstalled()
212 Package pkg = TestApis.packages().find(TEST_APP_PACKAGE_NAME); in install_inWorkProfile_isInstalled()
225 Package pkg = TestApis.packages().find(TEST_APP_PACKAGE_NAME); in install_differentUser_isInstalled()
237 Package pkg = null; in install_byteArray_differentUser_isInstalled()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/accessibility/
DAccessibilityService.kt20 import com.android.bedstead.nene.packages.Package
29 fun pkg(): Package = TestApis.packages().find(serviceInfo.resolveInfo.serviceInfo.packageName)
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/inputmethods/
DInputMethod.java22 import com.android.bedstead.nene.packages.Package;
34 public Package pkg() { in pkg()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/telecom/
DTelecom.kt20 import com.android.bedstead.nene.packages.Package in <lambda>()
31 fun setDefaultDialerForAllUsers(pkg: Package): DefaultDialerContext { in <lambda>()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/appops/
DAppOps.java29 import com.android.bedstead.nene.packages.Package;
40 private final Package mPackage;
43 public AppOps(Package pkg, UserReference user) { in AppOps()
/cts/tests/tests/secure_element/access_control/AccessControlApp3/
DAndroid.bp2 // Signed Package
26 // Unsigned Package
/cts/tests/tests/secure_element/access_control/AccessControlApp2/
DAndroid.bp2 // Signed Package
26 // Unsigned Package
/cts/tests/tests/secure_element/access_control/AccessControlApp1/
DAndroid.bp2 // Signed Package
26 // Unsigned Package
/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/
DPermissions.java34 import com.android.bedstead.nene.packages.Package;
64 private static final Package sInstrumentedPackage =
67 private static final Package sShellPackage =
443Package appOpPackage = hasAdoptedShellPermissionIdentity ? sShellPackage : sInstrumentedPackage;
564 Package appOpPackage = sInstrumentedPackage;
590 Package pkg,
624 …public void setAppOpState(Package pkg, UserReference user, Collection<String> grantedAppOps, Colle…
655 …private void setPermissionStateToPackageWithoutAdoption(Package pkg, UserReference user, Collectio…
678 …private void setPermissionStateToPackageWithoutRoot(Package pkg, UserReference user, Collection<St…
746 private void resetRootPermissionState(Package pkg, UserReference user) {
[all …]
/cts/common/device-side/bedstead/testapp/src/testapps/main/java/com/android/bedstead/testapp/
DUtils.java21 import com.android.bedstead.nene.packages.Package;
50 UserReference user, Package pkg, Throwable t) { in dealWithConnectedAppsSdkException()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/activities/
DActivityReference.java29 import com.android.bedstead.nene.packages.Package;
37 public ActivityReference(Package packageName, String className) { in ActivityReference()
/cts/tests/tests/secure_element/omapi/
DAndroid.bp16 // Signed Package
40 // Unsigned Package
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DAccessibilityServicesTest.java39 import com.android.bedstead.nene.packages.Package;
59 private static Set<Package> systemAccessibilityServicePackages() { in systemAccessibilityServicePackages()
62 .filter(Package::hasSystemFlag) in systemAccessibilityServicePackages()
66 private static final Package ACCESSIBILITY_SERVICE_PACKAGE = TestApis.packages().find("pkg");
DSystemAppTest.java35 import com.android.bedstead.nene.packages.Package;
54 private static final Package SYSTEM_APP =

123