1{
2  "methods": {
3    "addGpsStatusListener(android.location.GpsStatus.Listener)": {
4      "isImplementation": true,
5      "modifiers": [
6        "protected"
7      ],
8      "params": [
9        "listener"
10      ],
11      "returnType": "boolean",
12      "exceptions": [],
13      "name": "addGpsStatusListener(android.location.GpsStatus.Listener)"
14    },
15    "addLocationListener(java.lang.String,android.location.LocationListener,long,float)": {
16      "isImplementation": false,
17      "modifiers": [
18        "private"
19      ],
20      "params": [
21        "provider",
22        "listener",
23        "minTime",
24        "minDistance"
25      ],
26      "returnType": "void",
27      "exceptions": [],
28      "name": "addLocationListener(java.lang.String,android.location.LocationListener,long,float)"
29    },
30    "cleanupRemovedLocationListeners()": {
31      "isImplementation": false,
32      "modifiers": [
33        "private"
34      ],
35      "params": [],
36      "returnType": "void",
37      "exceptions": [],
38      "name": "cleanupRemovedLocationListeners()"
39    },
40    "copyOf(android.location.Location)": {
41      "isImplementation": false,
42      "modifiers": [
43        "private"
44      ],
45      "params": [
46        "location"
47      ],
48      "returnType": "android.location.Location",
49      "exceptions": [],
50      "name": "copyOf(android.location.Location)"
51    },
52    "distanceBetween(android.location.Location,android.location.Location)": {
53      "isImplementation": false,
54      "modifiers": [
55        "private",
56        "static"
57      ],
58      "params": [
59        "location1",
60        "location2"
61      ],
62      "returnType": "float",
63      "exceptions": [],
64      "name": "distanceBetween(android.location.Location,android.location.Location)",
65      "documentation": "Returns the distance between the two locations in meters.\nAdapted from: http://stackoverflow.com/questions/837872/calculate-distance-in-meters-when-you-know-longitude-and-latitude-in-java\n"
66    },
67    "getAllProviders()": {
68      "isImplementation": true,
69      "modifiers": [
70        "protected"
71      ],
72      "params": [],
73      "returnType": "java.util.List\u003cjava.lang.String\u003e",
74      "exceptions": [],
75      "name": "getAllProviders()"
76    },
77    "getBestProvider(android.location.Criteria,boolean)": {
78      "isImplementation": true,
79      "modifiers": [
80        "protected"
81      ],
82      "params": [
83        "criteria",
84        "enabled"
85      ],
86      "returnType": "java.lang.String",
87      "exceptions": [],
88      "name": "getBestProvider(android.location.Criteria,boolean)"
89    },
90    "getBestProviderWithCriteria(android.location.Criteria,boolean)": {
91      "isImplementation": false,
92      "modifiers": [
93        "private"
94      ],
95      "params": [
96        "criteria",
97        "enabled"
98      ],
99      "returnType": "java.lang.String",
100      "exceptions": [],
101      "name": "getBestProviderWithCriteria(android.location.Criteria,boolean)"
102    },
103    "getBestProviderWithNoCriteria(boolean)": {
104      "isImplementation": false,
105      "modifiers": [
106        "private"
107      ],
108      "params": [
109        "enabled"
110      ],
111      "returnType": "java.lang.String",
112      "exceptions": [],
113      "name": "getBestProviderWithNoCriteria(boolean)"
114    },
115    "getContext()": {
116      "isImplementation": false,
117      "modifiers": [
118        "private"
119      ],
120      "params": [],
121      "returnType": "android.content.Context",
122      "exceptions": [],
123      "name": "getContext()"
124    },
125    "getLastBestProviderCriteria()": {
126      "isImplementation": false,
127      "modifiers": [
128        "public"
129      ],
130      "params": [],
131      "returnType": "android.location.Criteria",
132      "exceptions": [],
133      "name": "getLastBestProviderCriteria()",
134      "documentation": "Gets the criteria value used in the last call to {@link #getBestProvider(android.location.Criteria, boolean)}.\n\n@return the criteria used to find the best provider\n"
135    },
136    "getLastBestProviderEnabledOnly()": {
137      "isImplementation": false,
138      "modifiers": [
139        "public"
140      ],
141      "params": [],
142      "returnType": "boolean",
143      "exceptions": [],
144      "name": "getLastBestProviderEnabledOnly()",
145      "documentation": "Gets the enabled value used in the last call to {@link #getBestProvider(android.location.Criteria, boolean)}\n\n@return the enabled value used to find the best provider\n"
146    },
147    "getLastKnownLocation(java.lang.String)": {
148      "isImplementation": true,
149      "modifiers": [
150        "protected"
151      ],
152      "params": [
153        "provider"
154      ],
155      "returnType": "android.location.Location",
156      "exceptions": [],
157      "name": "getLastKnownLocation(java.lang.String)"
158    },
159    "getProviders(boolean)": {
160      "isImplementation": true,
161      "modifiers": [
162        "protected"
163      ],
164      "params": [
165        "enabledOnly"
166      ],
167      "returnType": "java.util.List\u003cjava.lang.String\u003e",
168      "exceptions": [],
169      "name": "getProviders(boolean)"
170    },
171    "getProvidersForListener(android.location.LocationListener)": {
172      "isImplementation": false,
173      "modifiers": [
174        "public"
175      ],
176      "params": [
177        "listener"
178      ],
179      "returnType": "java.util.Collection\u003cjava.lang.String\u003e",
180      "exceptions": [],
181      "name": "getProvidersForListener(android.location.LocationListener)"
182    },
183    "getRequestLocationUdpateCriteriaPendingIntents()": {
184      "isImplementation": false,
185      "modifiers": [
186        "public"
187      ],
188      "params": [],
189      "returnType": "java.util.Map\u003candroid.app.PendingIntent,android.location.Criteria\u003e",
190      "exceptions": [],
191      "name": "getRequestLocationUdpateCriteriaPendingIntents()"
192    },
193    "getRequestLocationUdpateProviderPendingIntents()": {
194      "isImplementation": false,
195      "modifiers": [
196        "public"
197      ],
198      "params": [],
199      "returnType": "java.util.Map\u003candroid.app.PendingIntent,java.lang.String\u003e",
200      "exceptions": [],
201      "name": "getRequestLocationUdpateProviderPendingIntents()"
202    },
203    "getRequestLocationUpdateListeners()": {
204      "isImplementation": false,
205      "modifiers": [
206        "public"
207      ],
208      "params": [],
209      "returnType": "java.util.List\u003candroid.location.LocationListener\u003e",
210      "exceptions": [],
211      "name": "getRequestLocationUpdateListeners()",
212      "documentation": "@return lastRequestedLocationUpdatesLocationListener\n"
213    },
214    "hasGpsStatusListener(android.location.GpsStatus.Listener)": {
215      "isImplementation": false,
216      "modifiers": [
217        "public"
218      ],
219      "params": [
220        "listener"
221      ],
222      "returnType": "boolean",
223      "exceptions": [],
224      "name": "hasGpsStatusListener(android.location.GpsStatus.Listener)"
225    },
226    "isLocationEnabledForUser(android.os.UserHandle)": {
227      "isImplementation": true,
228      "modifiers": [
229        "protected"
230      ],
231      "params": [
232        "userHandle"
233      ],
234      "returnType": "boolean",
235      "exceptions": [],
236      "minSdk": 28,
237      "name": "isLocationEnabledForUser(android.os.UserHandle)"
238    },
239    "isProviderEnabled(java.lang.String)": {
240      "isImplementation": true,
241      "modifiers": [
242        "protected"
243      ],
244      "params": [
245        "provider"
246      ],
247      "returnType": "boolean",
248      "exceptions": [],
249      "name": "isProviderEnabled(java.lang.String)"
250    },
251    "removeDuplicates(android.location.LocationListener,java.util.List\u003corg.robolectric.shadows.ShadowLocationManager.ListenerRegistration\u003e)": {
252      "isImplementation": false,
253      "modifiers": [
254        "private"
255      ],
256      "params": [
257        "listener",
258        "providerListeners"
259      ],
260      "returnType": "void",
261      "exceptions": [],
262      "name": "removeDuplicates(android.location.LocationListener,java.util.List\u003corg.robolectric.shadows.ShadowLocationManager.ListenerRegistration\u003e)"
263    },
264    "removeGpsStatusListener(android.location.GpsStatus.Listener)": {
265      "isImplementation": true,
266      "modifiers": [
267        "protected"
268      ],
269      "params": [
270        "listener"
271      ],
272      "returnType": "void",
273      "exceptions": [],
274      "name": "removeGpsStatusListener(android.location.GpsStatus.Listener)"
275    },
276    "removeUpdates(android.app.PendingIntent)": {
277      "isImplementation": true,
278      "modifiers": [
279        "protected"
280      ],
281      "params": [
282        "pendingIntent"
283      ],
284      "returnType": "void",
285      "exceptions": [],
286      "name": "removeUpdates(android.app.PendingIntent)"
287    },
288    "removeUpdates(android.location.LocationListener)": {
289      "isImplementation": true,
290      "modifiers": [
291        "protected"
292      ],
293      "params": [
294        "listener"
295      ],
296      "returnType": "void",
297      "exceptions": [],
298      "name": "removeUpdates(android.location.LocationListener)"
299    },
300    "requestLocationUpdates(java.lang.String,long,float,android.app.PendingIntent)": {
301      "isImplementation": true,
302      "modifiers": [
303        "protected"
304      ],
305      "params": [
306        "provider",
307        "minTime",
308        "minDistance",
309        "pendingIntent"
310      ],
311      "returnType": "void",
312      "exceptions": [],
313      "name": "requestLocationUpdates(java.lang.String,long,float,android.app.PendingIntent)"
314    },
315    "requestLocationUpdates(java.lang.String,long,float,android.location.LocationListener)": {
316      "isImplementation": true,
317      "modifiers": [
318        "protected"
319      ],
320      "params": [
321        "provider",
322        "minTime",
323        "minDistance",
324        "listener"
325      ],
326      "returnType": "void",
327      "exceptions": [],
328      "name": "requestLocationUpdates(java.lang.String,long,float,android.location.LocationListener)"
329    },
330    "requestLocationUpdates(java.lang.String,long,float,android.location.LocationListener,android.os.Looper)": {
331      "isImplementation": true,
332      "modifiers": [
333        "protected"
334      ],
335      "params": [
336        "provider",
337        "minTime",
338        "minDistance",
339        "listener",
340        "looper"
341      ],
342      "returnType": "void",
343      "exceptions": [],
344      "name": "requestLocationUpdates(java.lang.String,long,float,android.location.LocationListener,android.os.Looper)"
345    },
346    "requestLocationUpdates(long,float,android.location.Criteria,android.app.PendingIntent)": {
347      "isImplementation": true,
348      "modifiers": [
349        "protected"
350      ],
351      "params": [
352        "minTime",
353        "minDistance",
354        "criteria",
355        "pendingIntent"
356      ],
357      "returnType": "void",
358      "exceptions": [],
359      "name": "requestLocationUpdates(long,float,android.location.Criteria,android.app.PendingIntent)"
360    },
361    "setBestProvider(java.lang.String,boolean)": {
362      "isImplementation": false,
363      "modifiers": [
364        "public"
365      ],
366      "params": [
367        "provider",
368        "enabled"
369      ],
370      "returnType": "boolean",
371      "exceptions": [
372        "java.lang.Exception"
373      ],
374      "name": "setBestProvider(java.lang.String,boolean)"
375    },
376    "setBestProvider(java.lang.String,boolean,java.util.List\u003candroid.location.Criteria\u003e)": {
377      "isImplementation": false,
378      "modifiers": [
379        "public"
380      ],
381      "params": [
382        "provider",
383        "enabled",
384        "criteria"
385      ],
386      "returnType": "boolean",
387      "exceptions": [
388        "java.lang.Exception"
389      ],
390      "name": "setBestProvider(java.lang.String,boolean,java.util.List\u003candroid.location.Criteria\u003e)",
391      "documentation": "Sets the value to return from {@link #getBestProvider(android.location.Criteria, boolean)} for the given\n{@code provider}\n\n@param provider name of the provider who should be considered best\n@param enabled Enabled\n@param criteria List of criteria\n@throws Exception if provider is not known\n@return false If provider is not enabled but it is supposed to be set as the best enabled provider don\u0027t set it, otherwise true\n"
392    },
393    "setLastKnownLocation(java.lang.String,android.location.Location)": {
394      "isImplementation": false,
395      "modifiers": [
396        "public"
397      ],
398      "params": [
399        "provider",
400        "location"
401      ],
402      "returnType": "void",
403      "exceptions": [],
404      "name": "setLastKnownLocation(java.lang.String,android.location.Location)",
405      "documentation": "Sets the value to return from {@link #getLastKnownLocation(String)} for the given {@code provider}\n\n@param provider\n           name of the provider whose location to set\n@param location\n           the last known location for the provider\n"
406    },
407    "setLocationEnabledForUser(boolean,android.os.UserHandle)": {
408      "isImplementation": true,
409      "modifiers": [
410        "protected"
411      ],
412      "params": [
413        "enabled",
414        "userHandle"
415      ],
416      "returnType": "void",
417      "exceptions": [],
418      "minSdk": 28,
419      "name": "setLocationEnabledForUser(boolean,android.os.UserHandle)"
420    },
421    "setProviderEnabled(java.lang.String,boolean)": {
422      "isImplementation": false,
423      "modifiers": [
424        "public"
425      ],
426      "params": [
427        "provider",
428        "isEnabled"
429      ],
430      "returnType": "void",
431      "exceptions": [],
432      "name": "setProviderEnabled(java.lang.String,boolean)",
433      "documentation": "Sets the value to return from {@link #isProviderEnabled(String)} for the given {@code provider}\n\n@param provider\n           name of the provider whose status to set\n@param isEnabled\n           whether that provider should appear enabled\n"
434    },
435    "setProviderEnabled(java.lang.String,boolean,java.util.List\u003candroid.location.Criteria\u003e)": {
436      "isImplementation": false,
437      "modifiers": [
438        "public"
439      ],
440      "params": [
441        "provider",
442        "isEnabled",
443        "criteria"
444      ],
445      "returnType": "void",
446      "exceptions": [],
447      "name": "setProviderEnabled(java.lang.String,boolean,java.util.List\u003candroid.location.Criteria\u003e)"
448    },
449    "simulateLocation(android.location.Location)": {
450      "isImplementation": false,
451      "modifiers": [
452        "public"
453      ],
454      "params": [
455        "location"
456      ],
457      "returnType": "void",
458      "exceptions": [],
459      "name": "simulateLocation(android.location.Location)"
460    }
461  },
462  "imports": [
463    "android.os.Build.VERSION_CODES.P",
464    "android.app.PendingIntent",
465    "android.app.PendingIntent.CanceledException",
466    "android.content.Context",
467    "android.content.Intent",
468    "android.location.Criteria",
469    "android.location.GpsStatus.Listener",
470    "android.location.Location",
471    "android.location.LocationListener",
472    "android.location.LocationManager",
473    "android.os.Looper",
474    "android.os.UserHandle",
475    "java.util.ArrayList",
476    "java.util.Collection",
477    "java.util.HashMap",
478    "java.util.HashSet",
479    "java.util.Iterator",
480    "java.util.LinkedHashMap",
481    "java.util.LinkedHashSet",
482    "java.util.List",
483    "java.util.Map",
484    "java.util.Set",
485    "org.robolectric.annotation.Implementation",
486    "org.robolectric.annotation.Implements",
487    "org.robolectric.annotation.RealObject",
488    "org.robolectric.util.ReflectionHelpers",
489    "org.robolectric.shadows.ShadowLocationManager.ListenerRegistration",
490    "org.robolectric.shadows.ShadowLocationManager.LocationProviderEntry"
491  ],
492  "name": "org.robolectric.shadows.ShadowLocationManager"
493}