OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:locationManager
(Results
1 - 11
of
11
) sorted by null
/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
...]
/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);
/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,
/frameworks/base/services/java/com/android/server/location/
PassiveProvider.java
28
import android.location.
LocationManager
;
53
public PassiveProvider(ILocationManager
locationManager
) {
54
mLocationManager =
locationManager
;
59
return
LocationManager
.PASSIVE_PROVIDER;
MockProvider.java
57
public MockProvider(String name, ILocationManager
locationManager
,
62
mLocationManager =
locationManager
;
/frameworks/base/core/java/com/android/internal/app/
NetInitiatedActivity.java
30
import android.location.
LocationManager
;
140
LocationManager
locationManager
= (
LocationManager
)
142
locationManager
.sendNiResponse(notificationId, response);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
LocationVerifier.java
21
import android.location.
LocationManager
;
54
private final
LocationManager
mLocationManager;
104
assertMeanAndStdev(
LocationManager
.PASSIVE_PROVIDER, mPassiveDeltas, PASSIVE_MIN_MEAN_RATIO);
198
public LocationVerifier(PassFailLog cb,
LocationManager
locationManager
,
205
mLocationManager =
locationManager
;
219
mLocationManager.requestLocationUpdates(
LocationManager
.PASSIVE_PROVIDER, 0, 0,
/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;
/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
...]
Completed in 123 milliseconds