Home
last modified time | relevance | path

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

123

/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomServiceImpl.java118 String callingPackage, String callingFeatureId) {
136 callingPackage,
149 public PhoneAccountHandle getUserSelectedOutgoingPhoneAccount(String callingPackage) {
153 if (!isDialerOrPrivileged(callingPackage, "getDefaultOutgoingPhoneAccount")) {
194 boolean includeDisabledAccounts, String callingPackage, String callingFeatureId) {
199 callingPackage, "getCallCapablePhoneAccounts")) {
202 if (!canReadPhoneState(callingPackage, callingFeatureId,
225 public List<PhoneAccountHandle> getSelfManagedPhoneAccounts(String callingPackage,
229 if (!canReadPhoneState(callingPackage, callingFeatureId,
253 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
182 boolean isPrivilegedDialer = defaultDialerCache.isDefaultOrSystemDialer(callingPackage, in processOutgoingCallIntent()
199 intent, callingPackage); in processOutgoingCallIntent()
DVideoProviderProxy.java324 public void onSetCamera(String cameraId, String callingPackage, int callingUid, in onSetCamera() argument
327 logFromInCall("setCamera: " + cameraId + " callingPackage=" + callingPackage + in onSetCamera()
331 if (!canUseCamera(mCall.getContext(), callingPackage, callingUid, callingPid)) { in onSetCamera()
336 callingPackage, callingUid, callingPid, targetSdkVersion); in onSetCamera()
357 mConectionServiceVideoProvider.setCamera(cameraId, callingPackage, in onSetCamera()
581 private boolean canUseCamera(Context context, String callingPackage, int callingUid, in canUseCamera() argument
604 callingUid, callingPackage) == AppOpsManager.MODE_ALLOWED; in canUseCamera()
DSystemStateHelper.java85 String callingPackage = intent.getStringExtra(
89 priority, callingPackage);
90 onEnterCarMode(priority, callingPackage);
94 String callingPackage = intent.getStringExtra(
98 priority, callingPackage);
99 onExitCarMode(priority, callingPackage);
/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.java2271 public void call(String callingPackage, String number) { in call() argument
2272 callForSubscriber(getPreferredVoiceSubscription(), callingPackage, number); in call() local
2275 public void callForSubscriber(int subId, String callingPackage, String number) { in callForSubscriber() argument
2283 if (mAppOps.noteOp(AppOpsManager.OPSTR_CALL_PHONE, Binder.getCallingUid(), callingPackage) in callForSubscriber()
2477 public void updateServiceLocationWithPackageName(String callingPackage) { in updateServiceLocationWithPackageName() argument
2479 .checkPackage(Binder.getCallingUid(), callingPackage); in updateServiceLocationWithPackageName() local
2481 final int targetSdk = TelephonyPermissions.getTargetSdk(mApp, callingPackage); in updateServiceLocationWithPackageName()
2490 .setCallingPackage(callingPackage) in updateServiceLocationWithPackageName()
2521 public boolean isRadioOn(String callingPackage) { in isRadioOn() argument
2522 return isRadioOnWithFeature(callingPackage, null); in isRadioOn()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java176 public void enableInstantCommunicationMode(String callingPackage, boolean enable) { in enableInstantCommunicationMode() argument
177 if (!mWifiPermissionsUtil.isSystem(callingPackage, Binder.getCallingUid())) { in enableInstantCommunicationMode()
193 public void connect(final IBinder binder, String callingPackage, String callingFeatureId, in connect() argument
200 mAppOps.checkPackage(uid, callingPackage); in connect()
210 enforceLocationPermission(callingPackage, callingFeatureId, getMockableCallingUid()); in connect()
265 mStateManager.connect(clientId, uid, pid, callingPackage, callingFeatureId, callback, in connect()
310 public void publish(String callingPackage, String callingFeatureId, int clientId, in publish() argument
316 mAppOps.checkPackage(uid, callingPackage); in publish()
318 enforceLocationPermission(callingPackage, callingFeatureId, getMockableCallingUid()); in publish()
360 public void subscribe(String callingPackage, String callingFeatureId, int clientId, in subscribe() argument
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareStateManagerTest.java246 final String callingPackage = "com.google.somePackage"; in testRequestMacAddresses() local
283 mDut.connect(clientId1, uid1, pid1, callingPackage, callingFeature, mockCallback1, in testRequestMacAddresses()
286 inOrder.verify(mMockNativeManager).tryToGetAware(new WorkSource(uid1, callingPackage)); in testRequestMacAddresses()
293 mDut.connect(clientId2, uid2, pid2, callingPackage, callingFeature, mockCallback2, in testRequestMacAddresses()
298 WorkSource expectedRequestorWs = new WorkSource(uid1, callingPackage); in testRequestMacAddresses()
299 expectedRequestorWs.add(uid2, callingPackage); in testRequestMacAddresses()
370 final String callingPackage = "com.google.somePackage"; in testAwareDataPathInterfaceUpDown() local
386 mDut.connect(clientId, uid, pid, callingPackage, callingFeature, mockCallback, in testAwareDataPathInterfaceUpDown()
415 final String callingPackage = "com.google.somePackage"; in testDisableUsageDisablesApis() local
440 mDut.connect(clientId, uid, pid, callingPackage, callingFeature, mockCallback, in testDisableUsageDisablesApis()
[all …]
DWifiAwareServiceImplTest.java216 String callingPackage = "com.google.somePackage"; in testConnectWithConfig() local
219 mDut.connect(mBinderMock, callingPackage, callingFeatureId, mCallbackMock, in testConnectWithConfig()
222 verify(mAwareStateManagerMock).connect(anyInt(), anyInt(), anyInt(), eq(callingPackage), in testConnectWithConfig()
735 String callingPackage = "com.google.somePackage"; in doConnect() local
738 mDut.connect(mBinderMock, callingPackage, callingFeatureId, mCallbackMock, null, false); in doConnect()
742 eq(callingPackage), eq(callingFeatureId), eq(mCallbackMock), in doConnect()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DOpportunisticNetworkService.java166 private boolean hasOpportunisticSubPrivilege(String callingPackage, int subId) { in hasOpportunisticSubPrivilege() argument
169 mProfileSelector.getOpprotunisticSubInfo(subId), callingPackage); in hasOpportunisticSubPrivilege()
189 public boolean setEnable(boolean enable, String callingPackage) {
218 public boolean isEnabled(String callingPackage) {
241 ISetOpportunisticDataCallback callbackStub, String callingPackage) {
242 … logDebug("setPreferredDataSubscriptionId subId:" + subId + "callingPackage: " + callingPackage);
280 public int getPreferredDataSubscriptionId(String callingPackage,
285 callingPackage, callingFeatureId, "getPreferredDataSubscriptionId");
312 IUpdateAvailableNetworksCallback callbackStub, String callingPackage) {
324 callingPackage);
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningActivityController.java251 public void initiateProvisioning(Intent intent, String callingPackage) { in initiateProvisioning() argument
260 if (!checkFactoryResetProtection(params, callingPackage)) { in initiateProvisioning()
264 if (!verifyActionAndCaller(intent, callingPackage)) { in initiateProvisioning()
636 boolean checkFactoryResetProtection(ProvisioningParams params, String callingPackage) { in checkFactoryResetProtection() argument
637 if (skipFactoryResetProtectionCheck(params, callingPackage)) { in checkFactoryResetProtection()
650 ProvisioningParams params, String callingPackage) { in skipFactoryResetProtectionCheck() argument
651 if (TextUtils.isEmpty(callingPackage)) { in skipFactoryResetProtectionCheck()
659 PackageInfo callingPackageInfo = mPackageManager.getPackageInfo(callingPackage, 0); in skipFactoryResetProtectionCheck()
664 && callingPackage.equals(persistentDataPackageName) in skipFactoryResetProtectionCheck()
705 String callingPackage) { in verifyActionAndCaller() argument
[all …]
/packages/modules/Scheduling/service/java/com/android/server/scheduling/
DRebootReadinessManagerService.java264 public void markRebootPending(String callingPackage) { in markRebootPending() argument
268 Log.i(TAG, "Starting reboot readiness checks for package: " + callingPackage); in markRebootPending()
277 sendRebootReadyBroadcast(callingPackage, in markRebootPending()
282 packagesForUid.add(callingPackage); in markRebootPending()
288 public void cancelPendingReboot(String callingPackage) { in cancelPendingReboot() argument
295 if (packagesForUid.contains(callingPackage)) { in cancelPendingReboot()
296 Log.i(TAG, "Canceling reboot readiness checks for package: " + callingPackage); in cancelPendingReboot()
297 packagesForUid.remove(callingPackage); in cancelPendingReboot()
317 Log.w(TAG, "Package " + callingPackage + " tried to cancel reboot readiness" in cancelPendingReboot()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DIWifiAwareManager.aidl42 void enableInstantCommunicationMode(in String callingPackage, boolean enable); in enableInstantCommunicationMode() argument
46 void connect(in IBinder binder, in String callingPackage, in String callingFeatureId, in connect() argument
51 void publish(in String callingPackage, in String callingFeatureId, int clientId, in publish() argument
53 void subscribe(in String callingPackage, in String callingFeatureId, int clientId, in subscribe() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java341 String callingPackage, int callingUid, BluetoothDevice device) { in enforceCdmAssociation() argument
342 if (!isPackageNameAccurate(context, callingPackage, callingUid)) { in enforceCdmAssociation()
343 throw new SecurityException("hasCdmAssociation: Package name " + callingPackage in enforceCdmAssociation()
348 if (association.getPackageName().equals(callingPackage) in enforceCdmAssociation()
353 throw new SecurityException("The application with package name " + callingPackage in enforceCdmAssociation()
364 public static boolean isPackageNameAccurate(Context context, String callingPackage, in isPackageNameAccurate() argument
368 int packageUid = context.getPackageManager().getPackageUid(callingPackage, 0); in isPackageNameAccurate()
370 Log.e(TAG, "isPackageNameAccurate: App with package name " + callingPackage in isPackageNameAccurate()
375 Log.e(TAG, "isPackageNameAccurate: App with package name " + callingPackage in isPackageNameAccurate()
825 private static boolean isAppOppAllowed(AppOpsManager appOps, String op, String callingPackage, in isAppOppAllowed() argument
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiDialogActivity.java357 final String callingPackage = getCallingPackage(); in hasPermissionForResult() local
358 if (callingPackage == null) { in hasPermissionForResult()
364 if (getPackageManager().checkPermission(ACCESS_COARSE_LOCATION, callingPackage) in hasPermissionForResult()
370 if (getPackageManager().checkPermission(ACCESS_FINE_LOCATION, callingPackage) in hasPermissionForResult()
379 getPackageManager().getPackageUid(callingPackage, 0 /* flags */), in hasPermissionForResult()
383 Log.w(TAG, "Cannot find the UID, calling package: " + callingPackage, e); in hasPermissionForResult()
/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/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()
/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/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttServiceImpl.java388 public void startRanging(IBinder binder, String callingPackage, String callingFeatureId, in startRanging() argument
392 Log.v(TAG, "startRanging: binder=" + binder + ", callingPackage=" + callingPackage in startRanging()
429 mWifiPermissionsUtil.enforceFineLocationPermission(callingPackage, callingFeatureId, uid); in startRanging()
471 callingPackage, callingFeatureId, request, callback, in startRanging()
679 IBinder.DeathRecipient dr, String callingPackage, String callingFeatureId, in queueRangingRequest() argument
703 newRequest.callingPackage = callingPackage; in queueRangingRequest()
1062 topOfQueueRequest.callingPackage, topOfQueueRequest.callingFeatureId, in onRangingResults()
1191 public String callingPackage; field in RttServiceImpl.RttRequestInfo
1205 ", dr=").append(dr).append(", callingPackage=").append(callingPackage).append( in toString()
/packages/apps/DocumentsUI/src/com/android/documentsui/base/
DShared.java252 String callingPackage = activity.getCallingPackage(); in getCallingPackageName() local
256 activity.getPackageManager().getApplicationInfo(callingPackage, 0); in getCallingPackageName()
261 callingPackage = extra; in getCallingPackageName()
270 return callingPackage; in getCallingPackageName()
/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/modules/Scheduling/framework/java/android/scheduling/
DIRebootReadinessManager.aidl24 void markRebootPending(in String callingPackage); in markRebootPending() argument
25 void cancelPendingReboot(in String callingPackage); in cancelPendingReboot() argument
/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) {
637 return telephonyManager.checkCarrierPrivilegesForPackageAnyPhone(callingPackage) ==
/packages/modules/NetworkStack/apishim/30/com/android/networkstack/apishim/api30/
DSettingsShimImpl.java45 @NonNull String callingPackage, @Nullable String callingAttributionTag, in checkAndNoteWriteSettingsOperation() argument
47 return Settings.checkAndNoteWriteSettingsOperation(context, uid, callingPackage, in checkAndNoteWriteSettingsOperation()

123