Home
last modified time | relevance | path

Searched refs:callingUid (Results 1 – 25 of 27) sorted by relevance

12

/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DAbstractContactsProvider.java156 final int callingUid = Binder.getCallingUid(); in insert() local
157 mStats.incrementInsertStats(callingUid, isInBatch()); in insert()
171 mStats.finishOperation(callingUid); in insert()
177 final int callingUid = Binder.getCallingUid(); in delete() local
178 mStats.incrementDeleteStats(callingUid, isInBatch()); in delete()
192 mStats.finishOperation(callingUid); in delete()
198 final int callingUid = Binder.getCallingUid(); in update() local
199 mStats.incrementUpdateStats(callingUid, isInBatch()); in update()
213 mStats.finishOperation(callingUid); in update()
219 final int callingUid = Binder.getCallingUid(); in bulkInsert() local
[all …]
DCallLogProvider.java268 final int callingUid = Binder.getCallingUid(); in applyBatch() local
269 mCallingUid.set(callingUid); in applyBatch()
271 mStats.incrementBatchStats(callingUid); in applyBatch()
277 mStats.finishOperation(callingUid); in applyBatch()
283 final int callingUid = Binder.getCallingUid(); in bulkInsert() local
284 mCallingUid.set(callingUid); in bulkInsert()
286 mStats.incrementBatchStats(callingUid); in bulkInsert()
292 mStats.finishOperation(callingUid); in bulkInsert()
300 final int callingUid = Binder.getCallingUid(); in query() local
302 mStats.incrementQueryStats(callingUid); in query()
[all …]
DProfileProvider.java74 final int callingUid = Binder.getCallingUid(); in query() local
75 mStats.incrementQueryStats(callingUid); in query()
80 mStats.finishOperation(callingUid); in query()
DContactsDatabaseHelper.java4485 int callingUid = Binder.getCallingUid(); in exceptionMessage() local
4487 String userName = pm.getNameForUid(callingUid); in exceptionMessage()
4488 sb.append(userName == null ? callingUid : userName); in exceptionMessage()
4490 final String[] callerPackages = pm.getPackagesForUid(callingUid); in exceptionMessage()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DEnabledNfcFServices.java110 public boolean registerEnabledForegroundService(ComponentName service, int callingUid) { in registerEnabledForegroundService() argument
129 if (mForegroundUtils.registerUidToBackgroundCallback(this, callingUid)) { in registerEnabledForegroundService()
131 mForegroundUid = callingUid; in registerEnabledForegroundService()
159 public boolean unregisteredEnabledForegroundService(int callingUid) { in unregisteredEnabledForegroundService() argument
162 if (mForegroundUtils.isInForeground(callingUid)) { in unregisteredEnabledForegroundService()
163 return unregisterForegroundService(callingUid); in unregisteredEnabledForegroundService()
DPreferredServices.java276 public boolean registerPreferredForegroundService(ComponentName service, int callingUid) { in registerPreferredForegroundService() argument
280 if (mForegroundUtils.registerUidToBackgroundCallback(this, callingUid)) { in registerPreferredForegroundService()
282 mForegroundUid = callingUid; in registerPreferredForegroundService()
313 public boolean unregisteredPreferredForegroundService(int callingUid) { in unregisteredPreferredForegroundService() argument
315 if (mForegroundUtils.isInForeground(callingUid)) { in unregisteredPreferredForegroundService()
316 return unregisterForegroundService(callingUid); in unregisteredPreferredForegroundService()
/packages/services/Telecomm/src/com/android/server/telecom/
DVideoProviderProxy.java323 public void onSetCamera(String cameraId, String callingPackage, int callingUid, in onSetCamera() argument
327 "; callingUid=" + callingUid); in onSetCamera()
330 if (!canUseCamera(mCall.getContext(), callingPackage, callingUid, callingPid)) { in onSetCamera()
335 callingPackage, callingUid, callingPid, targetSdkVersion); in onSetCamera()
574 private boolean canUseCamera(Context context, String callingPackage, int callingUid, in canUseCamera() argument
577 UserHandle callingUser = UserHandle.getUserHandleForUid(callingUid); in canUseCamera()
585 context.enforcePermission(Manifest.permission.CAMERA, callingPid, callingUid, in canUseCamera()
597 callingUid, callingPackage) == AppOpsManager.MODE_ALLOWED; in canUseCamera()
DTelecomServiceImpl.java405 final int callingUid = Binder.getCallingUid();
406 final int user = UserHandle.getUserId(callingUid);
410 enforceCrossUserPermission(callingUid);
430 final int callingUid = Binder.getCallingUid();
434 enforceCrossUserPermission(callingUid);
490 final int callingUid = Binder.getCallingUid();
491 if (callingUid != Process.SHELL_UID) {
2116 private void enforceCrossUserPermission(int callingUid) { in enforceCrossUserPermission() argument
2117 if (callingUid != Process.SYSTEM_UID && callingUid != 0) { in enforceCrossUserPermission()
2133 private void enforceShellOnly(int callingUid, String message) { in enforceShellOnly() argument
[all …]
DInCallAdapter.java100 int callingUid = Binder.getCallingUid(); in rejectCall() local
107 if (!mCallsManager.isReplyWithSmsAllowed(callingUid)) { in rejectCall()
134 int callingUid = Binder.getCallingUid(); in rejectCallWithReason() local
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidDeviceService.java502 int callingUid = Binder.getCallingUid(); in checkCallingUid() local
503 if (callingUid != mUserUid) { in checkCallingUid()
519 int callingUid = Binder.getCallingUid(); in registerApp() local
521 Log.d(TAG, "registerApp(): calling uid=" + callingUid); in registerApp()
523 if (callingUid >= Process.FIRST_APPLICATION_UID in registerApp()
524 && mActivityManager.getUidImportance(callingUid) > FOREGROUND_IMPORTANCE_CUTOFF) { in registerApp()
528 mUserUid = callingUid; in registerApp()
565 int callingUid = Binder.getCallingUid(); in unregisterApp() local
566 return unregisterAppUid(callingUid); in unregisterApp()
641 int callingUid = Binder.getCallingUid(); in disconnect() local
[all …]
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java317 final int callingUid = Binder.getCallingUid(); in canCallerAccessUserDictionary() local
319 if (UserHandle.getAppId(callingUid) == Process.SYSTEM_UID in canCallerAccessUserDictionary()
320 || callingUid == Process.ROOT_UID in canCallerAccessUserDictionary()
321 || callingUid == Process.myUid()) { in canCallerAccessUserDictionary()
332 if (imeInfo.getServiceInfo().applicationInfo.uid == callingUid in canCallerAccessUserDictionary()
342 if (scInfo.getServiceInfo().applicationInfo.uid == callingUid in canCallerAccessUserDictionary()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DSQLiteContentProvider.java301 int callingUid = Binder.getCallingUid(); in clearCallingIdentityInternal() local
302 if (uid != callingUid) { in clearCallingIdentityInternal()
304 mOriginalCallingUid.set(callingUid); in clearCallingIdentityInternal()
326 int callingUid = Binder.getCallingUid(); in restoreCallingIdentityInternal() local
327 if (mOriginalCallingUid.get() != null && mOriginalCallingUid.get() == callingUid) { in restoreCallingIdentityInternal()
DCalendarProvider2.java857 final int callingUid = Binder.getCallingUid(); in query() local
859 mStats.incrementQueryStats(callingUid); in query()
865 mStats.finishOperation(callingUid); in query()
2259 final int callingUid = Binder.getCallingUid(); in bulkInsert() local
2260 mCallingUid.set(callingUid); in bulkInsert()
2262 mStats.incrementBatchStats(callingUid); in bulkInsert()
2266 mStats.finishOperation(callingUid); in bulkInsert()
2273 final int callingUid = Binder.getCallingUid(); in applyBatch() local
2274 mCallingUid.set(callingUid); in applyBatch()
2276 mStats.incrementBatchStats(callingUid); in applyBatch()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarBugreportManagerService.java121 int callingUid = Binder.getCallingUid(); in requestBugreport() local
122 if (pm.checkSignatures(Process.myUid(), callingUid) != PackageManager.SIGNATURE_MATCH) { in requestBugreport()
123 throw new SecurityException("Caller " + pm.getNameForUid(callingUid) in requestBugreport()
128 String[] packageNamesForCallerUid = pm.getPackagesForUid(callingUid); in requestBugreport()
139 throw new SecurityException("Caller " + pm.getNameForUid(callingUid) in requestBugreport()
DCarProjectionService.java403 final int callingUid = Binder.getCallingUid(); in updateProjectionStatus() local
414 if (callingUid != packageUid) { in updateProjectionStatus()
416 "UID " + callingUid + " cannot update status for package " + packageName); in updateProjectionStatus()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyProviderTestable.java126 private int callingUid = 0; field in TelephonyProviderTestable.MockInjector
130 return callingUid; in binderGetCallingUid()
134 callingUid = uid; in fakeCallingUid()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java336 int callingUid = Binder.getCallingUid(); in checkCaller() local
338 || (UserHandle.getAppId(sSystemUiUid) == UserHandle.getAppId(callingUid)) in checkCaller()
339 || (UserHandle.getAppId(Process.SYSTEM_UID) == UserHandle.getAppId(callingUid)); in checkCaller()
347 int callingUid = Binder.getCallingUid(); in checkCallerAllowManagedProfiles() local
358 || (UserHandle.getAppId(sSystemUiUid) == UserHandle.getAppId(callingUid)) in checkCallerAllowManagedProfiles()
359 || (UserHandle.getAppId(Process.SYSTEM_UID) == UserHandle.getAppId(callingUid)); in checkCallerAllowManagedProfiles()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaScannerService.java44 final int callingUid = Binder.getCallingUid(); in onBind() local
51 callingPid, callingUid); in onBind()
/packages/services/Car/service/src/com/android/car/vms/
DVmsClientManager.java239 int callingUid = mGetCallingUid.getAsInt(); in addSubscriber() local
240 int subscriberUserId = UserHandle.getUserId(callingUid); in addSubscriber()
246 subscriberClient, callingUid, getCallingPackage(callingUid), subscriberUserId); in addSubscriber()
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java1201 final int callingUid = Binder.getCallingUid(); in enforceCallerIsSystemOrRequestingPackage() local
1202 if (callingUid == Process.ROOT_UID || callingUid == Process.SYSTEM_UID in enforceCallerIsSystemOrRequestingPackage()
1203 || callingUid == Process.SHELL_UID || callingUid == Process.PHONE_UID) { in enforceCallerIsSystemOrRequestingPackage()
1214 appOps.checkPackage(callingUid, requestingPackage); in enforceCallerIsSystemOrRequestingPackage()
/packages/apps/KeyChain/src/com/android/keychain/
DKeyChainService.java321 final int callingUid = mInjector.getCallingUid();
322 if (!mGrantsDb.hasGrant(callingUid, alias)) {
325 callingUid, alias));
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_btservice_AdapterService.cpp1243 jint flag, jint callingUid) { in connectSocketNative() argument
1262 callingUid) != BT_STATUS_SUCCESS) { in connectSocketNative()
1274 jint port, jint flag, jint callingUid) { in createSocketChannelNative() argument
1295 callingUid) != BT_STATUS_SUCCESS) { in createSocketChannelNative()
/packages/apps/Nfc/src/com/android/nfc/
DP2pLinkManager.java399 public void setNdefCallback(IAppCallback callbackNdef, int callingUid) { in setNdefCallback() argument
402 mNdefCallbackUid = callingUid; in setNdefCallback()
DNfcService.java1242 int callingUid = Binder.getCallingUid(); in setReaderMode() local
1243 if (callingUid != Process.SYSTEM_UID && !mForegroundUtils.isInForeground(callingUid)) { in setReaderMode()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java3139 byte[] address, int type, byte[] uuid, int port, int flag, int callingUid); in connectSocketNative() argument
3142 int type, String serviceName, byte[] uuid, int port, int flag, int callingUid); in createSocketChannelNative() argument

12