/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyPermissionsTest.java | 58 private static final int UID = 54321; field in TelephonyPermissionsTest 92 .enforcePermission(anyString(), eq(PID), eq(UID), eq(MSG)); in setUp() 94 .enforcePermission(anyString(), eq(PID), eq(UID), eq(MSG)); in setUp() 95 when(mMockAppOps.noteOp(anyInt(), eq(UID), eq(PACKAGE))) in setUp() 97 when(mMockAppOps.noteOpNoThrow(anyString(), eq(UID), eq(PACKAGE))).thenReturn( in setUp() 99 when(mMockTelephony.getCarrierPrivilegeStatusForUid(eq(SUB_ID), eq(UID))) in setUp() 102 PID, UID)).thenReturn(PackageManager.PERMISSION_DENIED); in setUp() 104 eq(UID))).thenReturn(false); in setUp() 111 mMockContext, () -> mMockTelephony, SUB_ID, PID, UID, PACKAGE, MSG); in testCheckReadPhoneState_noPermissions() 121 android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, PID, UID, MSG); in testCheckReadPhoneState_hasPrivilegedPermission() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderWorkSourceTest.java | 47 private static final int UID = 100; field in BinderWorkSourceTest 107 Binder.setCallingWorkSourceUid(UID); in setWorkSource() 108 assertEquals(UID, mService.getIncomingWorkSourceUid()); in setWorkSource() 109 assertEquals(UID, Binder.getCallingWorkSourceUid()); in setWorkSource() 114 Binder.setCallingWorkSourceUid(UID); in clearWorkSource() 122 Binder.setCallingWorkSourceUid(UID); in setWorkSource_propagatedForMultipleCalls() 123 assertEquals(UID, mService.getIncomingWorkSourceUid()); in setWorkSource_propagatedForMultipleCalls() 124 assertEquals(UID, mService.getIncomingWorkSourceUid()); in setWorkSource_propagatedForMultipleCalls() 125 assertEquals(UID, mService.getIncomingWorkSourceUid()); in setWorkSource_propagatedForMultipleCalls() 126 assertEquals(UID, Binder.getCallingWorkSourceUid()); in setWorkSource_propagatedForMultipleCalls() [all …]
|
D | BinderTest.java | 24 private static final int UID = 100; field in BinderTest 28 Binder.setCallingWorkSourceUid(UID); in testSetWorkSource() 29 assertEquals(UID, Binder.getCallingWorkSourceUid()); in testSetWorkSource() 34 Binder.setCallingWorkSourceUid(UID); in testClearWorkSource() 41 Binder.setCallingWorkSourceUid(UID); in testRestoreWorkSource() 44 assertEquals(UID, Binder.getCallingWorkSourceUid()); in testRestoreWorkSource()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsSensorTest.java | 32 private static final int UID = 10500; field in BatteryStatsSensorTest 43 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_CACHED_EMPTY); in testSensorStartStop() 44 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testSensorStartStop() 45 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 48 bi.noteStopSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 50 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_RECEIVER); in testSensorStartStop() 51 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 52 bi.noteStartSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 55 bi.noteStopSensorLocked(UID, SENSOR_ID); in testSensorStartStop() 56 bi.noteStopSensorLocked(UID, SENSOR_ID); in testSensorStartStop() [all …]
|
D | BatteryStatsBackgroundStatsTest.java | 36 private static final int UID = 10500; field in BatteryStatsBackgroundStatsTest 45 BatteryStatsImpl.TimeBase bgtb = bi.getOnBatteryBackgroundTimeBase(UID); in testBgTimeBase() 57 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testBgTimeBase() 64 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testBgTimeBase() 86 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_RECEIVER); // background too in testBgTimeBase() 94 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testBgTimeBase() 101 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_NONEXISTENT); in testBgTimeBase() 113 BatteryStatsImpl.TimeBase bgtb = bi.getOnBatteryScreenOffBackgroundTimeBase(UID); in testScreenOffBgTimeBase() 117 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND); in testScreenOffBgTimeBase() 134 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testScreenOffBgTimeBase() [all …]
|
D | BatteryStatsNoteTest.java | 53 private static final int UID = 10500; field in BatteryStatsNoteTest 54 private static final WorkSource WS = new WorkSource(UID); 63 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteBluetoothScanResultLocked() 68 bi.getUidStats().get(UID).getBluetoothScanResultCounter() in testNoteBluetoothScanResultLocked() 70 BatteryStats.Counter bgCntr = bi.getUidStats().get(UID).getBluetoothScanResultBgCounter(); in testNoteBluetoothScanResultLocked() 75 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); in testNoteBluetoothScanResultLocked() 78 bi.getUidStats().get(UID).getBluetoothScanResultCounter() in testNoteBluetoothScanResultLocked() 81 bi.getUidStats().get(UID).getBluetoothScanResultBgCounter() in testNoteBluetoothScanResultLocked() 97 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); in testNoteStartWakeLocked() 98 bi.getUidStatsLocked(UID) in testNoteStartWakeLocked() [all …]
|
D | BatteryStatsHelperTest.java | 65 private static final int UID = 123456; field in BatteryStatsHelperTest 109 when(mNormalBatterySipper.getUid()).thenReturn(UID); in setUp() 233 doReturn(UID).when(mNormalBatterySipper).getUid(); in testIsTypeSystem_systemPackage_returnTrue() 234 doReturn(systemPackages).when(mPackageManager).getPackagesForUid(UID); in testIsTypeSystem_systemPackage_returnTrue() 243 doReturn(UID).when(mNormalBatterySipper).getUid(); in testIsTypeService_servicePackage_returnTrue() 244 doReturn(servicePackages).when(mPackageManager).getPackagesForUid(UID); in testIsTypeService_servicePackage_returnTrue()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppTimeLimitControllerTests.java | 54 private static final int UID = 10100; field in AppTimeLimitControllerTests 160 assertTrue("Observer wasn't added", hasAppUsageObserver(UID, OBS_ID1)); in testAppUsageObserver_AddObserver() 162 assertTrue("Observer wasn't added", hasAppUsageObserver(UID, OBS_ID2)); in testAppUsageObserver_AddObserver() 163 assertTrue("Observer wasn't added", hasAppUsageObserver(UID, OBS_ID1)); in testAppUsageObserver_AddObserver() 170 assertTrue("Observer wasn't added", hasUsageSessionObserver(UID, OBS_ID1)); in testUsageSessionObserver_AddObserver() 172 assertTrue("Observer wasn't added", hasUsageSessionObserver(UID, OBS_ID2)); in testUsageSessionObserver_AddObserver() 179 assertTrue("Observer wasn't added", hasAppUsageLimitObserver(UID, OBS_ID1)); in testAppUsageLimitObserver_AddObserver() 181 assertTrue("Observer wasn't added", hasAppUsageLimitObserver(UID, OBS_ID2)); in testAppUsageLimitObserver_AddObserver() 182 assertTrue("Observer wasn't added", hasAppUsageLimitObserver(UID, OBS_ID1)); in testAppUsageLimitObserver_AddObserver() 189 assertTrue("Observer wasn't added", hasAppUsageObserver(UID, OBS_ID1)); in testAppUsageObserver_RemoveObserver() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | GlobalSortKeyComparatorTest.java | 43 private final int UID = 1111111; field in GlobalSortKeyComparatorTest 52 PKG, 1, "media", UID, UID, n, in testComparator() 59 PKG, 1, "media", UID, UID, n, in testComparator() 66 PKG, 1, "media", UID, UID, n, in testComparator() 91 PKG, 1, "media", UID, UID, n, in testNoCrash_leftNull() 97 PKG, 1, "media", UID, UID, n, in testNoCrash_leftNull() 121 PKG, 1, "media", UID, UID, n, in testNoCrash_rightNull() 128 PKG, 1, "media", UID, UID, n, in testNoCrash_rightNull()
|
D | RankingHelperTest.java | 65 private static final int UID = 0; field in RankingHelperTest 114 when(mPm.getPackageUidAsUser(eq(PKG), anyInt())).thenReturn(UID); in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/ |
D | CleanupManagerTest.java | 48 private static final int UID = 1234; field in CleanupManagerTest 76 mManager.registerRecoveryAgent(USER_ID, UID); in registerRecoveryAgent_unknownUser_storesInDb() 77 mManager.registerRecoveryAgent(USER_ID_2, UID); in registerRecoveryAgent_unknownUser_storesInDb() 90 mManager.registerRecoveryAgent(USER_ID, UID); in registerRecoveryAgent_registersSameUser_doesntChangeDb() 91 mManager.registerRecoveryAgent(USER_ID, UID); // ignored. in registerRecoveryAgent_registersSameUser_doesntChangeDb() 102 recoveryAgents.add(UID); in verifyKnownUsers_newSerialNumber_deletesData() 113 verify(mRecoverySnapshotStorage).remove(UID); in verifyKnownUsers_newSerialNumber_deletesData()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | EventLogTags.logtags | 43 30014 am_proc_start (User|1|5),(PID|1|5),(UID|1|5),(Process Name|3),(Type|3),(Component|3) 45 30015 am_proc_bad (User|1|5),(UID|1|5),(Process Name|3) 47 30016 am_proc_good (User|1|5),(UID|1|5),(Process Name|3) 66 30030 am_create_service (User|1|5),(Service Record|1|5),(Name|3),(UID|1|5),(PID|1|5) 78 30036 am_provider_lost_process (User|1|5),(Package Name|3),(UID|1|5),(Name|3) 80 30037 am_process_start_timeout (User|1|5),(PID|1|5),(UID|1|5),(Process Name|3) 102 30047 am_pss (Pid|1|5),(UID|1|5),(Process Name|3),(Pss|2|2),(Uss|2|2),(SwapPss|2|2),(Rss|2|2),(Stat… 116 30052 am_uid_running (UID|1|5) 118 30053 am_uid_stopped (UID|1|5) 120 30054 am_uid_active (UID|1|5) [all …]
|
D | UidRecord.java | 156 proto.write(UidRecordProto.UID, uid); in writeToProto()
|
D | ReceiverList.java | 87 proto.write(ReceiverListProto.UID, uid); in writeToProto()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
D | NotificationTestHelper.java | 60 public static final int UID = 1000; field in NotificationTestHelper 87 return createRow(PKG, UID, USER_HANDLE); in createRow() 111 return generateRow(notification, PKG, UID, USER_HANDLE, 0 /* extraInflationFlags */); in createRow() 124 return generateRow(createNotification(), PKG, UID, USER_HANDLE, extraInflationFlags); in createRow() 146 return createRow(PKG, UID, USER_HANDLE, true /* isGroupSummary */, groupkey); in createGroupSummary() 150 return createRow(PKG, UID, USER_HANDLE, false /* isGroupSummary */, groupkey); in createGroupChild() 181 ExpandableNotificationRow row = generateRow(n, pkg, UID, USER_HANDLE, in createBubble()
|
/frameworks/base/core/tests/coretests/src/android/metrics/ |
D | MetricsReaderTest.java | 34 private static final int UID = 2; field in MetricsReaderTest 46 UID, in FakeLogReader() 102 assertEquals(UID, log.getUid()); in testPidUid()
|
/frameworks/base/core/tests/coretests/src/android/service/notification/ |
D | StatusBarNotificationTest.java | 55 private static final int UID = 9583; field in StatusBarNotificationTest 202 pkg, pkg, ID, TAG, UID, UID, builder.build(), USER, null, UID); in getNotification()
|
/frameworks/base/keystore/tests/src/android/security/ |
D | ParcelableKeyGenParameterSpecTest.java | 46 static final int UID = 1230; field in ParcelableKeyGenParameterSpecTest 64 .setUid(UID) in configureDefaultSpec() 135 validateSpecValues(fromParcel.getSpec(), UID, ALIAS); in testParcelingWithAllValues() local
|
/frameworks/opt/vcard/tests/res/raw/ |
D | v21_invalid_comment_line.vcf | 3 UID:357
|
/frameworks/base/core/proto/android/service/ |
D | package.proto | 34 // UID for this package as assigned by Android OS. 52 // Name of the shared UID. eg: android.uid.bluetooth 119 // UID for this package as assigned by Android OS.
|
D | netstats.proto | 39 // Per-UID network stats. 42 // Per-UID, per-tag network stats, excluding the default tag (i.e. tag=0).
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
D | WatchlistLoggingHandler.java | 88 String UID = "uid"; field 112 data.getInt(WatchlistEventKeys.UID), in handleMessage() 189 bundle.putInt(WatchlistEventKeys.UID, uid); in asyncNetworkEvent()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/ |
D | NotificationDataTest.java | 163 mNotificationData.updateAppOp(op, NotificationTestHelper.UID, in testAllRelevantNotisTaggedWithAppOps() 165 mNotificationData.updateAppOp(op, NotificationTestHelper.UID, in testAllRelevantNotisTaggedWithAppOps() 189 mNotificationData.updateAppOp(op, NotificationTestHelper.UID, in testAppOpsRemoval() 194 mNotificationData.updateAppOp(OP_ACCEPT_HANDOVER, NotificationTestHelper.UID, in testAppOpsRemoval()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | SharedUserSetting.java | 70 proto.write(PackageServiceDumpProto.SharedUserProto.UID, userId); in writeToProto()
|
D | PackageSetting.java | 186 proto.write(PackageProto.UID, appId); in writeToProto()
|