Home
last modified time | relevance | path

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

/cts/hostsidetests/graphics/gpumetrics/src/com/android/cts/graphics/
DGpuWorkDumpsysTest.java71 long appUid = Long.parseLong(parts[2].trim()); in getTestAppUid() local
72 assertTrue(String.format("Unexpected app uid: %d", appUid), appUid > 10000); in getTestAppUid()
73 return appUid; in getTestAppUid()
105 long appUid = getTestAppUid(); in testOutputFormat() local
128 Pattern uidInfoPattern = Pattern.compile(String.format("\\d+ (%d) (\\d+) (\\d+)", appUid)); in testOutputFormat()
134 if (appUid == Long.parseLong(matcher.group(1)) in testOutputFormat()
144 appUid, commandResult.getStdout())); in testOutputFormat()
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/
DApplicationVisibilityCrossUserTest.java166 for (int appUid = firstAppUid; appUid < lastAppUid; appUid++) { in testGetPackagesForUidVisibility_currentUser()
167 found = isAppInPackageNamesArray(TINY_PKG, pm.getPackagesForUid(appUid)); in testGetPackagesForUidVisibility_currentUser()
180 for (int appUid = firstAppUid; appUid < lastAppUid; appUid++) { in testGetPackagesForUidVisibility_anotherUserCrossUserGrant()
181 found = isAppInPackageNamesArray(TINY_PKG, pm.getPackagesForUid(appUid)); in testGetPackagesForUidVisibility_anotherUserCrossUserGrant()
195 for (int appUid = firstAppUid; appUid < lastAppUid; appUid++) { in testGetPackagesForUidVisibility_anotherUserCrossUserNoGrant()
196 isAppInPackageNamesArray(TINY_PKG, pm.getPackagesForUid(appUid)); in testGetPackagesForUidVisibility_anotherUserCrossUserNoGrant()
/cts/tests/tests/appop/src/android/app/appops/cts/
DRuntimeMessageCollectionTest.kt39 private var appUid = -1 variable in android.app.appops.cts.RuntimeMessageCollectionTest
44 appUid = context.packageManager.getPackageUid(APP_PKG, 0) in installApk()
66 appOpsManager.noteOp(AppOpsManager.OPSTR_READ_CONTACTS, appUid, APP_PKG, in collectAsyncStackTrace()
74 assertThat(message.uid).isEqualTo(appUid) in collectAsyncStackTrace()
DAttributionTest.kt54 private val appUid by lazy { context.packageManager.getPackageUid(APP_PKG, 0) } in <lambda>() constant
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/statsdatom/src/android/cts/statsdatom/binderstats/
DBinderStatsTests.java86 int appUid = DeviceUtils.getAppUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG); in testBinderStats() local
89 assertThat(calls.getUid()).isEqualTo(appUid); in testBinderStats()
104 assertWithMessage(String.format("Did not find a matching atom for uid %d", appUid)) in testBinderStats()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/
DBytesTransferredTest.java139 long rxBytes, long txBytes, long rxPackets, long txPackets, long appUid) { in TransferredBytes() argument
144 mAppUid = appUid; in TransferredBytes()
199 final int appUid = DeviceUtils.getAppUid(getDevice(), in doTestMobileBytesTransferThat() local
201 assertThat(transferredBytes.mAppUid).isEqualTo(appUid); in doTestMobileBytesTransferThat()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/
DCpuStatsTests.java77 int appUid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testCpuTimePerUid() local
79 assertThat(atom.getCpuTimePerUid().getUid()).isEqualTo(appUid); in testCpuTimePerUid()
84 assertWithMessage("Found no CpuTimePerUid atoms from uid " + appUid).that(found).isTrue(); in testCpuTimePerUid()
/cts/hostsidetests/appcompat/hiddenapi/src/android/compat/hiddenapi/cts/
DHostsideStatsdAtomTests.java108 final int appUid = DeviceUtils.getAppUid(getDevice(), TEST_PKG); in hiddenApiUsed() local
109 assertThat(atom.getUid()).isEqualTo(appUid); in hiddenApiUsed()
/cts/hostsidetests/car/src/android/car/cts/
DCarWatchdogHostTest.java353 int appUid = DeviceUtils.getAppUidForUser(getDevice(), packageName, userId); in verifyAtomIoOveruseStatsReported() local
355 .isEqualTo(appUid); in verifyAtomIoOveruseStatsReported()
372 int appUid = DeviceUtils.getAppUidForUser(getDevice(), packageName, userId); in verifyAtomKillStatsReported() local
373 assertWithMessage("UID in kill stats").that(atom.getUid()).isEqualTo(appUid); in verifyAtomKillStatsReported()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appexit/
DAppExitHostTest.java153 final int appUid = Integer.parseInt(matcher.group(1)); in getAppUid() local
154 return appUid; in getAppUid()
/cts/hostsidetests/blobstore/src/com/android/cts/host/blob/
DBaseBlobStoreHostTest.java156 final int appUid = Integer.parseInt(matcher.group(1)); in getAppUid() local
157 return appUid; in getAppUid()
/cts/hostsidetests/media/src/android/media/metrics/cts/
DMediaMetricsAtomTests.java383 int appUid = DeviceUtils.getAppUid(getDevice(), TEST_PKG); in testPlaybackMetrics_default() local
390 assertThat(result.getUid()).isEqualTo(appUid); in testPlaybackMetrics_default()
419 int appUid = DeviceUtils.getAppUid(getDevice(), TEST_PKG); in testPlaybackMetrics() local
426 assertThat(result.getUid()).isEqualTo(appUid); in testPlaybackMetrics()
805 int appUid = DeviceUtils.getAppUid(getDevice(), TEST_PKG); in validateAAudioStreamAtom() local
816 assertThat(atom.getUid()).isEqualTo(appUid); in validateAAudioStreamAtom()
919 int appUid = DeviceUtils.getAppUid(getDevice(), TEST_PKG); in testMidiMetrics() local
922 assertThat(result.getUid()).isEqualTo(appUid); in testMidiMetrics()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DBubblesVerifierActivity.java476 final int appUid = getApplicationInfo().uid; in performTestAction() local
479 intent.putExtra(Settings.EXTRA_APP_UID, appUid); in performTestAction()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DUidAtomTests.java153 int appUid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testLmkKillOccurred() local
175 .filter(atom -> atom.getUid() == appUid) in testLmkKillOccurred()