Home
last modified time | relevance | path

Searched refs:LOCATION_SERVICE (Results 1 – 25 of 59) sorted by relevance

123

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
H A DApplicationFeatureProviderImplTest.java103 when(mContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in setUp()
275 when(spyContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in getKeepEnabledPackages_shouldContainDefaultPhoneAndSmsAndLocationHistory()
306 when(spyContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in getKeepEnabledPackages_hasEuiccComponent_shouldContainEuiccPackage()
328 when(spyContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in getKeepEnabledPackages_shouldContainSettingsIntelligence()
350 when(spyContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in getKeepEnabledPackages_shouldContainPackageInstaller()
/aosp12/frameworks/base/location/java/android/location/
H A DGeocoder.java67 IBinder b = ServiceManager.getService(Context.LOCATION_SERVICE); in isPresent()
88 ServiceManager.getService(Context.LOCATION_SERVICE)); in Geocoder()
/aosp12/packages/services/Car/car-lib/src/android/car/test/
H A DCarLocationTestHelper.java37 (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in injectLocation()
/aosp12/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsFL/src/com/android/framework/externalsharedpermsfltestapp/
H A DExternalSharedPermsFLTest.java34 ).getSystemService(Context.LOCATION_SERVICE); in testRunFineLocation()
/aosp12/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPerms/src/com/android/framework/externalsharedpermstestapp/
H A DExternalSharedPermsTest.java39 ).getSystemService(Context.LOCATION_SERVICE); in testRunLocationAndBluetooth()
/aosp12/frameworks/base/core/tests/hosttests/test-apps/ExternalSharedPermsDiffKey/src/com/android/framework/externalsharedpermsdiffkeytestapp/
H A DExternalSharedPermsDiffKeyTest.java37 ).getSystemService(Context.LOCATION_SERVICE); in testRunBluetoothAndFineLocation()
/aosp12/packages/services/Car/service/src/com/android/car/
H A DLocationManagerProxy.java42 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in LocationManagerProxy()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
H A DLocationManagerProxyTest.java51 when(mMockContext.getSystemService(Context.LOCATION_SERVICE)) in setUp()
/aosp12/system/extras/power_profile/gps_on/Application/src/main/java/com/example/android/powerprofile/gpson/
H A DGpsActivity.java67 mLocationManager = (LocationManager) this.getSystemService(Context.LOCATION_SERVICE); in initLocation()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
H A DTopLevelLocationPreferenceControllerTest.java43 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp()
H A DAppLocationPermissionPreferenceControllerTest.java48 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp()
/aosp12/system/chre/java/test/utils/src/com/google/android/utils/chre/
H A DSettingsUtil.java58 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in SettingsUtil()
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/p2p/
H A DWifiP2pPreferenceController.java74 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in WifiP2pPreferenceController()
/aosp12/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
H A DTmaForegroundService.java104 mLocationManager = (LocationManager) getSystemService(LOCATION_SERVICE); in doWork()
/aosp12/frameworks/base/core/java/android/os/
H A DSystemClock.java334 .asInterface(ServiceManager.getService(Context.LOCATION_SERVICE));
/aosp12/packages/apps/Settings/src/com/android/settings/location/
H A DAppLocationPermissionPreferenceController.java43 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in AppLocationPermissionPreferenceController()
H A DTopLevelLocationPreferenceController.java43 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in TopLevelLocationPreferenceController()
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
H A DNetworkPolicyTestUtils.java152 Context.LOCATION_SERVICE); in isLocationEnabled()
158 Context.LOCATION_SERVICE); in setLocationEnabled()
/aosp12/packages/apps/LegacyCamera/src/com/android/camera/
H A DLocationManager.java77 mContext.getSystemService(Context.LOCATION_SERVICE); in startReceivingLocationUpdates()
/aosp12/packages/apps/Camera2/src/com/android/camera/util/
H A DAndroidServices.java111 return (LocationManager) getSystemService(Context.LOCATION_SERVICE); in provideLocationManager()
/aosp12/frameworks/base/services/core/java/com/android/server/
H A DSensorNotificationService.java85 (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in onBootPhase()
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/
H A DWifiWakeupPreferenceController.java76 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in WifiWakeupPreferenceController()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/
H A DWifiP2PPreferenceControllerTest.java77 when(mContext.getSystemService(eq(Service.LOCATION_SERVICE))).thenReturn(mLocationManager); in setUp()
/aosp12/packages/apps/TV/common/src/com/android/tv/common/util/
H A DLocationUtils.java207 sApplicationContext.getSystemService(Context.LOCATION_SERVICE); in startLocationUpdates()
/aosp12/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
H A DLocationListeners.java123 mLocationMgr = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in LocationListeners()

123