OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
full:mlocationmanager
(Results
1 - 25
of
35
) sorted by null
1
2
/cts/tests/tests/location/src/android/location/cts/
LocationProviderTest.java
26
private LocationManager
mLocationManager
;
31
mLocationManager
= getInstrumentation().getContext().getSystemService(
39
mLocationManager
.clearTestProviderLocation(PROVIDER_NAME);
40
mLocationManager
.removeTestProvider(PROVIDER_NAME);
48
mLocationManager
.addTestProvider(
59
mLocationManager
.setTestProviderEnabled(providerName, true);
63
LocationProvider locationProvider =
mLocationManager
.getProvider(PROVIDER_NAME);
68
LocationProvider locationProvider =
mLocationManager
.getProvider(PROVIDER_NAME);
TestLocationManager.java
37
private LocationManager
mLocationManager
;
42
mLocationManager
=
53
mLocationManager
.removeUpdates(listener);
65
mLocationManager
.registerGnssMeasurementsCallback(callback);
83
mLocationManager
.registerGnssMeasurementsCallback(callback, handler);
99
mLocationManager
.unregisterGnssMeasurementsCallback(callback);
108
if (
mLocationManager
.getProvider(LocationManager.GPS_PROVIDER) != null) {
110
mLocationManager
.requestLocationUpdates(LocationManager.GPS_PROVIDER,
130
mLocationManager
.addGpsStatusListener(listener);
142
mLocationManager
.removeGpsStatusListener(listener)
[
all
...]
TestGpsStatusListener.java
38
private final LocationManager
mLocationManager
;
44
mLocationManager
= testLocationManager.getLocationManager();
51
mGpsStatus =
mLocationManager
.getGpsStatus(mGpsStatus);
/packages/apps/Camera2/src/com/android/camera/app/
LegacyLocationProvider.java
34
private android.location.LocationManager
mLocationManager
;
84
if (
mLocationManager
== null) {
85
mLocationManager
= AndroidServices.instance().provideLocationManager();
87
if (
mLocationManager
!= null) {
89
mLocationManager
.requestLocationUpdates(
100
mLocationManager
.requestLocationUpdates(
116
if (
mLocationManager
!= null) {
119
mLocationManager
.removeUpdates(mLocationListeners[i]);
/frameworks/base/location/java/android/location/
GnssMeasurementCallbackTransport.java
29
private final ILocationManager
mLocationManager
;
35
mLocationManager
= locationManager;
40
return
mLocationManager
.addGnssMeasurementsListener(
47
mLocationManager
.removeGnssMeasurementsListener(mListenerTransport);
GnssNavigationMessageCallbackTransport.java
29
private final ILocationManager
mLocationManager
;
37
mLocationManager
= locationManager;
42
return
mLocationManager
.addGnssNavigationMessageListener(
49
mLocationManager
.removeGnssNavigationMessageListener(mListenerTransport);
/cts/tests/tests/permission/src/android/permission/cts/
NoLocationPermissionTest.java
42
private LocationManager
mLocationManager
;
51
mLocationManager
= (LocationManager) mContext.getSystemService(
53
mAllProviders =
mLocationManager
.getAllProviders();
57
assertNotNull(
mLocationManager
);
142
mLocationManager
.requestLocationUpdates(provider, 0, 0, mockListener);
150
mLocationManager
.requestLocationUpdates(provider, 0, 0, mockListener, looper);
191
mLocationManager
.addProximityAlert(0, 0, 100, -1, mockPendingIntent);
211
mLocationManager
.getLastKnownLocation(provider);
254
mLocationManager
.getProvider(provider);
300
mLocationManager
.isProviderEnabled(provider)
[
all
...]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
GpsTestActivity.java
45
private LocationManager
mLocationManager
;
56
mLocationManager
= (LocationManager) getApplicationContext().getSystemService(
97
mLocationVerifier = new LocationVerifier(this,
mLocationManager
,
103
mLocationVerifier = new LocationVerifier(this,
mLocationManager
,
109
mLocationVerifier = new LocationVerifier(this,
mLocationManager
,
115
mLocationVerifier = new LocationVerifier(this,
mLocationManager
,
LocationListenerActivity.java
28
private LocationManager
mLocationManager
;
35
mLocationManager
= (LocationManager) getSystemService(LOCATION_SERVICE);
54
mLocationManager
.removeUpdates(mLocationListener);
75
mLocationManager
.requestLocationUpdates(
LocationVerifier.java
54
private final LocationManager
mLocationManager
;
205
mLocationManager
= locationManager;
219
mLocationManager
.requestLocationUpdates(LocationManager.PASSIVE_PROVIDER, 0, 0,
222
mLocationManager
.requestLocationUpdates(mProvider, mInterval, 0,
229
mLocationManager
.removeUpdates(mActiveListener);
231
mLocationManager
.removeUpdates(mPassiveListener);
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
LocationFacade.java
87
private final LocationManager
mLocationManager
;
119
mLocationManager
= (LocationManager) mService.getSystemService(Context.LOCATION_SERVICE);
130
return
mLocationManager
.getAllProviders();
136
return
mLocationManager
.isProviderEnabled(provider);
144
for (String provider :
mLocationManager
.getAllProviders()) {
145
mLocationManager
.requestLocationUpdates(provider, minUpdateTime, minUpdateDistance,
158
mLocationManager
.removeUpdates(mLocationListener);
165
for (String provider :
mLocationManager
.getAllProviders()) {
166
location.put(provider,
mLocationManager
.getLastKnownLocation(provider));
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
LocationStatsAggregator.java
62
private LocationManager
mLocationManager
;
77
mLocationManager
=
126
mLocationManager
.getLastKnownLocation(LocationManager.GPS_PROVIDER);
153
List<String> providers =
mLocationManager
.getAllProviders();
161
Location location =
mLocationManager
.getLastKnownLocation(provider);
190
String provider =
mLocationManager
.getBestProvider(mCriteria, true);
192
mLocationManager
.requestSingleUpdate(provider, mLocationListener,
230
mLocationManager
.removeUpdates(this);
/packages/apps/LegacyCamera/src/com/android/camera/
LocationManager.java
33
private android.location.LocationManager
mLocationManager
;
75
if (
mLocationManager
== null) {
76
mLocationManager
= (android.location.LocationManager)
79
if (
mLocationManager
!= null) {
81
mLocationManager
.requestLocationUpdates(
92
mLocationManager
.requestLocationUpdates(
108
if (
mLocationManager
!= null) {
111
mLocationManager
.removeUpdates(mLocationListeners[i]);
/frameworks/base/services/core/java/com/android/server/twilight/
TwilightService.java
63
private LocationManager
mLocationManager
;
121
mLocationManager
= (LocationManager) c.getSystemService(Context.LOCATION_SERVICE);
157
mLocationManager
.requestLocationUpdates(
161
if (
mLocationManager
.getLastLocation() == null) {
162
if (
mLocationManager
.isProviderEnabled(LocationManager.NETWORK_PROVIDER)) {
163
mLocationManager
.requestSingleUpdate(
165
} else if (
mLocationManager
.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
166
mLocationManager
.requestSingleUpdate(
202
mLocationManager
.removeUpdates(this);
210
:
mLocationManager
.getLastLocation()
[
all
...]
/frameworks/base/services/core/java/com/android/server/location/
LocationBasedCountryDetector.java
64
private LocationManager
mLocationManager
;
69
mLocationManager
= (LocationManager) ctx.getSystemService(Context.LOCATION_SERVICE);
101
mLocationManager
.requestLocationUpdates(provider, 0, 0, listener);
113
mLocationManager
.removeUpdates(listener);
125
List<String> providers =
mLocationManager
.getAllProviders();
128
Location lastKnownLocation =
mLocationManager
.getLastKnownLocation(provider);
152
mEnabledProviders =
mLocationManager
.getProviders(true);
PassiveProvider.java
50
private final ILocationManager
mLocationManager
;
54
mLocationManager
= locationManager;
103
mLocationManager
.reportLocation(location, true);
MockProvider.java
43
private final ILocationManager
mLocationManager
;
61
mLocationManager
= locationManager;
112
mLocationManager
.reportLocation(mLocation, false);
GeofenceManager.java
71
private final LocationManager
mLocationManager
;
111
mLocationManager
= (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE);
215
location =
mLocationManager
.getLastLocation();
316
mLocationManager
.requestLocationUpdates(request, this, mHandler.getLooper());
325
mLocationManager
.removeUpdates(this);
/frameworks/support/v7/appcompat/src/android/support/v7/app/
TwilightManager.java
58
private final LocationManager
mLocationManager
;
65
mLocationManager
= locationManager;
125
if (
mLocationManager
!= null) {
127
if (
mLocationManager
.isProviderEnabled(provider)) {
128
return
mLocationManager
.getLastKnownLocation(provider);
/frameworks/base/packages/FusedLocation/src/com/android/location/fused/
FusionEngine.java
51
private final LocationManager
mLocationManager
;
67
mLocationManager
= (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);
133
if (
mLocationManager
.isProviderEnabled(name)) {
138
mLocationManager
.requestLocationUpdates(name, minTime, 0, this, mLooper);
141
mLocationManager
.requestLocationUpdates(name, minTime, 0, this, mLooper);
152
mLocationManager
.removeUpdates(this); //TODO GLOBAL
/cts/tests/tests/webkit/src/android/webkit/cts/
GeolocationTest.java
107
private LocationManager
mLocationManager
;
162
mLocationManager
= (LocationManager)getActivity().getApplicationContext()
165
mProviders =
mLocationManager
.getAllProviders();
191
mLocationManager
.clearTestProviderEnabled(provider);
192
mLocationManager
.removeTestProvider(provider);
211
LocationProvider provider =
mLocationManager
.getProvider(providerName);
212
mLocationManager
.addTestProvider(provider.getName(),
222
mLocationManager
.setTestProviderEnabled(provider.getName(), true);
230
mLocationManager
.addTestProvider(
241
mLocationManager
.setTestProviderEnabled(TEST_PROVIDER_NAME, true)
[
all
...]
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/
ResourceConstructedImpl.java
47
private final LocationManager
mLocationManager
;
111
mLocationManager
= locationManager;
168
return
mLocationManager
;
/packages/apps/ContactsCommon/src/com/android/contacts/common/location/
CountryDetector.java
52
private final LocationManager
mLocationManager
;
87
mLocationManager
= locationManager;
91
registerForLocationUpdates(context,
mLocationManager
);
/development/samples/training/location-aware/src/com/example/android/location/
LocationActivity.java
52
private LocationManager
mLocationManager
;
114
mLocationManager
= (LocationManager) getSystemService(Context.LOCATION_SERVICE);
161
mLocationManager
.removeUpdates(listener);
169
mLocationManager
.removeUpdates(listener);
216
if (
mLocationManager
.isProviderEnabled(provider)) {
217
mLocationManager
.requestLocationUpdates(provider, TEN_SECONDS, TEN_METERS, listener);
218
location =
mLocationManager
.getLastKnownLocation(provider);
/frameworks/base/location/lib/java/com/android/location/provider/
LocationProviderBase.java
59
protected final ILocationManager
mLocationManager
;
118
mLocationManager
= ILocationManager.Stub.asInterface(b);
136
mLocationManager
.reportLocation(location, false);
Completed in 680 milliseconds
1
2