OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:locationManager
(Results
1 - 8
of
8
) sorted by null
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/
ExternalSharedPermsFLTest.java
22
import android.location.
LocationManager
;
33
LocationManager
locationManager
= (
LocationManager
)getInstrumentation().getContext(
35
locationManager
.requestLocationUpdates(
LocationManager
.GPS_PROVIDER, 0, 0,
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/
ExternalSharedPermsTest.java
22
import android.location.
LocationManager
;
38
LocationManager
locationManager
= (
LocationManager
)getInstrumentation().getContext(
40
locationManager
.requestLocationUpdates(
LocationManager
.GPS_PROVIDER, 0, 0,
/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/
ExternalSharedPermsDiffKeyTest.java
23
import android.location.
LocationManager
;
36
LocationManager
locationManager
= (
LocationManager
)getInstrumentation().getContext(
38
locationManager
.requestLocationUpdates(
LocationManager
.GPS_PROVIDER, 0, 0,
/development/tools/emulator/test-apps/GpsLocationTest/src/com/android/emulator/gps/test/
GpsLocationTest.java
21
import android.location.
LocationManager
;
35
private
LocationManager
locationManager
;
47
locationManager
= (
LocationManager
) getContext().
49
assertNotNull(
locationManager
);
61
locationManager
.requestLocationUpdates(
LocationManager
.GPS_PROVIDER, 0, 0, this,
72
locationManager
.removeUpdates(this);
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
LocationManagerTest.java
10
import android.location.
LocationManager
;
21
import static android.location.
LocationManager
.GPS_PROVIDER;
22
import static android.location.
LocationManager
.NETWORK_PROVIDER;
31
private
LocationManager
locationManager
;
36
locationManager
= (
LocationManager
) Robolectric.application.getSystemService(Context.LOCATION_SERVICE);
37
shadowLocationManager = shadowOf(
locationManager
);
42
Boolean enabled =
locationManager
.isProviderEnabled(GPS_PROVIDER);
44
enabled =
locationManager
.isProviderEnabled(NETWORK_PROVIDER)
[
all
...]
/frameworks/base/core/java/com/android/internal/app/
NetInitiatedActivity.java
30
import android.location.
LocationManager
;
140
LocationManager
locationManager
= (
LocationManager
)
142
locationManager
.sendNiResponse(notificationId, response);
/development/samples/training/location-aware/src/com/example/android/location/
LocationActivity.java
29
import android.location.
LocationManager
;
52
private
LocationManager
mLocationManager;
113
// Get a reference to the
LocationManager
object.
114
mLocationManager = (
LocationManager
) getSystemService(Context.LOCATION_SERVICE);
139
LocationManager
locationManager
=
140
(
LocationManager
) getSystemService(Context.LOCATION_SERVICE);
141
final boolean gpsEnabled =
locationManager
.isProviderEnabled(
LocationManager
.GPS_PROVIDER);
178
LocationManager
.GPS_PROVIDER, R.string.not_support_gps)
[
all
...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
ReverseGeocoder.java
23
import android.location.
LocationManager
;
113
LocationManager
locationManager
=
114
(
LocationManager
) mContext.getSystemService(Context.LOCATION_SERVICE);
116
List<String> providers =
locationManager
.getAllProviders();
119
location = (provider != null) ?
locationManager
.getLastKnownLocation(provider) : null;
Completed in 361 milliseconds