Rename ANAS to ANS
Rename ANAS to ANS
Bug: 117156243
Test: verified using developer options to enable and disable
Change-Id: I7fe454a5a0eee339461db064c683972846e11cc5
diff --git a/Android.bp b/Android.bp
index faad6f3..f1e154c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -560,7 +560,7 @@
"telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl",
"telephony/java/com/android/internal/telephony/ISms.aidl",
"telephony/java/com/android/internal/telephony/ISub.aidl",
- "telephony/java/com/android/internal/telephony/IAnas.aidl",
+ "telephony/java/com/android/internal/telephony/IAns.aidl",
"telephony/java/com/android/internal/telephony/ITelephony.aidl",
"telephony/java/com/android/internal/telephony/ITelephonyRegistry.aidl",
"telephony/java/com/android/internal/telephony/IWapPushManager.aidl",
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index ea9ac39..fdf8231 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -17,7 +17,6 @@
package android.telephony;
import static android.content.Context.TELECOM_SERVICE;
-
import static com.android.internal.util.Preconditions.checkNotNull;
import android.annotation.IntDef;
@@ -67,7 +66,7 @@
import com.android.internal.annotations.VisibleForTesting;
import com.android.internal.telecom.ITelecomService;
import com.android.internal.telephony.CellNetworkScanResult;
-import com.android.internal.telephony.IAnas;
+import com.android.internal.telephony.IAns;
import com.android.internal.telephony.IPhoneSubInfo;
import com.android.internal.telephony.ITelephony;
import com.android.internal.telephony.ITelephonyRegistry;
@@ -4391,8 +4390,8 @@
return ITelephonyRegistry.Stub.asInterface(ServiceManager.getService("telephony.registry"));
}
- private IAnas getIAnas() {
- return IAnas.Stub.asInterface(ServiceManager.getService("ianas"));
+ private IAns getIAns() {
+ return IAns.Stub.asInterface(ServiceManager.getService("ians"));
}
//
@@ -8579,10 +8578,10 @@
}
/**
- * Enable or disable AlternativeNetworkAccessService.
+ * Enable or disable AlternativeNetworkService.
*
* This method should be called to enable or disable
- * AlternativeNetworkAccess service on the device.
+ * AlternativeNetwork service on the device.
*
* <p>
* Requires Permission:
@@ -8593,25 +8592,25 @@
* @hide
*/
@RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE)
- public boolean setAlternativeNetworkAccessState(boolean enable) {
+ public boolean setAlternativeNetworkState(boolean enable) {
String pkgForDebug = mContext != null ? mContext.getOpPackageName() : "<unknown>";
boolean ret = false;
try {
- IAnas iAlternativeAccessService = getIAnas();
- if (iAlternativeAccessService != null) {
- ret = iAlternativeAccessService.setEnable(enable, pkgForDebug);
+ IAns iAlternativeNetworkService = getIAns();
+ if (iAlternativeNetworkService != null) {
+ ret = iAlternativeNetworkService.setEnable(enable, pkgForDebug);
}
} catch (RemoteException ex) {
- Rlog.e(TAG, "enableAlternativeNetworkAccess RemoteException", ex);
+ Rlog.e(TAG, "enableAlternativeNetwork RemoteException", ex);
}
return ret;
}
/**
- * is AlternativeNetworkAccessService enabled
+ * is AlternativeNetworkService enabled
*
- * This method should be called to determine if the AlternativeNetworkAccessService is
+ * This method should be called to determine if the AlternativeNetworkService is
* enabled
*
* <p>
@@ -8620,17 +8619,17 @@
* @hide
*/
@RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
- public boolean isAlternativeNetworkAccessEnabled() {
+ public boolean isAlternativeNetworkEnabled() {
String pkgForDebug = mContext != null ? mContext.getOpPackageName() : "<unknown>";
boolean isEnabled = false;
try {
- IAnas iAlternativeAccessService = getIAnas();
- if (iAlternativeAccessService != null) {
- isEnabled = iAlternativeAccessService.isEnabled(pkgForDebug);
+ IAns iAlternativeNetworkService = getIAns();
+ if (iAlternativeNetworkService != null) {
+ isEnabled = iAlternativeNetworkService.isEnabled(pkgForDebug);
}
} catch (RemoteException ex) {
- Rlog.e(TAG, "enableAlternativeNetworkAccess RemoteException", ex);
+ Rlog.e(TAG, "enableAlternativeNetwork RemoteException", ex);
}
return isEnabled;
diff --git a/telephony/java/com/android/internal/telephony/IAnas.aidl b/telephony/java/com/android/internal/telephony/IAns.aidl
similarity index 87%
rename from telephony/java/com/android/internal/telephony/IAnas.aidl
rename to telephony/java/com/android/internal/telephony/IAns.aidl
index 88d681a..6eb8d66 100755
--- a/telephony/java/com/android/internal/telephony/IAnas.aidl
+++ b/telephony/java/com/android/internal/telephony/IAns.aidl
@@ -17,13 +17,13 @@
package com.android.internal.telephony;
-interface IAnas {
+interface IAns {
/**
- * Enable or disable Alternative Network Access service.
+ * Enable or disable Alternative Network service.
*
* This method should be called to enable or disable
- * AlternativeNetworkAccess service on the device.
+ * AlternativeNetwork service on the device.
*
* <p>
* Requires Permission:
@@ -37,9 +37,9 @@
boolean setEnable(boolean enable, String callingPackage);
/**
- * is Alternative Network Access service enabled
+ * is Alternative Network service enabled
*
- * This method should be called to determine if the Alternative Network Access service is enabled
+ * This method should be called to determine if the Alternative Network service is enabled
*
* <p>
* Requires Permission: