|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.location.LocationProvider
android.location.DummyLocationProvider
class DummyLocationProvider
A stub implementation of LocationProvider used by LocationManager. A DummyLocationProvider may be queried to determine the properties of the provider whcih it shadows, but does not actually provide location data.
| Field Summary | |
|---|---|
(package private) int |
mAccuracy
|
(package private) boolean |
mHasMonetaryCost
|
(package private) String |
mName
|
(package private) int |
mPowerRequirement
|
(package private) boolean |
mRequiresCell
|
(package private) boolean |
mRequiresNetwork
|
(package private) boolean |
mRequiresSatellite
|
(package private) boolean |
mSupportsAltitude
|
(package private) boolean |
mSupportsBearing
|
(package private) boolean |
mSupportsSpeed
|
| Fields inherited from class android.location.LocationProvider |
|---|
AVAILABLE, BAD_CHARS_REGEX, OUT_OF_SERVICE, TEMPORARILY_UNAVAILABLE |
| Constructor Summary | |
|---|---|
DummyLocationProvider(String name)
|
|
| Method Summary | |
|---|---|
int |
getAccuracy()
Returns a constant describing the horizontal accuracy returned by this provider. |
int |
getPowerRequirement()
Returns the power requirement for this provider. |
boolean |
hasMonetaryCost()
Returns true if the use of this provider may result in a monetary charge to the user, false if use is free. |
boolean |
requiresCell()
Returns true if the provider requires access to an appropriate cellular network (e.g., to make use of cell tower IDs), false otherwise. |
boolean |
requiresNetwork()
Returns true if the provider requires access to a data network (e.g., the Internet), false otherwise. |
boolean |
requiresSatellite()
Returns true if the provider requires access to a satellite-based positioning system (e.g., GPS), false otherwise. |
void |
setAccuracy(int accuracy)
|
void |
setHasMonetaryCost(boolean hasMonetaryCost)
|
void |
setPowerRequirement(int powerRequirement)
|
void |
setRequiresCell(boolean requiresCell)
|
void |
setRequiresNetwork(boolean requiresNetwork)
|
void |
setRequiresSatellite(boolean requiresSatellite)
|
void |
setSupportsAltitude(boolean supportsAltitude)
|
void |
setSupportsBearing(boolean supportsBearing)
|
void |
setSupportsSpeed(boolean supportsSpeed)
|
boolean |
supportsAltitude()
Returns true if the provider is able to provide altitude information, false otherwise. |
boolean |
supportsBearing()
Returns true if the provider is able to provide bearing information, false otherwise. |
boolean |
supportsSpeed()
Returns true if the provider is able to provide speed information, false otherwise. |
| Methods inherited from class android.location.LocationProvider |
|---|
getName, meetsCriteria |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
String mName
boolean mRequiresNetwork
boolean mRequiresSatellite
boolean mRequiresCell
boolean mHasMonetaryCost
boolean mSupportsAltitude
boolean mSupportsSpeed
boolean mSupportsBearing
int mPowerRequirement
int mAccuracy
| Constructor Detail |
|---|
DummyLocationProvider(String name)
| Method Detail |
|---|
public void setRequiresNetwork(boolean requiresNetwork)
public void setRequiresSatellite(boolean requiresSatellite)
public void setRequiresCell(boolean requiresCell)
public void setHasMonetaryCost(boolean hasMonetaryCost)
public void setSupportsAltitude(boolean supportsAltitude)
public void setSupportsSpeed(boolean supportsSpeed)
public void setSupportsBearing(boolean supportsBearing)
public void setPowerRequirement(int powerRequirement)
public void setAccuracy(int accuracy)
public boolean requiresNetwork()
requiresNetwork in class LocationProviderpublic boolean requiresSatellite()
requiresSatellite in class LocationProviderpublic boolean requiresCell()
requiresCell in class LocationProviderpublic boolean hasMonetaryCost()
hasMonetaryCost in class LocationProviderpublic boolean supportsAltitude()
supportsAltitude in class LocationProviderpublic boolean supportsSpeed()
supportsSpeed in class LocationProviderpublic boolean supportsBearing()
supportsBearing in class LocationProviderpublic int getPowerRequirement()
getPowerRequirement in class LocationProviderpublic int getAccuracy()
getAccuracy in class LocationProvider
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||