Search in sources :

Example 6 with LocationProvider

use of android.location.LocationProvider in project android_frameworks_base by DirtyUnicorns.

the class LocationManagerTest method testGetNetworkProvider.

public void testGetNetworkProvider() {
    LocationProvider p = manager.getProvider("network");
    assertNotNull(p);
}
Also used : LocationProvider(android.location.LocationProvider)

Example 7 with LocationProvider

use of android.location.LocationProvider in project android_frameworks_base by AOSPA.

the class LocationManagerTest method testGetBogusProvider.

public void testGetBogusProvider() {
    LocationProvider p = manager.getProvider("bogus");
    assertNull(p);
}
Also used : LocationProvider(android.location.LocationProvider)

Example 8 with LocationProvider

use of android.location.LocationProvider in project android_frameworks_base by AOSPA.

the class LocationManagerTest method testGetGpsProvider.

public void testGetGpsProvider() {
    LocationProvider p = manager.getProvider("gps");
    assertNotNull(p);
}
Also used : LocationProvider(android.location.LocationProvider)

Example 9 with LocationProvider

use of android.location.LocationProvider in project android_frameworks_base by AOSPA.

the class LocationManagerTest method testGpsTracklog.

public void testGpsTracklog() {
    LocationProvider p = manager.getProvider("gps");
    assertNotNull(p);
// TODO: test requestUpdates method
}
Also used : LocationProvider(android.location.LocationProvider)

Example 10 with LocationProvider

use of android.location.LocationProvider in project android_frameworks_base by ResurrectionRemix.

the class LocationManagerTest method testGetNetworkProvider.

public void testGetNetworkProvider() {
    LocationProvider p = manager.getProvider("network");
    assertNotNull(p);
}
Also used : LocationProvider(android.location.LocationProvider)

Aggregations

LocationProvider (android.location.LocationProvider)24