/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
D | BaseRecentsViewStateController.java | 82 public void setStateWithAnimation(LauncherState toState, StateAnimationConfig config, in setStateWithAnimation() argument 87 setStateWithAnimationInternal(toState, config, builder); in setStateWithAnimation() 102 void setStateWithAnimationInternal(@NonNull final LauncherState toState, in setStateWithAnimationInternal() argument 104 float[] scaleAndOffset = toState.getOverviewScaleAndOffset(mLauncher); in setStateWithAnimationInternal() 113 !FeatureFlags.enableSplitContextually() && !toState.isRecentsViewVisible; in setStateWithAnimationInternal() 129 toState.isRecentsViewVisible ? 1 : 0, in setStateWithAnimationInternal() 134 toState.getOverviewModalness(), in setStateWithAnimationInternal() 139 toState.showTaskThumbnailSplash() ? 1f : 0f, in setStateWithAnimationInternal() 140 getOverviewInterpolator(fromState, toState)); in setStateWithAnimationInternal() 143 toState.displayOverviewTasksAsGrid(mLauncher.getDeviceProfile()) ? 1f : 0f, in setStateWithAnimationInternal() [all …]
|
D | RecentsViewStateController.java | 88 void setStateWithAnimationInternal(@NonNull LauncherState toState, in setStateWithAnimationInternal() argument 90 super.setStateWithAnimationInternal(toState, config, builder); in setStateWithAnimationInternal() 92 if (toState.isRecentsViewVisible) { in setStateWithAnimationInternal() 111 toState.isRecentsViewVisible))); in setStateWithAnimationInternal() 113 handleSplitSelectionState(toState, builder, /* animate */true); in setStateWithAnimationInternal() 115 setAlphas(builder, config, toState); in setStateWithAnimationInternal() 117 toState.getOverviewFullscreenProgress(), LINEAR); in setStateWithAnimationInternal() 125 private void handleSplitSelectionState(@NonNull LauncherState toState, in handleSplitSelectionState() argument 128 toState == OVERVIEW && mLauncher.isSplitSelectionActive(); in handleSplitSelectionState() 129 if (toState != OVERVIEW_SPLIT_SELECT && !goingToOverviewFromWorkspaceContextual) { in handleSplitSelectionState() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/statemanager/ |
D | StateManager.java | 231 STATE_TYPE toState, @FloatRange(from = 0.0, to = 1.0) float backProgress) { in onBackProgressed() argument 233 handler.onBackProgressed(toState, backProgress); in onBackProgressed() 238 public void onBackCancelled(STATE_TYPE toState) { in onBackCancelled() argument 240 handler.onBackCancelled(toState); in onBackCancelled() 324 public void prepareForAtomicAnimation(STATE_TYPE fromState, STATE_TYPE toState, in prepareForAtomicAnimation() argument 326 mAtomicAnimationFactory.prepareForAtomicAnimation(fromState, toState, config); in prepareForAtomicAnimation() 333 STATE_TYPE fromState, STATE_TYPE toState, StateAnimationConfig config) { in createAtomicAnimation() argument 335 Log.d(TAG, "createAtomicAnimation - fromState: " + fromState + ", toState: " + toState in createAtomicAnimation() 341 prepareForAtomicAnimation(fromState, toState, config); in createAtomicAnimation() 344 handler.setStateWithAnimation(toState, config, builder); in createAtomicAnimation() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/ |
D | HeadsetTestUtils.java | 40 BluetoothDevice device, int toState, int fromState, Intent intent) { in verifyAudioStateBroadcast() argument 44 Assert.assertEquals(toState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyAudioStateBroadcast() 60 BluetoothDevice device, int toState, int fromState, Intent intent, boolean checkFlag) { in verifyConnectionStateBroadcast() argument 67 Assert.assertEquals(toState, intent.getIntExtra(BluetoothProfile.EXTRA_STATE, -1)); in verifyConnectionStateBroadcast() 82 BluetoothDevice device, int toState, int fromState, Intent intent) { in verifyConnectionStateBroadcast() argument 83 verifyConnectionStateBroadcast(device, toState, fromState, intent, true); in verifyConnectionStateBroadcast()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/ |
D | FallbackTaskbarUIController.java | 46 public void onStateTransitionStart(RecentsState toState) { 47 animateToRecentsState(toState); 50 getRecentsView().setTaskLaunchListener(toState == RecentsState.DEFAULT 89 public Animator createAnimToRecentsState(RecentsState toState, long duration) { in createAnimToRecentsState() argument 102 private void animateToRecentsState(RecentsState toState) { in animateToRecentsState() argument 103 Animator anim = createAnimToRecentsState(toState, in animateToRecentsState()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/panel/ |
D | TaskViewPanel.java | 507 private void setActiveState(State toState, PanelAnimator animator, in setActiveState() argument 513 if (toState.mBounds.height() == 0) { in setActiveState() 520 + " to " + toState + " with reason code = " + reason); in setActiveState() 534 onStateChangeStart(fromState, toState, animated, reason); in setActiveState() 536 mActiveState = toState; in setActiveState() 543 if (toState.hasToolBar() != fromState.hasToolBar()) { in setActiveState() 544 mToolBarView.setVisibility(toState.hasToolBar() ? VISIBLE : GONE); in setActiveState() 547 if (toState.hasGripBar() != fromState.hasGripBar()) { in setActiveState() 548 mGripBar.setVisibility(toState.hasGripBar() ? VISIBLE : GONE); in setActiveState() 566 private void onStateChangeStart(State fromState, State toState, boolean animated, in onStateChangeStart() argument [all …]
|
/packages/services/Car/service/src/com/android/car/util/ |
D | TransitionLog.java | 37 public TransitionLog(String name, Object fromState, Object toState, long timestamp, in TransitionLog() argument 39 this(name, fromState, toState, timestamp); in TransitionLog() 43 public TransitionLog(String name, Object fromState, Object toState, long timeStamp) { in TransitionLog() argument 46 mToState = toState; in TransitionLog()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/ |
D | QuickstepAtomicAnimationFactory.java | 95 public void prepareForAtomicAnimation(LauncherState fromState, LauncherState toState, in prepareForAtomicAnimation() argument 98 if ((fromState == OVERVIEW || fromState == OVERVIEW_SPLIT_SELECT) && toState == NORMAL) { in prepareForAtomicAnimation() 170 || fromState == HINT_STATE_TWO_BUTTON) && toState == OVERVIEW) { in prepareForAtomicAnimation() 201 } else if (fromState == HINT_STATE && toState == NORMAL) { in prepareForAtomicAnimation() 206 toState.getWorkspaceScaleAndTranslation(mContainer).scale); in prepareForAtomicAnimation() 210 } else if (fromState == ALL_APPS && toState == NORMAL) { in prepareForAtomicAnimation() 212 } else if (fromState == NORMAL && toState == ALL_APPS) { in prepareForAtomicAnimation() 214 } else if (fromState == OVERVIEW && toState == OVERVIEW_SPLIT_SELECT) { in prepareForAtomicAnimation() 222 && toState == OVERVIEW_SPLIT_SELECT) { in prepareForAtomicAnimation()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/ |
D | PortraitStatesTouchController.java | 107 LauncherState fromState, LauncherState toState) { in getConfigForStates() argument 110 if (fromState == NORMAL && toState == ALL_APPS) { in getConfigForStates() 112 } else if (fromState == ALL_APPS && toState == NORMAL) { in getConfigForStates() 216 protected void onReachedFinalState(LauncherState toState) { in onReachedFinalState() argument 217 super.onReachedFinalState(toState); in onReachedFinalState() 218 if (toState == ALL_APPS) { in onReachedFinalState() 220 } else if (toState == NORMAL) { in onReachedFinalState()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
D | LauncherRecentsView.java | 149 public void onStateTransitionStart(LauncherState toState) { in onStateTransitionStart() argument 150 setOverviewStateEnabled(toState.isRecentsViewVisible); in onStateTransitionStart() 152 setOverviewGridEnabled(toState.displayOverviewTasksAsGrid(mContainer.getDeviceProfile())); in onStateTransitionStart() 153 setOverviewFullscreenEnabled(toState.getOverviewFullscreenProgress() == 1); in onStateTransitionStart() 154 if (toState == OVERVIEW_MODAL_TASK) { in onStateTransitionStart() 161 if (!toState.isRecentsViewVisible || toState == OVERVIEW_MODAL_TASK) { in onStateTransitionStart() 167 mContainer.getDesktopVisibilityController().onLauncherStateChanged(toState); in onStateTransitionStart()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/fallback/ |
D | FallbackRecentsStateController.java | 76 public void setStateWithAnimation(RecentsState toState, StateAnimationConfig config, in setStateWithAnimation() argument 90 setProperties(toState, config, setter); in setStateWithAnimation() 138 private Interpolator getOverviewInterpolator(RecentsState toState) { in getOverviewInterpolator() argument 139 return toState.isRecentsViewVisible() ? INSTANT : FINAL_FRAME; in getOverviewInterpolator() 145 private boolean isSplitSelectionState(@NonNull RecentsState toState) { in isSplitSelectionState() argument 146 return toState == OVERVIEW_SPLIT_SELECT; in isSplitSelectionState()
|
D | FallbackRecentsView.java | 240 public void onStateTransitionStart(RecentsState toState) { in onStateTransitionStart() argument 242 setOverviewGridEnabled(toState.displayOverviewTasksAsGrid(mContainer.getDeviceProfile())); in onStateTransitionStart() 243 setOverviewFullscreenEnabled(toState.isFullScreen()); in onStateTransitionStart() 244 if (toState == MODAL_TASK) { in onStateTransitionStart() 251 if (!toState.isRecentsViewVisible() || toState == MODAL_TASK) { in onStateTransitionStart()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | AllAppsTransitionController.java | 281 LauncherState toState, @FloatRange(from = 0.0, to = 1.0) float backProgress) { in onBackProgressed() argument 282 if (!mLauncher.isInState(ALL_APPS) || !NORMAL.equals(toState)) { in onBackProgressed() 350 public void setStateWithAnimation(LauncherState toState, 352 if (mLauncher.isInState(ALL_APPS) && !ALL_APPS.equals(toState)) { 364 if (toState == ALL_APPS) { 378 float targetProgress = toState.getVerticalProgress(mLauncher); 380 setAlphas(toState, config, builder); in setAlphas() argument 392 setAlphas(toState, config, builder); in setAlphas() argument 394 if (ALL_APPS.equals(toState) && mLauncher.isInState(NORMAL) &&
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/statehandlers/ |
D | DepthController.java | 131 public void setState(LauncherState toState) { in setState() argument 136 stateDepth.setValue(toState.getDepth(mLauncher)); in setState() 137 if (toState == LauncherState.BACKGROUND_APP) { in setState() 143 public void setStateWithAnimation(LauncherState toState, StateAnimationConfig config, in setStateWithAnimation() argument 150 float toDepth = toState.getDepth(mLauncher); in setStateWithAnimation()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/ |
D | QuickstepOnboardingPrefs.java | 77 public void onStateTransitionStart(LauncherState toState) { in setup() 104 public void onStateTransitionStart(LauncherState toState) { in setup() 105 if (toState == NORMAL) { in setup() 108 mShouldIncreaseCount = toState == HINT_STATE in setup()
|
/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | BluetoothConnectionRetryManager.java | 94 int toState = intent.getIntExtra(BluetoothProfile.EXTRA_STATE, in onReceive() local 100 toState, fromState); in onReceive() 172 void handleProfileConnectionStateChange(BluetoothDevice device, int profile, int toState, in handleProfileConnectionStateChange() argument 178 if (toState == BluetoothProfile.STATE_CONNECTED) { in handleProfileConnectionStateChange() 186 && ((toState == BluetoothProfile.STATE_DISCONNECTING) || (toState in handleProfileConnectionStateChange()
|
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/ |
D | BluetoothProxy.java | 174 int toState = 177 if (toState == BluetoothAdapter.STATE_ON) { 179 } else if (toState == BluetoothAdapter.STATE_OFF) { 215 final int toState = 218 if (toState == BluetoothLeAudio.STATE_CONNECTED 219 || toState 222 toState 266 final int toState = 269 svc_data.hapStateMutable.postValue(toState); 318 final int toState = [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | FallbackActivityInterface.java | 168 public void onStateTransitionComplete(RecentsState toState) { in onExitOverview() 170 if (toState == HOME) { in onExitOverview() 227 RecentsState toState = stateFromGestureEndTarget(endTarget); in getParallelAnimationToLauncher() local 228 Animator taskbarAnimator = uiController.createAnimToRecentsState(toState, duration); in getParallelAnimationToLauncher()
|
D | LauncherActivityInterface.java | 250 public void onStateTransitionComplete(LauncherState toState) { in onExitOverview() 252 if (toState == LauncherState.NORMAL) { in onExitOverview() 338 LauncherState toState = stateFromGestureEndTarget(endTarget); in getParallelAnimationToLauncher() local 339 Animator taskbarAnimator = uiController.createAnimToLauncher(toState, callbacks, duration); in getParallelAnimationToLauncher()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dp/ |
D | A2dpService.java | 1180 public void handleBondStateChanged(BluetoothDevice device, int fromState, int toState) { in handleBondStateChanged() argument 1181 mHandler.post(() -> bondStateChanged(device, toState)); in handleBondStateChanged() 1316 void handleConnectionStateChanged(BluetoothDevice device, int fromState, int toState) { in handleConnectionStateChanged() argument 1317 mHandler.post(() -> connectionStateChanged(device, fromState, toState)); in handleConnectionStateChanged() 1320 void connectionStateChanged(BluetoothDevice device, int fromState, int toState) { in connectionStateChanged() argument 1326 if ((device == null) || (fromState == toState)) { in connectionStateChanged() 1329 if (toState == BluetoothProfile.STATE_CONNECTED) { in connectionStateChanged() 1334 if (toState == BluetoothProfile.STATE_CONNECTED && (mMaxConnectedAudioDevices == 1)) { in connectionStateChanged() 1341 if (toState == BluetoothProfile.STATE_DISCONNECTED) { in connectionStateChanged() 1350 mFactory.getAvrcpTargetService().handleA2dpConnectionStateChanged(device, toState); in connectionStateChanged() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hearingaid/ |
D | HearingAidService.java | 827 public void handleBondStateChanged(BluetoothDevice device, int fromState, int toState) { in handleBondStateChanged() argument 828 mHandler.post(() -> bondStateChanged(device, toState)); in handleBondStateChanged() 888 synchronized void connectionStateChanged(BluetoothDevice device, int fromState, int toState) { in connectionStateChanged() argument 889 if ((device == null) || (fromState == toState)) { in connectionStateChanged() 897 + toState); in connectionStateChanged() 900 if (toState == BluetoothProfile.STATE_CONNECTED) { in connectionStateChanged() 919 if (toState == BluetoothProfile.STATE_DISCONNECTED) { in connectionStateChanged() 927 BluetoothProfile.HEARING_AID, fromState, toState); in connectionStateChanged() 931 BluetoothProfile.HEARING_AID, device, fromState, toState); in connectionStateChanged() 933 device, BluetoothProfile.HEARING_AID, toState, fromState); in connectionStateChanged()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/bas/ |
D | BatteryService.java | 278 public void handleConnectionStateChanged(BatteryStateMachine sm, int fromState, int toState) { in handleConnectionStateChanged() argument 280 if ((sm == null) || (fromState == toState)) { in handleConnectionStateChanged() 288 + toState); in handleConnectionStateChanged() 293 if (toState == BluetoothProfile.STATE_DISCONNECTED) { in handleConnectionStateChanged() 430 public void handleBondStateChanged(BluetoothDevice device, int fromState, int toState) { in handleBondStateChanged() argument 431 mHandler.post(() -> bondStateChanged(device, toState)); in handleBondStateChanged()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherState.java | 416 public void onLeavingState(Launcher launcher, LauncherState toState) { 465 LauncherState toState = lsm.getLastState(); 466 lsm.onBackProgressed(toState, backProgress); 475 LauncherState toState = lsm.getLastState(); 476 lsm.onBackCancelled(toState);
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | SilenceDeviceManager.java | 100 public void a2dpConnectionStateChanged(BluetoothDevice device, int fromState, int toState) { in a2dpConnectionStateChanged() argument 101 mHandler.obtainMessage(MSG_A2DP_CONNECTION_STATE_CHANGED, fromState, toState, device) in a2dpConnectionStateChanged() 112 public void hfpConnectionStateChanged(BluetoothDevice device, int fromState, int toState) { in hfpConnectionStateChanged() argument 113 mHandler.obtainMessage(MSG_HFP_CONNECTION_STATE_CHANGED, fromState, toState, device) in hfpConnectionStateChanged()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/csip/ |
D | CsipSetCoordinatorService.java | 928 public void handleBondStateChanged(BluetoothDevice device, int fromState, int toState) { in handleBondStateChanged() argument 929 mHandler.post(() -> bondStateChanged(device, toState)); in handleBondStateChanged() 989 void handleConnectionStateChanged(BluetoothDevice device, int fromState, int toState) { in handleConnectionStateChanged() argument 990 mHandler.post(() -> connectionStateChanged(device, fromState, toState)); in handleConnectionStateChanged() 994 synchronized void connectionStateChanged(BluetoothDevice device, int fromState, int toState) { in connectionStateChanged() argument 1000 if ((device == null) || (fromState == toState)) { in connectionStateChanged() 1008 + toState); in connectionStateChanged() 1013 if (toState == BluetoothProfile.STATE_DISCONNECTED) { in connectionStateChanged() 1019 } else if (toState == BluetoothProfile.STATE_CONNECTED) { in connectionStateChanged() 1033 BluetoothProfile.CSIP_SET_COORDINATOR, device, fromState, toState); in connectionStateChanged()
|