summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Mahajan <amitmahajan@google.com>2015-06-08 17:27:11 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-06-08 17:27:29 +0000
commit829c097761e39b608b8b965a2c03f11ce5a95d2b (patch)
tree3bce3bb125abe0c0a66528f5d374201ead0aa0c9
parent9b5e2124d0bc80370e80e0525e34a46eda61ded7 (diff)
parent2e7ca76a8a1b87c2ea6102ba14fe324cfe20f8ca (diff)
downloadframeworks_base-829c097761e39b608b8b965a2c03f11ce5a95d2b.zip
frameworks_base-829c097761e39b608b8b965a2c03f11ce5a95d2b.tar.gz
frameworks_base-829c097761e39b608b8b965a2c03f11ce5a95d2b.tar.bz2
Merge "Adding temporary logging to debug CTS failure (for CellLocationTest)." into mnc-dev
-rw-r--r--telephony/java/android/telephony/TelephonyManager.java15
1 files changed, 12 insertions, 3 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java
index cf182d4..64be410 100644
--- a/telephony/java/android/telephony/TelephonyManager.java
+++ b/telephony/java/android/telephony/TelephonyManager.java
@@ -803,17 +803,26 @@ public class TelephonyManager {
public CellLocation getCellLocation() {
try {
ITelephony telephony = getITelephony();
- if (telephony == null)
+ if (telephony == null) {
+ Rlog.d(TAG, "getCellLocation returning null because telephony is null");
return null;
+ }
Bundle bundle = telephony.getCellLocation(mContext.getOpPackageName());
- if (bundle.isEmpty()) return null;
+ if (bundle.isEmpty()) {
+ Rlog.d(TAG, "getCellLocation returning null because bundle is empty");
+ return null;
+ }
CellLocation cl = CellLocation.newFromBundle(bundle);
- if (cl.isEmpty())
+ if (cl.isEmpty()) {
+ Rlog.d(TAG, "getCellLocation returning null because CellLocation is empty");
return null;
+ }
return cl;
} catch (RemoteException ex) {
+ Rlog.d(TAG, "getCellLocation returning null due to RemoteException " + ex);
return null;
} catch (NullPointerException ex) {
+ Rlog.d(TAG, "getCellLocation returning null due to NullPointerException " + ex);
return null;
}
}