Home
last modified time | relevance | path

Searched refs:onStateChanged (Results 1 – 25 of 186) sorted by relevance

12345678

/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingCaptureCallback.java128 mStateChangeListener.onStateChanged(CAPTURE_STARTED); in onCaptureStarted()
135 mStateChangeListener.onStateChanged(CAPTURE_PROGRESSED); in onCaptureProgressed()
142 mStateChangeListener.onStateChanged(CAPTURE_COMPLETED); in onCaptureCompleted()
149 mStateChangeListener.onStateChanged(CAPTURE_FAILED); in onCaptureFailed()
156 mStateChangeListener.onStateChanged(CAPTURE_SEQUENCE_COMPLETED); in onCaptureSequenceCompleted()
162 mStateChangeListener.onStateChanged(CAPTURE_SEQUENCE_ABORTED); in onCaptureSequenceAborted()
DBlockingSessionCallback.java156 mStateChangeListener.onStateChanged(SESSION_ACTIVE); in onActive()
163 mStateChangeListener.onStateChanged(SESSION_CLOSED); in onClosed()
175 mStateChangeListener.onStateChanged(SESSION_CONFIGURED); in onConfigured()
184 mStateChangeListener.onStateChanged(SESSION_CONFIGURE_FAILED); in onConfigureFailed()
193 mStateChangeListener.onStateChanged(SESSION_READY); in onReady()
DBlockingExtensionSessionCallback.java139 mStateChangeListener.onStateChanged(SESSION_CLOSED); in onClosed()
148 mStateChangeListener.onStateChanged(SESSION_CONFIGURED); in onConfigured()
157 mStateChangeListener.onStateChanged(SESSION_CONFIGURE_FAILED); in onConfigureFailed()
/frameworks/base/services/foldables/devicestateprovider/tests/src/com/android/server/policy/
DBookStyleDeviceStatePolicyTest.java244 verify(mListener).onStateChanged(mDeviceStateCaptor.capture()); in test_noSensorEventsYet_reportOpenedState()
255 verify(mListener).onStateChanged(mDeviceStateCaptor.capture()); in test_deviceClosedSensorEventsBecameAvailable_reportsClosedState()
264 verify(mListener).onStateChanged(mDeviceStateCaptor.capture()); in test_hingeAngleClosed_reportsClosedState()
273 verify(mListener).onStateChanged(mDeviceStateCaptor.capture()); in test_hingeAngleFullyOpened_reportsOpenedState()
285 verify(mListener).onStateChanged(mDeviceStateCaptor.capture()); in test_unfoldingFromClosedToFullyOpened_reportsOpenedEvent()
296 verify(mListener).onStateChanged(mDeviceStateCaptor.capture()); in test_foldingFromFullyOpenToFullyClosed_movesToClosedState()
311 verify(mListener, atLeastOnce()).onStateChanged(mDeviceStateCaptor.capture()); in test_slowUnfolding_reportsEventsInOrder()
330 verify(mListener, atLeastOnce()).onStateChanged(mDeviceStateCaptor.capture()); in test_slowFolding_reportsEventsInOrder()
346 verify(mListener, atLeastOnce()).onStateChanged(mDeviceStateCaptor.capture()); in test_hingeAngleOpen_screenOff_reportsHalfFolded()
369 verify(mListener, atLeastOnce()).onStateChanged(mDeviceStateCaptor.capture()); in test_slowUnfoldingWithScreenOff_reportsEventsInOrder()
[all …]
DFoldableDeviceStateProviderTest.java163 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_allMatchingStatesDefaultsToTheFirstIdentifier()
179 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_multipleMatchingStatesDefaultsToTheLowestIdentifier()
191 verify(listener, never()).onStateChanged(anyInt()); in test_hingeAngleUpdatedFirstTime_switchesToMatchingState()
196 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hingeAngleUpdatedFirstTime_switchesToMatchingState()
208 verify(listener, never()).onStateChanged(anyInt()); in test_hallSensorUpdatedFirstTime_switchesToMatchingState()
214 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hallSensorUpdatedFirstTime_switchesToMatchingState()
227 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hingeAngleUpdatedSecondTime_switchesToMatchingState()
233 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hingeAngleUpdatedSecondTime_switchesToMatchingState()
246 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hallSensorUpdatedSecondTime_switchesToMatchingState()
253 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_hallSensorUpdatedSecondTime_switchesToMatchingState()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DLifecycleFragmentTest.java60 verify(observer).onStateChanged(eq(fragment), eq(ON_CREATE)); in testCreateLifecycle()
72 verify(observer).onStateChanged(eq(fragment), eq(ON_RESUME)); in testResumeLifecycle()
84 verify(observer).onStateChanged(eq(fragment), eq(ON_START)); in testStartLifecycle()
98 verify(observer).onStateChanged(eq(fragment), eq(ON_STOP)); in testStopLifecycle()
112 verify(observer).onStateChanged(eq(fragment), eq(ON_PAUSE)); in testPauseLifecycle()
127 verify(observer).onStateChanged(eq(fragment), eq(ON_DESTROY)); in testDestroyLifecycle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/transition/
DScrimShadeTransitionController.kt54 onStateChanged() in onPanelStateChanged()
59 onStateChanged() in onPanelExpansionChanged()
62 private fun onStateChanged() { in onStateChanged() method
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/onehanded/
DOneHandedTutorialHandlerTest.java85 mSpiedTutorialHandler.onStateChanged(STATE_ENTERING); in testOnStateChangedEntering_createViewAndAttachToWindow()
97 mSpiedTutorialHandler.onStateChanged(STATE_NONE); in testOnStateChangedNone_removeViewAndAttachToWindow()
111 mSpiedTutorialHandler.onStateChanged(STATE_NONE); in testOnStateChangedNone_shouldNotAttachWindow()
125 mSpiedTutorialHandler.onStateChanged(STATE_ENTERING); in testOnConfigurationChanged_shouldUpdateViewContent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DAccessibilityController.java70 cb.onStateChanged(mAccessibilityEnabled, mTouchExplorationEnabled); in addStateChangedCallback()
80 mChangeCallbacks.get(i).onStateChanged(mAccessibilityEnabled, mTouchExplorationEnabled); in fireChanged()
97 void onStateChanged(boolean accessibilityEnabled, boolean touchExplorationEnabled); in onStateChanged() method
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/
DDeviceStateProviderImplTest.java145 verify(listener).onStateChanged(mIntegerCaptor.capture()); in assertDefaultProviderValues()
175 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_multipleMatchingStatesDefaultsToLowestIdentifier()
278 verify(listener, never()).onStateChanged(mIntegerCaptor.capture()); in create_lidSwitch()
282 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_lidSwitch()
290 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_lidSwitch()
375 verify(listener, never()).onStateChanged(mIntegerCaptor.capture()); in create_sensor()
387 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_sensor()
400 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_sensor()
413 verify(listener).onStateChanged(mIntegerCaptor.capture()); in create_sensor()
540 verify(listener).onStateChanged(mIntegerCaptor.capture()); in test_invalidSensorValues()
[all …]
/frameworks/base/services/core/java/com/android/server/location/injector/
DEmergencyHelper.java39 void onStateChanged(); in onStateChanged() method
67 listener.onStateChanged(); in dispatchEmergencyStateChanged()
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsControllerTest.java174 mController.onStateChanged(state); in setup()
447 mController.onStateChanged(state); in testRestoreStartsAnimation()
662 mController.onStateChanged(copy); in testFrameUpdateDuringAnimation()
694 mController.onStateChanged(state1); in testResizeAnimation_withFlagAnimateResizing()
716 mController.onStateChanged(state2); in testResizeAnimation_withFlagAnimateResizing()
746 mController.onStateChanged(state1); in testResizeAnimation_withoutFlagAnimateResizing()
751 mController.onStateChanged(state2); in testResizeAnimation_withoutFlagAnimateResizing()
771 mController.onStateChanged(state1); in testResizeAnimation_sourceFrame()
775 mController.onStateChanged(state2); in testResizeAnimation_sourceFrame()
779 mController.onStateChanged(state1); in testResizeAnimation_sourceFrame()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/
DDreamOverlayStateControllerTest.java84 verify(mCallback).onStateChanged(); in testStateChange_overlayActive()
90 verify(mCallback, never()).onStateChanged(); in testStateChange_overlayActive()
94 verify(mCallback).onStateChanged(); in testStateChange_overlayActive()
289 verify(mCallback, times(1)).onStateChanged(); in testNotifyLowLightChanged()
327 verify(mCallback, times(1)).onStateChanged(); in testNotifyEntryAnimationsFinishedChanged()
342 verify(mCallback, times(1)).onStateChanged(); in testNotifyDreamOverlayStatusBarVisibleChanged()
357 verify(mCallback, times(1)).onStateChanged(); in testNotifyHasAssistantAttentionChanged()
449 verify(callback1, never()).onStateChanged(); in testCallbacksIgnoredWhenWeakReferenceCleared()
450 verify(callback2).onStateChanged(); in testCallbacksIgnoredWhenWeakReferenceCleared()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/
DSmartSpaceComplicationTest.java123 dreamCallbackCaptor.getValue().onStateChanged(); in testOverlayActive_addsTargetListener()
141 dreamCallbackCaptor.getValue().onStateChanged(); in testOverlayActive_targetsNonEmpty_addsComplication()
163 dreamCallbackCaptor.getValue().onStateChanged(); in testOverlayActive_targetsEmpty_addsComplication()
184 dreamCallbackCaptor.getValue().onStateChanged(); in testOverlayInActive_removesTargetListener_removesComplication()
195 dreamCallbackCaptor.getValue().onStateChanged(); in testOverlayInActive_removesTargetListener_removesComplication()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/onehanded/
DOneHandedState.java100 mStateChangeListeners.forEach((listener) -> listener.onStateChanged(newState)); in setState()
118 default void onStateChanged(@State int newState) {} in onStateChanged() method
/frameworks/base/core/java/android/accessibilityservice/
DTouchInteractionController.java212 void onStateChanged(@State int state) { in onStateChanged() method in TouchInteractionController
224 executor.execute(() -> callback.onStateChanged(state)); in onStateChanged()
227 callback.onStateChanged(state); in onStateChanged()
448 void onStateChanged(@State int state); in onStateChanged() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/loadingeffect/
DLoadingEffectTest.kt98 override fun onStateChanged( in play_animationStateChangesInOrder() method
141 override fun onStateChanged( in play_alreadyPlaying_playsOnlyOnce() method
186 override fun onStateChanged( in finish_finishesLoadingEffect() method
229 override fun onStateChanged( in finish_notMainState_hasNoEffect() method
/frameworks/base/graphics/java/android/graphics/drawable/
DRippleBackground.java76 onStateChanged(); in setState()
80 private void onStateChanged() { in onStateChanged() method in RippleBackground
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DRenderer.java171 listener.onStateChanged(newState); in pushOnStateChanged()
210 public void onStateChanged(int newState); in onStateChanged() method
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/d2d/
DCommunicatorTest.java80 mCommunicator.onStateChanged(null, Connection.STATE_ACTIVE); in testNegotiate()
98 mCommunicator.onStateChanged(null, Connection.STATE_ACTIVE); in testNegotiationFailed()
117 mCommunicator.onStateChanged(null, Connection.STATE_ACTIVE); in testNegotiationFailedNoProtocols()
/frameworks/base/core/java/android/os/
DIWakeLockCallback.aidl23 oneway void onStateChanged(boolean enabled); in onStateChanged() method
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
DStateChangeListener.java20 void onStateChanged(int state); in onStateChanged() method
/frameworks/base/media/java/android/media/
DIMediaRouterClient.aidl23 void onStateChanged(); in onStateChanged() method
/frameworks/base/media/java/android/media/tv/interactive/
DITvInteractiveAppServiceCallback.aidl25 void onStateChanged(int type, int state, int error); in onStateChanged() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DCallbackControllerTest.java59 observer.getValue().onStateChanged(owner, Event.ON_RESUME); in testAddCallback()
77 observer.getValue().onStateChanged(owner, Event.ON_PAUSE); in testRemoveCallback()

12345678