Home
last modified time | relevance | path

Searched refs:toState (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetTestUtils.java41 public static void verifyAudioStateBroadcast(BluetoothDevice device, int toState, int fromState, in verifyAudioStateBroadcast() argument
46 Assert.assertEquals(toState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyAudioStateBroadcast()
61 public static void verifyConnectionStateBroadcast(BluetoothDevice device, int toState, in verifyConnectionStateBroadcast() argument
69 Assert.assertEquals(toState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyConnectionStateBroadcast()
83 public static void verifyConnectionStateBroadcast(BluetoothDevice device, int toState, in verifyConnectionStateBroadcast() argument
85 verifyConnectionStateBroadcast(device, toState, fromState, intent, true); in verifyConnectionStateBroadcast()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/
DRecentsViewStateController.java63 void setStateWithAnimationInternal(@NonNull final LauncherState toState, in setStateWithAnimationInternal() argument
65 super.setStateWithAnimationInternal(toState, builder, config); in setStateWithAnimationInternal()
67 if (!toState.overviewUi) { in setStateWithAnimationInternal()
71 if (toState.overviewUi) { in setStateWithAnimationInternal()
83 setAlphas(propertySetter, toState.getVisibleElements(mLauncher)); in setStateWithAnimationInternal()
84 float fullscreenProgress = toState.getOverviewFullscreenProgress(); in setStateWithAnimationInternal()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DBaseRecentsViewStateController.java78 public final void setStateWithAnimation(@NonNull final LauncherState toState, in setStateWithAnimation() argument
89 setStateWithAnimationInternal(toState, builder, config); in setStateWithAnimation()
99 void setStateWithAnimationInternal(@NonNull final LauncherState toState, in setStateWithAnimationInternal() argument
102 ScaleAndTranslation scaleAndTranslation = toState.getOverviewScaleAndTranslation(mLauncher); in setStateWithAnimationInternal()
116 setter.setFloat(mRecentsView, getContentAlphaProperty(), toState.overviewUi ? 1 : 0, in setStateWithAnimationInternal()
119 setter.setFloat(scrim, SCRIM_PROGRESS, toState.getOverviewScrimAlpha(mLauncher), in setStateWithAnimationInternal()
DBackButtonAlphaHandler.java47 public void setStateWithAnimation(LauncherState toState, in setStateWithAnimation() argument
53 float toAlpha = toState.hideBackButton ? 0 : 1; in setStateWithAnimation()
DUiFactory.java112 public void onStateTransitionStart(LauncherState toState) { in onCreate()
134 public void onStateTransitionStart(LauncherState toState) { in onCreate()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsTransitionController.java157 public void setStateWithAnimation(LauncherState toState, in setStateWithAnimation() argument
159 float targetProgress = toState.getVerticalProgress(mLauncher); in setStateWithAnimation()
161 setAlphas(toState, config, builder); in setStateWithAnimation()
172 Interpolator interpolator = config.userControlled ? LINEAR : toState == OVERVIEW in setStateWithAnimation()
182 setAlphas(toState, config, builder); in setStateWithAnimation()
190 private void setAlphas(LauncherState toState, AnimationConfig config, in setAlphas() argument
192 setAlphas(toState.getVisibleElements(mLauncher), config, builder); in setAlphas()
DDiscoveryBounce.java60 public void onStateTransitionStart(LauncherState toState) {
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DAbstractStateChangeTouchController.java226 LauncherState toState) { in goingBetweenNormalAndOverview() argument
228 && (toState == NORMAL || toState == OVERVIEW) in goingBetweenNormalAndOverview()
312 private void maybeUpdateAtomicAnim(LauncherState fromState, LauncherState toState, in maybeUpdateAtomicAnim() argument
314 if (!goingBetweenNormalAndOverview(fromState, toState)) { in maybeUpdateAtomicAnim()
317 float threshold = toState == OVERVIEW ? ATOMIC_OVERVIEW_ANIM_THRESHOLD in maybeUpdateAtomicAnim()
321 LauncherState atomicFromState = passedThreshold ? fromState: toState; in maybeUpdateAtomicAnim()
322 LauncherState atomicToState = passedThreshold ? toState : fromState; in maybeUpdateAtomicAnim()
367 LauncherState toState) { in getAnimatorSetBuilderForStates() argument
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/
DFlingAndHoldTouchController.java95 LauncherState toState = isPaused ? OVERVIEW_PEEK : NORMAL; in onDragStart()
97 mPeekAnim = mLauncher.getStateManager().createAtomicAnimation(fromState, toState, in onDragStart()
125 LauncherState toState) { in getAnimatorSetBuilderForStates() argument
126 if (fromState == NORMAL && toState == ALL_APPS) { in getAnimatorSetBuilderForStates()
145 } else if (fromState == ALL_APPS && toState == NORMAL) { in getAnimatorSetBuilderForStates()
159 return super.getAnimatorSetBuilderForStates(fromState, toState); in getAnimatorSetBuilderForStates()
DNoButtonQuickSwitchTouchController.java218 private void updateNonOverviewAnim(LauncherState toState, AnimatorSetBuilder builder, in updateNonOverviewAnim() argument
222 mNonOverviewAnim = mLauncher.getStateManager().createAnimationToNewWorkspace(toState, in updateNonOverviewAnim()
228 final LauncherState toState = OVERVIEW; in setupOverviewAnimators() local
231 LauncherState.ScaleAndTranslation toScaleAndTranslation = toState in setupOverviewAnimators()
256 toState.getOverviewScrimAlpha(mLauncher))); in setupOverviewAnimators()
272 fromState.getOverviewFullscreenProgress(), toState.getOverviewFullscreenProgress()); in setupOverviewAnimators()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DPortraitStatesTouchController.java196 LauncherState toState) { in getAnimatorSetBuilderForStates() argument
198 if (fromState == NORMAL && toState == OVERVIEW) { in getAnimatorSetBuilderForStates()
200 } else if (fromState == OVERVIEW && toState == ALL_APPS) { in getAnimatorSetBuilderForStates()
202 } else if (fromState == ALL_APPS && toState == OVERVIEW) { in getAnimatorSetBuilderForStates()
204 } else if (fromState == NORMAL && toState == ALL_APPS) { in getAnimatorSetBuilderForStates()
206 } else if (fromState == ALL_APPS && toState == NORMAL) { in getAnimatorSetBuilderForStates()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherStateManager.java302 public void prepareForAtomicAnimation(LauncherState fromState, LauncherState toState, in prepareForAtomicAnimation() argument
304 toState.prepareForAtomicAnimation(mLauncher, fromState, builder); in prepareForAtomicAnimation()
307 public AnimatorSet createAtomicAnimation(LauncherState fromState, LauncherState toState, in createAtomicAnimation() argument
309 prepareForAtomicAnimation(fromState, toState, builder); in createAtomicAnimation()
314 handler.setStateWithAnimation(toState, builder, config); in createAtomicAnimation()
665 void setStateWithAnimation(LauncherState toState, in setStateWithAnimation() argument
671 void onStateTransitionStart(LauncherState toState); in onStateTransitionStart() argument
DWorkspaceStateTransitionAnimation.java58 public void setState(LauncherState toState) { in setState() argument
59 setWorkspaceProperty(toState, NO_ANIM_PROPERTY_SETTER, new AnimatorSetBuilder(), in setState()
63 public void setStateWithAnimation(LauncherState toState, AnimatorSetBuilder builder, in setStateWithAnimation() argument
65 setWorkspaceProperty(toState, config.getPropertySetter(builder), builder, config); in setStateWithAnimation()
DWorkspace.java1377 public void setState(LauncherState toState) { in setState() argument
1378 onStartStateTransition(toState); in setState()
1379 mStateTransitionAnimation.setState(toState); in setState()
1387 public void setStateWithAnimation(LauncherState toState, in setStateWithAnimation() argument
1389 StateTransitionListener listener = new StateTransitionListener(toState); in setStateWithAnimation()
1390 mStateTransitionAnimation.setStateWithAnimation(toState, builder, config); in setStateWithAnimation()
1394 if (toState.hasMultipleVisiblePages) { in setStateWithAnimation()
3395 StateTransitionListener(LauncherState toState) { in StateTransitionListener() argument
3396 mToState = toState; in StateTransitionListener()
/packages/services/Car/service/src/com/android/car/
DUtils.java150 public TransitionLog(String name, Object fromState, Object toState, long timestamp, in TransitionLog() argument
152 this(name, fromState, toState, timestamp); in TransitionLog()
156 public TransitionLog(String name, Object fromState, Object toState, long timeStamp) { in TransitionLog() argument
159 mToState = toState; in TransitionLog()
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java791 int toState) { in connectionStateChanged() argument
792 if ((device == null) || (fromState == toState)) { in connectionStateChanged()
794 + " fromState=" + fromState + " toState=" + toState); in connectionStateChanged()
797 if (toState == BluetoothProfile.STATE_CONNECTED) { in connectionStateChanged()
817 if (toState == BluetoothProfile.STATE_DISCONNECTED) { in connectionStateChanged()
835 int toState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() local
837 connectionStateChanged(device, fromState, toState); in onReceive()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
DA2dpService.java1144 private void connectionStateChanged(BluetoothDevice device, int fromState, int toState) { in connectionStateChanged() argument
1145 if ((device == null) || (fromState == toState)) { in connectionStateChanged()
1148 if (toState == BluetoothProfile.STATE_CONNECTED) { in connectionStateChanged()
1152 if (toState == BluetoothProfile.STATE_CONNECTED && (mMaxConnectedAudioDevices == 1)) { in connectionStateChanged()
1160 if (toState == BluetoothProfile.STATE_DISCONNECTED) { in connectionStateChanged()
1185 int toState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1); in onReceive() local
1187 connectionStateChanged(device, fromState, toState); in onReceive()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java298 void broadcastConnectionState(BluetoothDevice device, int fromState, int toState) { in broadcastConnectionState() argument
299 stateLogD("broadcastConnectionState " + device + ": " + fromState + "->" + toState); in broadcastConnectionState()
300 mHeadsetService.onConnectionStateChangedFromStateMachine(device, fromState, toState); in broadcastConnectionState()
303 intent.putExtra(BluetoothProfile.EXTRA_STATE, toState); in broadcastConnectionState()
311 void broadcastAudioState(BluetoothDevice device, int fromState, int toState) { in broadcastAudioState() argument
312 stateLogD("broadcastAudioState: " + device + ": " + fromState + "->" + toState); in broadcastAudioState()
315 getConnectionStateFromAudioState(toState), in broadcastAudioState()
320 mHeadsetService.onAudioStateChangedFromStateMachine(device, fromState, toState); in broadcastAudioState()
323 intent.putExtra(BluetoothProfile.EXTRA_STATE, toState); in broadcastAudioState()
DHeadsetService.java1651 int toState) { in onConnectionStateChangedFromStateMachine() argument
1656 && toState == BluetoothProfile.STATE_CONNECTED) { in onConnectionStateChangedFromStateMachine()
1666 && toState == BluetoothProfile.STATE_DISCONNECTED) { in onConnectionStateChangedFromStateMachine()
1725 int toState) { in onAudioStateChangedFromStateMachine() argument
1727 if (toState == BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in onAudioStateChangedFromStateMachine()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
DPbapStateMachine.java150 private void broadcastConnectionState(BluetoothDevice device, int fromState, int toState) { in broadcastConnectionState() argument
151 stateLogD("broadcastConnectionState " + device + ": " + fromState + "->" + toState); in broadcastConnectionState()
154 intent.putExtra(BluetoothProfile.EXTRA_STATE, toState); in broadcastConnectionState()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DLauncherRecentsView.java274 public void onStateTransitionStart(LauncherState toState) { in onStateTransitionStart() argument
275 setOverviewStateEnabled(toState.overviewUi); in onStateTransitionStart()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DAllAppsTipView.java193 public void onStateTransitionStart(LauncherState toState) { in scheduleShowIfNeeded()
DAppsDividerView.java253 public void onStateTransitionStart(LauncherState toState) { } in onStateTransitionStart() argument
DPredictionUiStateManager.java163 public void onStateTransitionStart(LauncherState toState) { } in onStateTransitionStart() argument
/packages/apps/Launcher3/src/com/android/launcher3/views/
DScrimView.java373 public void onStateTransitionStart(LauncherState toState) {} in onStateTransitionStart() argument

12