Searched refs:canReadPhoneState (Results 1 – 3 of 3) sorted by relevance
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | TelephonyRegistryMock.java | 55 boolean canReadPhoneState; field in TelephonyRegistryMock.Record 73 + " canReadPhoneState=" + canReadPhoneState + "}"; in toString() 132 r.canReadPhoneState = true; // permission has been enforced above in addOnSubscriptionsChangedListener()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 103 boolean canReadPhoneState; field in TelephonyRegistry.Record 121 + " canReadPhoneState=" + canReadPhoneState + "}"; in toString() 401 r.canReadPhoneState = true; // permission has been enforced above in addOnSubscriptionsChangedListener() 517 r.canReadPhoneState = isPhoneStateEvent && canReadPhoneState(callingPackage); in listen() 655 private boolean canReadPhoneState(String callingPackage) { in canReadPhoneState() method in TelephonyRegistry 662 boolean canReadPhoneState = mContext.checkCallingOrSelfPermission( in canReadPhoneState() 664 if (canReadPhoneState && in canReadPhoneState() 669 return canReadPhoneState; in canReadPhoneState() 674 return record.canReadPhoneState ? mCallIncomingNumber[phoneId] : ""; in getCallIncomingNumber() 708 String incomingNumberOrEmpty = r.canReadPhoneState ? incomingNumber : ""; in notifyCallState()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SubscriptionController.java | 213 private boolean canReadPhoneState(String callingPackage, String message) { in canReadPhoneState() method in SubscriptionController 404 if (!canReadPhoneState(callingPackage, "getActiveSubscriptionInfo")) { in getActiveSubscriptionInfo() 443 if (!canReadPhoneState(callingPackage, "getActiveSubscriptionInfoForIccId")) { in getActiveSubscriptionInfoForIccId() 481 if (!canReadPhoneState(callingPackage, "getActiveSubscriptionInfoForSimSlotIndex")) { in getActiveSubscriptionInfoForSimSlotIndex() 526 if (!canReadPhoneState(callingPackage, "getAllSubInfoList")) { in getAllSubInfoList() 554 if (!canReadPhoneState(callingPackage, "getActiveSubscriptionInfoList")) { in getActiveSubscriptionInfoList() 604 if (!canReadPhoneState(callingPackage, "getActiveSubInfoCount")) { in getActiveSubInfoCount() 633 if (!canReadPhoneState(callingPackage, "getAllSubInfoCount")) { in getAllSubInfoCount() 1620 if (!canReadPhoneState(callingPackage, "getSubInfoUsingSlotIdWithCheck")) { in getSubInfoUsingSlotIdWithCheck() 1795 if (!canReadPhoneState(callingPackage, "getSubInfoUsingSlotIdWithCheck")) { in getSubscriptionProperty()
|