Lines Matching refs:callingPackage
113 String callingPackage) {
117 if (!canReadPhoneState(callingPackage, "getDefaultOutgoingPhoneAccount")) {
180 boolean includeDisabledAccounts, String callingPackage) {
183 if (!canReadPhoneState(callingPackage, "getDefaultOutgoingPhoneAccount")) {
206 String callingPackage) {
210 if (!canReadPhoneState(callingPackage, "getPhoneAccountsSupportingScheme")) {
465 String callingPackage) {
469 if (!canReadPhoneState(callingPackage, "isVoiceMailNumber")) {
497 public String getVoiceMailNumber(PhoneAccountHandle accountHandle, String callingPackage) {
501 if (!canReadPhoneState(callingPackage, "getVoiceMailNumber")) {
532 public String getLine1Number(PhoneAccountHandle accountHandle, String callingPackage) {
535 if (!canReadPhoneState(callingPackage, "getLine1Number")) {
568 public void silenceRinger(String callingPackage) {
572 enforcePermissionOrPrivilegedDialer(MODIFY_PHONE_STATE, callingPackage);
576 Log.i(this, "Silence Ringer requested by %s", callingPackage);
645 public boolean isInCall(String callingPackage) {
648 if (!canReadPhoneState(callingPackage, "isInCall")) {
666 public boolean isRinging(String callingPackage) {
669 if (!canReadPhoneState(callingPackage, "isRinging")) {
772 public void showInCallScreen(boolean showDialpad, String callingPackage) {
775 if (!canReadPhoneState(callingPackage, "showInCallScreen")) {
797 public void cancelMissedCallsNotification(String callingPackage) {
801 enforcePermissionOrPrivilegedDialer(MODIFY_PHONE_STATE, callingPackage);
818 callingPackage) {
822 enforcePermissionOrPrivilegedDialer(MODIFY_PHONE_STATE, callingPackage);
846 String dialString, String callingPackage) {
850 enforcePermissionOrPrivilegedDialer(MODIFY_PHONE_STATE, callingPackage);
882 String callingPackage) {
886 enforcePermissionOrPrivilegedDialer(MODIFY_PHONE_STATE, callingPackage);
916 public boolean isTtySupported(String callingPackage) {
919 if (!canReadPhoneState(callingPackage, "hasVoiceMailNumber")) {
935 public int getCurrentTtyMode(String callingPackage) {
938 if (!canReadPhoneState(callingPackage, "getCurrentTtyMode")) {
1050 public void placeCall(Uri handle, Bundle extras, String callingPackage) {
1053 enforceCallingPackage(callingPackage);
1054 if (!canCallPhone(callingPackage, "placeCall")) {
1055 throw new SecurityException("Package " + callingPackage
1067 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED;
1083 intent, callingPackage, hasCallAppOp && hasCallPermission);
1410 private boolean canReadPhoneState(String callingPackage, String message) {
1413 if (isPrivilegedDialerCalling(callingPackage)) {
1428 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED;
1432 private boolean canCallPhone(String callingPackage, String message) {
1435 if (isPrivilegedDialerCalling(callingPackage)) {
1444 Binder.getCallingUid(), callingPackage) == AppOpsManager.MODE_ALLOWED;
1467 private boolean isPrivilegedDialerCalling(String callingPackage) {
1468 mAppOpsManager.checkPackage(Binder.getCallingUid(), callingPackage);
1469 return mDefaultDialerManagerAdapter.isDefaultOrSystemDialer(mContext, callingPackage);