Merge "Remove redundant permission requirements docs." am: ef2c66e72f am: 7e94f9e844 am: 6f4ea387c3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1490126 Change-Id: I0997f681c52485345cf9ee2c6004b53e74974630
This commit is contained in:
@@ -991,8 +991,6 @@ public class TelecomManager {
|
|||||||
* <p>
|
* <p>
|
||||||
* If no {@link PhoneAccount} fits the criteria above, this method will return {@code null}.
|
* If no {@link PhoneAccount} fits the criteria above, this method will return {@code null}.
|
||||||
*
|
*
|
||||||
* Requires permission: {@link android.Manifest.permission#READ_PHONE_STATE}
|
|
||||||
*
|
|
||||||
* @param uriScheme The URI scheme.
|
* @param uriScheme The URI scheme.
|
||||||
* @return The {@link PhoneAccountHandle} corresponding to the account to be used.
|
* @return The {@link PhoneAccountHandle} corresponding to the account to be used.
|
||||||
*/
|
*/
|
||||||
@@ -1169,8 +1167,6 @@ public class TelecomManager {
|
|||||||
* calls. The returned list includes only those accounts which have been explicitly enabled
|
* calls. The returned list includes only those accounts which have been explicitly enabled
|
||||||
* by the user.
|
* by the user.
|
||||||
*
|
*
|
||||||
* Requires permission: {@link android.Manifest.permission#READ_PHONE_STATE}
|
|
||||||
*
|
|
||||||
* @see #EXTRA_PHONE_ACCOUNT_HANDLE
|
* @see #EXTRA_PHONE_ACCOUNT_HANDLE
|
||||||
* @return A list of {@code PhoneAccountHandle} objects.
|
* @return A list of {@code PhoneAccountHandle} objects.
|
||||||
*/
|
*/
|
||||||
@@ -1470,9 +1466,6 @@ public class TelecomManager {
|
|||||||
* the specified package does not correspond to an installed dialer, or is already
|
* the specified package does not correspond to an installed dialer, or is already
|
||||||
* the default dialer.
|
* the default dialer.
|
||||||
*
|
*
|
||||||
* Requires permission: {@link android.Manifest.permission#MODIFY_PHONE_STATE}
|
|
||||||
* Requires permission: {@link android.Manifest.permission#WRITE_SECURE_SETTINGS}
|
|
||||||
*
|
|
||||||
* @hide
|
* @hide
|
||||||
* @deprecated Use
|
* @deprecated Use
|
||||||
* {@link android.app.role.RoleManager#addRoleHolderAsUser(String, String, int, UserHandle,
|
* {@link android.app.role.RoleManager#addRoleHolderAsUser(String, String, int, UserHandle,
|
||||||
@@ -1516,8 +1509,6 @@ public class TelecomManager {
|
|||||||
* Return whether a given phone number is the configured voicemail number for a
|
* Return whether a given phone number is the configured voicemail number for a
|
||||||
* particular phone account.
|
* particular phone account.
|
||||||
*
|
*
|
||||||
* Requires permission: {@link android.Manifest.permission#READ_PHONE_STATE}
|
|
||||||
*
|
|
||||||
* @param accountHandle The handle for the account to check the voicemail number against
|
* @param accountHandle The handle for the account to check the voicemail number against
|
||||||
* @param number The number to look up.
|
* @param number The number to look up.
|
||||||
*/
|
*/
|
||||||
@@ -1537,8 +1528,6 @@ public class TelecomManager {
|
|||||||
/**
|
/**
|
||||||
* Return the voicemail number for a given phone account.
|
* Return the voicemail number for a given phone account.
|
||||||
*
|
*
|
||||||
* Requires permission: {@link android.Manifest.permission#READ_PHONE_STATE}
|
|
||||||
*
|
|
||||||
* @param accountHandle The handle for the phone account.
|
* @param accountHandle The handle for the phone account.
|
||||||
* @return The voicemail number for the phone account, and {@code null} if one has not been
|
* @return The voicemail number for the phone account, and {@code null} if one has not been
|
||||||
* configured.
|
* configured.
|
||||||
@@ -1590,8 +1579,6 @@ public class TelecomManager {
|
|||||||
/**
|
/**
|
||||||
* Returns whether there is an ongoing phone call (can be in dialing, ringing, active or holding
|
* Returns whether there is an ongoing phone call (can be in dialing, ringing, active or holding
|
||||||
* states) originating from either a manager or self-managed {@link ConnectionService}.
|
* states) originating from either a manager or self-managed {@link ConnectionService}.
|
||||||
* <p>
|
|
||||||
* Requires permission: {@link android.Manifest.permission#READ_PHONE_STATE}
|
|
||||||
*
|
*
|
||||||
* @return {@code true} if there is an ongoing call in either a managed or self-managed
|
* @return {@code true} if there is an ongoing call in either a managed or self-managed
|
||||||
* {@link ConnectionService}, {@code false} otherwise.
|
* {@link ConnectionService}, {@code false} otherwise.
|
||||||
@@ -1616,8 +1603,6 @@ public class TelecomManager {
|
|||||||
* <p>
|
* <p>
|
||||||
* If you also need to know if there are ongoing self-managed calls, use {@link #isInCall()}
|
* If you also need to know if there are ongoing self-managed calls, use {@link #isInCall()}
|
||||||
* instead.
|
* instead.
|
||||||
* <p>
|
|
||||||
* Requires permission: {@link android.Manifest.permission#READ_PHONE_STATE}
|
|
||||||
*
|
*
|
||||||
* @return {@code true} if there is an ongoing call in a managed {@link ConnectionService},
|
* @return {@code true} if there is an ongoing call in a managed {@link ConnectionService},
|
||||||
* {@code false} otherwise.
|
* {@code false} otherwise.
|
||||||
@@ -1691,8 +1676,6 @@ public class TelecomManager {
|
|||||||
* If there is a ringing call, calling this method rejects the ringing call. Otherwise the
|
* If there is a ringing call, calling this method rejects the ringing call. Otherwise the
|
||||||
* foreground call is ended.
|
* foreground call is ended.
|
||||||
* <p>
|
* <p>
|
||||||
* Requires permission {@link android.Manifest.permission#ANSWER_PHONE_CALLS}.
|
|
||||||
* <p>
|
|
||||||
* Note: this method CANNOT be used to end ongoing emergency calls and will return {@code false}
|
* Note: this method CANNOT be used to end ongoing emergency calls and will return {@code false}
|
||||||
* if an attempt is made to end an emergency call.
|
* if an attempt is made to end an emergency call.
|
||||||
*
|
*
|
||||||
@@ -1722,9 +1705,6 @@ public class TelecomManager {
|
|||||||
* the incoming call requests. This means, for example, that an incoming call requesting
|
* the incoming call requests. This means, for example, that an incoming call requesting
|
||||||
* {@link VideoProfile#STATE_BIDIRECTIONAL} will be answered, accepting that state.
|
* {@link VideoProfile#STATE_BIDIRECTIONAL} will be answered, accepting that state.
|
||||||
*
|
*
|
||||||
* Requires permission: {@link android.Manifest.permission#MODIFY_PHONE_STATE} or
|
|
||||||
* {@link android.Manifest.permission#ANSWER_PHONE_CALLS}
|
|
||||||
*
|
|
||||||
* @deprecated Companion apps for wearable devices should use the {@link InCallService} API
|
* @deprecated Companion apps for wearable devices should use the {@link InCallService} API
|
||||||
* instead.
|
* instead.
|
||||||
*/
|
*/
|
||||||
@@ -1747,9 +1727,6 @@ public class TelecomManager {
|
|||||||
* If there is a ringing incoming call, this method accepts the call on behalf of the user,
|
* If there is a ringing incoming call, this method accepts the call on behalf of the user,
|
||||||
* with the specified video state.
|
* with the specified video state.
|
||||||
*
|
*
|
||||||
* Requires permission: {@link android.Manifest.permission#MODIFY_PHONE_STATE} or
|
|
||||||
* {@link android.Manifest.permission#ANSWER_PHONE_CALLS}
|
|
||||||
*
|
|
||||||
* @param videoState The desired video state to answer the call with.
|
* @param videoState The desired video state to answer the call with.
|
||||||
* @deprecated Companion apps for wearable devices should use the {@link InCallService} API
|
* @deprecated Companion apps for wearable devices should use the {@link InCallService} API
|
||||||
* instead.
|
* instead.
|
||||||
@@ -1961,8 +1938,6 @@ public class TelecomManager {
|
|||||||
* Requires that the method-caller be set as the system dialer app.
|
* Requires that the method-caller be set as the system dialer app.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* Requires permission: {@link android.Manifest.permission#MODIFY_PHONE_STATE}
|
|
||||||
*
|
|
||||||
* @param dialString The digits to dial.
|
* @param dialString The digits to dial.
|
||||||
* @return True if the digits were processed as an MMI code, false otherwise.
|
* @return True if the digits were processed as an MMI code, false otherwise.
|
||||||
*/
|
*/
|
||||||
@@ -1987,8 +1962,6 @@ public class TelecomManager {
|
|||||||
* Requires that the method-caller be set as the system dialer app.
|
* Requires that the method-caller be set as the system dialer app.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* Requires permission: {@link android.Manifest.permission#MODIFY_PHONE_STATE}
|
|
||||||
*
|
|
||||||
* @param accountHandle The handle for the account the MMI code should apply to.
|
* @param accountHandle The handle for the account the MMI code should apply to.
|
||||||
* @param dialString The digits to dial.
|
* @param dialString The digits to dial.
|
||||||
* @return True if the digits were processed as an MMI code, false otherwise.
|
* @return True if the digits were processed as an MMI code, false otherwise.
|
||||||
@@ -2008,8 +1981,8 @@ public class TelecomManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Requires permission: {@link android.Manifest.permission#MODIFY_PHONE_STATE}
|
* Returns a URI (with the content:// scheme) specific to the specified {@link PhoneAccount}
|
||||||
*
|
* for ADN content retrieval.
|
||||||
* @param accountHandle The handle for the account to derive an adn query URI for or
|
* @param accountHandle The handle for the account to derive an adn query URI for or
|
||||||
* {@code null} to return a URI which will use the default account.
|
* {@code null} to return a URI which will use the default account.
|
||||||
* @return The URI (with the content:// scheme) specific to the specified {@link PhoneAccount}
|
* @return The URI (with the content:// scheme) specific to the specified {@link PhoneAccount}
|
||||||
@@ -2033,8 +2006,6 @@ public class TelecomManager {
|
|||||||
* <p>
|
* <p>
|
||||||
* Requires that the method-caller be set as the system dialer app.
|
* Requires that the method-caller be set as the system dialer app.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
|
||||||
* Requires permission: {@link android.Manifest.permission#MODIFY_PHONE_STATE}
|
|
||||||
*/
|
*/
|
||||||
@RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
|
@RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
|
||||||
public void cancelMissedCallsNotification() {
|
public void cancelMissedCallsNotification() {
|
||||||
|
|||||||
Reference in New Issue
Block a user