New Location Manager APIs for Criteria based requests and single shot mode.
Use MS-Assisted mode for single shot GPS fixes if it is supported. Add finer grained control over accuracy to the android.location.Criteria class and location criteria logic from LocationManager to LocationManagerService Change-Id: I156b1f6c6a45d255c87ff917cf3e9726a6d7a75b Signed-off-by: Mike Lockwood <lockwood@android.com>
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.server.location;
|
||||
|
||||
import android.location.Criteria;
|
||||
import android.location.Location;
|
||||
import android.net.NetworkInfo;
|
||||
import android.os.Bundle;
|
||||
@@ -35,6 +36,7 @@ public interface LocationProviderInterface {
|
||||
boolean supportsSpeed();
|
||||
boolean supportsBearing();
|
||||
int getPowerRequirement();
|
||||
boolean meetsCriteria(Criteria criteria);
|
||||
int getAccuracy();
|
||||
boolean isEnabled();
|
||||
void enable();
|
||||
@@ -42,6 +44,8 @@ public interface LocationProviderInterface {
|
||||
int getStatus(Bundle extras);
|
||||
long getStatusUpdateTime();
|
||||
void enableLocationTracking(boolean enable);
|
||||
/* returns false if single shot is not supported */
|
||||
boolean requestSingleShotFix();
|
||||
String getInternalState();
|
||||
void setMinTime(long minTime);
|
||||
void updateNetworkState(int state, NetworkInfo info);
|
||||
|
||||
Reference in New Issue
Block a user