Home
last modified time | relevance | path

Searched refs:setLocationEnabledForUser (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DTopLevelLocationPreferenceControllerTest.java53 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()
DAppLocationPermissionPreferenceControllerTest.java62 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/tests/carservice_unit_test/src/com/android/car/user/
DCarUserServiceTest.java199 verify(mLocationManager).setLocationEnabledForUser( in testDisableLocationForHeadlessSystemUserOnFirstRun()
212 verify(mLocationManager, never()).setLocationEnabledForUser( in testDisableLocationForRegularSystemUserOnFirstRun()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowLocationManager.java32 protected void setLocationEnabledForUser(boolean enabled, UserHandle userHandle) { in setLocationEnabledForUser() method in ShadowLocationManager
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/preferences/
DWifiWakeupTogglePreferenceControllerTest.java232 mLocationManager.setLocationEnabledForUser(enabled, Process.myUserHandle()); in setLocationEnabled()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DLocationFragment.java205 getActivity().getSystemService(LocationManager.class).setLocationEnabledForUser( in writeLocationMode()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java355 locationManager.setLocationEnabledForUser( in setSystemUserRestrictions()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java630 mLocationManager.setLocationEnabledForUser(true, user); in startLocalOnly()