/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | BinderUtilTest.java | 60 final int uid = Binder.getCallingUid(); in setUid() 66 assertEquals(FAKE_UID, Binder.getCallingUid()); in setUid() 72 assertEquals(uid, Binder.getCallingUid()); in setUid() 82 final int uid = Binder.getCallingUid(); in setUidAndRestoreCallingIdentity() 88 assertEquals(FAKE_UID, Binder.getCallingUid()); in setUidAndRestoreCallingIdentity() 93 assertEquals(uid, Binder.getCallingUid()); in setUidAndRestoreCallingIdentity()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 594 mLog.info("startScan uid=%").c(Binder.getCallingUid()).flush(); in startScan() 637 if (workSource == null && Binder.getCallingUid() >= 0) { in startScan() 638 workSource = new WorkSource(Binder.getCallingUid()); in startScan() 640 mWifiStateMachine.startScan(Binder.getCallingUid(), scanRequestCounter++, in startScan() 663 if (Binder.getCallingUid() == Process.SYSTEM_UID in isRequestFromBackground() 664 || Binder.getCallingUid() == Process.WIFI_UID) { in isRequestFromBackground() 667 mAppOps.checkPackage(Binder.getCallingUid(), packageName); in isRequestFromBackground() 687 .c(Binder.getCallingUid()).flush(); in getCurrentNetworkWpsNfcConfigurationToken() 784 + ", uid=" + Binder.getCallingUid() + ", package=" + packageName); in setWifiEnabled() 786 .c(Binder.getCallingUid()).c(enable).flush(); in setWifiEnabled() [all …]
|
D | WifiMulticastLockManager.java | 66 mUid = Binder.getCallingUid(); in Multicaster() 145 int uid = Binder.getCallingUid(); in acquireLock() 157 int uid = Binder.getCallingUid(); in releaseLock()
|
D | WifiLockManager.java | 75 ws = new WorkSource(Binder.getCallingUid()); in acquireWifiLock() 148 newWorkSource = new WorkSource(Binder.getCallingUid()); in updateWifiLockWorkSource() 295 mUid = Binder.getCallingUid(); in WifiLock()
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvRemoteProviderProxy.java | 328 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in openInputBridge() 346 .getCallingUid()); in openInputBridge() 354 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in closeInputBridge() 371 Binder.getCallingUid()); in closeInputBridge() 379 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in clearInputBridge() 396 Binder.getCallingUid()); in clearInputBridge() 404 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in sendTimestamp() 418 .getCallingUid()); in sendTimestamp() 426 if (mActiveConnection == this && Binder.getCallingUid() == mUid) { in sendKeyDown() 444 .getCallingUid()); in sendKeyDown() [all …]
|
D | TvInputManagerService.java | 847 Binder.getCallingUid(), userId, "getTvInputList"); in getTvInputList() 866 Binder.getCallingUid(), userId, "getTvInputInfo"); in getTvInputInfo() 892 Binder.getCallingUid(), userId, "updateTvInputInfo"); in updateTvInputInfo() 906 Binder.getCallingUid()); in getCallingPackageName() 916 Binder.getCallingUid(), userId, "getTvInputState"); in getTvInputState() 932 Binder.getCallingUid(), userId, "getTvContentRatingSystemList"); in getTvContentRatingSystemList() 979 Binder.getCallingUid(), userId, "sendTvInputNotifyIntent"); in sendTvInputNotifyIntent() 991 Binder.getCallingUid(), userId, "registerCallback"); in registerCallback() 1020 Binder.getCallingUid(), userId, "unregisterCallback"); in unregisterCallback() 1035 Binder.getCallingUid(), userId, "isParentalControlsEnabled"); in isParentalControlsEnabled() [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardwareService.java | 101 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType); 110 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType); 119 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType); 128 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType); 138 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType); 149 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
|
/frameworks/base/services/core/java/com/android/server/ |
D | MmsServiceBroker.java | 320 final String[] packages = getPackageManager().getPackagesForUid(Binder.getCallingUid()); in getCallingPackageName() 337 if (getAppOpsManager().noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMessage() 355 if (getAppOpsManager().noteOp(AppOpsManager.OP_RECEIVE_MMS, Binder.getCallingUid(), in downloadMessage() 376 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importTextMessage() 390 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importMultimediaMessage() 403 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredMessage() 413 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredConversation() 423 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in updateStoredMessageStatus() 434 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in archiveStoredConversation() 445 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in addTextMessageDraft() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | DumpUtils.java | 82 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid() in checkDumpPermission() 100 final int uid = Binder.getCallingUid(); in checkUsageStatsPermission() 112 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid() in checkUsageStatsPermission() 138 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid() in checkUsageStatsPermission()
|
/frameworks/av/services/medialog/ |
D | MediaLogService.cpp | 50 if (IPCThreadState::self()->getCallingUid() != AID_AUDIOSERVER || shared == 0 || in registerWriter() 64 if (IPCThreadState::self()->getCallingUid() != AID_AUDIOSERVER || shared == 0) { in unregisterWriter() 94 if (!(IPCThreadState::self()->getCallingUid() == AID_AUDIOSERVER || in dump() 98 IPCThreadState::self()->getCallingUid()); in dump()
|
/frameworks/support/compat/java/android/support/v4/app/ |
D | NotificationCompatSideChannelService.java | 80 checkPermission(getCallingUid(), packageName); in notify() 91 checkPermission(getCallingUid(), packageName); in cancel() 102 checkPermission(getCallingUid(), packageName); in cancelAll()
|
/frameworks/base/packages/services/PacProcessor/src/com/android/pacprocessor/ |
D | PacService.java | 96 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in setPacFile() 105 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in startPacSystem() 114 if (Binder.getCallingUid() != Process.SYSTEM_UID) { in stopPacSystem()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | AutofillManagerService.java | 306 Binder.getCallingUid(), userId, false, false, null, null); in getServiceForUserLocked() 324 Binder.getCallingUid(), userId, false, false, null, null); in peekServiceForUserLocked() 521 getCallingUid()); in setAuthenticationResult() 529 service.setHasCallback(sessionId, getCallingUid(), hasIt); in setHasCallback() 544 Preconditions.checkArgument(userId == UserHandle.getUserId(getCallingUid()), "userId"); in startSession() 554 return service.startSessionLocked(activityToken, getCallingUid(), appCallback, in startSession() 562 int uid = getCallingUid(); in getFillEventHistory() 584 return service.restoreSession(sessionId, getCallingUid(), activityToken, in restoreSession() 598 service.updateSessionLocked(sessionId, getCallingUid(), autoFillId, bounds, in updateSession() 613 restart = service.updateSessionLocked(sessionId, getCallingUid(), autoFillId, in updateOrRestartSession() [all …]
|
/frameworks/base/services/core/java/com/android/server/webkit/ |
D | WebViewUpdateService.java | 167 if (Binder.getCallingUid() != Process.SHARED_RELRO_UID && in notifyRelroCreationCompleted() 168 Binder.getCallingUid() != Process.SYSTEM_UID) { in notifyRelroCreationCompleted() 207 + ", uid=" + Binder.getCallingUid() in changeProviderAndSetting() 255 + ", uid=" + Binder.getCallingUid() in enableFallbackLogic() 281 + ", uid=" + Binder.getCallingUid() in enableMultiProcess()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 157 enforcePermission(Binder.getCallingUid(), callingPackage); in isQuotaSupported() 214 enforcePermission(Binder.getCallingUid(), callingPackage); in getCacheBytes() 226 enforcePermission(Binder.getCallingUid(), callingPackage); in getCacheQuotaBytes() 252 if (Binder.getCallingUid() == appInfo.uid) { in queryStatsForPackage() 255 enforcePermission(Binder.getCallingUid(), callingPackage); in queryStatsForPackage() 296 if (Binder.getCallingUid() == uid) { in queryStatsForUid() 299 enforcePermission(Binder.getCallingUid(), callingPackage); in queryStatsForUid() 346 enforcePermission(Binder.getCallingUid(), callingPackage); in queryStatsForUser() 373 enforcePermission(Binder.getCallingUid(), callingPackage); in queryExternalStatsForUser()
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | SchedulingPolicyService.java | 56 if (Binder.getCallingUid() != Process.BLUETOOTH_UID) { in requestPriority() 83 switch (Binder.getCallingUid()) { in isPermitted()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmMockContext.java | 98 public int getCallingUid() { in getCallingUid() method in DpmMockContext.MockBinder 107 return new UserHandle(UserHandle.getUserId(getCallingUid())); in getCallingUserHandle() 206 if (UserHandle.isSameApp(binder.getCallingUid(), SYSTEM_UID)) { in enforceCallingOrSelfPermission() 209 List<String> permissions = binder.callingPermissions.get(binder.getCallingUid()); in enforceCallingOrSelfPermission() 284 Assert.assertEquals(UserHandle.getUserId(binder.getCallingUid()), user.getIdentifier()); in sendBroadcastAsUser() 402 return UserHandle.getUserId(binder.getCallingUid()); in getUserId()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | IccSmsInterfaceManager.java | 201 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_ICC_SMS, Binder.getCallingUid(), in updateMessageOnIccEf() 255 if (mAppOps.noteOp(AppOpsManager.OP_WRITE_ICC_SMS, Binder.getCallingUid(), in copyMessageToIccEf() 293 if (mAppOps.noteOp(AppOpsManager.OP_READ_ICC_SMS, Binder.getCallingUid(), in getAllMessagesFromIccEf() 377 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendDataInternal() 446 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendTextInternal() 521 if (mAppOps.noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMultipartText() 662 Binder.getCallingUid()); in enableGsmBroadcastRange() 688 Binder.getCallingUid()); in disableGsmBroadcastRange() 714 Binder.getCallingUid()); in enableCdmaBroadcastRange() 740 Binder.getCallingUid()); in disableCdmaBroadcastRange() [all …]
|
D | PhoneSubInfoController.java | 463 return mAppOps.noteOp(AppOpsManager.OP_READ_PHONE_STATE, Binder.getCallingUid(), in checkReadPhoneState() 474 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED) { in checkReadPhoneNumber() 486 return mAppOps.noteOp(opCode, Binder.getCallingUid(), callingPackage) in checkReadPhoneNumber() 498 return mAppOps.noteOp(opCode, Binder.getCallingUid(), callingPackage) in checkReadPhoneNumber() 507 throw new SecurityException(message + ": Neither user " + Binder.getCallingUid() + in checkReadPhoneNumber()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 257 final int callingUid = Binder.getCallingUid(); in setPrimaryClip() 308 Binder.getCallingUid()) || isDeviceLocked()) { in getPrimaryClip() 311 addActiveOwnerLocked(Binder.getCallingUid(), pkg); in getPrimaryClip() 320 Binder.getCallingUid()) || isDeviceLocked()) { in getPrimaryClipDescription() 332 Binder.getCallingUid()) || isDeviceLocked()) { in hasPrimaryClip() 344 new ListenerInfo(Binder.getCallingUid(), callingPackage)); in addPrimaryClipChangedListener() 359 Binder.getCallingUid()) || isDeviceLocked()) { in hasClipboardText() 535 UserHandle.getUserId(Binder.getCallingUid())); in revokeUriLocked()
|
/frameworks/base/cmds/incidentd/src/ |
D | IncidentService.cpp | 50 IPCThreadState::self()->getCallingPid(), IPCThreadState::self()->getCallingUid()); in checkIncidentPermissions() 56 IPCThreadState::self()->getCallingPid(), IPCThreadState::self()->getCallingUid()); in checkIncidentPermissions() 234 if (IPCThreadState::self()->getCallingUid() != AID_SYSTEM) { in systemRunning()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 450 int callingUid = Binder.getCallingUid(); in addAccountExplicitlyWithVisibility() 482 int callingUid = Binder.getCallingUid(); in getAccountsAndVisibilityForPackage() 538 int callingUid = Binder.getCallingUid(); in getPackagesAndVisibilityForAccount() 585 int callingUid = Binder.getCallingUid(); in getAccountVisibility() 750 int callingUid = Binder.getCallingUid(); in setAccountVisibility() 869 int callingUid = Binder.getCallingUid(); in registerAccountListener() 903 int callingUid = Binder.getCallingUid(); in unregisterAccountListener() 1438 int callingUid = Binder.getCallingUid(); in getPassword() 1441 + ", caller's uid " + Binder.getCallingUid() in getPassword() 1483 + ", caller's uid " + Binder.getCallingUid() in getPreviousName() [all …]
|
/frameworks/base/core/java/android/content/ |
D | PermissionChecker.java | 153 Binder.getCallingUid(), packageName); in checkCallingPermission() 171 Binder.getCallingUid(), packageName); in checkCallingOrSelfPermission()
|
/frameworks/support/core-utils/java/android/support/v4/content/ |
D | PermissionChecker.java | 154 Binder.getCallingUid(), packageName); in checkCallingPermission() 172 Binder.getCallingUid(), packageName); in checkCallingOrSelfPermission()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | MediaFocusControl.java | 658 "requestAudioFocus() from uid/pid " + Binder.getCallingUid() in requestAudioFocus() 671 if (mAppOps.noteOp(AppOpsManager.OP_TAKE_AUDIO_FOCUS, Binder.getCallingUid(), in requestAudioFocus() 689 afiForExtPolicy = new AudioFocusInfo(aa, Binder.getCallingUid(), in requestAudioFocus() 757 clientId, afdh, callingPackageName, Binder.getCallingUid(), this, sdk); in requestAudioFocus() 794 "abandonAudioFocus() from uid/pid " + Binder.getCallingUid() in abandonAudioFocus() 803 final AudioFocusInfo afi = new AudioFocusInfo(aa, Binder.getCallingUid(), in abandonAudioFocus()
|