Search in sources :

Example 1 with LocationProvider

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

the class LocationManagerTest method testGetNetworkProvider.

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

Example 2 with LocationProvider

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

the class LocationManagerTest method testGetGpsProvider.

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

Example 3 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)

Example 4 with LocationProvider

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

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

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

the class LocationManagerTest method testGetGpsProvider.

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

Aggregations

LocationProvider (android.location.LocationProvider)29 Location (android.location.Location)2 Intent (android.content.Intent)1 SharedPreferences (android.content.SharedPreferences)1 AnimationDrawable (android.graphics.drawable.AnimationDrawable)1 Criteria (android.location.Criteria)1 LocationManager (android.location.LocationManager)1 Looper (android.os.Looper)1 IOException (java.io.IOException)1 Test (org.junit.Test)1 Config (org.robolectric.annotation.Config)1 ProviderProperties (org.robolectric.shadows.ShadowLocationManager.ProviderProperties)1