Merge "Per API review, revert the API renaming CL." into nyc-dev am: 03d3f4a6cb am: 869f32d810
am: 9b8b72748c
* commit '9b8b72748c555329564577d53e96a600bf1ea99b':
Per API review, revert the API renaming CL.
Change-Id: Id802ddda4cfd858366f6cb4206a9e1110feb5ad8
This commit is contained in:
@@ -36758,11 +36758,9 @@ package android.telecom {
|
||||
package android.telephony {
|
||||
|
||||
public class CarrierConfigManager {
|
||||
method public android.os.PersistableBundle getConfig(int);
|
||||
method public android.os.PersistableBundle getConfig();
|
||||
method public deprecated android.os.PersistableBundle getConfigForSubId(int);
|
||||
method public void notifyConfigChanged(int);
|
||||
method public deprecated void notifyConfigChangedForSubId(int);
|
||||
method public android.os.PersistableBundle getConfigForSubId(int);
|
||||
method public void notifyConfigChangedForSubId(int);
|
||||
field public static final java.lang.String ACTION_CARRIER_CONFIG_CHANGED = "android.telephony.action.CARRIER_CONFIG_CHANGED";
|
||||
field public static final java.lang.String KEY_ADDITIONAL_CALL_SETTING_BOOL = "additional_call_setting_bool";
|
||||
field public static final java.lang.String KEY_ALLOW_ADDING_APNS_BOOL = "allow_adding_apns_bool";
|
||||
|
||||
@@ -39689,12 +39689,10 @@ package android.telecom {
|
||||
package android.telephony {
|
||||
|
||||
public class CarrierConfigManager {
|
||||
method public android.os.PersistableBundle getConfig(int);
|
||||
method public android.os.PersistableBundle getConfig();
|
||||
method public deprecated android.os.PersistableBundle getConfigForSubId(int);
|
||||
method public android.os.PersistableBundle getConfigForSubId(int);
|
||||
method public static android.os.PersistableBundle getDefaultConfig();
|
||||
method public void notifyConfigChanged(int);
|
||||
method public deprecated void notifyConfigChangedForSubId(int);
|
||||
method public void notifyConfigChangedForSubId(int);
|
||||
method public void updateConfigForPhoneId(int, java.lang.String);
|
||||
field public static final java.lang.String ACTION_CARRIER_CONFIG_CHANGED = "android.telephony.action.CARRIER_CONFIG_CHANGED";
|
||||
field public static final java.lang.String KEY_ADDITIONAL_CALL_SETTING_BOOL = "additional_call_setting_bool";
|
||||
|
||||
@@ -36836,11 +36836,9 @@ package android.telecom {
|
||||
package android.telephony {
|
||||
|
||||
public class CarrierConfigManager {
|
||||
method public android.os.PersistableBundle getConfig(int);
|
||||
method public android.os.PersistableBundle getConfig();
|
||||
method public deprecated android.os.PersistableBundle getConfigForSubId(int);
|
||||
method public void notifyConfigChanged(int);
|
||||
method public deprecated void notifyConfigChangedForSubId(int);
|
||||
method public android.os.PersistableBundle getConfigForSubId(int);
|
||||
method public void notifyConfigChangedForSubId(int);
|
||||
field public static final java.lang.String ACTION_CARRIER_CONFIG_CHANGED = "android.telephony.action.CARRIER_CONFIG_CHANGED";
|
||||
field public static final java.lang.String KEY_ADDITIONAL_CALL_SETTING_BOOL = "additional_call_setting_bool";
|
||||
field public static final java.lang.String KEY_ALLOW_ADDING_APNS_BOOL = "allow_adding_apns_bool";
|
||||
|
||||
@@ -865,28 +865,9 @@ public class CarrierConfigManager {
|
||||
* @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
|
||||
* @return A {@link PersistableBundle} containing the config for the given subId, or default
|
||||
* values for an invalid subId.
|
||||
*
|
||||
* @deprecated use getConfig.
|
||||
*/
|
||||
@Nullable
|
||||
public PersistableBundle getConfigForSubId(int subId) {
|
||||
return getConfig(subId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the configuration values for a particular subscription, which is associated with a
|
||||
* specific SIM card. If an invalid subId is used, the returned config will contain default
|
||||
* values.
|
||||
*
|
||||
* <p>Requires Permission:
|
||||
* {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
|
||||
*
|
||||
* @param subId the subscription ID, normally obtained from {@link SubscriptionManager}.
|
||||
* @return A {@link PersistableBundle} containing the config for the given subId, or default
|
||||
* values for an invalid subId.
|
||||
*/
|
||||
@Nullable
|
||||
public PersistableBundle getConfig(int subId) {
|
||||
try {
|
||||
ICarrierConfigLoader loader = getICarrierConfigLoader();
|
||||
if (loader == null) {
|
||||
@@ -908,11 +889,11 @@ public class CarrierConfigManager {
|
||||
* <p>Requires Permission:
|
||||
* {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE}
|
||||
*
|
||||
* @return A {@link PersistableBundle} containing the config for the default subscription.
|
||||
* @see #getConfigForSubId
|
||||
*/
|
||||
@Nullable
|
||||
public PersistableBundle getConfig() {
|
||||
return getConfig(SubscriptionManager.getDefaultSubscriptionId());
|
||||
return getConfigForSubId(SubscriptionManager.getDefaultSubscriptionId());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -929,29 +910,8 @@ public class CarrierConfigManager {
|
||||
* {@link android.service.carrier.CarrierService#onLoadConfig} will be called from an
|
||||
* arbitrary thread.
|
||||
* </p>
|
||||
*
|
||||
* @deprecated use notifyConfigChanged.
|
||||
*/
|
||||
public void notifyConfigChangedForSubId(int subId) {
|
||||
notifyConfigChanged(subId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calling this method triggers telephony services to fetch the current carrier configuration.
|
||||
* <p>
|
||||
* Normally this does not need to be called because the platform reloads config on its own.
|
||||
* This should be called by a carrier service app if it wants to update config at an arbitrary
|
||||
* moment.
|
||||
* </p>
|
||||
* <p>Requires that the calling app has carrier privileges.
|
||||
* @see #hasCarrierPrivileges
|
||||
* <p>
|
||||
* This method returns before the reload has completed, and
|
||||
* {@link android.service.carrier.CarrierService#onLoadConfig} will be called from an
|
||||
* arbitrary thread.
|
||||
* </p>
|
||||
*/
|
||||
public void notifyConfigChanged(int subId) {
|
||||
try {
|
||||
ICarrierConfigLoader loader = getICarrierConfigLoader();
|
||||
if (loader == null) {
|
||||
|
||||
Reference in New Issue
Block a user