Home
last modified time | relevance | path

Searched refs:mLocationController (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DLocationControllerImplTest.java42 private LocationControllerImpl mLocationController; field in LocationControllerImplTest
46 mLocationController = spy(new LocationControllerImpl(mContext, in setup()
55 mLocationController.removeCallback(this); in testRemoveSelfActive_DoesNotCrash()
58 mLocationController.addCallback(callback); in testRemoveSelfActive_DoesNotCrash()
59 mLocationController.addCallback(mock(LocationChangeCallback.class)); in testRemoveSelfActive_DoesNotCrash()
61 when(mLocationController.areActiveHighPowerLocationRequests()).thenReturn(false); in testRemoveSelfActive_DoesNotCrash()
62 mLocationController.onReceive(mContext, new Intent( in testRemoveSelfActive_DoesNotCrash()
64 when(mLocationController.areActiveHighPowerLocationRequests()).thenReturn(true); in testRemoveSelfActive_DoesNotCrash()
65 mLocationController.onReceive(mContext, new Intent( in testRemoveSelfActive_DoesNotCrash()
76 mLocationController.removeCallback(this); in testRemoveSelfSettings_DoesNotCrash()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarPolicy.java136 private final LocationController mLocationController; field in PhoneStatusBarPolicy
169 mLocationController = Dependency.get(LocationController.class); in PhoneStatusBarPolicy()
251 mLocationController.addCallback(this); in PhoneStatusBarPolicy()
279 mLocationController.removeCallback(this); in destroy()
305 if (mLocationController.isLocationActive()) { in updateLocation()