Home
last modified time | relevance | path

Searched refs:stateChangeListener (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/
DTimeZoneDetectorStrategyImplTest.java231 TestStateChangeListener stateChangeListener = new TestStateChangeListener(); in testChangeListenerBehavior_currentUser() local
232 mTimeZoneDetectorStrategy.addChangeListener(stateChangeListener); in testChangeListenerBehavior_currentUser()
240 assertStateChangeNotificationsSent(stateChangeListener, 0); in testChangeListenerBehavior_currentUser()
249 assertStateChangeNotificationsSent(stateChangeListener, 1); in testChangeListenerBehavior_currentUser()
260 assertStateChangeNotificationsSent(stateChangeListener, 1); in testChangeListenerBehavior_currentUser()
273 TestStateChangeListener stateChangeListener = new TestStateChangeListener(); in testChangeListenerBehavior_otherUser() local
274 mTimeZoneDetectorStrategy.addChangeListener(stateChangeListener); in testChangeListenerBehavior_otherUser()
291 assertStateChangeNotificationsSent(stateChangeListener, 0); in testChangeListenerBehavior_otherUser()
864 TestStateChangeListener stateChangeListener = new TestStateChangeListener(); in testLocationAlgorithmEvent_statusChangesOnly() local
869 .registerStateChangeListener(stateChangeListener); in testLocationAlgorithmEvent_statusChangesOnly()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/smartspace/
DDreamSmartspaceControllerTest.kt193 val stateChangeListener = withArgCaptor<View.OnAttachStateChangeListener> { in testConnectOnViewCreate() constant
199 stateChangeListener.onViewAttachedToWindow(mockView) in testConnectOnViewCreate()
204 stateChangeListener.onViewDetachedFromWindow(mockView) in testConnectOnViewCreate()
228 controller.stateChangeListener.onViewAttachedToWindow(weatherView) in testConnectOnWeatherViewCreate()
245 controller.stateChangeListener.onViewAttachedToWindow(weatherView) in testAddListenerInController_registersListenerForWeatherPlugin()
268 controller.stateChangeListener.onViewAttachedToWindow(weatherView) in testDisconnect_emitsEmptyListAndRemovesNotifier()
272 controller.stateChangeListener.onViewDetachedFromWindow(weatherView) in testDisconnect_emitsEmptyListAndRemovesNotifier()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DTimeDetectorNetworkTimeHelper.java72 void setNetworkTimeUpdateListener(StateChangeListener stateChangeListener); in setNetworkTimeUpdateListener() argument
308 public void setNetworkTimeUpdateListener(StateChangeListener stateChangeListener) { in setNetworkTimeUpdateListener() argument
309 mTimeDetectorInternal.addNetworkTimeUpdateListener(stateChangeListener); in setNetworkTimeUpdateListener()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/lockscreen/
DLockscreenSmartspaceControllerTest.kt286 controller.stateChangeListener.onViewAttachedToWindow(view) in <lambda>()
339 controller.stateChangeListener.onViewDetachedFromWindow(dateSmartspaceView as View) in <lambda>()
340 controller.stateChangeListener.onViewDetachedFromWindow(weatherSmartspaceView as View) in <lambda>()
341 controller.stateChangeListener.onViewDetachedFromWindow(smartspaceView as View) in <lambda>()
733 controller.stateChangeListener.onViewDetachedFromWindow(dateSmartspaceView as View) in <lambda>()
734 controller.stateChangeListener.onViewDetachedFromWindow(weatherSmartspaceView as View) in <lambda>()
735 controller.stateChangeListener.onViewDetachedFromWindow(smartspaceView as View) in <lambda>()
836 controller.stateChangeListener.onViewAttachedToWindow(dateView) in <lambda>()
849 controller.stateChangeListener.onViewAttachedToWindow(weatherView) in <lambda>()
862 controller.stateChangeListener.onViewAttachedToWindow(view) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/smartspace/
DDreamSmartspaceController.kt101 var stateChangeListener = object : View.OnAttachStateChangeListener { in <lambda>() variable
170 stateChangeListener, customView) in <lambda>()
/frameworks/base/services/robotests/src/com/android/server/location/gnss/
DTimeDetectorNetworkTimeHelperTest.java316 public void setNetworkTimeUpdateListener(StateChangeListener stateChangeListener) { in setNetworkTimeUpdateListener() argument
317 mNetworkTimeUpdateListener = stateChangeListener; in setNetworkTimeUpdateListener()
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
DBlobStoreSession.java596 @NonNull Context context, @NonNull SessionStateChangeListener stateChangeListener) in createFromXml() argument
626 blobHandle, ownerUid, ownerPackageName, creationTimeMs, stateChangeListener); in createFromXml()
/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DTimeDetectorStrategyImplTest.java147 TestStateChangeListener stateChangeListener = new TestStateChangeListener(); in testChangeListenerBehavior() local
148 mTimeDetectorStrategy.addChangeListener(stateChangeListener); in testChangeListenerBehavior()
156 assertStateChangeNotificationsSent(stateChangeListener, 0); in testChangeListenerBehavior()
165 assertStateChangeNotificationsSent(stateChangeListener, 1); in testChangeListenerBehavior()
176 assertStateChangeNotificationsSent(stateChangeListener, 1); in testChangeListenerBehavior()
2469 TestStateChangeListener stateChangeListener, int expectedCount) { in assertStateChangeNotificationsSent() argument
2473 stateChangeListener.assertNotificationsReceivedAndReset(expectedCount); in assertStateChangeNotificationsSent()
/frameworks/base/services/core/java/com/android/server/timezonedetector/
DTimeZoneDetectorStrategyImpl.java267 StateChangeListener stateChangeListener = this::handleConfigurationInternalMaybeChanged; in TimeZoneDetectorStrategyImpl() local
268 mServiceConfigAccessor.addConfigurationInternalChangeListener(stateChangeListener); in TimeZoneDetectorStrategyImpl()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/
DLockscreenSmartspaceController.kt158 var stateChangeListener = object : View.OnAttachStateChangeListener { in <lambda>() variable
454 addOnAttachStateChangeListener(stateChangeListener) in <lambda>()
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorStrategyImpl.java206 StateChangeListener stateChangeListener = this::handleConfigurationInternalMaybeChanged; in TimeDetectorStrategyImpl() local
207 mServiceConfigAccessor.addConfigurationInternalChangeListener(stateChangeListener); in TimeDetectorStrategyImpl()