Home
last modified time | relevance | path

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

/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/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java120 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser() argument
122 runDeviceTestsAsUser(pkgName, testClassName, null /*testMethodName*/, userId); in runDeviceTestsAsUser()
127 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser() argument
130 runDeviceTestsAsUser(pkgName, testClassName, testMethodName, userId, params); in runDeviceTestsAsUser()
133 protected void runDeviceTestsAsUser(String pkgName, @Nullable String testClassName, in runDeviceTestsAsUser() argument
137 testClassName = pkgName + testClassName; in runDeviceTestsAsUser()
141 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/hostsidetests/statsd/src/android/cts/statsd/atom/
DBaseTestCase.java103 protected void runDeviceTests(@Nonnull String pkgName, in runDeviceTests() argument
107 testClassName = pkgName + testClassName; in runDeviceTests()
111 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/incident/src/com/android/server/cts/
DGraphicsStatsValidationTest.java207 …rivate List<GraphicsStatsProto> filterPackage(GraphicsStatsServiceDumpProto dump, String pkgName) {
208 return filterPackage(dump.getStatsList(), pkgName);
211 private List<GraphicsStatsProto> filterPackage(List<GraphicsStatsProto> list, String pkgName) {
214 if (pkgName.equals(proto.getPackageName())) {
DProtoDumpTestCase.java128 protected void runDeviceTests(@Nonnull String pkgName, in runDeviceTests() argument
132 testClassName = pkgName + testClassName; in runDeviceTests()
136 pkgName, TEST_RUNNER, getDevice().getIDevice()); in runDeviceTests()
/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/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java370 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser() argument
372 runDeviceTestsAsUser(pkgName, testClassName, null /*testMethodName*/, userId); in runDeviceTestsAsUser()
376 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser() argument
379 runDeviceTestsAsUser(pkgName, testClassName, testMethodName, userId, params); in runDeviceTestsAsUser()
383 String pkgName, @Nullable String testClassName, String testMethodName) in runDeviceTests() argument
385 runDeviceTestsAsUser(pkgName, testClassName, testMethodName, mPrimaryUserId); in runDeviceTests()
389 String pkgName, @Nullable String testClassName, in runDeviceTestsAsUser() argument
393 testClassName = pkgName + testClassName; in runDeviceTestsAsUser()
397 pkgName, RUNNER, getDevice().getIDevice()); in runDeviceTestsAsUser()
DManagedProfileTest.java1365 private void runDeviceTestsAsUser(String pkgName, String testClassName, in runDeviceTestsAsUser() argument
1367 mManagedProfileTest.runDeviceTestsAsUser(pkgName, testClassName, testMethodName, in runDeviceTestsAsUser()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java251 String pkgName, @Nullable String testClassName, in runDeviceTestsAsUser() argument
254 testClassName = pkgName + testClassName; in runDeviceTestsAsUser()
258 pkgName, RUNNER, getDevice().getIDevice()); in runDeviceTestsAsUser()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java122 private String getCertHash(String pkgName) { in getCertHash() argument
124 PackageInfo pInfo = mPackageManager.getPackageInfo(pkgName, in getCertHash()
129 Log.e(TAG, pkgName + " not found", ex); in getCertHash()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsBgVsFgActions.java380 String pkgName = context.getPackageName(); in isAppInBackground() local
406 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()