Home
last modified time | relevance | path

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

12

/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/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.java116 assertTrue(rp.getUid() == -10000 || rp.getUid() >= 0); 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/hostsidetests/statsd/src/android/cts/statsd/atom/
DUidAtomTests.java110 assertEquals(getUid(), atom.getUid()); in testLmkKillOccurred()
298 int uid = getUid(); in testHiddenApiUsed()
299 assertEquals(uid, atom.getUid()); in testHiddenApiUsed()
360 int uid = getUid(); in testCpuTimePerUid()
362 if (atom.getCpuTimePerUid().getUid() == uid) { in testCpuTimePerUid()
395 int uid = getUid(); in testCpuActiveTime()
398 if (atom.getCpuActiveTime().getUid() == uid) { in testCpuActiveTime()
449 int uid = getUid(); in testDeviceCalculatedPowerBlameUid()
453 if (item.getUid() == uid) { in testDeviceCalculatedPowerBlameUid()
993 int uid = getUid(); in testBinderStats()
[all …]
DDeviceAtomTestCase.java102 int appUid = getUid(); in doDeviceMethod()
143 fvmUid = createFvm(UID_KEY).setEqInt(getUid()); in addAtomEvent()
162 protected int getUid() throws Exception { in getUid() method in DeviceAtomTestCase
179 LogUtil.CLog.i("Installing device-side test app with uid " + getUid()); in installTestApp()
/cts/hostsidetests/statsd/src/android/cts/statsd/validation/
DBatteryStatsValidationTests.java149 int uid = getUid(); in testPowerBlameUid()
153 if (item.getUid() == uid) { in testPowerBlameUid()
166 if (uidProto.getUid() == uid) { in testPowerBlameUid()
196 int uid = getUid(); in testServiceStartCount()
209 if (uidProto.getUid() == uid) { in testServiceStartCount()
240 int uid = getUid(); in testServiceLaunchCount()
253 if (uidProto.getUid() == uid) { in testServiceLaunchCount()
DValidationTests.java128 int uid = getUid(); in testPartialWakelock()
168 final int EXPECTED_UID = getUid();
230 final int EXPECTED_UID = getUid(); in testPartialWakelockLoad()
351 if (uidProto.getUid() == uid) { in getBatteryStatsPartialWakelock()
/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/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/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/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.java259 public int getUid() { in getUid() method in ServiceTest.IsolatedConnection
1351 int getUid() { in getUid() method in ServiceTest.LruOrderItem
1352 return mInfo != null ? mInfo.getConnection().getUid() : mUid; in getUid()
1443 Log.i("XXXXXXXX", "Expecting uid: " + lru.getUid()); in verifyLruOrder()
1445 if (procUid != lru.getUid()) { in verifyLruOrder()
1452 if (procUid == lru.getUid()) { in verifyLruOrder()
1457 if (procUid != lru.getUid()) { in verifyLruOrder()
1459 fail("Didn't find expected LRU proc uid=" + lru.getUid()); in verifyLruOrder()
1461 fail("Expected proc uid=" + lru.getUid() + " at found proc " in verifyLruOrder()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java366 assertEquals(bucket.getUid(), UID_ALL); in testDeviceSummary()
401 assertEquals(bucket.getUid(), UID_ALL); in testUserSummary()
446 if (bucket.getUid() == Process.myUid()) { in testAppSummary()
551 assertEquals(bucket.getUid(), Process.myUid()); in testUidDetails()
604 assertEquals(bucket.getUid(), Process.myUid()); in testTagDetails()
681 bucket.getUid(), tagToString(bucket.getTag()), stateToString(bucket.getState()), in assertAlmostNoUnexpectedTraffic()
825 if (bucket.getUid() == Process.myUid()) { in getTotalAndAssertNotEmpty()
/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()
/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()

12