Merge "[Telephony] Add more javadoc for carrier privileges"
This commit is contained in:
@@ -691,6 +691,11 @@ public class TelephonyCallback {
|
||||
* {@link TelephonyManager#createForSubscriptionId(int)}, then the callback applies to the
|
||||
* subscription ID. Otherwise, this callback applies to
|
||||
* {@link SubscriptionManager#getDefaultSubscriptionId()}.
|
||||
*
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PHONE_STATE}.
|
||||
*
|
||||
*/
|
||||
@RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
|
||||
void onMessageWaitingIndicatorChanged(boolean mwi);
|
||||
@@ -710,6 +715,11 @@ public class TelephonyCallback {
|
||||
* {@link TelephonyManager#createForSubscriptionId(int)}, then the callback applies to the
|
||||
* subscription ID. Otherwise, this callback applies to
|
||||
* {@link SubscriptionManager#getDefaultSubscriptionId()}.
|
||||
*
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PHONE_STATE}.
|
||||
*
|
||||
*/
|
||||
@RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
|
||||
void onCallForwardingIndicatorChanged(boolean cfi);
|
||||
@@ -868,6 +878,10 @@ public class TelephonyCallback {
|
||||
* subscription ID. Otherwise, this callback applies to
|
||||
* {@link SubscriptionManager#getDefaultSubscriptionId()}.
|
||||
*
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PRECISE_PHONE_STATE}.
|
||||
*
|
||||
* @param callState {@link PreciseCallState}
|
||||
*/
|
||||
@RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE)
|
||||
@@ -910,6 +924,10 @@ public class TelephonyCallback {
|
||||
* subscription ID. Otherwise, this callback applies to
|
||||
* {@link SubscriptionManager#getDefaultSubscriptionId()}.
|
||||
*
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PRECISE_PHONE_STATE}.
|
||||
*
|
||||
* @param imsReasonInfo {@link ImsReasonInfo} contains details on why IMS call failed.
|
||||
*/
|
||||
@RequiresPermission(android.Manifest.permission.READ_PRECISE_PHONE_STATE)
|
||||
@@ -932,9 +950,9 @@ public class TelephonyCallback {
|
||||
* subscription ID. Otherwise, this callback applies to
|
||||
* {@link SubscriptionManager#getDefaultSubscriptionId()}.
|
||||
*
|
||||
* <p>Requires permission {@link android.Manifest.permission#READ_PRECISE_PHONE_STATE}
|
||||
* or the calling app has carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}).
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PRECISE_PHONE_STATE}.
|
||||
*
|
||||
* @param dataConnectionState {@link PreciseDataConnectionState}
|
||||
*/
|
||||
@@ -1063,6 +1081,10 @@ public class TelephonyCallback {
|
||||
* given subscription ID. Otherwise, this callback applies to
|
||||
* {@link SubscriptionManager#getDefaultSubscriptionId()}.
|
||||
*
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PHONE_STATE}.
|
||||
*
|
||||
* @param emergencyNumberList Map associating all active subscriptions on the device with
|
||||
* the list of emergency numbers originating from that
|
||||
* subscription.
|
||||
@@ -1157,6 +1179,11 @@ public class TelephonyCallback {
|
||||
* For example, it could be the current active opportunistic subscription
|
||||
* in use, or the subscription user selected as default data subscription in
|
||||
* DSDS mode.
|
||||
*
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PHONE_STATE}.
|
||||
*
|
||||
*/
|
||||
@RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
|
||||
void onActiveDataSubscriptionIdChanged(int subId);
|
||||
@@ -1225,6 +1252,11 @@ public class TelephonyCallback {
|
||||
* <p>Because registration failures are ephemeral, this callback is not sticky.
|
||||
* Registrants will not receive the most recent past value when registering.
|
||||
*
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PRECISE_PHONE_STATE} and
|
||||
* {@link android.Manifest.permission#ACCESS_FINE_LOCATION}.
|
||||
*
|
||||
* @param cellIdentity the CellIdentity, which must include the globally unique
|
||||
* identifier
|
||||
* for the cell (for example, all components of the CGI or ECGI).
|
||||
@@ -1308,6 +1340,10 @@ public class TelephonyCallback {
|
||||
* subscription ID. Otherwise, this callback applies to
|
||||
* {@link SubscriptionManager#getDefaultSubscriptionId()}.
|
||||
*
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PRECISE_PHONE_STATE}.
|
||||
*
|
||||
* @param callAttributes the call attributes
|
||||
*/
|
||||
@RequiresPermission(Manifest.permission.READ_PRECISE_PHONE_STATE)
|
||||
@@ -1324,6 +1360,11 @@ public class TelephonyCallback {
|
||||
* <p>Barring info is provided for all services applicable to the current camped/registered
|
||||
* cell, for the registered PLMN and current access class/access category.
|
||||
*
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PRECISE_PHONE_STATE} and
|
||||
* {@link android.Manifest.permission#ACCESS_FINE_LOCATION}.
|
||||
*
|
||||
* @param barringInfo for all services on the current cell.
|
||||
* @see android.telephony.BarringInfo
|
||||
*/
|
||||
@@ -1341,6 +1382,10 @@ public class TelephonyCallback {
|
||||
/**
|
||||
* Callback invoked when the current physical channel configuration has changed
|
||||
*
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PRECISE_PHONE_STATE}.
|
||||
*
|
||||
* @param configs List of the current {@link PhysicalChannelConfig}s
|
||||
*/
|
||||
@RequiresPermission(Manifest.permission.READ_PRECISE_PHONE_STATE)
|
||||
@@ -1357,6 +1402,10 @@ public class TelephonyCallback {
|
||||
/**
|
||||
* Callback invoked when the data enabled changes.
|
||||
*
|
||||
* The calling app should have carrier privileges
|
||||
* (see {@link TelephonyManager#hasCarrierPrivileges}) if it does not have the
|
||||
* {@link android.Manifest.permission#READ_PRECISE_PHONE_STATE}.
|
||||
*
|
||||
* @param enabled {@code true} if data is enabled, otherwise disabled.
|
||||
* @param reason Reason for data enabled/disabled.
|
||||
* See {@link TelephonyManager.DataEnabledReason}.
|
||||
|
||||
Reference in New Issue
Block a user