/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 620 int callingUid = Binder.getCallingUid(); in startScan() 688 .c(Binder.getCallingUid()).flush(); in getCurrentNetworkWpsNfcConfigurationToken() 834 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in enforceChangePermission() 835 if (checkNetworkSettingsPermission(Binder.getCallingPid(), Binder.getCallingUid())) { in enforceChangePermission() 842 AppOpsManager.OPSTR_CHANGE_WIFI_STATE, Binder.getCallingUid(), callingPackage); in enforceChangePermission() 903 boolean isPrivileged = isPrivileged(Binder.getCallingPid(), Binder.getCallingUid()); in setWifiEnabled() 904 if (!isPrivileged && !isDeviceOrProfileOwner(Binder.getCallingUid()) in setWifiEnabled() 906 Binder.getCallingUid()) in setWifiEnabled() 907 && !isSystem(packageName, Binder.getCallingUid())) { in setWifiEnabled() 909 .c(Binder.getCallingUid()).flush(); in setWifiEnabled() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | BinderUtilTest.java | 61 final int uid = Binder.getCallingUid(); in setUid() 67 assertEquals(FAKE_UID, Binder.getCallingUid()); in setUid() 73 assertEquals(uid, Binder.getCallingUid()); in setUid() 83 final int uid = Binder.getCallingUid(); in setUidAndRestoreCallingIdentity() 89 assertEquals(FAKE_UID, Binder.getCallingUid()); in setUidAndRestoreCallingIdentity() 94 assertEquals(uid, Binder.getCallingUid()); in setUidAndRestoreCallingIdentity()
|
/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 | 866 Binder.getCallingUid(), userId, "getTvInputList"); in getTvInputList() 885 Binder.getCallingUid(), userId, "getTvInputInfo"); in getTvInputInfo() 911 Binder.getCallingUid(), userId, "updateTvInputInfo"); in updateTvInputInfo() 925 Binder.getCallingUid()); in getCallingPackageName() 935 Binder.getCallingUid(), userId, "getTvInputState"); in getTvInputState() 957 Binder.getCallingUid(), userId, "getTvContentRatingSystemList"); in getTvContentRatingSystemList() 1004 Binder.getCallingUid(), userId, "sendTvInputNotifyIntent"); in sendTvInputNotifyIntent() 1016 Binder.getCallingUid(), userId, "registerCallback"); in registerCallback() 1033 Binder.getCallingUid(), userId, "unregisterCallback"); in unregisterCallback() 1048 Binder.getCallingUid(), userId, "isParentalControlsEnabled"); in isParentalControlsEnabled() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverableKeyStoreManagerTest.java | 210 int uid = Binder.getCallingUid(); in importKey_storesTheKey() 243 int uid = Binder.getCallingUid(); in importKeyWithMetadata_nullMetadata_storesTheKey() 256 int uid = Binder.getCallingUid(); in importKeyWithMetadata_nonNullMetadata_storesTheKey() 292 int uid = Binder.getCallingUid(); in generateKeyWithMetadata_nullMetadata_storesTheKey() 303 int uid = Binder.getCallingUid(); in generateKeyWithMetadata_nonNullMetadata_storesTheKey() 314 int uid = Binder.getCallingUid(); in removeKey_removesAKey() 324 int uid = Binder.getCallingUid(); in removeKey_updatesShouldCreateSnapshot() 337 int uid = Binder.getCallingUid(); in removeKey_failureDoesNotUpdateShouldCreateSnapshot() 348 int uid = Binder.getCallingUid(); in initRecoveryService_succeedsWithCertFile() 369 int uid = Binder.getCallingUid(); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate() [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/native/libs/gui/ |
D | BufferQueueThreadState.cpp | 25 uid_t BufferQueueThreadState::getCallingUid() { in getCallingUid() function in android::BufferQueueThreadState 27 return hardware::IPCThreadState::self()->getCallingUid(); in getCallingUid() 29 return IPCThreadState::self()->getCallingUid(); in getCallingUid()
|
/frameworks/base/services/core/java/com/android/server/ |
D | MmsServiceBroker.java | 319 final String[] packages = getPackageManager().getPackagesForUid(Binder.getCallingUid()); in getCallingPackageName() 336 if (getAppOpsManager().noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMessage() 356 if (getAppOpsManager().noteOp(AppOpsManager.OP_RECEIVE_MMS, Binder.getCallingUid(), in downloadMessage() 373 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importTextMessage() 387 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importMultimediaMessage() 400 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredMessage() 410 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredConversation() 420 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in updateStoredMessageStatus() 431 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in archiveStoredConversation() 442 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in addTextMessageDraft() [all …]
|
D | IpSecService.java | 469 if (uid != Binder.getCallingUid() in checkCallerUid() 470 && android.os.Process.SYSTEM_UID != Binder.getCallingUid()) { in checkCallerUid() 504 uid = Binder.getCallingUid(); in OwnedResourceRecord() 1117 int callingUid = Binder.getCallingUid(); in allocateSecurityParameterIndex() 1160 UserRecord userRecord = mUserResourceTracker.getUserRecord(Binder.getCallingUid()); in releaseSecurityParameterIndex() 1234 int callingUid = Binder.getCallingUid(); in openUdpEncapsulationSocket() 1278 UserRecord userRecord = mUserResourceTracker.getUserRecord(Binder.getCallingUid()); in closeUdpEncapsulationSocket() 1300 int callerUid = Binder.getCallingUid(); in createTunnelInterface() 1382 UserRecord userRecord = mUserResourceTracker.getUserRecord(Binder.getCallingUid()); in addAddressToTunnelInterface() 1412 UserRecord userRecord = mUserResourceTracker.getUserRecord(Binder.getCallingUid()); in removeAddressFromTunnelInterface() [all …]
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | CameraThreadState.cpp | 25 int CameraThreadState::getCallingUid() { in getCallingUid() function in android::CameraThreadState 27 return hardware::IPCThreadState::self()->getCallingUid(); in getCallingUid() 29 return IPCThreadState::self()->getCallingUid(); in getCallingUid()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsPermissions.java | 87 int callingUid = Binder.getCallingUid(); in enforceCallerIsImsAppOrCarrierApp() 116 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage) in checkCallingCanSendSms() 130 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage) in checkCallingOrSelfCanSendSms() 189 if (Binder.getCallingUid() in packageNameMatchesCallingUid() 193 + " does not match calling uid " + Binder.getCallingUid()); in packageNameMatchesCallingUid()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | BinderCallsStatsServiceTest.java | 40 protected int getCallingUid() { in weTrustOurselves() 52 protected int getCallingUid() { in workSourceSetIfCallerHasPermission() 65 protected int getCallingUid() { in workSourceResolvedToCallingUid()
|
/frameworks/base/cmds/statsd/src/ |
D | StatsService.cpp | 75 uid_t uid = IPCThreadState::self()->getCallingUid(); in checkUid() 86 uid_t uid = IPCThreadState::self()->getCallingUid(); in checkDumpAndUsageStats() 352 uid_t uid = IPCThreadState::self()->getCallingUid(); in command() 555 uid = IPCThreadState::self()->getCallingUid(); in cmd_trigger_broadcast() 592 uid = IPCThreadState::self()->getCallingUid(); in cmd_trigger_active_config_broadcast() 606 uid = IPCThreadState::self()->getCallingUid(); in cmd_trigger_active_config_broadcast() 649 uid = IPCThreadState::self()->getCallingUid(); in cmd_config() 732 uid = IPCThreadState::self()->getCallingUid(); in cmd_dump_report() 824 uid = IPCThreadState::self()->getCallingUid(); in cmd_log_app_breadcrumb() 910 ipc->getCallingPid(), ipc->getCallingUid()); in cmd_clear_puller_cache() [all …]
|
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/ |
D | RecoverableKeyStoreManager.java | 190 int uid = Binder.getCallingUid(); in initRecoveryService() 341 int uid = Binder.getCallingUid(); in getKeyChainSnapshot() 352 int uid = Binder.getCallingUid(); in setSnapshotCreatedPendingIntent() 363 int uid = Binder.getCallingUid(); in setServerParams() 397 long updatedRows = mDatabase.setRecoveryStatus(Binder.getCallingUid(), alias, status); in setRecoveryStatus() 415 return mDatabase.getStatusForAllKeys(Binder.getCallingUid()); in getRecoveryStatus() 429 int uid = Binder.getCallingUid(); in setRecoverySecretTypes() 466 Binder.getCallingUid()); in getRecoverySecretTypes() 492 int uid = Binder.getCallingUid(); in startRecoverySession() 608 int uid = Binder.getCallingUid(); in recoverKeyChainSnapshot() [all …]
|
/frameworks/av/services/medialog/ |
D | MediaLogService.cpp | 57 if (!isAudioServerOrMediaServerUid(IPCThreadState::self()->getCallingUid()) || shared == 0 || in registerWriter() 71 if (!isAudioServerOrMediaServerUid(IPCThreadState::self()->getCallingUid()) || shared == 0) { in unregisterWriter() 100 if (!(isAudioServerOrMediaServerUid(IPCThreadState::self()->getCallingUid()) in dump() 104 IPCThreadState::self()->getCallingUid()); in dump()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionRecord.java | 842 int uid = Binder.getCallingUid(); in setFlags() 1240 mSessionCb.sendCommand(packageName, Binder.getCallingPid(), Binder.getCallingUid(), in sendCommand() 1248 Binder.getCallingUid(), cb, false, keyEvent); in sendMediaButton() 1266 packageName, Binder.getCallingUid())); in registerCallback() 1322 int uid = Binder.getCallingUid(); in adjustVolume() 1336 int uid = Binder.getCallingUid(); in setVolumeTo() 1348 mSessionCb.prepare(packageName, Binder.getCallingPid(), Binder.getCallingUid(), caller); in prepare() 1355 Binder.getCallingUid(), caller, mediaId, extras); in prepareFromMediaId() 1362 Binder.getCallingUid(), caller, query, extras); in prepareFromSearch() 1368 mSessionCb.prepareFromUri(packageName, Binder.getCallingPid(), Binder.getCallingUid(), in prepareFromUri() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | CrossProfileAppsServiceImpl.java | 101 final int callingUid = mInjector.getCallingUid(); in startActivityAsUser() 179 final int callingUid = mInjector.getCallingUid(); in isPackageEnabled() 237 mInjector.getAppOpsManager().checkPackage(mInjector.getCallingUid(), callingPackage); in verifyCallingPackage() 247 public int getCallingUid() { in getCallingUid() method in CrossProfileAppsServiceImpl.InjectorImpl 248 return Binder.getCallingUid(); in getCallingUid() 296 int getCallingUid(); in getCallingUid() method
|
/frameworks/base/core/java/android/content/ |
D | PermissionChecker.java | 268 Binder.getCallingUid(), packageName); in checkCallingPermissionForDataDelivery() 306 Binder.getCallingUid(), packageName); in checkCallingPermissionForPreflight() 339 Binder.getCallingUid(), packageName); in checkCallingOrSelfPermissionForDataDelivery() 374 Binder.getCallingUid(), packageName); in checkCallingOrSelfPermissionForPreflight()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderWorkSourceService.java | 29 return Binder.getCallingUid(); 45 Binder.setWorkSourceProvider((x) -> Binder.getCallingUid());
|
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/ |
D | ShadowKeyValueBackupJob.java | 32 public static int getCallingUid() { in getCallingUid() method in ShadowKeyValueBackupJob 39 callingUid = Binder.getCallingUid(); in schedule()
|
D | ShadowBinder.java | 39 originalCallingUid = getCallingUid(); in clearCallingIdentity() 62 return UserHandle.of(UserHandle.getUserId(getCallingUid())); in getCallingUserHandle()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 921 final int callingUid = Binder.getCallingUid(); in hasPermission() 937 final int callingUid = Binder.getCallingUid(); in hasObserverPermission() 951 final int callingUid = Binder.getCallingUid(); in hasPermissions() 974 final int callingUid = Binder.getCallingUid(); in checkCallerIsSameApp() 985 final int uid = UserHandle.getAppId(Binder.getCallingUid()); // ignores user in isCallingUidSystem() 997 Binder.getCallingUid(), UserHandle.getCallingUserId()); in queryUsageStats() 1064 Binder.getCallingUid(), UserHandle.getCallingUserId()); in queryEvents() 1079 final int callingUid = Binder.getCallingUid(); in queryEventsForPackage() 1108 Binder.getCallingUid(), UserHandle.getCallingUserId()); in queryEventsForUser() 1145 Binder.getCallingUid(), userId, false, false, "isAppInactive", null); in isAppInactive() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SmsPermissionsTest.java | 128 AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), PACKAGE)) in testCheckCallingSendTextPermissions_persist_noAppOps() 143 AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), PACKAGE)) in testCheckCallingSendTextPermissions_noPersist_grantViaCarrierApp() 187 AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), PACKAGE)) in testCheckCallingSendTextPermissions_noPersist_noAppOps() 264 doReturn(Binder.getCallingUid()).when(mockPackageManager) in testPackageNameMatchesCallingUid() 275 doReturn(Binder.getCallingUid() + 1).when(mockPackageManager) in testPackageNameMatchesCallingUid()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | DumpUtils.java | 98 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid() in checkDumpPermission() 116 final int uid = Binder.getCallingUid(); in checkUsageStatsPermission() 129 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid() in checkUsageStatsPermission() 155 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid() in checkUsageStatsPermission()
|
/frameworks/base/services/core/java/com/android/server/os/ |
D | SchedulingPolicyService.java | 96 if (Binder.getCallingUid() != Process.BLUETOOTH_UID) { in requestPriority() 121 Binder.getCallingUid() != Process.MEDIA_UID) { in requestCpusetBoost() 213 switch (Binder.getCallingUid()) { in isPermitted()
|