Home
last modified time | relevance | path

Searched refs:pkgName (Results 1 – 8 of 8) sorted by relevance

/cts/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/
DManifestGenerator.java39 String pkgName = null; in main() local
47 pkgName = args[++i]; in main()
59 if (pkgName == null) { in main()
72 generate(out, pkgName, instrumentName, permissions, activities); in main()
86 /*package*/ static void generate(OutputStream out, String pkgName, String instrumentName, in generate() argument
95 serializer.attribute(ns, "package", pkgName); in generate()
113 serializer.attribute(ns, "android:targetPackage", pkgName); in generate()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java171 protected boolean runDeviceTests(String pkgName, @Nullable String testClassName) in runDeviceTests() argument
173 return runDeviceTests(pkgName, testClassName, null /*testMethodName*/, null /*userId*/); in runDeviceTests()
178 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser() argument
180 return runDeviceTestsAsUser(pkgName, testClassName, null, userId); in runDeviceTestsAsUser()
185 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser() argument
187 return runDeviceTests(pkgName, testClassName, testMethodName, userId); in runDeviceTestsAsUser()
190 protected boolean runDeviceTests(String pkgName, @Nullable String testClassName, in runDeviceTests() argument
193 return runDeviceTests(pkgName, testClassName, testMethodName, userId, /*params*/ null); in runDeviceTests()
196 protected boolean runDeviceTests(String pkgName, @Nullable String testClassName, in runDeviceTests() argument
200 testClassName = pkgName + testClassName; in runDeviceTests()
[all …]
/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/
DKeySetHostTest.java155 private boolean runDeviceTests(String pkgName) throws DeviceNotAvailableException { in runDeviceTests() argument
156 return runDeviceTests(pkgName, null, null); in runDeviceTests()
166 private boolean runDeviceTests(String pkgName, String testClassName, String testMethodName) in runDeviceTests() argument
168 TestRunResult runResult = doRunTests(pkgName, testClassName, testMethodName); in runDeviceTests()
179 private TestRunResult doRunTests(String pkgName, String testClassName, in doRunTests() argument
182 RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(pkgName, in doRunTests()
200 private String testPackageUpgrade(String pkgName, String firstApk, in testPackageUpgrade() argument
206 mDevice.uninstallPackage(pkgName); in testPackageUpgrade()
211 assertNull(String.format("failed to install %s, Reason: %s", pkgName, in testPackageUpgrade()
218 mDevice.uninstallPackage(pkgName); in testPackageUpgrade()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DApplicationHiddenTest.java95 String pkgName = uri.getSchemeSpecificPart(); in onReceive() local
96 if (!PACKAGE_TO_HIDE.equals(pkgName)) { in onReceive()
/cts/tests/tests/print/src/android/print/cts/
DBasePrintTest.java381 String pkgName = getInstrumentation().getContext().getPackageName(); in enablePrintServices() local
383 pkgName, FirstPrintService.class.getCanonicalName(), in enablePrintServices()
384 pkgName, SecondPrintService.class.getCanonicalName()); in enablePrintServices()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DCtsTest.java922 String pkgName = testPkg.mPackageDef.getTargetPackageName(); in getPrerequisitePackageNames() local
923 if (pkgName != null) { in getPrerequisitePackageNames()
924 pkgNames.add(pkgName); in getPrerequisitePackageNames()
1019 for (String pkgName : uninstallPackages) { in uninstallPrequisiteApks()
1020 getDevice().uninstallPackage(pkgName); in uninstallPrequisiteApks()
/cts/tests/uiautomator/src/com/android/cts/uiautomatortest/
DCtsUiAutomatorTest.java253 String pkgName = device.getCurrentPackageName(); in testDeviceSoftKeys() local
254 assertTrue("CTS test app must be running", pkgName.equals(PKG_NAME)); in testDeviceSoftKeys()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java748 final String pkgName = target.getPackageName(); in testResolveActivityMultipleMatch() local
749 assertFalse("com.android.cts.content".equals(pkgName)); in testResolveActivityMultipleMatch()
752 if (!"android".equals(pkgName)) { in testResolveActivityMultipleMatch()
753 if (mPm.checkPermission(android.Manifest.permission.SET_PREFERRED_APPLICATIONS, pkgName) in testResolveActivityMultipleMatch()