Home
last modified time | relevance | path

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

/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DCompatChangeGatingTestCase.java117 protected void runDeviceCompatTest(@Nonnull String pkgName, @Nonnull String testClassName, in runDeviceCompatTest() argument
123 setCompatConfig(enabledChanges, disabledChanges, pkgName); in runDeviceCompatTest()
127 createAndUploadStatsdConfig(configId, pkgName); in runDeviceCompatTest()
131 testClassName = pkgName + testClassName; in runDeviceCompatTest()
133 RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(pkgName, TEST_RUNNER, in runDeviceCompatTest()
140 resetCompatChanges(enabledChanges, pkgName); in runDeviceCompatTest()
141 resetCompatChanges(disabledChanges, pkgName); in runDeviceCompatTest()
144 Map<Long, Boolean> reportedChanges = getReportedChanges(configId, pkgName); in runDeviceCompatTest()
196 private void createAndUploadStatsdConfig(long configId, String pkgName) in createAndUploadStatsdConfig() argument
205 .addAllowedLogSource(pkgName); in createAndUploadStatsdConfig()
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DKeySetHostTest.java154 private boolean runDeviceTests(String pkgName) throws DeviceNotAvailableException { in runDeviceTests() argument
155 return runDeviceTests(pkgName, null, null); in runDeviceTests()
165 private boolean runDeviceTests(String pkgName, String testClassName, String testMethodName) in runDeviceTests() argument
167 TestRunResult runResult = doRunTests(pkgName, testClassName, testMethodName); in runDeviceTests()
178 private TestRunResult doRunTests(String pkgName, String testClassName, in doRunTests() argument
181 RemoteAndroidTestRunner testRunner = new RemoteAndroidTestRunner(pkgName, in doRunTests()
199 private String testPackageUpgrade(String pkgName, String firstApk, in testPackageUpgrade() argument
205 mDevice.uninstallPackage(pkgName); in testPackageUpgrade()
210 assertNull(String.format("failed to install %s, Reason: %s", pkgName, in testPackageUpgrade()
217 mDevice.uninstallPackage(pkgName); in testPackageUpgrade()
DAppSecurityTests.java298 private void enableAlertWindowAppOp(String pkgName) throws Exception { in enableAlertWindowAppOp() argument
300 "appops set " + pkgName + " android:system_alert_window allow"); in enableAlertWindowAppOp()
304 "appops get " + pkgName + " android:system_alert_window"); in enableAlertWindowAppOp()
/cts/hostsidetests/angle/src/android/angle/cts/
DCtsAngleDeveloperOptionHostTest.java40 …private void setAndValidateAngleDevOptionPkgDriver(String pkgName, String driverValue) throws Exce… in setAndValidateAngleDevOptionPkgDriver() argument
42 pkgName + "', driverValue = '" + driverValue + "'"); in setAndValidateAngleDevOptionPkgDriver()
44 setGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_PKGS, pkgName); in setAndValidateAngleDevOptionPkgDriver() local
51 pkgName, devOption); in setAndValidateAngleDevOptionPkgDriver()
60 … private void setAndValidatePkgDriver(String pkgName, OpenGlDriverChoice driver) throws Exception { in setAndValidatePkgDriver() argument
61 stopPackage(getDevice(), pkgName); in setAndValidatePkgDriver() local
63 setAndValidateAngleDevOptionPkgDriver(pkgName, sDriverGlobalSettingMap.get(driver)); in setAndValidatePkgDriver()
70 waitThenRunDeviceTests(this, pkgName, pkgName + "." + ANGLE_DRIVER_TEST_CLASS, in setAndValidatePkgDriver()
DCtsAngleCommon.java117 static void stopPackage(ITestDevice device, String pkgName) throws Exception { in stopPackage() argument
118 device.executeShellCommand("am force-stop " + pkgName); in stopPackage()
137 String pkgName, in waitThenRunDeviceTests() argument
143 return test.runDeviceTests(pkgName, testClassName, testMethodName); in waitThenRunDeviceTests()
/cts/hostsidetests/userspacereboot/src/com/android/cts/userspacereboot/host/
DUserspaceRebootHostTest.java59 private void runDeviceTest(String pkgName, String className, String testName) throws Exception { in runDeviceTest() argument
60 runDeviceTests(pkgName, pkgName + "." + className, testName); in runDeviceTest()
63 private void runDeviceTest(String pkgName, String className, String testName, Duration timeout) in runDeviceTest() argument
66 getDevice(), pkgName, pkgName + "." + className, testName, timeout.toMillis()); in runDeviceTest() local
/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 final DeviceTestRunOptions opts = new DeviceTestRunOptions(pkgName); in runDeviceTestsAsUser()
133 testClassName = pkgName + testClassName; in runDeviceTestsAsUser()
/cts/tests/tests/externalservice/service/src/android/externalservice/service/
DServiceCreator.java48 final String pkgName = context.getPackageName();
58 intent.setComponent(new ComponentName(pkgName, pkgName+serviceName));
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DBaseTestCase.java122 protected void runDeviceTests(@Nonnull String pkgName, in runDeviceTests() argument
126 testClassName = pkgName + testClassName; in runDeviceTests()
130 pkgName, TEST_RUNNER, getDevice().getIDevice()); in runDeviceTests()
/cts/hostsidetests/incident/src/com/android/server/cts/
DGraphicsStatsValidationTest.java214 …rivate List<GraphicsStatsProto> filterPackage(GraphicsStatsServiceDumpProto dump, String pkgName) {
215 return filterPackage(dump.getStatsList(), pkgName);
218 private List<GraphicsStatsProto> filterPackage(List<GraphicsStatsProto> list, String pkgName) {
221 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/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/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/atrace/src/android/atrace/cts/
DAtraceHostTestBase.java136 private PidTidPair runDeviceTests(String pkgName, in runDeviceTests() argument
140 testClassName = pkgName + testClassName; in runDeviceTests()
144 pkgName, TEST_RUNNER, getDevice().getIDevice()); in runDeviceTests()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java474 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser() argument
476 runDeviceTestsAsUser(pkgName, testClassName, null /*testMethodName*/, userId); in runDeviceTestsAsUser()
480 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser() argument
483 runDeviceTestsAsUser(pkgName, testClassName, testMethodName, userId, params); in runDeviceTestsAsUser()
487 String pkgName, @Nullable String testClassName, String testMethodName) in runDeviceTests() argument
489 runDeviceTestsAsUser(pkgName, testClassName, testMethodName, mPrimaryUserId); in runDeviceTests()
493 String pkgName, @Nullable String testClassName, in runDeviceTestsAsUser() argument
497 testClassName = pkgName + testClassName; in runDeviceTestsAsUser()
501 pkgName, RUNNER, getDevice().getIDevice()); in runDeviceTestsAsUser()
DManagedProfileTest.java1789 private void runDeviceTestsAsUser(String pkgName, String testClassName, in runDeviceTestsAsUser() argument
1791 mManagedProfileTest.runDeviceTestsAsUser(pkgName, testClassName, testMethodName, in runDeviceTestsAsUser()
/cts/tests/tests/permission/src/android/permission/cts/
DRemovePermissionTest.java67 private boolean permissionGranted(String pkgName, String permName) in permissionGranted() argument
69 PackageInfo appInfo = mContext.getPackageManager().getPackageInfo(pkgName, in permissionGranted()
/cts/tests/tests/net/src/android/net/cts/
DNetworkRequestTest.java141 final String pkgName = "android.net.test"; in testRequestorPackageName() local
143 .setRequestorPackageName(pkgName) in testRequestorPackageName()
148 assertEquals(pkgName, nr.getRequestorPackageName()); in testRequestorPackageName()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java252 String pkgName, @Nullable String testClassName, in runDeviceTestsAsUser() argument
255 testClassName = pkgName + testClassName; in runDeviceTestsAsUser()
259 pkgName, RUNNER, getDevice().getIDevice()); in runDeviceTestsAsUser()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsBgVsFgActions.java394 String pkgName = context.getPackageName(); in isAppInBackground() local
420 if (pkgName.equals(rpkg)) { in isAppInBackground()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java737 private PackageInfo findPackageOrFail(List<PackageInfo> pkgInfos, String pkgName) { in findPackageOrFail() argument
739 if (pkgName.equals(pkgInfo.packageName)) { in findPackageOrFail()
743 fail("Package not found with name " + pkgName); in findPackageOrFail()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DCarrierApiTest.java215 private String getCertHash(String pkgName) { in getCertHash() argument
217 PackageInfo pInfo = mPackageManager.getPackageInfo(pkgName, in getCertHash()
222 Log.e(TAG, pkgName + " not found", ex); in getCertHash()
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java779 final String pkgName = target.getPackageName(); in testResolveActivityMultipleMatch() local
780 assertFalse("android.content.cts".equals(pkgName)); in testResolveActivityMultipleMatch()
783 if (!"android".equals(pkgName)) { in testResolveActivityMultipleMatch()
784 if (mPm.checkPermission(android.Manifest.permission.SET_PREFERRED_APPLICATIONS, pkgName) in testResolveActivityMultipleMatch()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java258 private String getCertHash(String pkgName) throws Exception { in getCertHash() argument
260 PackageInfo pInfo = mPackageManager.getPackageInfo(pkgName, in getCertHash()
266 Log.e(TAG, pkgName + " not found", ex); in getCertHash()