/cts/hostsidetests/graphics/gpumetrics/src/com/android/cts/graphics/ |
D | GpuWorkDumpsysTest.java | 71 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/ |
D | ApplicationVisibilityCrossUserTest.java | 166 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/ |
D | RuntimeMessageCollectionTest.kt | 39 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()
|
D | AttributionTest.kt | 54 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/ |
D | BinderStatsTests.java | 86 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/ |
D | BytesTransferredTest.java | 139 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/ |
D | CpuStatsTests.java | 77 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/ |
D | HostsideStatsdAtomTests.java | 108 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/ |
D | CarWatchdogHostTest.java | 353 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/ |
D | AppExitHostTest.java | 153 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/ |
D | BaseBlobStoreHostTest.java | 156 final int appUid = Integer.parseInt(matcher.group(1)); in getAppUid() local 157 return appUid; in getAppUid()
|
/cts/hostsidetests/media/src/android/media/metrics/cts/ |
D | MediaMetricsAtomTests.java | 383 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/ |
D | BubblesVerifierActivity.java | 476 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/ |
D | UidAtomTests.java | 153 int appUid = DeviceUtils.getStatsdTestAppUid(getDevice()); in testLmkKillOccurred() local 175 .filter(atom -> atom.getUid() == appUid) in testLmkKillOccurred()
|