/packages/apps/Camera2/src/com/android/camera/app/ |
D | LegacyLocationProvider.java | 34 private android.location.LocationManager mLocationManager; field in LegacyLocationProvider 84 if (mLocationManager == null) { in startReceivingLocationUpdates() 85 mLocationManager = AndroidServices.instance().provideLocationManager(); in startReceivingLocationUpdates() 87 if (mLocationManager != null) { in startReceivingLocationUpdates() 89 mLocationManager.requestLocationUpdates( in startReceivingLocationUpdates() 100 mLocationManager.requestLocationUpdates( in startReceivingLocationUpdates() 116 if (mLocationManager != null) { in stopReceivingLocationUpdates() 119 mLocationManager.removeUpdates(mLocationListeners[i]); in stopReceivingLocationUpdates()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | LocationManager.java | 33 private android.location.LocationManager mLocationManager; field in LocationManager 75 if (mLocationManager == null) { in startReceivingLocationUpdates() 76 mLocationManager = (android.location.LocationManager) in startReceivingLocationUpdates() 79 if (mLocationManager != null) { in startReceivingLocationUpdates() 81 mLocationManager.requestLocationUpdates( in startReceivingLocationUpdates() 92 mLocationManager.requestLocationUpdates( in startReceivingLocationUpdates() 108 if (mLocationManager != null) { in stopReceivingLocationUpdates() 111 mLocationManager.removeUpdates(mLocationListeners[i]); in stopReceivingLocationUpdates()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/ |
D | WifiWakeupPreferenceControllerTest.java | 55 private LocationManager mLocationManager; field in WifiWakeupPreferenceControllerTest 66 mController.mLocationManager = mLocationManager; in setUp() 70 doReturn(true).when(mLocationManager).isLocationEnabled(); in setUp() 103 doReturn(true).when(mLocationManager).isLocationEnabled(); in handlePreferenceTreeClick_wifiWakeupEnableScanningDisable_wifiWakeupEnable() 152 doReturn(false).when(mLocationManager).isLocationEnabled(); in updateState_preferenceSetUncheckedWhenWakeupSettingEnabledNoLocation() 165 doReturn(false).when(mLocationManager).isLocationEnabled(); in updateState_preferenceSetUncheckedWhenWakeupSettingDisabledLocationEnabled() 179 doReturn(false).when(mLocationManager).isLocationEnabled(); in updateState_preferenceSetUncheckedWhenWifiScanningDisabledLocationEnabled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/ |
D | TopLevelLocationPreferenceControllerTest.java | 37 private LocationManager mLocationManager; field in TopLevelLocationPreferenceControllerTest 43 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp() 53 mLocationManager.setLocationEnabledForUser(false, android.os.Process.myUserHandle()); in getSummary_whenLocationIsOff_shouldReturnStringForOff() 60 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationIsOn_shouldShowLoadingString() 68 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationAppCountIsOne_shouldShowSingularString() 79 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationAppCountIsGreaterThanOne_shouldShowPluralString()
|
D | AppLocationPermissionPreferenceControllerTest.java | 32 private LocationManager mLocationManager; field in AppLocationPermissionPreferenceControllerTest 41 mLocationManager = (LocationManager) mContext.getSystemService(Context.LOCATION_SERVICE); in setUp() 62 mLocationManager.setLocationEnabledForUser(false, android.os.Process.myUserHandle()); in getSummary_whenLocationIsOff_shouldReturnStringForOff() 70 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationIsOn_shouldReturnLoadingString() 78 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationAppCountIsOne_shouldShowSingularString() 88 mLocationManager.setLocationEnabledForUser(true, android.os.Process.myUserHandle()); in getSummary_whenLocationAppCountIsGreaterThanOne_shouldShowPluralString()
|
/packages/services/Car/service/src/com/android/car/ |
D | LocationManagerProxy.java | 31 private final LocationManager mLocationManager; field in LocationManagerProxy 40 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in LocationManagerProxy() 45 return mLocationManager.isLocationEnabled(); in isLocationEnabled() 50 return mLocationManager.injectLocation(location); in injectLocation() 58 return mLocationManager.getLastKnownLocation(provider); in getLastKnownLocation()
|
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/preferences/ |
D | WifiWakeupTogglePreferenceController.java | 43 private final LocationManager mLocationManager; field in WifiWakeupTogglePreferenceController 48 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in WifiWakeupTogglePreferenceController() 70 && mLocationManager.isLocationEnabled()); in updateState() 71 if (!mLocationManager.isLocationEnabled()) { in updateState() 80 if (!mLocationManager.isLocationEnabled()) { in handlePreferenceClicked() 147 if (mLocationManager.isLocationEnabled()) { in onWifiScanningEnabled()
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiWakeupPreferenceController.java | 61 LocationManager mLocationManager; field in WifiWakeupPreferenceController 75 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in WifiWakeupPreferenceController() 107 if (!mLocationManager.isLocationEnabled()) { in handlePreferenceTreeClick() 135 if (!mLocationManager.isLocationEnabled()) { in updateState() 153 if (mLocationManager.isLocationEnabled() && getWifiScanningEnabled()) { in onActivityResult() 182 && mLocationManager.isLocationEnabled(); in isWifiWakeupAvailable()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/ |
D | WifiWakeupPreferenceController.java | 61 LocationManager mLocationManager; field in WifiWakeupPreferenceController 75 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in WifiWakeupPreferenceController() 100 if (!mLocationManager.isLocationEnabled()) { in handlePreferenceTreeClick() 129 && mLocationManager.isLocationEnabled()); in updateState() 130 if (!mLocationManager.isLocationEnabled()) { in updateState() 148 if (mLocationManager.isLocationEnabled()) { in onActivityResult()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/location/ |
D | LocationSettingsFragmentTest.java | 48 private LocationManager mLocationManager; field in LocationSettingsFragmentTest 54 mLocationManager = (LocationManager) RuntimeEnvironment.application in setUp() 83 assertThat(mLocationManager.isLocationEnabled()).isTrue(); in locationSwitch_checked_enablesLocation() 91 assertThat(mLocationManager.isLocationEnabled()).isTrue(); in locationSwitch_unchecked_disablesLocation() 95 assertThat(mLocationManager.isLocationEnabled()).isFalse(); in locationSwitch_unchecked_disablesLocation()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/ |
D | ApplicationFeatureProviderImplTest.java | 89 private LocationManager mLocationManager; field in ApplicationFeatureProviderImplTest 102 when(mContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in setUp() 273 when(mLocationManager.getExtraLocationControllerPackage()).thenReturn(testLocationHistory); in getKeepEnabledPackages_shouldContainDefaultPhoneAndSmsAndLocationHistory() 274 when(spyContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in getKeepEnabledPackages_shouldContainDefaultPhoneAndSmsAndLocationHistory() 297 when(mLocationManager.getExtraLocationControllerPackage()).thenReturn(testLocationHistory); in getKeepEnabledPackages_shouldContainSettingsIntelligence() 298 when(spyContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in getKeepEnabledPackages_shouldContainSettingsIntelligence() 319 when(mLocationManager.getExtraLocationControllerPackage()).thenReturn(testLocationHistory); in getKeepEnabledPackages_shouldContainPackageInstaller() 320 when(spyContext.getSystemService(Context.LOCATION_SERVICE)).thenReturn(mLocationManager); in getKeepEnabledPackages_shouldContainPackageInstaller()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/p2p/ |
D | WifiP2PPreferenceControllerTest.java | 65 private LocationManager mLocationManager; field in WifiP2PPreferenceControllerTest 78 when(mContext.getSystemService(eq(Service.LOCATION_SERVICE))).thenReturn(mLocationManager); in setUp() 104 when(mLocationManager.isLocationEnabled()).thenReturn(true); in testWifiStateChange_shouldToggleEnabledState() 122 when(mLocationManager.isLocationEnabled()).thenReturn(true); in testDisplayPreference_shouldToggleEnabledState() 131 when(mLocationManager.isLocationEnabled()).thenReturn(false); in testDisplayPreference_shouldToggleEnabledState()
|
/packages/apps/Car/Settings/src/com/android/car/settings/location/ |
D | LocationSettingsFragment.java | 46 private LocationManager mLocationManager; field in LocationSettingsFragment 51 mLocationSwitch.setChecked(mLocationManager.isLocationEnabled()); 84 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in onAttach() 91 mLocationSwitch.setChecked(mLocationManager.isLocationEnabled()); in onStart()
|
D | RecentLocationRequestsEntryPreferenceController.java | 41 private final LocationManager mLocationManager; field in RecentLocationRequestsEntryPreferenceController 52 mLocationManager = (LocationManager) getContext().getSystemService( in RecentLocationRequestsEntryPreferenceController() 64 preference.setEnabled(mLocationManager.isLocationEnabled()); in updateState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/location/ |
D | AppLocationPermissionPreferenceController.java | 33 private final LocationManager mLocationManager; field in AppLocationPermissionPreferenceController 38 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in AppLocationPermissionPreferenceController() 54 if (mLocationManager.isLocationEnabled()) { in getSummary() 73 if (!mLocationManager.isLocationEnabled()) { in updateState()
|
D | TopLevelLocationPreferenceController.java | 28 private final LocationManager mLocationManager; field in TopLevelLocationPreferenceController 36 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in TopLevelLocationPreferenceController() 46 if (mLocationManager.isLocationEnabled()) { in getSummary() 70 if (!mLocationManager.isLocationEnabled()) { in updateState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/p2p/ |
D | WifiP2pPreferenceController.java | 54 private final LocationManager mLocationManager; field in WifiP2pPreferenceController 73 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in WifiP2pPreferenceController() 86 preference.setEnabled(mLocationManager.isLocationEnabled() && mWifiManager.isWifiEnabled()); in updateState() 115 && mLocationManager.isLocationEnabled()); in togglePreferences()
|
/packages/apps/Settings/src/com/android/settings/wifi/p2p/ |
D | WifiP2pPreferenceController.java | 54 private final LocationManager mLocationManager; field in WifiP2pPreferenceController 73 mLocationManager = (LocationManager) context.getSystemService(Service.LOCATION_SERVICE); in WifiP2pPreferenceController() 86 preference.setEnabled(mLocationManager.isLocationEnabled() && mWifiManager.isWifiEnabled()); in updateState() 115 && mLocationManager.isLocationEnabled()); in togglePreferences()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | AppLocationPermissionPreferenceController.java | 40 private final LocationManager mLocationManager; field in AppLocationPermissionPreferenceController 45 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in AppLocationPermissionPreferenceController() 61 if (mLocationManager.isLocationEnabled()) { in getSummary() 85 if (!mLocationManager.isLocationEnabled() || in updateState()
|
D | TopLevelLocationPreferenceController.java | 33 private final LocationManager mLocationManager; field in TopLevelLocationPreferenceController 43 mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE); in TopLevelLocationPreferenceController() 53 if (mLocationManager.isLocationEnabled()) { in getSummary() 77 if (!mLocationManager.isLocationEnabled() || in updateState()
|
/packages/apps/Camera2/src/com/android/camera/captureintent/resource/ |
D | ResourceConstructedImpl.java | 47 private final LocationManager mLocationManager; field in ResourceConstructedImpl 111 mLocationManager = locationManager; in ResourceConstructedImpl() 168 return mLocationManager; in getLocationManager()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 75 private LocationManager mLocationManager; field in CarUserServiceTest 98 doReturn(mLocationManager).when(mMockContext).getSystemService(Context.LOCATION_SERVICE); in setUpMocks() 199 verify(mLocationManager).setLocationEnabledForUser( in testDisableLocationForHeadlessSystemUserOnFirstRun() 212 verify(mLocationManager, never()).setLocationEnabledForUser( in testDisableLocationForRegularSystemUserOnFirstRun()
|
/packages/services/Telephony/tests/src/com/android/phone/ |
D | LocationAccessPolicyTest.java | 154 @Mock LocationManager mLocationManager; field in LocationAccessPolicyTest 162 mockContextSystemService(LocationManager.class, mLocationManager); in setUp() 205 when(mLocationManager.isLocationEnabledForUser(any(UserHandle.class))).thenReturn(true); in setupScenario() 210 when(mLocationManager.isLocationEnabledForUser(any(UserHandle.class))) in setupScenario()
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | CellBroadcastHandler.java | 623 private final LocationManager mLocationManager; field in CellBroadcastHandler.LocationRequester 630 mLocationManager = locationManager; in LocationRequester() 682 if (mLocationManager.isProviderEnabled(provider)) { in requestLocationUpdateInternal() 683 mLocationManager.requestSingleUpdate(provider, mLocationListener, mLooper); in requestLocationUpdateInternal() 693 if (mLocationManager.isProviderEnabled(provider)) return true; in isLocationServiceAvailable()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/preferences/ |
D | WifiWakeupTogglePreferenceControllerTest.java | 60 private LocationManager mLocationManager; field in WifiWakeupTogglePreferenceControllerTest 66 mLocationManager = (LocationManager) mContext.getSystemService(Service.LOCATION_SERVICE); in setUp() 232 mLocationManager.setLocationEnabledForUser(enabled, Process.myUserHandle()); in setLocationEnabled()
|