Search in sources :

Example 16 with LocationProvider

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

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 17 with LocationProvider

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

the class LocationManagerTest method testGetBogusProvider.

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

Example 18 with LocationProvider

use of android.location.LocationProvider in project platform_frameworks_base by android.

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 19 with LocationProvider

use of android.location.LocationProvider in project platform_frameworks_base by android.

the class LocationManagerTest method testGetNetworkProvider.

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

Example 20 with LocationProvider

use of android.location.LocationProvider in project platform_frameworks_base by android.

the class LocationManagerTest method testGetBogusProvider.

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

Aggregations

LocationProvider (android.location.LocationProvider)27 Intent (android.content.Intent)1 SharedPreferences (android.content.SharedPreferences)1 AnimationDrawable (android.graphics.drawable.AnimationDrawable)1 Criteria (android.location.Criteria)1 Location (android.location.Location)1 LocationManager (android.location.LocationManager)1 Looper (android.os.Looper)1 IOException (java.io.IOException)1