/cts/common/host-side/manifest-generator/src/com/android/compatibility/common/generator/ |
D | ManifestGenerator.java | 41 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/ |
D | CompatibilityHostTestBase.java | 157 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/ |
D | KeySetHostTest.java | 156 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/ |
D | TestClassFinder.java | 135 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/ |
D | BaseShortcutManagerHostTest.java | 118 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/ |
D | ServiceCreator.java | 48 final String pkgName = context.getPackageName(); 50 intent.setComponent(new ComponentName(pkgName, pkgName+".ExternalService"));
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | CarrierApiTest.java | 82 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/ |
D | GraphicsStatsValidationTest.java | 200 …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())) {
|
D | ProtoDumpTestCase.java | 106 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/ |
D | ApplicationHiddenTest.java | 95 String pkgName = uri.getSchemeSpecificPart(); in onReceive() local 96 if (!PACKAGE_TO_HIDE.equals(pkgName)) { in onReceive()
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 280 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()
|
D | ManagedProfileTest.java | 1039 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/ |
D | BaseDumpsysTest.java | 161 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/ |
D | BaseMultiUserTest.java | 254 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/ |
D | BatteryStatsBgVsFgActions.java | 367 String pkgName = context.getPackageName(); in isAppInBackground() local 393 if (pkgName.equals(rpkg)) { in isAppInBackground()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | IntentTest.java | 750 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()
|