/aosp12/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
H A D | AllAppsSwipeController.java | 69 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() argument 70 if (fromState == NORMAL && isDragTowardPositive) { in getTargetState() 72 } else if (fromState == ALL_APPS && !isDragTowardPositive) { in getTargetState() 75 return fromState; in getTargetState() 93 protected StateAnimationConfig getConfigForStates(LauncherState fromState, in getConfigForStates() argument 95 StateAnimationConfig config = super.getConfigForStates(fromState, toState); in getConfigForStates() 96 if (fromState == NORMAL && toState == ALL_APPS) { in getConfigForStates() 98 } else if (fromState == ALL_APPS && toState == NORMAL) { in getConfigForStates()
|
H A D | AbstractStateChangeTouchController.java | 121 LauncherState fromState = mLauncher.getStateManager().getState(); in getSwipeDirection() local 123 if (getTargetState(fromState, true /* isDragTowardPositive */) != fromState) { in getSwipeDirection() 126 if (getTargetState(fromState, false /* isDragTowardPositive */) != fromState) { in getSwipeDirection() 145 protected abstract LauncherState getTargetState(LauncherState fromState, in getTargetState() argument 259 LauncherState fromState, LauncherState toState) { in getConfigForStates() argument
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
H A 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()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
H A D | PortraitStatesTouchController.java | 116 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() argument 117 if (fromState == ALL_APPS && !isDragTowardPositive) { in getTargetState() 119 } else if (fromState == OVERVIEW) { in getTargetState() 121 } else if (fromState == NORMAL && isDragTowardPositive) { in getTargetState() 124 return fromState; in getTargetState() 151 LauncherState fromState, LauncherState toState) { in getConfigForStates() argument 153 if (fromState == NORMAL && toState == ALL_APPS) { in getConfigForStates() 155 } else if (fromState == ALL_APPS && toState == NORMAL) { in getConfigForStates()
|
H A D | TransposedQuickSwitchTouchController.java | 29 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() argument 30 return super.getTargetState(fromState, in getTargetState()
|
H A D | NoButtonNavbarToOverviewTouchController.java | 90 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() argument 91 if (fromState == NORMAL && mDidTouchStartInNavBar) { in getTargetState() 93 } else if (fromState == OVERVIEW && isDragTowardPositive) { in getTargetState() 97 return super.getTargetState(fromState, isDragTowardPositive); in getTargetState()
|
H A D | TwoButtonNavbarTouchController.java | 99 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { in getTargetState() argument 105 LauncherState startState = mStartState != null ? mStartState : fromState; in getTargetState()
|
H A D | NoButtonQuickSwitchTouchController.java | 221 final LauncherState fromState = QUICK_SWITCH; in setupOverviewAnimators() local 225 RECENTS_SCALE_PROPERTY.set(mRecentsView, fromState.getOverviewScaleAndOffset(mLauncher)[0]); in setupOverviewAnimators() 228 mRecentsView.setFullscreenProgress(fromState.getOverviewFullscreenProgress()); in setupOverviewAnimators() 230 (fromState.getVisibleElements(mLauncher) & OVERVIEW_ACTIONS) != 0 ? 1f : 0f); in setupOverviewAnimators()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/ |
H A D | QuickstepAtomicAnimationFactory.java | 91 public void prepareForAtomicAnimation(LauncherState fromState, LauncherState toState, in prepareForAtomicAnimation() argument 94 if (toState == NORMAL && fromState == OVERVIEW) { in prepareForAtomicAnimation() 140 } else if ((fromState == NORMAL || fromState == HINT_STATE in prepareForAtomicAnimation() 141 || fromState == HINT_STATE_TWO_BUTTON) && toState == OVERVIEW) { in prepareForAtomicAnimation() 144 fromState == NORMAL ? ACCEL : OVERSHOOT_1_2); in prepareForAtomicAnimation() 172 } else if (fromState == HINT_STATE && toState == NORMAL) { in prepareForAtomicAnimation() 180 } else if (fromState == ALL_APPS && toState == NORMAL) { in prepareForAtomicAnimation()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/statemanager/ |
H A D | StateManager.java | 218 STATE_TYPE fromState = mState; in goToState() local 243 goToStateAnimated(state, fromState, listener); in goToState() 247 goToStateAnimated(state, fromState, listener); in goToState() 251 private void goToStateAnimated(STATE_TYPE state, STATE_TYPE fromState, in goToStateAnimated() argument 256 ? fromState.getTransitionDuration(mActivity) in goToStateAnimated() 258 prepareForAtomicAnimation(fromState, state, mConfig); in goToStateAnimated() 271 public void prepareForAtomicAnimation(STATE_TYPE fromState, STATE_TYPE toState, in prepareForAtomicAnimation() argument 273 mAtomicAnimationFactory.prepareForAtomicAnimation(fromState, toState, config); in prepareForAtomicAnimation() 280 STATE_TYPE fromState, STATE_TYPE toState, StateAnimationConfig config) { in createAtomicAnimation() argument 282 prepareForAtomicAnimation(fromState, toState, config); in createAtomicAnimation() [all …]
|
/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | Utils.java | 154 public TransitionLog(String name, Object fromState, Object toState, long timestamp, in TransitionLog() argument 156 this(name, fromState, toState, timestamp); in TransitionLog() 160 public TransitionLog(String name, Object fromState, Object toState, long timeStamp) { in TransitionLog() argument 162 mFromState = fromState; in TransitionLog()
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | InsetsResizeAnimationRunner.java | 57 public InsetsResizeAnimationRunner(Rect frame, InsetsState fromState, InsetsState toState, in InsetsResizeAnimationRunner() argument 60 mFromState = fromState; in InsetsResizeAnimationRunner() 66 final Insets fromInsets = fromState.calculateInsets( in InsetsResizeAnimationRunner()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/le_audio/ |
H A D | LeAudioService.java | 565 synchronized void connectionStateChanged(BluetoothDevice device, int fromState, in connectionStateChanged() argument 567 if ((device == null) || (fromState == toState)) { in connectionStateChanged() 569 + " fromState=" + fromState + " toState=" + toState); in connectionStateChanged() 585 if (fromState == BluetoothProfile.STATE_CONNECTED && getConnectedDevices().isEmpty()) { in connectionStateChanged() 610 int fromState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in onReceive() local 611 connectionStateChanged(device, fromState, toState); in onReceive()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
H A D | HearingAidService.java | 799 synchronized void connectionStateChanged(BluetoothDevice device, int fromState, in connectionStateChanged() argument 801 if ((device == null) || (fromState == toState)) { in connectionStateChanged() 803 + " fromState=" + fromState + " toState=" + toState); in connectionStateChanged() 820 if (fromState == BluetoothProfile.STATE_CONNECTED && getConnectedDevices().isEmpty()) { in connectionStateChanged() 845 int fromState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in onReceive() local 846 connectionStateChanged(device, fromState, toState); in onReceive()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
H A D | RecentsViewStateController.java | 147 private boolean isSplitSelectionState(@NonNull LauncherState fromState, in isSplitSelectionState() argument 149 return fromState != OVERVIEW_SPLIT_SELECT && toState == OVERVIEW_SPLIT_SELECT; in isSplitSelectionState()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
H A D | PbapStateMachine.java | 159 private void broadcastConnectionState(BluetoothDevice device, int fromState, int toState) { in broadcastConnectionState() argument 160 stateLogD("broadcastConnectionState " + device + ": " + fromState + "->" + toState); in broadcastConnectionState() 162 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, fromState); in broadcastConnectionState()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | StatusBarStateEvent.java | 55 public static StatusBarStateEvent fromState(int state) { in fromState() method in StatusBarStateEvent
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | StatusBarStateEventTest.kt | 47 assertEquals(event, StatusBarStateEvent.fromState(state))
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/pm/ |
H A D | PackageInstallInfo.java | 57 public static PackageInstallInfo fromState(int state, String packageName, UserHandle user) { in fromState() method in PackageInstallInfo
|
H A D | InstallSessionTracker.java | 86 PackageInstallInfo info = PackageInstallInfo.fromState( in onFinished()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | WorkspaceStateTransitionAnimation.java | 112 LauncherState fromState = mLauncher.getStateManager().getState(); in setWorkspaceProperty() local 115 && fromState == HINT_STATE && state == NORMAL; in setWorkspaceProperty()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
H A D | HeadsetStateMachine.java | 303 void broadcastConnectionState(BluetoothDevice device, int fromState, int toState) { in broadcastConnectionState() argument 304 stateLogD("broadcastConnectionState " + device + ": " + fromState + "->" + toState); in broadcastConnectionState() 305 mHeadsetService.onConnectionStateChangedFromStateMachine(device, fromState, toState); in broadcastConnectionState() 307 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, fromState); in broadcastConnectionState() 316 void broadcastAudioState(BluetoothDevice device, int fromState, int toState) { in broadcastAudioState() argument 317 stateLogD("broadcastAudioState: " + device + ": " + fromState + "->" + toState); in broadcastAudioState() 325 mHeadsetService.onAudioStateChangedFromStateMachine(device, fromState, toState); in broadcastAudioState() 327 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, fromState); in broadcastAudioState()
|
H A D | HeadsetService.java | 1696 public void onConnectionStateChangedFromStateMachine(BluetoothDevice device, int fromState, in onConnectionStateChangedFromStateMachine() argument 1701 if (fromState != BluetoothProfile.STATE_CONNECTED in onConnectionStateChangedFromStateMachine() 1711 if (fromState != BluetoothProfile.STATE_DISCONNECTED in onConnectionStateChangedFromStateMachine() 1771 public void onAudioStateChangedFromStateMachine(BluetoothDevice device, int fromState, in onAudioStateChangedFromStateMachine() argument 1775 if (fromState != BluetoothHeadset.STATE_AUDIO_DISCONNECTED) { in onAudioStateChangedFromStateMachine()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
H A D | A2dpService.java | 1164 private void connectionStateChanged(BluetoothDevice device, int fromState, int toState) { in connectionStateChanged() argument 1165 if ((device == null) || (fromState == toState)) { in connectionStateChanged() 1176 if (isActiveDevice(device) && (fromState == BluetoothProfile.STATE_CONNECTED)) { in connectionStateChanged() 1206 int fromState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); in onReceive() local 1207 connectionStateChanged(device, fromState, toState); in onReceive()
|
/aosp12/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
H A D | ActiveModeWardenTest.java | 316 String fromState = mActiveModeWarden.getCurrentMode(); in enterClientModeActiveState() local 333 if (fromState.equals(DISABLED_STATE_STRING)) { in enterClientModeActiveState() 348 String fromState = mActiveModeWarden.getCurrentMode(); in enterScanOnlyModeActiveState() local 375 if (fromState.equals(DISABLED_STATE_STRING)) { in enterScanOnlyModeActiveState() 396 String fromState = mActiveModeWarden.getCurrentMode(); in enterSoftApActiveMode() local 411 if (fromState.equals(DISABLED_STATE_STRING)) { in enterSoftApActiveMode() 425 String fromState = mActiveModeWarden.getCurrentMode(); in enterStaDisabledMode() local 442 if (fromState.equals(ENABLED_STATE_STRING)) { in enterStaDisabledMode() 3695 String fromState = mActiveModeWarden.getCurrentMode(); in indicateStartOfEmergencyScan() local 3713 assertEquals(fromState, mActiveModeWarden.getCurrentMode()); in indicateStartOfEmergencyScan() [all …]
|