Methods Summary |
---|
public void | clearLocation()
mHasLocation = false;
|
public void | clearStatus()
mHasStatus = false;
mStatusUpdateTime = 0;
|
public void | disable()
mEnabled = false;
|
public void | dump(java.io.FileDescriptor fd, java.io.PrintWriter pw, java.lang.String[] args)
dump(pw, "");
|
public void | dump(java.io.PrintWriter pw, java.lang.String prefix)
pw.println(prefix + mName);
pw.println(prefix + "mHasLocation=" + mHasLocation);
pw.println(prefix + "mLocation:");
mLocation.dump(new PrintWriterPrinter(pw), prefix + " ");
pw.println(prefix + "mHasStatus=" + mHasStatus);
pw.println(prefix + "mStatus=" + mStatus);
pw.println(prefix + "mStatusUpdateTime=" + mStatusUpdateTime);
pw.println(prefix + "mExtras=" + mExtras);
|
public void | enable()
mEnabled = true;
|
public java.lang.String | getName()
return mName;
|
public com.android.internal.location.ProviderProperties | getProperties()
return mProperties;
|
public int | getStatus(android.os.Bundle extras)
if (mHasStatus) {
extras.clear();
extras.putAll(mExtras);
return mStatus;
} else {
return LocationProvider.AVAILABLE;
}
|
public long | getStatusUpdateTime()
return mStatusUpdateTime;
|
public boolean | isEnabled()
return mEnabled;
|
public boolean | sendExtraCommand(java.lang.String command, android.os.Bundle extras)
return false;
|
public void | setLocation(android.location.Location l)
mLocation.set(l);
mHasLocation = true;
if (mEnabled) {
try {
mLocationManager.reportLocation(mLocation, false);
} catch (RemoteException e) {
Log.e(TAG, "RemoteException calling reportLocation");
}
}
|
public void | setRequest(com.android.internal.location.ProviderRequest request, android.os.WorkSource source)
|
public void | setStatus(int status, android.os.Bundle extras, long updateTime)
mStatus = status;
mStatusUpdateTime = updateTime;
mExtras.clear();
if (extras != null) {
mExtras.putAll(extras);
}
mHasStatus = true;
|