Home
last modified time | relevance | path

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

/cts/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/
DManifestGenerator.java41 String pkgName = null; in main() local
51 pkgName = args[++i]; in main()
67 if (pkgName == null) { in main()
80 generate(out, pkgName, instrumentName, minSdk, targetSdk, permissions, activities); in main()
94 /*package*/ static void generate(OutputStream out, String pkgName, String instrumentName, in generate() argument
104 serializer.attribute(ns, "package", pkgName); in generate()
125 serializer.attribute(ns, "android:targetPackage", pkgName); in generate()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/testtype/
DCompatibilityHostTestBase.java157 protected String uninstallPackage(String pkgName) throws DeviceNotAvailableException { in uninstallPackage() argument
158 return mDevice.uninstallPackage(pkgName); in uninstallPackage()
199 protected boolean runDeviceTests(String pkgName, @Nullable String testClassName) in runDeviceTests() argument
201 return runDeviceTests(pkgName, testClassName, null /*testMethodName*/); in runDeviceTests()
216 protected boolean runDeviceTests(String pkgName, @Nullable String testClassName, in runDeviceTests() argument
219 TestRunResult runResult = doRunTests(pkgName, testClassName, testMethodName); in runDeviceTests()
229 String pkgName, String testClassName, in doRunTests() argument
232 pkgName, mRunner, mDevice.getIDevice()); in doRunTests()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DKeySetHostTest.java156 private boolean runDeviceTests(String pkgName) throws DeviceNotAvailableException { in runDeviceTests() argument
157 return runDeviceTests(pkgName, null, null); in runDeviceTests()
167 private boolean runDeviceTests(String pkgName, String testClassName, String testMethodName) in runDeviceTests() argument
169 TestRunResult runResult = doRunTests(pkgName, testClassName, testMethodName); in runDeviceTests()
180 private TestRunResult doRunTests(String pkgName, String testClassName, in doRunTests() argument
183 RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(pkgName, in doRunTests()
201 private String testPackageUpgrade(String pkgName, String firstApk, in testPackageUpgrade() argument
207 mDevice.uninstallPackage(pkgName); in testPackageUpgrade()
212 assertNull(String.format("failed to install %s, Reason: %s", pkgName, in testPackageUpgrade()
219 mDevice.uninstallPackage(pkgName); in testPackageUpgrade()
/cts/tests/core/runner/src/com/android/cts/core/runner/
DTestClassFinder.java135 ExcludePackageNameFilter(String pkgName) { in ExcludePackageNameFilter() argument
136 if (!pkgName.endsWith(".")) { in ExcludePackageNameFilter()
137 mPkgName = String.format("%s.", pkgName); in ExcludePackageNameFilter()
139 mPkgName = pkgName; in ExcludePackageNameFilter()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java118 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser() argument
120 runDeviceTestsAsUser(pkgName, testClassName, null /*testMethodName*/, userId); in runDeviceTestsAsUser()
125 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser() argument
128 runDeviceTestsAsUser(pkgName, testClassName, testMethodName, userId, params); in runDeviceTestsAsUser()
131 protected void runDeviceTestsAsUser(String pkgName, @Nullable String testClassName, in runDeviceTestsAsUser() argument
135 testClassName = pkgName + testClassName; in runDeviceTestsAsUser()
139 pkgName, RUNNER, getDevice().getIDevice()); in runDeviceTestsAsUser()
/cts/tests/tests/externalservice/service/src/android/externalservice/service/
DServiceCreator.java48 final String pkgName = context.getPackageName();
50 intent.setComponent(new ComponentName(pkgName, pkgName+".ExternalService"));
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java82 private String getCertHash(String pkgName) { in getCertHash() argument
84 PackageInfo pInfo = mPackageManager.getPackageInfo(pkgName, in getCertHash()
89 Log.e(TAG, pkgName + " not found", ex); in getCertHash()
/cts/hostsidetests/incident/src/com/android/server/cts/
DGraphicsStatsValidationTest.java200 …rivate List<GraphicsStatsProto> filterPackage(GraphicsStatsServiceDumpProto dump, String pkgName) {
201 return filterPackage(dump.getStatsList(), pkgName);
204 private List<GraphicsStatsProto> filterPackage(List<GraphicsStatsProto> list, String pkgName) {
207 if (pkgName.equals(proto.getPackageName())) {
DProtoDumpTestCase.java106 protected void runDeviceTests(@Nonnull String pkgName, in runDeviceTests() argument
110 testClassName = pkgName + testClassName; in runDeviceTests()
114 pkgName, TEST_RUNNER, getDevice().getIDevice()); in runDeviceTests()
/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/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java280 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser() argument
282 runDeviceTestsAsUser(pkgName, testClassName, null /*testMethodName*/, userId); in runDeviceTestsAsUser()
286 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser() argument
289 runDeviceTestsAsUser(pkgName, testClassName, testMethodName, userId, params); in runDeviceTestsAsUser()
293 String pkgName, @Nullable String testClassName, String testMethodName) in runDeviceTests() argument
295 runDeviceTestsAsUser(pkgName, testClassName, testMethodName, mPrimaryUserId); in runDeviceTests()
299 String pkgName, @Nullable String testClassName, in runDeviceTestsAsUser() argument
303 testClassName = pkgName + testClassName; in runDeviceTestsAsUser()
307 pkgName, RUNNER, getDevice().getIDevice()); in runDeviceTestsAsUser()
DManagedProfileTest.java1039 private void runDeviceTestsAsUser(String pkgName, String testClassName, in runDeviceTestsAsUser() argument
1041 mManagedProfileTest.runDeviceTestsAsUser(pkgName, testClassName, testMethodName, in runDeviceTestsAsUser()
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DBaseDumpsysTest.java161 protected void runDeviceTests(@Nonnull String pkgName, in runDeviceTests() argument
165 testClassName = pkgName + testClassName; in runDeviceTests()
169 pkgName, TEST_RUNNER, getDevice().getIDevice()); in runDeviceTests()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java254 String pkgName, @Nullable String testClassName, in runDeviceTestsAsUser() argument
257 testClassName = pkgName + testClassName; in runDeviceTestsAsUser()
261 pkgName, RUNNER, getDevice().getIDevice()); in runDeviceTestsAsUser()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsBgVsFgActions.java367 String pkgName = context.getPackageName(); in isAppInBackground() local
393 if (pkgName.equals(rpkg)) { in isAppInBackground()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java750 final String pkgName = target.getPackageName(); in testResolveActivityMultipleMatch() local
751 assertFalse("android.content.cts".equals(pkgName)); in testResolveActivityMultipleMatch()
754 if (!"android".equals(pkgName)) { in testResolveActivityMultipleMatch()
755 if (mPm.checkPermission(android.Manifest.permission.SET_PREFERRED_APPLICATIONS, pkgName) in testResolveActivityMultipleMatch()