Home
last modified time | relevance | path

Searched refs:canReadPhoneState (Results 1 – 2 of 2) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSubscriptionController.java209 private boolean canReadPhoneState(String callingPackage, String message) { in canReadPhoneState() method in SubscriptionController
394 if (!canReadPhoneState(callingPackage, "getActiveSubscriptionInfo")) { in getActiveSubscriptionInfo()
432 if (!canReadPhoneState(callingPackage, "getActiveSubscriptionInfoForIccId")) { in getActiveSubscriptionInfoForIccId()
470 if (!canReadPhoneState(callingPackage, "getActiveSubscriptionInfoForSimSlotIndex")) { in getActiveSubscriptionInfoForSimSlotIndex()
515 if (!canReadPhoneState(callingPackage, "getAllSubInfoList")) { in getAllSubInfoList()
544 if (!canReadPhoneState(callingPackage, "getActiveSubscriptionInfoList")) { in getActiveSubscriptionInfoList()
594 if (!canReadPhoneState(callingPackage, "getActiveSubInfoCount")) { in getActiveSubInfoCount()
623 if (!canReadPhoneState(callingPackage, "getAllSubInfoCount")) { in getAllSubInfoCount()
1572 if (!canReadPhoneState(callingPackage, "getSubInfoUsingSlotIdWithCheck")) { in getSubInfoUsingSlotIdWithCheck()
1743 if (!canReadPhoneState(callingPackage, "getSubInfoUsingSlotIdWithCheck")) { in getSubscriptionProperty()
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java104 boolean canReadPhoneState; field in TelephonyRegistry.Record
122 + " canReadPhoneState=" + canReadPhoneState + "}"; in toString()
403 r.canReadPhoneState = true; // permission has been enforced above in addOnSubscriptionsChangedListener()
519 r.canReadPhoneState = isPhoneStateEvent && canReadPhoneState(callingPackage); in listen()
664 private boolean canReadPhoneState(String callingPackage) { in canReadPhoneState() method in TelephonyRegistry
671 boolean canReadPhoneState = mContext.checkCallingOrSelfPermission( in canReadPhoneState()
673 if (canReadPhoneState && in canReadPhoneState()
678 return canReadPhoneState; in canReadPhoneState()
683 return record.canReadPhoneState ? mCallIncomingNumber[phoneId] : ""; in getCallIncomingNumber()
717 String incomingNumberOrEmpty = r.canReadPhoneState ? incomingNumber : ""; in notifyCallState()