Home
last modified time | relevance | path

Searched refs:APP_PKG (Results 1 – 5 of 5) sorted by relevance

/cts/tests/tests/appop/src/android/app/appops/cts/
DRuntimeMessageCollectionTest.kt31 private const val APP_PKG = "android.app.appops.cts.apptocollect" constant
44 appUid = context.packageManager.getPackageUid(APP_PKG, 0) in installApk()
49 runCommand("pm uninstall $APP_PKG") in resetTestApp()
55 runCommand("pm uninstall $APP_PKG") in uninstallTestApp()
66 appOpsManager.noteOp(AppOpsManager.OPSTR_READ_CONTACTS, appUid, APP_PKG, in collectAsyncStackTrace()
72 if (message != null && message.packageName.equals(APP_PKG)) { in collectAsyncStackTrace()
DAttributionTest.kt38 private const val APP_PKG = "android.app.appops.cts.apptoblame" constant
54 private val appUid by lazy { context.packageManager.getPackageUid(APP_PKG, 0) } in <lambda>()
63 runCommand("pm uninstall $APP_PKG") in resetTestApp()
72 appOpsManager.noteOp(OPSTR_RESERVED_FOR_TESTING, appUid, APP_PKG, attribution, null) in noteForAttribution()
127 val beforeUpdate = getOpEntry(appUid, APP_PKG, OPSTR_RESERVED_FOR_TESTING)!! in inheritNotedAppOpsOnUpgrade()
131 val afterUpdate = getOpEntry(appUid, APP_PKG, OPSTR_RESERVED_FOR_TESTING)!! in inheritNotedAppOpsOnUpgrade()
163 val opEntry = getOpEntry(appUid, APP_PKG, OPSTR_RESERVED_FOR_TESTING)!! in canUseUndeclaredAttributionTagButTreatedAsNull()
238 …appOpsManager.noteProxyOp(OPSTR_RESERVED_FOR_TESTING, APP_PKG, appUid, attributionForNoteOp, "mess… in noteProxyOpForAttribution()
244 …appOpsManager.startProxyOp(OPSTR_RESERVED_FOR_TESTING, appUid, APP_PKG, attributionForNoteOp,"mess… in startProxyOpForAttribution()
248 val entry = getOpEntry(appUid, APP_PKG, OPSTR_RESERVED_FOR_TESTING) as AppOpsManager.OpEntry in getPersistedAttribution()
/cts/hostsidetests/car/src/android/car/cts/
DPreCreateUsersHostTest.java55 getDevice().uninstallPackage(APP_PKG); in uninstallPackage()
85 assertAppInstalledForUser(APP_PKG, initialUserId); in appsAreNotInstalledOnPreCreatedUserTest()
86 assertAppNotInstalledForUser(APP_PKG, preCreatedUserId); in appsAreNotInstalledOnPreCreatedUserTest()
89 assertAppNotInstalledForUser(APP_PKG, preCreatedUserId); in appsAreNotInstalledOnPreCreatedUserTest()
DCarWatchdogHostTest.java86 private static final String ACTIVITY_CLASS = APP_PKG + ".CarWatchdogTestActivity";
108 APP_PKG, WATCHDOG_APP_SHARED_USER_ID, WATCHDOG_TEST_PKG);
300 uploadStatsdConfig(APP_PKG); in testIoOveruseKillAfterDisplayTurnOff()
303 overuseDiskIo(APP_PKG, getTestRunningUserId()); in testIoOveruseKillAfterDisplayTurnOff()
304 verifyAtomIoOveruseStatsReported(APP_PKG, getTestRunningUserId(), in testIoOveruseKillAfterDisplayTurnOff()
311 verifyTestAppsKilled(APP_PKG); in testIoOveruseKillAfterDisplayTurnOff()
312 verifyAtomKillStatsReported(APP_PKG, getTestRunningUserId()); in testIoOveruseKillAfterDisplayTurnOff()
/cts/hostsidetests/car/util/src/android/car/cts/
DCarHostJUnit4TestCase.java89 protected static final String APP_PKG = "android.car.cts.app"; field in CarHostJUnit4TestCase