Mark two unfinished APIs as "DO NOT USE".
The two APIs at this point are not well defined and implemented due to design changes after they were introduced. Marking them as DO NOT USE until further re-define or clean up. Test: build Bug: 135222940 Change-Id: I3f06040fdda25c7aa27be45cd90177136f7e996f
This commit is contained in:
committed by
Xiangyu/Malcolm Chen
parent
9ea1842c38
commit
bfa821b43a
@@ -3070,18 +3070,10 @@ public class SubscriptionManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns whether the subscription is enabled or not. This is different from activated
|
* DO NOT USE.
|
||||||
* or deactivated for two aspects. 1) For when user disables a physical subscription, we
|
* This API is designed for features that are not finished at this point. Do not call this API.
|
||||||
* actually disable the modem because we can't switch off the subscription. 2) For eSIM,
|
|
||||||
* user may enable one subscription but the system may activate another temporarily. In this
|
|
||||||
* case, user enabled one is different from current active one.
|
|
||||||
|
|
||||||
* @param subscriptionId The subscription it asks about.
|
|
||||||
* @return whether it's enabled or not. {@code true} if user set this subscription enabled
|
|
||||||
* earlier, or user never set subscription enable / disable on this slot explicitly, and
|
|
||||||
* this subscription is currently active. Otherwise, it returns {@code false}.
|
|
||||||
*
|
|
||||||
* @hide
|
* @hide
|
||||||
|
* TODO b/135547512: further clean up
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
|
@RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
|
||||||
@@ -3099,14 +3091,10 @@ public class SubscriptionManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get which subscription is enabled on this slot. See {@link #isSubscriptionEnabled(int)}
|
* DO NOT USE.
|
||||||
* for more details.
|
* This API is designed for features that are not finished at this point. Do not call this API.
|
||||||
*
|
|
||||||
* @param slotIndex which slot it asks about.
|
|
||||||
* @return which subscription is enabled on this slot. If there's no enabled subscription
|
|
||||||
* in this slot, it will return {@link SubscriptionManager#INVALID_SUBSCRIPTION_ID}.
|
|
||||||
*
|
|
||||||
* @hide
|
* @hide
|
||||||
|
* TODO b/135547512: further clean up
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
|
@RequiresPermission(Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
|
||||||
|
|||||||
Reference in New Issue
Block a user