Home
last modified time | relevance | path

Searched refs:getCallingUid (Results 1 – 25 of 451) sorted by relevance

12345678910>>...19

/frameworks/base/core/tests/coretests/src/android/content/
DPermissionCheckerTest.java55 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_DEFAULT); in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted()
59 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionGranted_returnsGranted()
67 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_DEFAULT); in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied()
71 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeDefaultAndPermissionNotGranted_returnsHardDenied()
79 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ALLOWED); in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted()
83 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeAllowed_returnsGranted()
91 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_ALLOWED); in testCheckPermissionForPreflight_appOpPermission_packageNameIsNull_returnsGranted()
95 Binder.getCallingUid(), /* packageName= */ null)) in testCheckPermissionForPreflight_appOpPermission_packageNameIsNull_returnsGranted()
103 Binder.getCallingUid(), mContext.getPackageName(), AppOpsManager.MODE_IGNORED); in testCheckPermissionForPreflight_appOpPermission_modeIgnored_returnsHardDenied()
107 Binder.getCallingUid(), mContext.getPackageName())) in testCheckPermissionForPreflight_appOpPermission_modeIgnored_returnsHardDenied()
[all …]
/frameworks/native/libs/gui/
DBufferQueueThreadState.cpp27 uid_t BufferQueueThreadState::getCallingUid() { in getCallingUid() function in android::BufferQueueThreadState
30 return hardware::IPCThreadState::self()->getCallingUid(); in getCallingUid()
32 return IPCThreadState::self()->getCallingUid(); in getCallingUid()
34 return hardware::IPCThreadState::self()->getCallingUid(); in getCallingUid()
/frameworks/base/core/java/android/content/
DIContentProvider.java63 return getType(new AttributionSource(Binder.getCallingUid(), in getType()
64 AppGlobals.getPackageManager().getPackagesForUid(Binder.getCallingUid())[0], in getType()
77 getTypeAsync(new AttributionSource(Binder.getCallingUid(), in getTypeAsync()
78 AppGlobals.getPackageManager().getPackagesForUid(Binder.getCallingUid())[0], in getTypeAsync()
91 return insert(new AttributionSource(Binder.getCallingUid(), callingPkg, null), in insert()
102 return bulkInsert(new AttributionSource(Binder.getCallingUid(), callingPkg, null), in bulkInsert()
113 return delete(new AttributionSource(Binder.getCallingUid(), callingPkg, null), in delete()
124 return update(new AttributionSource(Binder.getCallingUid(), callingPkg, null), in update()
148 return call(new AttributionSource(Binder.getCallingUid(), callingPkg, null), in call()
190 return getStreamTypes(new AttributionSource(Binder.getCallingUid(), in getStreamTypes()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DActivityInterceptorCallbackRegistry.java68 if (getCallingUid() != Process.SYSTEM_UID) { in registerActivityInterceptorCallback()
98 if (getCallingUid() != Process.SYSTEM_UID) { in unregisterActivityInterceptorCallback()
119 int getCallingUid() { in getCallingUid() method in ActivityInterceptorCallbackRegistry
120 return Binder.getCallingUid(); in getCallingUid()
DAppTaskImpl.java57 if (mCallingUid != Binder.getCallingUid() && Process.SYSTEM_UID != Binder.getCallingUid() in checkCallerOrSystemOrRoot()
58 && Process.ROOT_UID != Binder.getCallingUid()) { in checkCallerOrSystemOrRoot()
60 + " does not match caller of getAppTasks(): " + Binder.getCallingUid()); in checkCallerOrSystemOrRoot()
79 int origCallingUid = Binder.getCallingUid(); in finishAndRemoveTask()
120 final int callingUid = Binder.getCallingUid(); in moveToFront()
/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareService.java104 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
114 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
124 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
134 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
145 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
157 checkPermission(Binder.getCallingPid(), Binder.getCallingUid(), monitoringType);
/frameworks/base/services/core/java/com/android/server/
DMmsServiceBroker.java324 final String[] packages = getPackageManager().getPackagesForUid(Binder.getCallingUid()); in getCallingPackageName()
350 subId, Binder.getCallingUid(), callingPkg); in sendMessage()
354 if (getAppOpsManager().noteOp(AppOpsManager.OP_SEND_SMS, Binder.getCallingUid(), in sendMessage()
374 if (getAppOpsManager().noteOp(AppOpsManager.OP_RECEIVE_MMS, Binder.getCallingUid(), in downloadMessage()
391 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importTextMessage()
405 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in importMultimediaMessage()
418 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredMessage()
428 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in deleteStoredConversation()
438 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in updateStoredMessageStatus()
449 if (getAppOpsManager().noteOp(AppOpsManager.OP_WRITE_SMS, Binder.getCallingUid(), in archiveStoredConversation()
[all …]
DVpnManagerService.java114 public int getCallingUid() { in getCallingUid() method in VpnManagerService.Dependencies
115 return Binder.getCallingUid(); in getCallingUid()
269 int user = UserHandle.getUserId(mDeps.getCallingUid()); in establishVpn()
278 int user = UserHandle.getUserId(mDeps.getCallingUid()); in addVpnAddress()
287 int user = UserHandle.getUserId(mDeps.getCallingUid()); in removeVpnAddress()
296 int user = UserHandle.getUserId(mDeps.getCallingUid()); in setUnderlyingNetworksForVpn()
318 final int user = UserHandle.getUserId(mDeps.getCallingUid()); in provisionVpnProfile()
336 final int user = UserHandle.getUserId(mDeps.getCallingUid()); in deleteVpnProfile()
374 final int callingUid = Binder.getCallingUid(); in startVpnProfile()
393 final int callingUid = Binder.getCallingUid(); in stopVpnProfile()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageMonitorCallbackHelperTest.java93 Binder.getCallingUid()); in testUnregisterPackageMonitorCallback_callbackShouldNotCalled()
116 Binder.getCallingUid()); in testPackageMonitorCallback_SuspendNoAccessCallbackNotCalled()
133 Binder.getCallingUid()); in testPackageMonitorCallback_SuspendCallbackCalled()
157 Binder.getCallingUid()); in testRegisterPackageMonitorCallback_callbackCalled()
181 Binder.getCallingUid()); in testRegisterPackageMonitorCallbackUserNotMatch_callbackShouldNotCalled()
199 Binder.getCallingUid()); in testNotifyPackageChanged_callbackCalled()
228 Binder.getCallingUid()); in testNotifyPackageAddedForNewUsers_callbackCalled()
253 Binder.getCallingUid()); in testNotifyResourcesChanged_callbackCalled()
284 Binder.getCallingUid()); in testPackageMonitorCallback_onUserRemoved_callbackNotCalled()
300 broadcastAllowList.put(0, new int[] {Binder.getCallingUid()}); in testRegisterPackageMonitorCallbackInAllowList_callbackShouldCalled()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManagerTest.java240 int uid = Binder.getCallingUid(); in importKey_storesTheKey()
273 int uid = Binder.getCallingUid(); in importKeyWithMetadata_nullMetadata_storesTheKey()
286 int uid = Binder.getCallingUid(); in importKeyWithMetadata_nonNullMetadata_storesTheKey()
322 int uid = Binder.getCallingUid(); in generateKeyWithMetadata_nullMetadata_storesTheKey()
333 int uid = Binder.getCallingUid(); in generateKeyWithMetadata_nonNullMetadata_storesTheKey()
344 int uid = Binder.getCallingUid(); in removeKey_removesAKey()
354 int uid = Binder.getCallingUid(); in removeKey_updatesShouldCreateSnapshot()
367 int uid = Binder.getCallingUid(); in removeKey_failureDoesNotUpdateShouldCreateSnapshot()
379 int uid = Binder.getCallingUid(); in initRecoveryService_succeedsWithCertFile()
401 int uid = Binder.getCallingUid(); in initRecoveryService_updatesShouldCreatesnapshotOnCertUpdate()
[all …]
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DActivityInterceptorInfoWrapper.java70 public int getCallingUid() { in getCallingUid() method in ActivityInterceptorInfoWrapper
71 int callingUid = mActivityInterceptorInfo.getCallingUid() != -1 in getCallingUid()
72 ? mActivityInterceptorInfo.getCallingUid() in getCallingUid()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBinderCallsStatsServiceTest.java40 protected int getCallingUid() { in weTrustOurselves()
52 protected int getCallingUid() { in workSourceSetIfCallerHasPermission()
65 protected int getCallingUid() { in workSourceResolvedToCallingUid()
/frameworks/base/services/core/java/com/android/server/pm/
DPreferredActivityHelper.java86 UserHandle.getAppId(Binder.getCallingUid()) >= Process.FIRST_APPLICATION_UID); in findPreferredActivityNotLocked()
158 final String[] callingPackages = snapshot.getPackagesForUid(Binder.getCallingUid()); in updateDefaultHomeNotLocked()
184 int callingUid = Binder.getCallingUid();
242 final int callingUid = Binder.getCallingUid();
253 + Binder.getCallingUid());
309 final int callingUid = Binder.getCallingUid();
349 if (snapshot.getInstantAppPackageName(Binder.getCallingUid()) != null) {
388 int callingUid = Binder.getCallingUid();
420 int callingUid = Binder.getCallingUid();
437 int callingUid = Binder.getCallingUid();
[all …]
/frameworks/base/services/core/java/com/android/server/pm/permission/
DLegacyPermissionManagerService.java196 int callingUid = mInjector.getCallingUid(); in verifyCallerCanCheckAccess()
265 final int callingUid = Binder.getCallingUid(); in grantDefaultPermissionsToActiveLuiApp()
274 final int callingUid = Binder.getCallingUid(); in revokeDefaultPermissionsFromLuiApps()
283 final int callingUid = Binder.getCallingUid(); in grantDefaultPermissionsToEnabledImsServices()
293 final int callingUid = Binder.getCallingUid(); in grantDefaultPermissionsToEnabledTelephonyDataServices()
303 final int callingUid = Binder.getCallingUid(); in revokeDefaultPermissionsFromDisabledTelephonyDataServices()
313 final int callingUid = Binder.getCallingUid(); in grantDefaultPermissionsToEnabledCarrierApps()
327 final int callingUid = Binder.getCallingUid(); in resetRuntimePermissions()
450 public int getCallingUid() { in getCallingUid() method in LegacyPermissionManagerService.Injector
451 return Binder.getCallingUid(); in getCallingUid()
/frameworks/base/services/companion/java/com/android/server/companion/utils/
DPermissionsUtils.java34 import static android.os.Binder.getCallingUid;
149 if (getCallingUid() == SYSTEM_UID) return; in enforceCallerIsSystemOrCanInteractWithUserId()
159 final int callingUid = getCallingUid(); in enforceCallerIsSystemOr()
180 final int callingUid = getCallingUid(); in enforceCallerCanManageAssociationsForPackage()
200 throw new SecurityException("Caller (uid=" + getCallingUid() + ") does not have " in enforceCallerCanManageAssociationsForPackage()
212 throw new SecurityException("Caller (uid=" + getCallingUid() + ") does not have " in enforceCallerCanObserveDevicePresenceByUuid()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsPermissions.java107 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage, in checkCallingCanSendSms()
121 return mAppOps.noteOp(AppOpsManager.OPSTR_SEND_SMS, Binder.getCallingUid(), callingPackage, in checkCallingOrSelfCanSendSms()
138 int callerUid = Binder.getCallingUid(); in checkCallingOrSelfCanGetSmscAddress()
166 int callerUid = Binder.getCallingUid(); in checkCallingOrSelfCanSetSmscAddress()
195 return packageNameMatchesCallingUid(packageName, Binder.getCallingUid()); in packageNameMatchesCallingUid()
/frameworks/av/services/medialog/
DMediaLogService.cpp57 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/location/
DLocationPermissions.java92 enforceLocationPermission(Binder.getCallingUid(), in enforceCallingOrSelfLocationPermission()
93 getPermissionLevel(context, Binder.getCallingUid(), Binder.getCallingPid()), in enforceCallingOrSelfLocationPermission()
131 enforceBypassPermission(context, Binder.getCallingUid(), Binder.getCallingPid()); in enforceCallingOrSelfBypassPermission()
180 return getPermissionLevel(context, Binder.getCallingUid(), Binder.getCallingPid()); in getCallingOrSelfPermissionLevel()
/frameworks/base/core/java/com/android/internal/net/
DConnectivityBlobStore.java81 final int ownerUid = Binder.getCallingUid(); in put()
104 final int ownerUid = Binder.getCallingUid(); in get()
130 final int ownerUid = Binder.getCallingUid(); in remove()
153 final int ownerUid = Binder.getCallingUid(); in list()
/frameworks/base/services/wallpapereffectsgeneration/java/com/android/server/wallpapereffectsgeneration/
DWallpaperEffectsGenerationManagerService.java156 final int userId = am.handleIncomingUser(Binder.getCallingPid(), Binder.getCallingUid(), in runForUser()
161 + ", uid=" + Binder.getCallingUid()); in runForUser()
171 || mActivityTaskManagerInternal.isCallerRecents(Binder.getCallingUid()))) { in runForUser()
173 + Binder.getCallingPid() + ", uid=" + Binder.getCallingUid(); in runForUser()
178 final int origCallingUid = Binder.getCallingUid(); in runForUser()
/frameworks/base/services/core/java/com/android/server/tv/interactive/
DTvInteractiveAppManagerService.java919 Binder.getCallingUid(), userId, "getTvAdServiceList"); in getTvAdServiceList()
942 Binder.getCallingUid(), userId, "sendAppLinkCommand"); in sendAppLinkCommand()
977 final int callingUid = Binder.getCallingUid(); in createSession()
1044 final int callingUid = Binder.getCallingUid(); in releaseSession()
1059 final int callingUid = Binder.getCallingUid(); in setSurface()
1086 final int callingUid = Binder.getCallingUid(); in dispatchSurfaceChanged()
1111 final int callingUid = Binder.getCallingUid(); in startAdService()
1136 final int callingUid = Binder.getCallingUid(); in stopAdService()
1161 final int callingUid = Binder.getCallingUid(); in resetAdService()
1186 final int callingUid = Binder.getCallingUid(); in sendCurrentVideoBounds()
[all …]
/frameworks/base/core/tests/coretests/src/android/os/
DBinderWorkSourceService.java29 return Binder.getCallingUid();
45 Binder.setWorkSourceProvider((x) -> Binder.getCallingUid());
/frameworks/base/services/core/java/com/android/server/os/
DSchedulingPolicyService.java97 if (Binder.getCallingUid() == Process.AUDIOSERVER_UID && !isForApp in requestPriority()
101 if (Binder.getCallingUid() != Process.BLUETOOTH_UID) { in requestPriority()
126 Binder.getCallingUid() != Process.MEDIA_UID) { in requestCpusetBoost()
218 switch (Binder.getCallingUid()) { in isPermitted()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyStoreManager.java223 int uid = Binder.getCallingUid(); in initRecoveryService()
376 int uid = Binder.getCallingUid(); in getKeyChainSnapshot()
387 int uid = Binder.getCallingUid(); in setSnapshotCreatedPendingIntent()
398 int uid = Binder.getCallingUid(); in setServerParams()
432 long updatedRows = mDatabase.setRecoveryStatus(Binder.getCallingUid(), alias, status); in setRecoveryStatus()
450 return mDatabase.getStatusForAllKeys(Binder.getCallingUid()); in getRecoveryStatus()
464 int uid = Binder.getCallingUid(); in setRecoverySecretTypes()
501 Binder.getCallingUid()); in getRecoverySecretTypes()
527 int uid = Binder.getCallingUid(); in startRecoverySession()
644 int uid = Binder.getCallingUid(); in recoverKeyChainSnapshot()
[all …]
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowKeyValueBackupJob.java33 public static int getCallingUid() { in getCallingUid() method in ShadowKeyValueBackupJob
40 callingUid = Binder.getCallingUid(); in schedule()

12345678910>>...19