Home
last modified time | relevance | path

Searched refs:getUid (Results 1 – 25 of 40) sorted by relevance

12

/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DUidAtomTests.java108 assertEquals(getUid(), atom.getUid()); in testLmkKillOccurred()
296 int uid = getUid(); in testHiddenApiUsed()
297 assertEquals(uid, atom.getUid()); in testHiddenApiUsed()
358 int uid = getUid(); in testCpuTimePerUid()
360 if (atom.getCpuTimePerUid().getUid() == uid) { in testCpuTimePerUid()
411 int uid = getUid(); in testDeviceCalculatedPowerBlameUid()
415 if (item.getUid() == uid) { in testDeviceCalculatedPowerBlameUid()
963 int uid = getUid(); in testBinderStats()
972 if (calls.getUid() == uid && classMatches && methodMatches) { in testBinderStats()
1015 int uid = getUid(); in testLooperStats()
[all …]
DDeviceAtomTestCase.java103 int appUid = getUid(); in doDeviceMethod()
144 fvmUid = createFvm(UID_KEY).setEqInt(getUid()); in addAtomEvent()
163 protected int getUid() throws Exception { in getUid() method in DeviceAtomTestCase
180 LogUtil.CLog.i("Installing device-side test app with uid " + getUid()); in installTestApp()
/cts/hostsidetests/incident/src/com/android/server/cts/
DAlarmManagerIncidentTest.java74 assertTrue(0 <= r.getUid()); in verifyAlarmManagerServiceDumpProto()
132 assertTrue(0 <= f.getUid()); in verifyAlarmManagerServiceDumpProto()
142 assertTrue(0 <= l.getUid()); in verifyAlarmManagerServiceDumpProto()
147 assertTrue(0 <= ta.getUid()); in verifyAlarmManagerServiceDumpProto()
159 assertTrue(0 <= id.getUid()); in verifyAlarmManagerServiceDumpProto()
168 assertTrue(0 <= we.getUid()); in verifyAlarmManagerServiceDumpProto()
195 assertTrue(0 <= broadcast.getUid()); in testBroadcastStatsProto()
DPowerIncidentTest.java79 assertEquals(uid.getUid(), SYSTEM_UID); in verifyPowerManagerServiceDumpProto()
84 assertTrue(0 <= us.getUid()); in verifyPowerManagerServiceDumpProto()
114 assertTrue(0 <= wl.getUid()); in verifyPowerManagerServiceDumpProto()
DPackageIncidentTest.java75 assertEquals(testPackage.getUid(), uid); in testPackageServiceDump()
108 if (user.getUid() == 1000) { in verifyPackageServiceDumpProto()
DNotificationIncidentTest.java126 assertTrue(rp.getUid() == -10000 || rp.getUid() >= 0 || rp.getUid() == -1); in verifyRecordProto()
DJobSchedulerIncidentTest.java58 assertTrue(0 <= po.getUid()); in verifyJobSchedulerServiceDumpProto()
126 assertTrue(0 <= pe.getUid()); in testDataSetProto()
152 assertTrue(0 <= he.getUid()); in testJobPackageHistoryProto()
/cts/tests/tests/net/src/android/net/cts/
DCredentialsTest.java30 assertEquals(0, cred.getUid()); in testCredentials()
36 assertEquals(Integer.MAX_VALUE, cred.getUid()); in testCredentials()
42 assertEquals(Integer.MIN_VALUE, cred.getUid()); in testCredentials()
/cts/hostsidetests/statsd/src/android/cts/statsd/uidmap/
DUidMapTests.java59 if (change.getAppHash() == DEVICE_SIDE_TEST_PKG_HASH && change.getUid() == uid) { in hasMatchingChange()
87 int uid = getUid(); in testChangeFromInstallation()
114 int uid = getUid(); in testChangeFromReinstall()
131 int uid = getUid(); in testChangeFromUninstall()
/cts/hostsidetests/statsd/src/android/cts/statsd/validation/
DBatteryStatsValidationTests.java139 int uid = getUid(); in testServiceStartCount()
152 if (uidProto.getUid() == uid) { in testServiceStartCount()
183 int uid = getUid(); in testServiceLaunchCount()
196 if (uidProto.getUid() == uid) { in testServiceLaunchCount()
/cts/tests/tests/media/src/android/media/cts/
DMediaSession2Test.java216 assertEquals(Process.myUid(), token.getUid()); in testSession2Token()
251 assertEquals(Process.myUid(), controllerInfo.getUid()); in testGetConnectedControllers_newController()
298 assertEquals(Process.myUid(), tokenOut.getUid()); in testSession2Token_writeToParcel()
396 assertEquals(Process.myUid(), remoteUserInfo.getUid()); in testCallback_onConnect_onDisconnect()
422 assertEquals(Process.myUid(), sessionCallback.mController.getUid()); in testCallback_onPostConnect_connected()
692 if (controller.getUid() != Process.myUid()) { in onConnect()
704 if (controller.getUid() != Process.myUid()) { in onPostConnect()
715 if (controller.getUid() != Process.myUid()) { in onDisconnected()
727 if (controller.getUid() != Process.myUid()) { in onSessionCommand()
750 if (controller.getUid() != Process.myUid()) { in onCommandResult()
DUtils.java143 && a.getUid() == b.getUid(); in compareRemoteUserInfo()
DStubMediaSession2Service.java113 if (controller.getUid() == Process.myUid()) { in onGetSession()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputBindingTest.java50 assertEquals(uid, inputBinding.getUid()); in testInputBinding()
60 assertEquals(uid, target.getUid()); in testInputBinding()
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/
DRemoteSocketFactoryClient.java97 public int getUid() throws RemoteException { in getUid() method in RemoteSocketFactoryClient
98 return mService.getUid(); in getUid()
/cts/hostsidetests/statsd/src/android/cts/statsd/metadata/
DMetadataTests.java62 if (stats.getId() == CONFIG_ID && stats.getUid() == getHostUid()) { in testConfigTtl()
81 if (stats.getId() == CONFIG_ID && stats.getUid() == getHostUid()) { in testConfigTtl()
/cts/hostsidetests/net/aidl/com/android/cts/net/hostside/
DIRemoteSocketFactory.aidl24 int getUid(); in getUid() method
/cts/tests/app/src/android/app/cts/
DStatusBarNotificationTest.java48 assertEquals(UID, mSbn.getUid()); in testGetUid()
166 assertEquals(UID, clone.getUid()); in testClone()
DServiceTest.java302 public int getUid() { in getUid() method in ServiceTest.IsolatedConnection
1452 int getUid() { in getUid() method in ServiceTest.LruOrderItem
1453 return mInfo != null ? mInfo.getConnection().getUid() : mUid; in getUid()
1457 return UserHandle.getUserHandleForUid(getUid()).getIdentifier(); in getUserId()
1461 return UserHandle.getAppId(getUid()); in getAppId()
1560 Log.i("XXXXXXXX", "Expecting uid: " + lru.getUid()); in verifyLruOrder()
1574 fail("Didn't find expected LRU proc uid=" + lru.getUid()); in verifyLruOrder()
1576 fail("Expected proc uid=" + lru.getUid() + " at found proc " in verifyLruOrder()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java385 assertEquals(bucket.getUid(), UID_ALL); in testDeviceSummary()
420 assertEquals(bucket.getUid(), UID_ALL); in testUserSummary()
470 if (bucket.getUid() == Process.myUid()) { in testAppSummary()
575 assertEquals(bucket.getUid(), Process.myUid()); in testUidDetails()
628 assertEquals(bucket.getUid(), Process.myUid()); in testTagDetails()
705 bucket.getUid(), tagToString(bucket.getTag()), stateToString(bucket.getState()), in assertAlmostNoUnexpectedTraffic()
849 if (bucket.getUid() == Process.myUid()) { in getTotalAndAssertNotEmpty()
/cts/hostsidetests/appcompat/host/lib/src/android/compat/cts/
DCompatChangeGatingTestCase.java235 protected int getUid(@Nonnull String packageName) throws DeviceNotAvailableException { in getUid() method in CompatChangeGatingTestCase
289 final int packageUid = getUid(pkgName); in getReportedChanges()
296 .filter(atom -> atom != null && atom.getUid() == packageUid) // Should be redundant in getReportedChanges()
/cts/hostsidetests/net/src/com/android/cts/net/
DHostsideRestrictBackgroundNetworkTests.java64 final int oldUid = getUid(TEST_APP2_PKG); in testDataSaverMode_reinstall()
74 final int newUid = getUid(TEST_APP2_PKG); in testDataSaverMode_reinstall()
/cts/hostsidetests/net/app2/src/com/android/cts/net/hostside/app2/
DRemoteSocketFactoryService.java54 public int getUid() {
DCommon.java55 static int getUid(Context context) { in getUid() method in Common
DMyBroadcastReceiver.java32 import static com.android.cts.net.hostside.app2.Common.getUid;
162 + Thread.currentThread().getName() + " for UID " + getUid(context) in checkNetworkStatus()

12