/cts/tests/fragment/src/android/fragment/cts/ |
ReentrantFragment.java | 23 private static final String FROM_STATE = "fromState"; 29 public static ReentrantFragment create(int fromState, int toState) { 31 fragment.mFromState = fromState; 38 public void onStateChanged(int fromState) { 39 super.onStateChanged(fromState); 41 if (fromState == mFromState && mState == mToState
|
StrictFragment.java | 55 public void onStateChanged(int fromState) { 121 int fromState = mState; 123 onStateChanged(fromState); 187 int fromState = mState; 189 onStateChanged(fromState);
|
FragmentLifecycleTest.java | 683 private void testLifecycleTransitionFailure(int fromState, int toState) throws Throwable { 691 final Fragment reentrantFragment = ReentrantFragment.create(fromState, toState); 702 // Now shut down the fragment controller. When fromState > toState, this should 707 if (fromState > toState) { 709 + StrictFragment.stateToString(fromState) + " to " 713 if (fromState < toState) { 715 + StrictFragment.stateToString(fromState) + " to " 722 // fromState < toState. We want to catch the fragment while it 731 + StrictFragment.stateToString(fromState) + " to " [all...] |
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/ |
ReentrantFragment.java | 22 private static final String FROM_STATE = "fromState"; 28 public static ReentrantFragment create(int fromState, int toState) { 30 fragment.mFromState = fromState; 37 public void onStateChanged(int fromState) { 38 super.onStateChanged(fromState); 40 if (fromState == mFromState && mState == mToState
|
StrictFragment.java | 54 public void onStateChanged(int fromState) { 119 int fromState = mState; 121 onStateChanged(fromState); 185 int fromState = mState; 187 onStateChanged(fromState);
|
/packages/services/Car/service/src/com/android/car/ |
Utils.java | 55 public TransitionLog(String name, int fromState, int toState, long timestamp, 57 this(name, fromState, toState, timestamp); 61 public TransitionLog(String name, int fromState, int toState, long timeStamp) { 63 mFromState = fromState;
|
/frameworks/support/leanback/src/main/java/androidx/leanback/util/ |
StateMachine.java | 90 Transition(State fromState, State toState, Event event) { 94 mFromState = fromState; 100 Transition(State fromState, State toState) { 101 mFromState = fromState; 107 Transition(State fromState, State toState, Condition condition) { 111 mFromState = fromState; 276 * @param fromState The from state. 280 public void addTransition(State fromState, State toState, Event event) { 281 Transition transition = new Transition(fromState, toState, event); 283 fromState.addOutgoing(transition) [all...] |
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/ |
HeadsetTestUtils.java | 38 * @param fromState value of {@link BluetoothProfile#EXTRA_PREVIOUS_STATE} 41 public static void verifyAudioStateBroadcast(BluetoothDevice device, int toState, int fromState, 47 Assert.assertEquals(fromState, 56 * @param fromState value of {@link BluetoothProfile#EXTRA_PREVIOUS_STATE} 62 int fromState, Intent intent, boolean checkFlag) { 70 Assert.assertEquals(fromState, 80 * @param fromState value of {@link BluetoothProfile#EXTRA_PREVIOUS_STATE} 84 int fromState, Intent intent) { 85 verifyConnectionStateBroadcast(device, toState, fromState, intent, true);
|
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/ |
AllAppsSwipeController.java | 50 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { 51 if (fromState == NORMAL && isDragTowardPositive) { 53 } else if (fromState == ALL_APPS && !isDragTowardPositive) { 56 return fromState;
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
OverviewToAllAppsTouchController.java | 65 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { 66 if (fromState == ALL_APPS && !isDragTowardPositive) { 73 return fromState;
|
PortraitStatesTouchController.java | 95 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) { 96 if (fromState == ALL_APPS && !isDragTowardPositive) { 100 } else if (fromState == OVERVIEW) { 102 } else if (fromState == NORMAL && isDragTowardPositive) { 105 return fromState;
|
LandscapeEdgeSwipeController.java | 43 protected LauncherState getTargetState(LauncherState fromState, boolean isDragTowardPositive) {
|
/packages/apps/Launcher3/src/com/android/launcher3/touch/ |
AbstractStateChangeTouchController.java | 141 LauncherState fromState = mLauncher.getStateManager().getState(); 143 if (getTargetState(fromState, true /* isDragTowardPositive */) != fromState) { 146 if (getTargetState(fromState, false /* isDragTowardPositive */) != fromState) { 162 * Returns the state to go to from fromState given the drag direction. If there is no state in 163 * that direction, returns fromState. 165 protected abstract LauncherState getTargetState(LauncherState fromState, 220 private boolean goingBetweenNormalAndOverview(LauncherState fromState, LauncherState toState) { 221 return (fromState == NORMAL || fromState == OVERVIEW [all...] |
/cts/tests/tests/nativemedia/aaudio/jni/ |
utils.h | 71 StreamCommand cmd, aaudio_stream_state_t fromState, aaudio_stream_state_t toState);
|
utils.cpp | 162 StreamCommand cmd, aaudio_stream_state_t fromState, aaudio_stream_state_t toState) { 166 AAudioStream_waitForStateChange(mStream, fromState, &state, DEFAULT_STATE_TIMEOUT));
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
PackageInstallerCompat.java | 76 public static PackageInstallInfo fromState(int state, String packageName) {
|
PackageInstallerCompatVL.java | 117 sendUpdate(PackageInstallInfo.fromState(
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
LauncherStateManager.java | 225 LauncherState fromState = mState; 248 mConfig.duration = state == NORMAL ? fromState.transitionDuration : state.transitionDuration; 251 prepareForAtomicAnimation(fromState, state, builder); 263 * Prepares for a non-user controlled animation from fromState to toState. Preparations include: 267 public void prepareForAtomicAnimation(LauncherState fromState, LauncherState toState, 269 if (fromState == NORMAL && toState.overviewUi) { 277 } else if (fromState.overviewUi && toState == NORMAL) {
|
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
PbapStateMachine.java | 150 private void broadcastConnectionState(BluetoothDevice device, int fromState, int toState) { 151 stateLogD("broadcastConnectionState " + device + ": " + fromState + "->" + toState); 153 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, fromState);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
WifiStateMachinePrimeTest.java | 150 String fromState = mWifiStateMachinePrime.getCurrentMode(); 174 String fromState = mWifiStateMachinePrime.getCurrentMode(); 201 String fromState = mWifiStateMachinePrime.getCurrentMode(); 215 if (fromState.equals(WIFI_DISABLED_STATE_STRING)) {
|
ClientModeManagerTest.java | 141 private void verifyNotificationsForCleanShutdown(int fromState) { 148 checkWifiStateChangedBroadcast(intents.get(0), WIFI_STATE_DISABLING, fromState);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/ |
HearingAidService.java | 699 synchronized void connectionStateChanged(BluetoothDevice device, int fromState, 701 if ((device == null) || (fromState == toState)) { 703 + " fromState=" + fromState + " toState=" + toState); 717 if (fromState == BluetoothProfile.STATE_CONNECTED && getConnectedDevices().isEmpty()) { 740 int fromState = intent.getIntExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, -1); 741 connectionStateChanged(device, fromState, toState); [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/ |
A2dpService.java | [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
MagnificationGestureHandlerTest.java | 296 private void assertTransition(int fromState, Runnable transitionAction, int toState) { 297 goFromStateIdleTo(fromState);
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/ |
HeadsetStateMachine.java | 287 void broadcastConnectionState(BluetoothDevice device, int fromState, int toState) { 288 stateLogD("broadcastConnectionState " + device + ": " + fromState + "->" + toState); 289 mHeadsetService.onConnectionStateChangedFromStateMachine(device, fromState, toState); 291 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, fromState); 300 void broadcastAudioState(BluetoothDevice device, int fromState, int toState) { 301 stateLogD("broadcastAudioState: " + device + ": " + fromState + "->" + toState); 302 mHeadsetService.onAudioStateChangedFromStateMachine(device, fromState, toState); 304 intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, fromState); [all...] |