/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/ |
D | AppStateAppOpsBridgeTest.java | 98 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in androidPackagesIgnored() 111 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in selfPackageIgnored() 124 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in packagesNotRequestingPermissionIgnored() 140 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in unavailablePackageIgnored() 155 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in loadsAppOpsExtraInfo_modeAllowed_isPermissible() 170 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in loadsAppOpsExtraInfo_modeDefault_isPermissible() 185 int uid = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in loadsAppOpsExtraInfo_modeIgnored_isNotPermissible() 200 int uid1 = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in loadsAppOpsExtraInfo_multipleApps() 206 int uid2 = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 2); in loadsAppOpsExtraInfo_multipleApps() 220 int uid1 = UserHandle.getUid(UserHandle.myUserId(), /* appId= */ 1); in loadsAppOpExtraInfo_multipleProfiles() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/ |
D | PowerUsageFeatureProviderImplTest.java | 72 when(mBatterySipper.getUid()).thenReturn(Process.ROOT_UID); in testIsTypeSystem_uidRoot_returnTrue() 80 when(mBatterySipper.getUid()).thenReturn(Process.SYSTEM_UID); in testIsTypeSystem_uidSystem_returnTrue() 88 when(mBatterySipper.getUid()).thenReturn(Process.MEDIA_UID); in testIsTypeSystem_uidMedia_returnTrue() 96 when(mBatterySipper.getUid()).thenReturn(UID_CALENDAR); in testIsTypeSystem_appCalendar_returnTrue() 104 when(mBatterySipper.getUid()).thenReturn(UID_MEDIA); in testIsTypeSystem_appMedia_returnTrue() 112 when(mBatterySipper.getUid()).thenReturn(UID_SYSTEMUI); in testIsTypeSystem_appSystemUi_returnTrue() 120 when(mBatterySipper.getUid()).thenReturn(UID_OTHER); in testIsTypeSystem_uidOther_returnFalse()
|
D | BatteryUtilsTest.java | 201 doReturn(UID).when(mNormalBatterySipper).getUid(); in setUp() 214 when(mSystemBatterySipper.getUid()).thenReturn(Process.SYSTEM_UID); in setUp() 350 when(mNormalBatterySipper.getUid()).thenReturn(Process.ROOT_UID); in testShouldHideSipper_TypeSystem_ReturnTrue() 358 when(mNormalBatterySipper.getUid()).thenReturn(UID); in testShouldHideSipper_UidNormal_ReturnFalse() 365 when(mNormalBatterySipper.getUid()).thenReturn(UID); in testShouldHideSipper_TypeService_ReturnTrue() 374 when(mNormalBatterySipper.getUid()).thenReturn(UID); in testShouldHideSipper_hiddenSystemModule_ReturnTrue() 509 doReturn(uidCode).when(sipper).getUid(); in createTestSmearBatterySipper() 514 doReturn(uidCode).when(uid).getUid(); in createTestSmearBatterySipper()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/ |
D | BatteryAppListPreferenceController.java | 91 Integer.toString(entry.sipper.uidObj.getUid())); 93 final int userId = UserHandle.getUserId(entry.sipper.getUid()); 210 final UserHandle userHandle = new UserHandle(UserHandle.getUserId(sipper.getUid())); in refreshAppListGroup() 266 if (sipper.getUid() > 0) { in getCoalescedUsageList() 267 int realUid = sipper.getUid(); in getCoalescedUsageList() 271 if (isSharedGid(sipper.getUid())) { in getCoalescedUsageList() 272 realUid = UserHandle.getUid(UserHandle.USER_SYSTEM, in getCoalescedUsageList() 273 UserHandle.getAppIdFromSharedAppGid(sipper.getUid())); in getCoalescedUsageList() 285 if (realUid != sipper.getUid()) { in getCoalescedUsageList() 356 final String packageName = mBatteryUtils.getPackageName(sipper.getUid()); in shouldHideSipper() [all …]
|
D | BatteryEntry.java | 172 sipper.mPackages = pm.getPackagesForUid(sipper.uidObj.getUid()); in BatteryEntry() 177 defaultPackageName = pm.getPackagesForUid(sipper.uidObj.getUid())[0]; in BatteryEntry() 221 getQuickNameIconForUid(this.sipper.uidObj.getUid()); in BatteryEntry() 283 final int uid = sipper.uidObj.getUid(); in loadNameAndIcon() 373 return sipper.getUid() == Process.SYSTEM_UID in extractPackagesFromSipper()
|
D | BatteryUtils.java | 131 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getScreenUsageTimeMs() 157 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getProcessBackgroundTimeMs() 217 activityTimeArray.put(uid.getUid(), timeMs); in smearScreenBatterySipper() 231 sipper.totalPowerMah += screenPowerMah * activityTimeArray.get(sipper.getUid(), 0) in smearScreenBatterySipper()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryAppListPreferenceController.java | 91 Integer.toString(entry.sipper.uidObj.getUid())); 93 final int userId = UserHandle.getUserId(entry.sipper.getUid()); 210 final UserHandle userHandle = new UserHandle(UserHandle.getUserId(sipper.getUid())); in refreshAppListGroup() 266 if (sipper.getUid() > 0) { in getCoalescedUsageList() 267 int realUid = sipper.getUid(); in getCoalescedUsageList() 271 if (isSharedGid(sipper.getUid())) { in getCoalescedUsageList() 272 realUid = UserHandle.getUid(UserHandle.USER_SYSTEM, in getCoalescedUsageList() 273 UserHandle.getAppIdFromSharedAppGid(sipper.getUid())); in getCoalescedUsageList() 285 if (realUid != sipper.getUid()) { in getCoalescedUsageList() 364 return extractKeyFromUid(sipper.getUid()); in extractKeyFromSipper()
|
D | BatteryEntry.java | 172 sipper.mPackages = pm.getPackagesForUid(sipper.uidObj.getUid()); in BatteryEntry() 177 defaultPackageName = pm.getPackagesForUid(sipper.uidObj.getUid())[0]; in BatteryEntry() 221 getQuickNameIconForUid(this.sipper.uidObj.getUid()); in BatteryEntry() 283 final int uid = sipper.uidObj.getUid(); in loadNameAndIcon() 373 return sipper.getUid() == Process.SYSTEM_UID in extractPackagesFromSipper()
|
D | BatteryUtils.java | 136 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getScreenUsageTimeMs() 162 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getProcessBackgroundTimeMs() 224 activityTimeArray.put(uid.getUid(), timeMs); in smearScreenBatterySipper() 238 sipper.totalPowerMah += screenPowerMah * activityTimeArray.get(sipper.getUid(), 0) in smearScreenBatterySipper() 270 sipper.mPackages = mPackageManager.getPackagesForUid(sipper.getUid()); in isHiddenSystemModule()
|
/packages/services/Car/service/src/com/android/car/stats/ |
D | CarStatsService.java | 57 entry.getUid(), entry.getPackageName(), 71 entry.getUid(), 78 Comparator.comparingInt(VmsClientStats::getUid) 139 .filter(entry -> entry.getUid() > 0) in dumpVmsStats() 141 .sorted(Comparator.comparingInt(VmsClientLogger::getUid)) in dumpVmsStats() 157 e.writeInt(entry.getUid()); in pullVmsClientStats()
|
/packages/services/Car/service/src/com/android/car/ |
D | AppFocusService.java | 129 ownerInfo.getPid(), ownerInfo.getUid()) && in requestAppFocus() 131 info.getPid(), info.getUid())) { in requestAppFocus() 133 + "pid=" + info.getPid() + ", uid=" + info.getUid() + ")." in requestAppFocus() 135 + ownerInfo.getUid() + ") owns it."); in requestAppFocus() 266 return clientInfo.getUid() == uid && clientInfo.getPid() == pid; in isFocusOwner() 296 callback.onFocusAcquired(entry.getKey(), clientInfo.getUid(), clientInfo.getPid()); in registerContextOwnerChangedCallback() 314 callback.onFocusAcquired(appType, owner.getUid(), owner.getPid()); in updateFocusOwner() 422 int getUid() { in getUid() method in AppFocusService.OwnershipClientInfo
|
/packages/modules/DnsResolver/ |
D | DnsProxyListener.cpp | 678 const uid_t uid = mClient->getUid(); in doDns64Synthesis() 716 const uid_t uid = mClient->getUid(); in run() 770 return makeThreadName(mNetContext.dns_netid, mClient->getUid()); in threadName() 826 const uid_t uid = cli->getUid(); in runCommand() 858 const uid_t uid = cli->getUid(); in runCommand() 924 const uid_t uid = mClient->getUid(); in run() 1002 return makeThreadName(mNetContext.dns_netid, mClient->getUid()); in threadName() 1021 const uid_t uid = cli->getUid(); in runCommand() 1074 uid_t uid = cli->getUid(); in runCommand() 1124 const uid_t uid = mClient->getUid(); in doDns64Synthesis() [all …]
|
/packages/modules/ExtServices/tests/src/android/ext/services/notification/ |
D | NotificationCategorizerTest.java | 63 when(mSbn.getUid()).thenReturn(Process.myUid()); in setUp() 179 when(mSbn.getUid()).thenReturn(FIRST_APPLICATION_UID - 1); in testSystemCategory() 184 when(mSbn.getUid()).thenReturn(FIRST_APPLICATION_UID); in testSystemCategory() 194 when(mSbn.getUid()).thenReturn(FIRST_APPLICATION_UID - 1); in testSystemLowCategory() 199 when(mSbn.getUid()).thenReturn(FIRST_APPLICATION_UID); in testSystemLowCategory()
|
/packages/apps/CertInstaller/robotests/src/com/android/certinstaller/ |
D | CertInstallerRoboTest.java | 78 assertThat(helper.getUid()).isEqualTo(Process.WIFI_UID); in testUidUsageEqualWifiPass() 95 assertThat(helper.getUid()).isEqualTo(KeyStore.UID_SELF); in testUidUsageNotNullPass() 110 assertThat(helper.getUid()).isEqualTo(100); in testUidUsageNullPass() 132 assertThat(helper.getUid()).isEqualTo(Process.INVALID_UID); in testIntentNullPass()
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | RegisteredNfcFServicesCache.java | 331 if (service == null || (service.getUid() != dynamicSystemCode.uid)) { in invalidateCache() 347 if (service == null || (service.getUid() != dynamicNfcid2.uid)) { in invalidateCache() 373 new DynamicNfcid2(service.getUid(), randomNfcid2); in invalidateCache() 550 if (service.getUid() != uid) { in registerSystemCodeForService() 594 if (service.getUid() != uid) { in getSystemCodeForService() 627 if (service.getUid() != uid) { in setNfcid2ForService() 669 if (service.getUid() != uid) { in getNfcid2ForService()
|
D | RegisteredServicesCache.java | 305 if (serviceInfo == null || (serviceInfo.getUid() != dynamicSettings.uid)) { in invalidateCache() 465 if (serviceInfo.getUid() != uid) { in setOffHostSecureElement() 508 if (serviceInfo.getUid() != uid) { in unsetOffHostSecureElement() 551 if (serviceInfo.getUid() != uid) { in registerAidGroupForService() 597 if (serviceInfo.getUid() != uid) { in getAidGroupForService() 616 if (serviceInfo.getUid() != uid) { in removeAidGroupForService()
|
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/ |
D | ImapHelper.java | 259 .setSourceData(messageDetails.getUid()) in getVoicemailFromMessageStructure() 298 LogUtils.d(TAG, "Fetching message structure for " + message.getUid()); in fetchMessageStructure() 340 LogUtils.d(TAG, "Fetching message body for " + message.getUid()); in fetchVoicemailPayload() 537 LogUtils.d(TAG, "Fetched message structure for " + message.getUid()); in messageRetrieved() 602 LogUtils.d(TAG, "Fetched message body for " + message.getUid()); in messageRetrieved() 644 LogUtils.d(TAG, "Fetched transcription for " + message.getUid()); in messageRetrieved()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/ |
D | VmsClientManagerTest.java | 210 mCallingAppUid = UserHandle.getUid(USER_ID, 0); in setUp() 811 mCallingAppUid = UserHandle.getUid(UserHandle.USER_SYSTEM, 0); in testAddSubscriber_SystemUser() 823 mCallingAppUid = UserHandle.getUid(USER_ID_U11, 0); in testAddSubscriber_NotForegroundUser() 862 mCallingAppUid = UserHandle.getUid(UserHandle.USER_SYSTEM, 0); in testAddSubscriber_MultipleClients_ForegroundAndSystemUsers_SamePackage() 879 mCallingAppUid = UserHandle.getUid(mForegroundUserId, 1); in testAddSubscriber_MultipleClients_MultiplePackages() 936 mCallingAppUid = UserHandle.getUid(USER_ID_U11, 0); in testOnUserSwitch_RemoveSubscriber_AddNewSubscriber() 952 mCallingAppUid = UserHandle.getUid(UserHandle.USER_SYSTEM, 0); in testOnUserSwitch_RemoveSubscriber_RetainSystemClient()
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/ |
D | PermissionAppsFragment.java | 267 result = x.getUid() - y.getUid(); in onPermissionsLoaded() 428 mPermissionApps.getGroupName(), permissionApp.getUid(), in logPermissionAppsFragmentCreated() 432 + permissionApp.getUid() + " packageName=" + permissionApp.getPackageName() in logPermissionAppsFragmentCreated()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | ProcStatsData.java | 283 pkgProc.getUid()); in getProcs() 289 ProcStatsEntry ent = entriesMap.get(proc.getName(), proc.getUid()); in getProcs() 295 + proc.getUid() + ": time=" in getProcs() 300 entriesMap.put(proc.getName(), proc.getUid(), ent); in getProcs()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ProcStatsData.java | 283 pkgProc.getUid()); in getProcs() 289 ProcStatsEntry ent = entriesMap.get(proc.getName(), proc.getUid()); in getProcs() 295 + proc.getUid() + ": time=" in getProcs() 300 entriesMap.put(proc.getName(), proc.getUid(), ent); in getProcs()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/ |
D | HighUsageDetector.java | 84 .setUid(batterySipper.getUid()) in detect() 86 mBatteryUtils.getPackageName(batterySipper.getUid())) in detect()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/ |
D | HighUsageDetector.java | 93 .setUid(batterySipper.getUid()) in detect() 95 mBatteryUtils.getPackageName(batterySipper.getUid())) in detect()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipUtils.java | 75 new UserHandle(UserHandle.getUserId(packageOps.getUid())))) { in getRestrictedAppsList() 78 .setUid(packageOps.getUid()) in getRestrictedAppsList()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/ |
D | BatteryTipUtils.java | 75 new UserHandle(UserHandle.getUserId(packageOps.getUid())))) { in getRestrictedAppsList() 78 .setUid(packageOps.getUid()) in getRestrictedAppsList()
|