Home
last modified time | relevance | path

Searched refs:getCallingPackage (Results 1 – 25 of 57) sorted by relevance

123

/packages/providers/ContactsKeysProvider/src/com/android/providers/contactkeys/
DE2eeContactKeysProvider.java133 String callerPackageName = getCallingPackage(); in updateOrInsertE2eeContactKey()
158 String callerPackageName = getCallingPackage(); in getE2eeContactKey()
216 String callerPackageName = getCallingPackage(); in getOwnerE2eeContactKeys()
242 final String callerPackageName = getCallingPackage(); in updateE2eeContactKeyLocalVerificationState()
280 final String callerPackageName = getCallingPackage(); in updateE2eeContactKeyRemoteVerificationState()
313 String callerPackageName = getCallingPackage(); in removeE2eeContactKey()
337 String callerPackageName = getCallingPackage(); in updateOrInsertE2eeSelfKey()
365 final String callerPackageName = getCallingPackage(); in updateE2eeSelfKeyRemoteVerificationState()
397 String callerPackageName = getCallingPackage(); in getE2eeSelfKey()
451 String callerPackageName = getCallingPackage(); in getOwnerE2eeSelfKeys()
[all …]
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailContentProvider.java375 if (!mVoicemailPermissions.callerHasWriteAccess(getCallingPackage())) { in checkAndAddSourcePackageIntoValues()
416 if (mVoicemailPermissions.callerHasReadAccess(getCallingPackage())) { in checkPermissionsAndCreateUriDataForRead()
473 if (!mVoicemailPermissions.callerHasWriteAccess(getCallingPackage())) { in checkPackagePermission()
489 return super.getCallingPackage(); in getInjectedCallingPackage()
513 return read ? mVoicemailPermissions.callerHasReadAccess(getCallingPackage()) : in hasReadWritePermission()
514 mVoicemailPermissions.callerHasWriteAccess(getCallingPackage()); in hasReadWritePermission()
DCallLogProvider.java490 if (!mVoicemailPermissions.callerHasReadAccess(getCallingPackage())) { in queryInternal()
605 if (!getCallingPackage().equals(ALLOWED_PACKAGE_FOR_TESTING)) { in queryForTesting()
607 + getCallingPackage()); in queryForTesting()
745 mVoicemailPermissions.checkCallerHasWriteAccess(getCallingPackage()); in insertInternal()
956 getCallingPackage()); in updateInternal()
996 mVoicemailPermissions.callerHasReadAccess(getCallingPackage()); in deleteInternal()
1050 mVoicemailPermissions.checkCallerHasReadAccess(getCallingPackage()); in checkVoicemailPermissionAndAddRestriction()
1052 mVoicemailPermissions.checkCallerHasWriteAccess(getCallingPackage()); in checkVoicemailPermissionAndAddRestriction()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiDialogActivityTest.java260 when(mActivity.getCallingPackage()).thenReturn(null); in hasPermissionForResult_noCallingPackage_returnFalse()
269 when(mActivity.getCallingPackage()).thenReturn(null); in hasPermissionForResult_noPermission_returnFalse()
282 when(mActivity.getCallingPackage()).thenReturn(CALLING_PACKAGE); in hasPermissionForResult_hasCoarseLocationPermission_returnFalse()
296 when(mActivity.getCallingPackage()).thenReturn(CALLING_PACKAGE); in hasPermissionForResult_hasFineLocationPermission_returnTrue()
310 when(mActivity.getCallingPackage()).thenReturn(CALLING_PACKAGE); in hasPermissionForResult_haveBothLocationPermissions_returnTrue()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/
DPhotoPickerActivity.java257 mPickerViewModel.logPickerOpened(getCallingUid(), getCallingPackage(), intentAction); in onCreate()
262 final String callingPackage = getCallingPackage(); in getCallingUid()
292 if (getCallingPackage() != null) { in getOrCreateViewModel()
294 getPackageManager().getPackageUid(getCallingPackage(), 0)); in getOrCreateViewModel()
411 getCallingPackage()); in onOptionsItemSelected()
873 mPickerViewModel.logPickerConfirm(Binder.getCallingUid(), getCallingPackage(), in logPickerSelectionConfirmed()
878 mPickerViewModel.logPickerCancel(Binder.getCallingUid(), getCallingPackage()); in logPickerCancelled()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DSmsProvider.java140 String callingPackage = getCallingPackage(); in query()
149 getContext(), getCallingPackage(), callingUid); in query()
594 final String callerPkg = getCallingPackage(); in bulkInsert()
621 final String callerPkg = getCallingPackage(); in insert()
1010 String debugMessage = getCallingPackage() + ";SmsProvider.delete;" + url; in delete()
1166 notifyChange(notifyIfNotDefault, url, getCallingPackage()); in delete()
1229 final String callerPkg = getCallingPackage(); in update()
1497 notifyChange(true, uri, getCallingPackage());
DMmsProvider.java129 String callingPackage = getCallingPackage(); in query()
135 getContext(), getCallingPackage(), callerUid); in query()
373 final String callerPkg = getCallingPackage(); in insert()
382 getContext(), getCallingPackage(), callerUid)) { in insert()
793 String debugMessage = getCallingPackage() + ";MmsProvider.delete;" + uri; in delete()
922 final String callerPkg = getCallingPackage(); in update()
1163 getCallingPackage(), context); in notifyChange()
DMmsSmsProvider.java342 String callingPackage = getCallingPackage(); in query()
349 getContext(), getCallingPackage(), callerUid); in query()
1380 String debugMessage = getCallingPackage() + ";MmsSmsProvider.delete;" + uri; in delete()
1460 getCallingPackage() + ";MmsSmsProvider.insert;" + uri, false); in insert()
1482 callerUid, getCallingPackage()); in insert()
1506 final String callerPkg = getCallingPackage(); in update()
1660 getContext(), getCallingPackage(), Binder.getCallingUid())) { in call()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivity.java265 mController.initiateProvisioning(getIntent(), getCallingPackage());
313 mController.initiateProvisioning(getIntent(), getCallingPackage());
415 getCallingPackage());
476 getCallingPackage());
517 getCallingPackage());
567 getCallingPackage());
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DTestBluetoothRequestPermissionActivity.java32 public String getCallingPackage() { in getCallingPackage() method in TestBluetoothRequestPermissionActivity
/packages/providers/MediaProvider/src/com/android/providers/media/
DPermissionActivity.java206 getCallingPackage(), null /* attributionTag */, verb, in onCreate()
213 getCallingPackage(), null /* attributionTag */, verb); in onCreate()
307 getCallingPackage(), uris.size()); in onPositiveAction()
312 grantUriPermission(getCallingPackage(), uri, in onPositiveAction()
379 Metrics.logPermissionDenied(volumeName, appInfo.uid, getCallingPackage(), in onNegativeAction()
532 final String callingPackage = getCallingPackage(); in resolveCallingAppInfo()
DCacheClearingActivity.java55 final String packageName = getCallingPackage(); in onCreate()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/e2eui/
DTestPreProvisioningActivity.java37 public String getCallingPackage() { in getCallingPackage() method in TestPreProvisioningActivity
/packages/apps/Settings/src/com/android/settings/applications/credentials/
DCredentialsPickerActivity.java57 final String packageName = getCallingPackage(); in onCreate()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/auto/
DAutoPermissionsUtils.java48 Log.i(LOG_TAG, "No package:" + activity.getCallingPackage(), e); in getPackageInfo()
/packages/apps/Settings/src/com/android/settings/security/
DCredentialStorage.java339 if (TextUtils.equals("com.android.certinstaller", getCallingPackage())) { in checkCallerIsCertInstallerOrSelfInProfile()
343 getCallingPackage(), getPackageName()) == PackageManager.SIGNATURE_MATCH; in checkCallerIsCertInstallerOrSelfInProfile()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallActivity.java84 .processIntent(new Intent(intent), getCallingPackage(), false, in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DCredentialStorageActivity.java145 if (TextUtils.equals(CERT_INSTALLER_PKG, getCallingPackage())) { in checkCallerIsCertInstallerOrSelfInProfile()
148 return getPackageManager().checkSignatures(getCallingPackage(), getPackageName()) in checkCallerIsCertInstallerOrSelfInProfile()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
DSettingsQCProviderTest.java50 ExtendedMockito.doReturn(mContext.getPackageName()).when(mProvider).getCallingPackage(); in setUp()
/packages/apps/Dialer/java/com/android/dialer/preferredsim/impl/
DPreferredSimFallbackProvider.java117 if (!TextUtils.equals(getContext().getPackageName(), getCallingPackage())) { in delete()
/packages/apps/Settings/src/com/android/settings/panel/
DSettingsPanelActivity.java122 mBundle.putString(KEY_CALLING_PACKAGE_NAME, getCallingPackage()); in createOrUpdatePanel()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/provider/
DBaseQCProvider.java225 String callingPackage = getCallingPackage(); in enforceCallingPermissions()
/packages/services/Telephony/src/com/android/phone/
DServiceStateProvider.java417 getCallingPackage()) >= Build.VERSION_CODES.S; in query()
705 .setCallingPackage(getCallingPackage()) in hasLocationPermission()
/packages/apps/Settings/src/com/android/settings/
DAllowBindAppWidgetActivity.java113 mCallingPackage = getCallingPackage(); in onCreate()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/
DWearAppPermissionGroupsFragment.kt81 Log.i(LOG_TAG, "No package:" + activity.getCallingPackage(), e) in onCreateView()

123