Home
last modified time | relevance | path

Searched refs:currentState (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
DTransitionLayout.kt47 private var currentState: TransitionViewState = TransitionViewState() variable
102 val contentTranslationX = currentState.contentTranslation.x.toInt() in applyCurrentState()
103 val contentTranslationY = currentState.contentTranslation.y.toInt() in applyCurrentState()
106 val widgetState = currentState.widgetStates.get(child.id) ?: continue in applyCurrentState()
153 translationX = currentState.translation.x in applyCurrentState()
154 translationY = currentState.translation.y in applyCurrentState()
155 CrossFadeHelper.fadeIn(this, currentState.alpha) in applyCurrentState()
171 val widgetState = currentState.widgetStates.get(child.id) ?: continue in onMeasure()
206 setLeftTopRightBottom(layoutLeft, layoutTop, layoutLeft + currentState.width, in updateBounds()
207 layoutTop + currentState.height) in updateBounds()
[all …]
DTransitionLayoutController.kt45 private var currentState = TransitionViewState() variable
66 currentState = getInterpolatedState( in updateStateFromAnimation()
70 reusedState = currentState) in updateStateFromAnimation()
71 applyStateToLayout(currentState) in updateStateFromAnimation()
276 val animated = animate && currentState.width != 0 in setState()
281 currentState = state.copy(reusedState = currentState) in setState()
283 animationStartState = currentState.copy() in setState()
289 currentState = state.copy(reusedState = currentState) in setState()
/frameworks/wilhelm/tests/sandbox/
Dmonkey.c252 State_t currentState = STATE_INITIAL; in main() local
253 while (STATE_TERMINAL != currentState) { in main()
257 if (currentState != transitionTable[i].mEntryState) in main()
263 fprintf(stderr, "No matching transitions in state %d\n", currentState); in main()
269 "but with probability 0\n", currentState); in main()
276 if (currentState != transitionTable[i].mEntryState) in main()
284 transitionTable[i].mActionName, currentState, transitionTable[i].mCount); in main()
287 currentState = nextState; in main()
/frameworks/base/core/java/android/os/
DSystemService.java114 final State currentState = getState(service); in waitForState() local
115 if (state.equals(currentState)) { in waitForState()
120 throw new TimeoutException("Service " + service + " currently " + currentState in waitForState()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DNetworkState.java47 public NetworkState(State currentState) { in NetworkState() argument
49 mStateDepository.add(currentState); in NetworkState()
84 public void recordState(State currentState) { in recordState() argument
85 mStateDepository.add(currentState); in recordState()
/frameworks/av/media/libaaudio/examples/utils/
DAAudioSimplePlayer.h225 aaudio_stream_state_t currentState = AAudioStream_getState(mStream); in waitUntilPaused() local
227 while (result == AAUDIO_OK && currentState == AAUDIO_STREAM_STATE_PAUSING) { in waitUntilPaused()
229 &currentState, NANOS_PER_SECOND); in waitUntilPaused()
230 inputState = currentState; in waitUntilPaused()
235 return (currentState == AAUDIO_STREAM_STATE_PAUSED) in waitUntilPaused()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaHostStatesManager.kt50 val currentState = mediaHostStates.get(location) in updateHostState() constant
51 if (!hostState.equals(currentState)) { in updateHostState()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoDialog.java53 int currentState = prefs.getFoodState(); in onFoodSelected() local
54 if (currentState == 0 && food.getType() != 0) { in onFoodSelected()
/frameworks/av/services/camera/libcameraservice/api1/client2/
DCaptureSequencer.cpp230 CaptureState currentState; in threadLoop() local
233 currentState = mCaptureState; in threadLoop()
236 currentState = (this->*kStateManagers[currentState])(client); in threadLoop()
239 if (currentState != mCaptureState) { in threadLoop()
243 mCaptureState = currentState; in threadLoop()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothAdapter.java220 int currentState = mAdapter.getState(); in syncBluetoothState() local
221 if (currentState != mState) { in syncBluetoothState()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DClientModeManager.java367 IState currentState = mStateMachine.getCurrentState(); in getCurrentStateName() local
369 if (currentState != null) { in getCurrentStateName()
370 return currentState.getName(); in getCurrentStateName()
381 private void updateConnectModeState(int newState, int currentState) { in updateConnectModeState() argument
396 intent.putExtra(WifiManager.EXTRA_PREVIOUS_WIFI_STATE, currentState); in updateConnectModeState()
DSoftApManager.java299 IState currentState = mStateMachine.getCurrentState(); in getCurrentStateName() local
301 if (currentState != null) { in getCurrentStateName()
302 return currentState.getName(); in getCurrentStateName()
315 private void updateApState(int newState, int currentState, int reason) { in updateApState() argument
322 intent.putExtra(WifiManager.EXTRA_PREVIOUS_WIFI_AP_STATE, currentState); in updateApState()
/frameworks/base/services/core/java/com/android/server/display/
DLocalDisplayAdapter.java616 int currentState = oldState; in requestDisplayStateLocked()
621 currentState = state; in requestDisplayStateLocked()
625 currentState = Display.STATE_DOZE; in requestDisplayStateLocked()
629 currentState = Display.STATE_ON; in requestDisplayStateLocked()
639 if ((state == Display.STATE_VR || currentState == Display.STATE_VR) && in requestDisplayStateLocked()
640 currentState != state) { in requestDisplayStateLocked()
651 if (state != currentState) { in requestDisplayStateLocked()
/frameworks/base/cmds/statsd/tests/metrics/
DValueMetricProducer_test.cpp4040 ASSERT_EQ(1, itBase->second[0].currentState.getValues().size()); in TEST()
4042 itBase->second[0].currentState.getValues()[0].mValue.int_value); in TEST()
4061 ASSERT_EQ(1, itBase->second[0].currentState.getValues().size()); in TEST()
4063 itBase->second[0].currentState.getValues()[0].mValue.int_value); in TEST()
4084 itBase->second[0].currentState.getValues()[0].mValue.int_value); in TEST()
4112 ASSERT_EQ(1, itBase->second[0].currentState.getValues().size()); in TEST()
4114 itBase->second[0].currentState.getValues()[0].mValue.int_value); in TEST()
4251 ASSERT_EQ(1, itBase->second[0].currentState.getValues().size()); in TEST()
4253 itBase->second[0].currentState.getValues()[0].mValue.int_value); in TEST()
4272 ASSERT_EQ(1, itBase->second[0].currentState.getValues().size()); in TEST()
[all …]
/frameworks/av/media/libaaudio/src/core/
DAudioStream.cpp345 aaudio_result_t AudioStream::waitForStateChange(aaudio_stream_state_t currentState, in waitForStateChange() argument
356 while (state == currentState && timeoutNanoseconds > 0) { in waitForStateChange()
373 return (state == currentState) ? AAUDIO_ERROR_TIMEOUT : AAUDIO_OK; in waitForStateChange()
/frameworks/base/core/java/android/app/servertransaction/
DTransactionExecutorHelper.java166 final int currentState = r.getLifecycleState(); in getClosestOfStates() local
169 getLifecyclePath(currentState, finalStates[i], false /* excludeLastState */); in getClosestOfStates()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java320 DctConstants.State currentState = getState(); in isDisconnected() local
321 return ((currentState == DctConstants.State.IDLE) || in isDisconnected()
322 currentState == DctConstants.State.FAILED); in isDisconnected()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarStateControllerImpl.java388 private void recordHistoricalState(int currentState, int lastState) { in recordHistoricalState() argument
391 state.mState = currentState; in recordHistoricalState()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNetworkTypeController.java846 String currentState = getCurrentState().getName(); in updateTimers() local
859 if (mIsSecondaryTimerActive && !mSecondaryTimerState.equals(currentState)) { in updateTimers()
862 log("Remove secondary timer since current state (" + currentState in updateTimers()
870 if (currentState.equals(STATE_CONNECTED_MMWAVE)) { in updateTimers()
/frameworks/native/services/surfaceflinger/Scheduler/
DScheduler.cpp591 bool Scheduler::handleTimerStateChanged(T* currentState, T newState) { in handleTimerStateChanged() argument
596 if (*currentState == newState) { in handleTimerStateChanged()
599 *currentState = newState; in handleTimerStateChanged()
DScheduler.h195 bool handleTimerStateChanged(T* currentState, T newState);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/management/
DControlsRequestDialogTest.kt128 activityRule.getActivity().lifecycle.currentState) in testActivityNotFinished()
/frameworks/native/services/surfaceflinger/
DSurfaceFlinger.cpp2673 const DisplayDeviceState& currentState, in processDisplayChanged() argument
2675 const sp<IBinder> currentBinder = IInterface::asBinder(currentState.surface); in processDisplayChanged()
2677 if (currentBinder != drawingBinder || currentState.sequenceId != drawingState.sequenceId) { in processDisplayChanged()
2683 if (const auto& physical = currentState.physical) { in processDisplayChanged()
2686 processDisplayAdded(displayToken, currentState); in processDisplayChanged()
2687 if (currentState.physical) { in processDisplayChanged()
2695 if (currentState.layerStack != drawingState.layerStack) { in processDisplayChanged()
2696 display->setLayerStack(currentState.layerStack); in processDisplayChanged()
2698 if ((currentState.orientation != drawingState.orientation) || in processDisplayChanged()
2699 (currentState.viewport != drawingState.viewport) || in processDisplayChanged()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DSlidingTab.java190 private int currentState = STATE_NORMAL; field in SlidingTab.Slider
293 currentState = state; in setState()
403 setState(currentState); in updateDrawableStates()
/frameworks/base/services/core/java/com/android/server/om/
DOverlayManagerServiceImpl.java719 final @OverlayInfo.State int currentState = mSettings.getState(overlayPackageName, userId); in updateState() local
722 if (currentState != newState) { in updateState()
726 OverlayInfo.stateToString(currentState), in updateState()

12