/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/ |
D | TimeZoneDetectorStrategyImplTest.java | 231 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/ |
D | DreamSmartspaceControllerTest.kt | 193 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/ |
D | TimeDetectorNetworkTimeHelper.java | 72 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/ |
D | LockscreenSmartspaceControllerTest.kt | 286 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/ |
D | DreamSmartspaceController.kt | 101 var stateChangeListener = object : View.OnAttachStateChangeListener { in <lambda>() variable 170 stateChangeListener, customView) in <lambda>()
|
/frameworks/base/services/robotests/src/com/android/server/location/gnss/ |
D | TimeDetectorNetworkTimeHelperTest.java | 316 public void setNetworkTimeUpdateListener(StateChangeListener stateChangeListener) { in setNetworkTimeUpdateListener() argument 317 mNetworkTimeUpdateListener = stateChangeListener; in setNetworkTimeUpdateListener()
|
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/ |
D | BlobStoreSession.java | 596 @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/ |
D | TimeDetectorStrategyImplTest.java | 147 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/ |
D | TimeZoneDetectorStrategyImpl.java | 267 StateChangeListener stateChangeListener = this::handleConfigurationInternalMaybeChanged; in TimeZoneDetectorStrategyImpl() local 268 mServiceConfigAccessor.addConfigurationInternalChangeListener(stateChangeListener); in TimeZoneDetectorStrategyImpl()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/ |
D | LockscreenSmartspaceController.kt | 158 var stateChangeListener = object : View.OnAttachStateChangeListener { in <lambda>() variable 454 addOnAttachStateChangeListener(stateChangeListener) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/timedetector/ |
D | TimeDetectorStrategyImpl.java | 206 StateChangeListener stateChangeListener = this::handleConfigurationInternalMaybeChanged; in TimeDetectorStrategyImpl() local 207 mServiceConfigAccessor.addConfigurationInternalChangeListener(stateChangeListener); in TimeDetectorStrategyImpl()
|