/packages/services/Telecomm/src/com/android/server/telecom/ |
D | TelecomServiceImpl.java | 111 String callingPackage) { 115 if (!canReadPhoneState(callingPackage, "getDefaultOutgoingPhoneAccount")) { 137 public PhoneAccountHandle getUserSelectedOutgoingPhoneAccount(String callingPackage) { 141 if (!isDialerOrPrivileged(callingPackage, "getDefaultOutgoingPhoneAccount")) { 182 boolean includeDisabledAccounts, String callingPackage) { 185 if (!canReadPhoneState(callingPackage, "getDefaultOutgoingPhoneAccount")) { 207 public List<PhoneAccountHandle> getSelfManagedPhoneAccounts(String callingPackage) { 210 if (!canReadPhoneState(callingPackage, "Requires READ_PHONE_STATE permission.")) { 233 String callingPackage) { 241 "getPhoneAccountsSupportingScheme: " + callingPackage); [all …]
|
D | CallIntentProcessor.java | 35 Intent intent, String callingPackage); in processOutgoingCallIntent() argument 43 Intent intent, String callingPackage) { in processOutgoingCallIntent() argument 45 callingPackage); in processOutgoingCallIntent() 81 public void processIntent(Intent intent, String callingPackage) { in processIntent() argument 89 processOutgoingCallIntent(mContext, mCallsManager, intent, callingPackage); in processIntent() 105 String callingPackage) { in processOutgoingCallIntent() argument 163 intent, callingPackage); in processOutgoingCallIntent()
|
D | VideoProviderProxy.java | 323 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/services/Telephony/src/com/android/phone/ |
D | PhoneInterfaceManager.java | 1404 public void call(String callingPackage, String number) { in call() argument 1405 callForSubscriber(getPreferredVoiceSubscription(), callingPackage, number); in call() local 1408 public void callForSubscriber(int subId, String callingPackage, String number) { in callForSubscriber() argument 1416 if (mAppOps.noteOp(AppOpsManager.OP_CALL_PHONE, Binder.getCallingUid(), callingPackage) in callForSubscriber() 1625 public boolean isRadioOn(String callingPackage) { in isRadioOn() argument 1626 return isRadioOnForSubscriber(getDefaultSubscription(), callingPackage); in isRadioOn() 1630 public boolean isRadioOnForSubscriber(int subId, String callingPackage) { in isRadioOnForSubscriber() argument 1632 mApp, subId, callingPackage, "isRadioOnForSubscriber")) { in isRadioOnForSubscriber() 1908 public Bundle getCellLocation(String callingPackage) { in getCellLocation() argument 1910 .checkPackage(Binder.getCallingUid(), callingPackage); in getCellLocation() local [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | VoicemailPermissions.java | 45 public boolean callerHasReadAccess(String callingPackage) { in callerHasReadAccess() argument 46 if (DefaultDialerManager.isDefaultOrSystemDialer(mContext, callingPackage)) { in callerHasReadAccess() 54 public boolean callerHasWriteAccess(String callingPackage) { in callerHasWriteAccess() argument 55 if (DefaultDialerManager.isDefaultOrSystemDialer(mContext, callingPackage)) { in callerHasWriteAccess() 78 public void checkCallerHasReadAccess(String callingPackage) { in checkCallerHasReadAccess() argument 79 if (!callerHasReadAccess(callingPackage)) { in checkCallerHasReadAccess() 86 public void checkCallerHasWriteAccess(String callingPackage) { in checkCallerHasWriteAccess() argument 87 if (!callerHasWriteAccess(callingPackage)) { in checkCallerHasWriteAccess()
|
D | VoicemailContentProvider.java | 447 private final void checkPackagesMatch(String callingPackage, String voicemailSourcePackage, in checkPackagesMatch() argument 449 if (!voicemailSourcePackage.equals(callingPackage)) { in checkPackagesMatch() 452 uri, callingPackage, voicemailSourcePackage, in checkPackagesMatch()
|
/packages/services/AlternativeNetworkAccess/src/com/android/ons/ |
D | OpportunisticNetworkService.java | 151 private boolean hasOpportunisticSubPrivilege(String callingPackage, int subId) { in hasOpportunisticSubPrivilege() argument 154 mProfileSelector.getOpprotunisticSubInfo(subId), callingPackage); in hasOpportunisticSubPrivilege() 174 public boolean setEnable(boolean enable, String callingPackage) { 203 public boolean isEnabled(String callingPackage) { 226 ISetOpportunisticDataCallback callbackStub, String callingPackage) { 227 … logDebug("setPreferredDataSubscriptionId subId:" + subId + "callingPackage: " + callingPackage); 256 public int getPreferredDataSubscriptionId(String callingPackage) { 260 callingPackage, "getPreferredDataSubscriptionId"); 287 IUpdateAvailableNetworksCallback callbackStub, String callingPackage) { 299 callingPackage); [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/ |
D | PreProvisioningController.java | 257 String callingPackage) { in initiateProvisioning() argument 265 if (!checkFactoryResetProtection(mParams, callingPackage)) { in initiateProvisioning() 269 if (!verifyActionAndCaller(intent, callingPackage)) { in initiateProvisioning() 501 boolean checkFactoryResetProtection(ProvisioningParams params, String callingPackage) { in checkFactoryResetProtection() argument 502 if (skipFactoryResetProtectionCheck(params, callingPackage)) { in checkFactoryResetProtection() 515 ProvisioningParams params, String callingPackage) { in skipFactoryResetProtectionCheck() argument 516 if (TextUtils.isEmpty(callingPackage)) { in skipFactoryResetProtectionCheck() 524 PackageInfo callingPackageInfo = mPackageManager.getPackageInfo(callingPackage, 0); in skipFactoryResetProtectionCheck() 529 && callingPackage.equals(persistentDataPackageName) in skipFactoryResetProtectionCheck() 574 String callingPackage) { in verifyActionAndCaller() argument [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/ |
D | Utils.java | 313 String callingPackage, UserHandle userHandle) { in checkCallerHasCoarseLocation() argument 323 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) { in checkCallerHasCoarseLocation() 338 String callingPackage, UserHandle userHandle) { in checkCallerHasCoarseOrFineLocation() argument 347 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) { in checkCallerHasCoarseOrFineLocation() 355 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) { in checkCallerHasCoarseOrFineLocation() 369 String callingPackage, UserHandle userHandle) { in checkCallerHasFineLocation() argument 378 && isAppOppAllowed(appOps, AppOpsManager.OP_FINE_LOCATION, callingPackage)) { in checkCallerHasFineLocation() 438 private static boolean isAppOppAllowed(AppOpsManager appOps, int op, String callingPackage) { in isAppOppAllowed() argument 439 return appOps.noteOp(op, Binder.getCallingUid(), callingPackage) in isAppOppAllowed()
|
/packages/services/Telephony/src/com/android/phone/vvm/ |
D | VisualVoicemailSmsFilterConfig.java | 45 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/ |
D | LocalCallingIdentity.java | 54 String callingPackage = provider.getCallingPackageUnchecked(); in fromBinder() local 55 if (callingPackage == null) { in fromBinder() 56 callingPackage = AppGlobals.getInitialApplication().getOpPackageName(); in fromBinder() 59 callingPackage); in fromBinder()
|
D | PermissionActivity.java | 138 final String callingPackage = getCallingPackage(); in getCallingLabel() local 139 if (TextUtils.isEmpty(callingPackage)) { in getCallingLabel() 145 .getApplicationLabel(pm.getApplicationInfo(callingPackage, 0)); in getCallingLabel()
|
D | MediaProvider.java | 3340 private String getSharedPackages(String callingPackage) { in getSharedPackages() argument 3390 final String callingPackage = getCallingPackageOrSelf(); in getQueryBuilderInternal() local 3400 final String sharedPackages = getSharedPackages(callingPackage); in getQueryBuilderInternal() 3402 final boolean allowLegacy = checkCallingPermissionLegacy(uri, forWrite, callingPackage); in getQueryBuilderInternal() 3426 if (!allowGlobal && !checkCallingPermissionImages(forWrite, callingPackage)) { in getQueryBuilderInternal() 3453 if (!allowGlobal && !checkCallingPermissionImages(forWrite, callingPackage)) { in getQueryBuilderInternal() 3475 if (!allowGlobal && !checkCallingPermissionAudio(forWrite, callingPackage)) { in getQueryBuilderInternal() 3503 if (!allowGlobal && !checkCallingPermissionAudio(false, callingPackage)) { in getQueryBuilderInternal() 3518 if (!allowGlobal && !checkCallingPermissionAudio(false, callingPackage)) { in getQueryBuilderInternal() 3531 if (!allowGlobal && !checkCallingPermissionAudio(false, callingPackage)) { in getQueryBuilderInternal() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | Shared.java | 211 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/ |
D | TvProviderForTesting.java | 29 String callingPackage; field in TvProviderForTesting 44 if (callingPackage != null) { in getCallingPackage_() 45 return callingPackage; in getCallingPackage_()
|
D | UnrecognizedColumnsTest.java | 104 mProvider.callingPackage = MY_PACKAGE; in insertPrograms() 109 mProvider.callingPackage = ANOTHER_PACKAGE; in insertPrograms() 114 mProvider.callingPackage = MY_PACKAGE; in insertPrograms()
|
D | BootCompletedReceiverTest.java | 103 mProvider.callingPackage = NON_EXISTING_PACKAGE_NAME; in testPackageRemoved() 118 mProvider.callingPackage = EXISTING_PACKAGE_NAME; in testPackageRemoved()
|
D | PackageRemovedReceiverTest.java | 95 mProvider.callingPackage = FAKE_PACKAGE_NAME_1; in testPackageRemoved() 106 mProvider.callingPackage = FAKE_PACKAGE_NAME_2; in testPackageRemoved()
|
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/ |
D | ProviderUtil.java | 86 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/ |
D | BlockedNumberProvider.java | 617 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/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | GattService.java | 125 public String callingPackage; field in GattService.PendingIntentInfo 469 List storages, String callingPackage) { in startScan() argument 474 service.startScan(scannerId, settings, filters, storages, callingPackage); in startScan() 479 List<ScanFilter> filters, String callingPackage) throws RemoteException { in startScanForIntent() argument 484 service.registerPiAndStartScan(intent, settings, filters, callingPackage); in startScanForIntent() 488 public void stopScanForIntent(PendingIntent intent, String callingPackage) in stopScanForIntent() argument 494 service.stopScan(intent, callingPackage); in stopScanForIntent() 1936 List<List<ResultStorageDescriptor>> storages, String callingPackage) { in startScan() argument 1947 mAppOps.checkPackage(Binder.getCallingUid(), callingPackage); in startScan() local 1948 scanClient.isQApp = Utils.isQApp(this, callingPackage); in startScan() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/specialaccess/deviceadmin/ |
D | DeviceAdminAdd.java | 170 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/ |
D | DeviceAdminAdd.java | 171 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/ |
D | UserDictionaryProvider.java | 325 String callingPackage = getCallingPackage(); in canCallerAccessUserDictionary() local 333 && imeInfo.getPackageName().equals(callingPackage)) { in canCallerAccessUserDictionary() 343 && scInfo.getPackageName().equals(callingPackage)) { in canCallerAccessUserDictionary()
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
D | UserCallIntentProcessor.java | 197 String callingPackage) { in sendIntentToDestination() argument 207 callingPackage); in sendIntentToDestination()
|