Home
last modified time | relevance | path

Searched refs:callingPackage (Results 1 – 25 of 40) sorted by relevance

12

/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java112 String callingPackage) {
116 if (!canReadPhoneState(callingPackage, "getDefaultOutgoingPhoneAccount")) {
138 public PhoneAccountHandle getUserSelectedOutgoingPhoneAccount(String callingPackage) {
142 if (!isDialerOrPrivileged(callingPackage, "getDefaultOutgoingPhoneAccount")) {
183 boolean includeDisabledAccounts, String callingPackage) {
188 callingPackage, "getCallCapablePhoneAccounts")) {
191 if (!canReadPhoneState(callingPackage, "getCallCapablePhoneAccounts")) {
213 public List<PhoneAccountHandle> getSelfManagedPhoneAccounts(String callingPackage) {
216 if (!canReadPhoneState(callingPackage, "Requires READ_PHONE_STATE permission.")) {
239 String callingPackage) {
[all …]
DCallIntentProcessor.java35 Intent intent, String callingPackage); in processOutgoingCallIntent() argument
48 Intent intent, String callingPackage) { in processOutgoingCallIntent() argument
50 callingPackage, mDefaultDialerCache); in processOutgoingCallIntent()
84 public void processIntent(Intent intent, String callingPackage) { in processIntent() argument
92 processOutgoingCallIntent(mContext, mCallsManager, intent, callingPackage, in processIntent()
109 String callingPackage, in processOutgoingCallIntent() argument
165 boolean isPrivilegedDialer = defaultDialerCache.isDefaultOrSystemDialer(callingPackage, in processOutgoingCallIntent()
182 intent, callingPackage); in processOutgoingCallIntent()
DSystemStateHelper.java63 String callingPackage = intent.getStringExtra(
66 priority, callingPackage);
67 onEnterCarMode(priority, callingPackage);
71 String callingPackage = intent.getStringExtra(
74 priority, callingPackage);
75 onExitCarMode(priority, callingPackage);
DVideoProviderProxy.java323 public void onSetCamera(String cameraId, String callingPackage, int callingUid, in onSetCamera() argument
326 logFromInCall("setCamera: " + cameraId + " callingPackage=" + callingPackage + in onSetCamera()
330 if (!canUseCamera(mCall.getContext(), callingPackage, callingUid, callingPid)) { in onSetCamera()
335 callingPackage, callingUid, callingPid, targetSdkVersion); in onSetCamera()
350 mConectionServiceVideoProvider.setCamera(cameraId, callingPackage, in onSetCamera()
574 private boolean canUseCamera(Context context, String callingPackage, int callingUid, in canUseCamera() argument
597 callingUid, callingPackage) == AppOpsManager.MODE_ALLOWED; in canUseCamera()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DVoicemailPermissions.java45 private boolean isDefaultOrSystemDialer(String callingPackage) { in isDefaultOrSystemDialer() argument
48 if (TextUtils.isEmpty(callingPackage)) { in isDefaultOrSystemDialer()
52 return (callingPackage.equals(tm.getDefaultDialerPackage()) in isDefaultOrSystemDialer()
53 || callingPackage.equals(tm.getSystemDialerPackage())); in isDefaultOrSystemDialer()
57 public boolean callerHasReadAccess(String callingPackage) { in callerHasReadAccess() argument
58 if (isDefaultOrSystemDialer(callingPackage)) { in callerHasReadAccess()
66 public boolean callerHasWriteAccess(String callingPackage) { in callerHasWriteAccess() argument
67 if (isDefaultOrSystemDialer(callingPackage)) { in callerHasWriteAccess()
90 public void checkCallerHasReadAccess(String callingPackage) { in checkCallerHasReadAccess() argument
91 if (!callerHasReadAccess(callingPackage)) { in checkCallerHasReadAccess()
[all …]
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java1745 public void call(String callingPackage, String number) { in call() argument
1746 callForSubscriber(getPreferredVoiceSubscription(), callingPackage, number); in call() local
1749 public void callForSubscriber(int subId, String callingPackage, String number) { in callForSubscriber() argument
1757 if (mAppOps.noteOp(AppOpsManager.OPSTR_CALL_PHONE, Binder.getCallingUid(), callingPackage) in callForSubscriber()
1942 public void updateServiceLocationWithPackageName(String callingPackage) { in updateServiceLocationWithPackageName() argument
1944 .checkPackage(Binder.getCallingUid(), callingPackage); in updateServiceLocationWithPackageName() local
1946 final int targetSdk = getTargetSdk(callingPackage); in updateServiceLocationWithPackageName()
1955 .setCallingPackage(callingPackage) in updateServiceLocationWithPackageName()
1986 public boolean isRadioOn(String callingPackage) { in isRadioOn() argument
1987 return isRadioOnWithFeature(callingPackage, null); in isRadioOn()
[all …]
DImsRcsController.java284 public void requestCapabilities(int subId, String callingPackage, String callingFeatureId, in requestCapabilities() argument
287 if (!isUceSettingEnabled(subId, callingPackage, callingFeatureId)) { in requestCapabilities()
323 public boolean isUceSettingEnabled(int subId, String callingPackage, String callingFeatureId) { in isUceSettingEnabled() argument
325 mApp, subId, callingPackage, callingFeatureId, "isUceSettingEnabled")) { in isUceSettingEnabled()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DOpportunisticNetworkService.java155 private boolean hasOpportunisticSubPrivilege(String callingPackage, int subId) { in hasOpportunisticSubPrivilege() argument
158 mProfileSelector.getOpprotunisticSubInfo(subId), callingPackage); in hasOpportunisticSubPrivilege()
178 public boolean setEnable(boolean enable, String callingPackage) {
207 public boolean isEnabled(String callingPackage) {
230 ISetOpportunisticDataCallback callbackStub, String callingPackage) {
231 … logDebug("setPreferredDataSubscriptionId subId:" + subId + "callingPackage: " + callingPackage);
269 public int getPreferredDataSubscriptionId(String callingPackage,
274 callingPackage, callingFeatureId, "getPreferredDataSubscriptionId");
301 IUpdateAvailableNetworksCallback callbackStub, String callingPackage) {
313 callingPackage);
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningController.java257 String callingPackage) { in initiateProvisioning() argument
265 if (!checkFactoryResetProtection(mParams, callingPackage)) { in initiateProvisioning()
269 if (!verifyActionAndCaller(intent, callingPackage)) { in initiateProvisioning()
515 boolean checkFactoryResetProtection(ProvisioningParams params, String callingPackage) { in checkFactoryResetProtection() argument
516 if (skipFactoryResetProtectionCheck(params, callingPackage)) { in checkFactoryResetProtection()
529 ProvisioningParams params, String callingPackage) { in skipFactoryResetProtectionCheck() argument
530 if (TextUtils.isEmpty(callingPackage)) { in skipFactoryResetProtectionCheck()
538 PackageInfo callingPackageInfo = mPackageManager.getPackageInfo(callingPackage, 0); in skipFactoryResetProtectionCheck()
543 && callingPackage.equals(persistentDataPackageName) in skipFactoryResetProtectionCheck()
588 String callingPackage) { in verifyActionAndCaller() argument
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java393 String callingPackage, @Nullable String callingFeatureId, UserHandle userHandle) { in checkCallerHasCoarseLocation() argument
403 && isAppOppAllowed(appOps, AppOpsManager.OPSTR_FINE_LOCATION, callingPackage, in checkCallerHasCoarseLocation()
419 String callingPackage, @Nullable String callingFeatureId, UserHandle userHandle) { in checkCallerHasCoarseOrFineLocation() argument
428 && isAppOppAllowed(appOps, AppOpsManager.OPSTR_FINE_LOCATION, callingPackage, in checkCallerHasCoarseOrFineLocation()
437 && isAppOppAllowed(appOps, AppOpsManager.OPSTR_FINE_LOCATION, callingPackage, in checkCallerHasCoarseOrFineLocation()
452 String callingPackage, @Nullable String callingFeatureId, UserHandle userHandle) { in checkCallerHasFineLocation() argument
461 && isAppOppAllowed(appOps, AppOpsManager.OPSTR_FINE_LOCATION, callingPackage, in checkCallerHasFineLocation()
498 private static boolean isAppOppAllowed(AppOpsManager appOps, String op, String callingPackage, in isAppOppAllowed() argument
500 return appOps.noteOp(op, Binder.getCallingUid(), callingPackage) in isAppOppAllowed()
/packages/services/Telephony/src/com/android/phone/vvm/
DVisualVoicemailSmsFilterConfig.java45 public static void enableVisualVoicemailSmsFilter(Context context, String callingPackage, in enableVisualVoicemailSmsFilter() argument
48 new Editor(context, callingPackage, subId) in enableVisualVoicemailSmsFilter()
56 public static void disableVisualVoicemailSmsFilter(Context context, String callingPackage, in disableVisualVoicemailSmsFilter() argument
58 new Editor(context, callingPackage, subId) in disableVisualVoicemailSmsFilter()
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java54 String callingPackage = provider.getCallingPackageUnchecked(); in fromBinder() local
55 if (callingPackage == null) { in fromBinder()
56 callingPackage = AppGlobals.getInitialApplication().getOpPackageName(); in fromBinder()
59 callingPackage); in fromBinder()
DPermissionActivity.java138 final String callingPackage = getCallingPackage(); in getCallingLabel() local
139 if (TextUtils.isEmpty(callingPackage)) { in getCallingLabel()
145 .getApplicationLabel(pm.getApplicationInfo(callingPackage, 0)); in getCallingLabel()
DMediaProvider.java3341 private String getSharedPackages(String callingPackage) { in getSharedPackages() argument
3391 final String callingPackage = getCallingPackageOrSelf(); in getQueryBuilderInternal() local
3401 final String sharedPackages = getSharedPackages(callingPackage); in getQueryBuilderInternal()
3403 final boolean allowLegacy = checkCallingPermissionLegacy(uri, forWrite, callingPackage); in getQueryBuilderInternal()
3427 if (!allowGlobal && !checkCallingPermissionImages(forWrite, callingPackage)) { in getQueryBuilderInternal()
3454 if (!allowGlobal && !checkCallingPermissionImages(forWrite, callingPackage)) { in getQueryBuilderInternal()
3476 if (!allowGlobal && !checkCallingPermissionAudio(forWrite, callingPackage)) { in getQueryBuilderInternal()
3504 if (!allowGlobal && !checkCallingPermissionAudio(false, callingPackage)) { in getQueryBuilderInternal()
3519 if (!allowGlobal && !checkCallingPermissionAudio(false, callingPackage)) { in getQueryBuilderInternal()
3532 if (!allowGlobal && !checkCallingPermissionAudio(false, callingPackage)) { in getQueryBuilderInternal()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DShared.java211 String callingPackage = activity.getCallingPackage(); in getCallingPackageName() local
215 activity.getPackageManager().getApplicationInfo(callingPackage, 0); in getCallingPackageName()
220 callingPackage = extra; in getCallingPackageName()
229 return callingPackage; in getCallingPackageName()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DTvProviderForTesting.java29 String callingPackage; field in TvProviderForTesting
44 if (callingPackage != null) { in getCallingPackage_()
45 return callingPackage; in getCallingPackage_()
DUnrecognizedColumnsTest.java104 mProvider.callingPackage = MY_PACKAGE; in insertPrograms()
109 mProvider.callingPackage = ANOTHER_PACKAGE; in insertPrograms()
114 mProvider.callingPackage = MY_PACKAGE; in insertPrograms()
DBootCompletedReceiverTest.java103 mProvider.callingPackage = NON_EXISTING_PACKAGE_NAME; in testPackageRemoved()
118 mProvider.callingPackage = EXISTING_PACKAGE_NAME; in testPackageRemoved()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DProviderUtil.java86 public static void notifyIfNotDefaultSmsApp(final Uri uri, final String callingPackage, in notifyIfNotDefaultSmsApp() argument
88 if (TextUtils.equals(callingPackage, Telephony.Sms.getDefaultSmsPackage(context))) { in notifyIfNotDefaultSmsApp()
110 Log.d(TAG, "notifyIfNotDefaultSmsApp - called from " + callingPackage + ", notifying"); in notifyIfNotDefaultSmsApp()
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/
DBlockedNumberProvider.java617 final String callingPackage = getCallingPackage();
618 if (TextUtils.isEmpty(callingPackage)) {
623 if (callingPackage.equals(telecom.getDefaultDialerPackage())
624 || callingPackage.equals(telecom.getSystemDialerPackage())) {
629 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED) {
635 return telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(callingPackage) ==
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallIntentProcessor.java177 String callingPackage) { in sendIntentToDestination() argument
187 callingPackage); in sendIntentToDestination()
194 tm.handleCallIntent(intent, callingPackage); in sendIntentToDestination()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java126 public String callingPackage; field in GattService.PendingIntentInfo
470 List storages, String callingPackage, String callingFeatureId) { in startScan() argument
475 service.startScan(scannerId, settings, filters, storages, callingPackage, in startScan()
481 List<ScanFilter> filters, String callingPackage, String callingFeatureId) in startScanForIntent() argument
487 service.registerPiAndStartScan(intent, settings, filters, callingPackage, in startScanForIntent()
492 public void stopScanForIntent(PendingIntent intent, String callingPackage) in stopScanForIntent() argument
498 service.stopScan(intent, callingPackage); in stopScanForIntent()
1940 List<List<ResultStorageDescriptor>> storages, String callingPackage, in startScan() argument
1952 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startScan() local
1953 scanClient.isQApp = Utils.isQApp(this, callingPackage); in startScan()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java170 String callingPackage = getCallingPackage(); in onCreate() local
171 if (callingPackage == null || !callingPackage.equals(who.getPackageName())) { in onCreate()
177 PackageInfo packageInfo = packageManager.getPackageInfo(callingPackage, 0); in onCreate()
184 Log.e(TAG, "Cannot find the package " + callingPackage); in onCreate()
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
DDeviceAdminAdd.java171 String callingPackage = getCallingPackage(); in onCreate() local
172 if (callingPackage == null || !callingPackage.equals(who.getPackageName())) { in onCreate()
178 PackageInfo packageInfo = packageManager.getPackageInfo(callingPackage, 0); in onCreate()
185 Log.e(TAG, "Cannot find the package " + callingPackage); in onCreate()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DUserDictionaryProvider.java325 String callingPackage = getCallingPackage(); in canCallerAccessUserDictionary() local
333 && imeInfo.getPackageName().equals(callingPackage)) { in canCallerAccessUserDictionary()
343 && scInfo.getPackageName().equals(callingPackage)) { in canCallerAccessUserDictionary()

12