summaryrefslogtreecommitdiff
path: root/location/java/com
diff options
context:
space:
mode:
author Shuo Qian <shuoq@google.com> 2017-04-12 22:11:17 +0000
committer Shuo Qian <shuoq@google.com> 2017-04-12 22:36:00 +0000
commitcfe9e61ce4029da61b973f5b80fccafdde4c9cc3 (patch)
tree82f642cc6aded018c347959326912c665a43af5b /location/java/com
parentc240c9b134fe4d1843433e76c0f6721bd712918c (diff)
ECBM SystemProperty cleanup
- Add getEmergencyCallbackMode() method in the TelephonyManager.java to get the boolean value for ECBM callback mode from the phone through ITelephony.aidl/java interface - Use the added TelephonyManager Api to replace the 'get' of PROPERTY_INECM_MODE system property in the framework/base Change-Id: I83fbdeef5c0b43a8fc16ece044c9e191e9922bce Test: manual Bug: 30361624
Diffstat (limited to 'location/java/com')
-rw-r--r--location/java/com/android/internal/location/GpsNetInitiatedHandler.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java
index 4c39c308ef87..6bc5e917aa32 100644
--- a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java
+++ b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java
@@ -242,8 +242,7 @@ public class GpsNetInitiatedHandler {
}
public boolean getInEmergency() {
- boolean isInEmergencyCallback = Boolean.parseBoolean(
- SystemProperties.get(TelephonyProperties.PROPERTY_INECM_MODE));
+ boolean isInEmergencyCallback = mTelephonyManager.getEmergencyCallbackMode();
return mIsInEmergency || isInEmergencyCallback;
}