summaryrefslogtreecommitdiffstats
path: root/location
diff options
context:
space:
mode:
authorWilliam Clark <wclark@codeaurora.org>2015-10-13 13:17:05 -0700
committerSteve Kondik <steve@cyngn.com>2015-11-30 19:31:22 -0800
commit570d204c4765330e872806022bd25b7b89b936f8 (patch)
tree73d12c5a8a6aa6bb1f4c89660ae6d52a4a81f6da /location
parent114b9c670dabacd2f5e3e7b3f2ae8033221b800c (diff)
downloadframeworks_base-570d204c4765330e872806022bd25b7b89b936f8.zip
frameworks_base-570d204c4765330e872806022bd25b7b89b936f8.tar.gz
frameworks_base-570d204c4765330e872806022bd25b7b89b936f8.tar.bz2
Udpate instrumentation code
Added changes to support new features in QSSP Change-Id: I92c0a4eb3cb5363fbf08185f25644a3202c38788
Diffstat (limited to 'location')
-rw-r--r--location/java/android/location/LocationManager.java31
1 files changed, 13 insertions, 18 deletions
diff --git a/location/java/android/location/LocationManager.java b/location/java/android/location/LocationManager.java
index fd7e85c..4544814 100644
--- a/location/java/android/location/LocationManager.java
+++ b/location/java/android/location/LocationManager.java
@@ -348,7 +348,6 @@ public class LocationManager {
* @return list of Strings containing names of the providers
*/
public List<String> getProviders(boolean enabledOnly) {
- android.util.SeempLog.record(62);
try {
return mService.getProviders(null, enabledOnly);
} catch (RemoteException e) {
@@ -369,7 +368,6 @@ public class LocationManager {
* given provider.
*/
public LocationProvider getProvider(String name) {
- android.util.SeempLog.record(61);
checkProvider(name);
try {
ProviderProperties properties = mService.getProviderProperties(name);
@@ -394,7 +392,6 @@ public class LocationManager {
* @return list of Strings containing names of the providers
*/
public List<String> getProviders(Criteria criteria, boolean enabledOnly) {
- android.util.SeempLog.record(62);
checkCriteria(criteria);
try {
return mService.getProviders(criteria, enabledOnly);
@@ -427,7 +424,6 @@ public class LocationManager {
* @return name of the provider that best matches the requirements
*/
public String getBestProvider(Criteria criteria, boolean enabledOnly) {
- android.util.SeempLog.record(59);
checkCriteria(criteria);
try {
return mService.getBestProvider(criteria, enabledOnly);
@@ -460,7 +456,7 @@ public class LocationManager {
@RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
public void requestLocationUpdates(String provider, long minTime, float minDistance,
LocationListener listener) {
- android.util.SeempLog.record(64);
+ android.util.SeempLog.record(47);
checkProvider(provider);
checkListener(listener);
@@ -493,7 +489,7 @@ public class LocationManager {
@RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
public void requestLocationUpdates(String provider, long minTime, float minDistance,
LocationListener listener, Looper looper) {
- android.util.SeempLog.record(64);
+ android.util.SeempLog.record(47);
checkProvider(provider);
checkListener(listener);
@@ -527,7 +523,7 @@ public class LocationManager {
@RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
public void requestLocationUpdates(long minTime, float minDistance, Criteria criteria,
LocationListener listener, Looper looper) {
- android.util.SeempLog.record(64);
+ android.util.SeempLog.record(47);
checkCriteria(criteria);
checkListener(listener);
@@ -556,7 +552,7 @@ public class LocationManager {
@RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
public void requestLocationUpdates(String provider, long minTime, float minDistance,
PendingIntent intent) {
- android.util.SeempLog.record(64);
+ android.util.SeempLog.record(47);
checkProvider(provider);
checkPendingIntent(intent);
@@ -659,7 +655,7 @@ public class LocationManager {
@RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
public void requestLocationUpdates(long minTime, float minDistance, Criteria criteria,
PendingIntent intent) {
- android.util.SeempLog.record(64);
+ android.util.SeempLog.record(47);
checkCriteria(criteria);
checkPendingIntent(intent);
@@ -838,7 +834,7 @@ public class LocationManager {
@SystemApi
public void requestLocationUpdates(LocationRequest request, LocationListener listener,
Looper looper) {
- android.util.SeempLog.record(64);
+ android.util.SeempLog.record(47);
checkListener(listener);
requestLocationUpdates(request, listener, looper, null);
}
@@ -866,7 +862,7 @@ public class LocationManager {
*/
@SystemApi
public void requestLocationUpdates(LocationRequest request, PendingIntent intent) {
- android.util.SeempLog.record(64);
+ android.util.SeempLog.record(47);
checkPendingIntent(intent);
requestLocationUpdates(request, null, null, intent);
}
@@ -885,7 +881,7 @@ public class LocationManager {
private void requestLocationUpdates(LocationRequest request, LocationListener listener,
Looper looper, PendingIntent intent) {
- android.util.SeempLog.record(64);
+ android.util.SeempLog.record(47);
String packageName = mContext.getPackageName();
@@ -994,7 +990,7 @@ public class LocationManager {
@RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
public void addProximityAlert(double latitude, double longitude, float radius, long expiration,
PendingIntent intent) {
- android.util.SeempLog.record(58);
+ android.util.SeempLog.record(45);
checkPendingIntent(intent);
if (expiration < 0) expiration = Long.MAX_VALUE;
@@ -1154,7 +1150,6 @@ public class LocationManager {
* @throws IllegalArgumentException if provider is null
*/
public boolean isProviderEnabled(String provider) {
- android.util.SeempLog.record(63);
checkProvider(provider);
try {
@@ -1209,7 +1204,7 @@ public class LocationManager {
*/
@RequiresPermission(anyOf = {ACCESS_COARSE_LOCATION, ACCESS_FINE_LOCATION})
public Location getLastKnownLocation(String provider) {
- android.util.SeempLog.record(60);
+ android.util.SeempLog.record(46);
checkProvider(provider);
String packageName = mContext.getPackageName();
LocationRequest request = LocationRequest.createFromDeprecatedProvider(
@@ -1530,7 +1525,7 @@ public class LocationManager {
*/
@RequiresPermission(ACCESS_FINE_LOCATION)
public boolean addGpsStatusListener(GpsStatus.Listener listener) {
- android.util.SeempLog.record(56);
+ android.util.SeempLog.record(43);
boolean result;
if (mGpsStatusListeners.get(listener) != null) {
@@ -1578,7 +1573,7 @@ public class LocationManager {
*/
@RequiresPermission(ACCESS_FINE_LOCATION)
public boolean addNmeaListener(GpsStatus.NmeaListener listener) {
- android.util.SeempLog.record(57);
+ android.util.SeempLog.record(44);
boolean result;
if (mNmeaListeners.get(listener) != null) {
@@ -1697,7 +1692,7 @@ public class LocationManager {
* @return true if the command succeeds.
*/
public boolean sendExtraCommand(String provider, String command, Bundle extras) {
- android.util.SeempLog.record(65);
+ android.util.SeempLog.record(48);
try {
return mService.sendExtraCommand(provider, command, extras);
} catch (RemoteException e) {