summaryrefslogtreecommitdiffstats
path: root/telephony/java
diff options
context:
space:
mode:
authorStuart Scott <stuartscott@google.com>2015-01-29 01:58:53 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-01-29 01:58:53 +0000
commit8d702000a7291068e639a9954e03c36d66144449 (patch)
tree69861d26cb2f1adbd14f1a9f45d4d6df4ef08241 /telephony/java
parent820d5c52b7e65bffeb4291887f5a1011e7ce971e (diff)
parentf4e52360613d20dc8176ce8a37cb05ad904fad0d (diff)
downloadframeworks_base-8d702000a7291068e639a9954e03c36d66144449.zip
frameworks_base-8d702000a7291068e639a9954e03c36d66144449.tar.gz
frameworks_base-8d702000a7291068e639a9954e03c36d66144449.tar.bz2
Merge "Change getDeviceId to take phoneId." into lmp-mr1-dev
automerge: f4e5236 * commit 'f4e52360613d20dc8176ce8a37cb05ad904fad0d': Change getDeviceId to take phoneId.
Diffstat (limited to 'telephony/java')
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java8
-rw-r--r--telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl4
2 files changed, 4 insertions, 8 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index 8d438e3..526a3b2 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -640,13 +640,9 @@ public class TelephonyManager {
*/
/** {@hide} */
public String getDeviceId(int slotId) {
- // FIXME methods taking slot id should not use subscription, instead us Uicc directly
- int[] subId = SubscriptionManager.getSubId(slotId);
- if (subId == null || subId.length == 0) {
- return null;
- }
+ // FIXME this assumes phoneId == slotId
try {
- return getSubscriberInfo().getDeviceIdForSubscriber(subId[0]);
+ return getSubscriberInfo().getDeviceIdForPhone(slotId);
} catch (RemoteException ex) {
return null;
} catch (NullPointerException ex) {
diff --git a/telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl b/telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl
index eec5333..c91a59c 100644
--- a/telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl
+++ b/telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl
@@ -33,10 +33,10 @@ interface IPhoneSubInfo {
String getNaiForSubscriber(int subId);
/**
- * Retrieves the unique device ID of a subId for the device, e.g., IMEI
+ * Retrieves the unique device ID of a phone for the device, e.g., IMEI
* for GSM phones.
*/
- String getDeviceIdForSubscriber(int subId);
+ String getDeviceIdForPhone(int phoneId);
/**
* Retrieves the IMEI.