/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
D | AbstractStateChangeTouchController.java | 152 LauncherState fromState = mLauncher.getStateManager().getState(); in getSwipeDirection() local 154 if (getTargetState(fromState, true /* isDragTowardPositive */) != fromState) { in getSwipeDirection() 157 if (getTargetState(fromState, false /* isDragTowardPositive */) != fromState) { in getSwipeDirection() 176 protected abstract LauncherState getTargetState(LauncherState fromState, in getTargetState() argument 225 protected boolean goingBetweenNormalAndOverview(LauncherState fromState, in goingBetweenNormalAndOverview() argument 227 return (fromState == NORMAL || fromState == OVERVIEW) in goingBetweenNormalAndOverview() 312 private void maybeUpdateAtomicAnim(LauncherState fromState, LauncherState toState, in maybeUpdateAtomicAnim() argument 314 if (!goingBetweenNormalAndOverview(fromState, toState)) { in maybeUpdateAtomicAnim() 321 LauncherState atomicFromState = passedThreshold ? fromState: toState; in maybeUpdateAtomicAnim() 322 LauncherState atomicToState = passedThreshold ? toState : fromState; in maybeUpdateAtomicAnim() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | PortraitStatesTouchController.java | 132 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() argument 133 if (fromState == ALL_APPS && !isDragTowardPositive) { in getTargetState() 137 } else if (fromState == OVERVIEW) { in getTargetState() 139 } else if (fromState == NORMAL && isDragTowardPositive) { in getTargetState() 146 return fromState; in getTargetState() 195 protected AnimatorSetBuilder getAnimatorSetBuilderForStates(LauncherState fromState, 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() [all …]
|
D | LandscapeEdgeSwipeController.java | 43 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() argument
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherStateManager.java | 251 LauncherState fromState = mState; in goToState() local 276 goToStateAnimated(state, fromState, onCompleteRunnable); in goToState() 280 goToStateAnimated(state, fromState, onCompleteRunnable); in goToState() 284 private void goToStateAnimated(LauncherState state, LauncherState fromState, in goToStateAnimated() argument 288 … mConfig.duration = state == NORMAL ? fromState.transitionDuration : state.transitionDuration; in goToStateAnimated() 291 prepareForAtomicAnimation(fromState, state, builder); in goToStateAnimated() 302 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() [all …]
|
D | LauncherState.java | 296 public void prepareForAtomicAnimation(Launcher launcher, LauncherState fromState, 298 if (this == NORMAL && fromState == OVERVIEW) { 324 } else if (this == NORMAL && fromState == OVERVIEW_PEEK) {
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetTestUtils.java | 41 public static void verifyAudioStateBroadcast(BluetoothDevice device, int toState, int fromState, in verifyAudioStateBroadcast() argument 47 Assert.assertEquals(fromState, in verifyAudioStateBroadcast() 62 int fromState, Intent intent, boolean checkFlag) { in verifyConnectionStateBroadcast() argument 70 Assert.assertEquals(fromState, in verifyConnectionStateBroadcast() 84 int fromState, Intent intent) { in verifyConnectionStateBroadcast() argument 85 verifyConnectionStateBroadcast(device, toState, fromState, intent, true); in verifyConnectionStateBroadcast()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/ |
D | LauncherActivityControllerHelper.java | 186 final LauncherState fromState = animateActivity ? BACKGROUND_APP : OVERVIEW; 187 activity.getStateManager().goToState(fromState, false); 200 createActivityControllerInternal(activity, fromState, transitionLength, callback); 274 private void createActivityControllerInternal(Launcher activity, LauncherState fromState, 277 if (fromState == endState) { 287 fromState.getVerticalProgress(activity), 290 playScaleDownAnim(anim, activity, fromState, endState); 301 controller.getInterpolatedProgress() > 0.5 ? endState : fromState, false); 309 private void playScaleDownAnim(AnimatorSet anim, Launcher launcher, LauncherState fromState, 317 = fromState.getOverviewScaleAndTranslation(launcher); [all …]
|
D | FallbackActivityControllerHelper.java | 132 boolean fromState = !animateActivity; 133 rv.setInOverviewState(fromState); 169 endState : fromState);
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | FlingAndHoldTouchController.java | 94 LauncherState fromState = isPaused ? NORMAL : OVERVIEW_PEEK; in onDragStart() 97 mPeekAnim = mLauncher.getStateManager().createAtomicAnimation(fromState, toState, in onDragStart() 124 protected AnimatorSetBuilder getAnimatorSetBuilderForStates(LauncherState fromState, 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()
|
D | OverviewToAllAppsTouchController.java | 66 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() argument 67 if (fromState == ALL_APPS && !isDragTowardPositive) { in getTargetState() 74 return fromState; in getTargetState()
|
D | TransposedQuickSwitchTouchController.java | 29 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() argument 30 return super.getTargetState(fromState, in getTargetState()
|
D | NoButtonQuickSwitchTouchController.java | 227 final LauncherState fromState = QUICK_SWITCH; in setupOverviewAnimators() local 229 LauncherState.ScaleAndTranslation fromScaleAndTranslation = fromState in setupOverviewAnimators() 272 fromState.getOverviewFullscreenProgress(), toState.getOverviewFullscreenProgress()); in setupOverviewAnimators()
|
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/ |
D | AllAppsSwipeController.java | 50 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() argument 51 if (fromState == NORMAL && isDragTowardPositive) { in getTargetState() 53 } else if (fromState == ALL_APPS && !isDragTowardPositive) { in getTargetState() 56 return fromState; in getTargetState()
|
/packages/apps/Launcher3/go/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | LandscapeStatesTouchController.java | 57 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() argument 58 if (fromState == ALL_APPS && !isDragTowardPositive) { in getTargetState() 63 return fromState; in getTargetState()
|
/packages/services/Car/service/src/com/android/car/ |
D | Utils.java | 150 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 158 mFromState = fromState; in TransitionLog()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 790 synchronized void connectionStateChanged(BluetoothDevice device, int fromState, in connectionStateChanged() argument 792 if ((device == null) || (fromState == toState)) { in connectionStateChanged() 794 + " fromState=" + fromState + " toState=" + toState); in connectionStateChanged() 811 if (fromState == BluetoothProfile.STATE_CONNECTED && getConnectedDevices().isEmpty()) { in connectionStateChanged() 836 int fromState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in onReceive() local 837 connectionStateChanged(device, fromState, toState); in onReceive()
|
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/states/ |
D | OverviewPeekState.java | 43 public void prepareForAtomicAnimation(Launcher launcher, LauncherState fromState, in prepareForAtomicAnimation() argument 45 if (this == OVERVIEW_PEEK && fromState == NORMAL) { in prepareForAtomicAnimation()
|
D | OverviewState.java | 191 public void prepareForAtomicAnimation(Launcher launcher, LauncherState fromState, 193 if (fromState == NORMAL && this == OVERVIEW) {
|
/packages/apps/Launcher3/go/quickstep/src/com/android/quickstep/ |
D | LauncherActivityControllerHelper.java | 42 LauncherState fromState = activity.getStateManager().getState(); in prepareRecentsUI() local 49 fromState, OVERVIEW, transitionLength)); in prepareRecentsUI()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
D | PbapStateMachine.java | 150 private void broadcastConnectionState(BluetoothDevice device, int fromState, int toState) { in broadcastConnectionState() argument 151 stateLogD("broadcastConnectionState " + device + ": " + fromState + "->" + toState); in broadcastConnectionState() 153 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, fromState); in broadcastConnectionState()
|
/packages/apps/Launcher3/go/quickstep/src/com/android/launcher3/uioverrides/states/ |
D | OverviewState.java | 127 public void prepareForAtomicAnimation(Launcher launcher, LauncherState fromState, 129 if (fromState == NORMAL && this == OVERVIEW) {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
D | HeadsetStateMachine.java | 298 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() 302 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, fromState); in broadcastConnectionState() 311 void broadcastAudioState(BluetoothDevice device, int fromState, int toState) { in broadcastAudioState() argument 312 stateLogD("broadcastAudioState: " + device + ": " + fromState + "->" + toState); in broadcastAudioState() 320 mHeadsetService.onAudioStateChangedFromStateMachine(device, fromState, toState); in broadcastAudioState() 322 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, fromState); in broadcastAudioState()
|
D | HeadsetService.java | 1650 public void onConnectionStateChangedFromStateMachine(BluetoothDevice device, int fromState, in onConnectionStateChangedFromStateMachine() argument 1655 if (fromState != BluetoothProfile.STATE_CONNECTED in onConnectionStateChangedFromStateMachine() 1665 if (fromState != BluetoothProfile.STATE_DISCONNECTED in onConnectionStateChangedFromStateMachine() 1724 public void onAudioStateChangedFromStateMachine(BluetoothDevice device, int fromState, in onAudioStateChangedFromStateMachine() argument 1728 if (fromState != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in onAudioStateChangedFromStateMachine()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 1144 private void connectionStateChanged(BluetoothDevice device, int fromState, int toState) { in connectionStateChanged() argument 1145 if ((device == null) || (fromState == toState)) { in connectionStateChanged() 1156 if (isActiveDevice(device) && (fromState == BluetoothProfile.STATE_CONNECTED)) { in connectionStateChanged() 1186 int fromState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in onReceive() local 1187 connectionStateChanged(device, fromState, toState); in onReceive()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | PackageInstallerCompat.java | 100 public static PackageInstallInfo fromState(int state, String packageName, UserHandle user) { in fromState() method in PackageInstallerCompat.PackageInstallInfo
|