OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:locationManager
(Results
1 - 15
of
15
) 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,
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/
ApplicationComponent.java
19
import android.location.
LocationManager
;
34
LocationManager
locationManager
();
DemoApplication.java
19
import android.location.
LocationManager
;
27
@Inject
LocationManager
locationManager
; // to illustrate injecting something into the app.
/external/dagger2/examples/android-activity-graphs/src/main/java/com/example/dagger/activitygraphs/ui/
HomeActivity.java
18
import android.location.
LocationManager
;
26
@Inject
LocationManager
locationManager
;
/external/dagger2/examples/android-simple/src/main/java/com/example/dagger/simple/ui/
HomeActivity.java
18
import android.location.
LocationManager
;
26
@Inject
LocationManager
locationManager
;
33
Log.d("HomeActivity",
locationManager
.toString());
/development/tools/emulator/test-apps/SmokeTests/src/com/android/emulator/smoketests/gps/
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/dagger2/examples/android-simple/src/main/java/com/example/dagger/simple/
DemoApplication.java
19
import android.location.
LocationManager
;
37
@Inject
LocationManager
locationManager
; // for some reason.
46
component().inject(this); // As of now,
LocationManager
should be injected into this.
/external/robolectric/v1/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
;
139
LocationManager
locationManager
= (
LocationManager
)
141
locationManager
.sendNiResponse(notificationId, response);
/packages/apps/ContactsCommon/src/com/android/contacts/common/location/
CountryDetector.java
10
import android.location.
LocationManager
;
37
* 4) Location updates only uses the {@link
LocationManager
#PASSIVE_PROVIDER} to avoid active use
52
private final
LocationManager
mLocationManager;
80
(
LocationManager
) context.getSystemService(Context.LOCATION_SERVICE),
85
LocationManager
locationManager
, LocaleProvider localeProvider) {
87
mLocationManager =
locationManager
;
95
LocationManager
locationManager
) {
111
locationManager
.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER
[
all
...]
/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;
/prebuilts/sdk/current/support/v7/appcompat/libs/
android-support-v7-appcompat.jar
Completed in 5110 milliseconds