Home
last modified time | relevance | path

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

123

/aosp14/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
H A DLocationTimeZoneProvider.java448 currentState = currentState.newState(PROVIDER_STATE_STOPPED, null, null, "initialize"); in initialize()
449 setCurrentState(currentState, false); in initialize()
464 currentState = currentState.newState(PROVIDER_STATE_PERM_FAILED, null, null, in initialize()
466 setCurrentState(currentState, true); in initialize()
489 if (!currentState.isTerminated()) { in destroy()
672 switch (currentState.stateEnum) { in handleTimeZoneProviderEvent()
765 switch (currentState.stateEnum) { in handleTemporaryFailure()
806 ProviderState currentState = mCurrentState.get(); in assertIsStarted() local
807 if (!currentState.isStarted()) { in assertIsStarted()
814 ProviderState currentState = mCurrentState.get(); in assertCurrentState() local
[all …]
H A DBinderLocationTimeZoneProvider.java86 ProviderState currentState = mCurrentState.get(); in handleOnProviderBound() local
87 switch (currentState.stateEnum) { in handleOnProviderBound()
92 + ", currentState=" + currentState + ": Provider is started."); in handleOnProviderBound()
97 + ", currentState=" + currentState + ": Provider is stopped."); in handleOnProviderBound()
104 + ", currentState=" + currentState in handleOnProviderBound()
109 throw new IllegalStateException("Unknown currentState=" + currentState); in handleOnProviderBound()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/timezonedetector/location/
H A DLocationTimeZoneProviderTest.java99 assertNull(currentState.currentUserConfiguration); in lifecycle()
100 assertSame(provider, currentState.provider); in lifecycle()
120 assertSame(provider, currentState.provider); in lifecycle()
122 assertNull(currentState.event); in lifecycle()
148 assertSame(provider, currentState.provider); in lifecycle()
149 assertEquals(event, currentState.event); in lifecycle()
164 assertSame(provider, currentState.provider); in lifecycle()
165 assertEquals(event, currentState.event); in lifecycle()
179 assertSame(provider, currentState.provider); in lifecycle()
181 assertNull(currentState.event); in lifecycle()
[all …]
/aosp14/frameworks/base/core/java/android/hardware/devicestate/
H A DDeviceStateInfo.java71 public final int currentState; field in DeviceStateInfo
82 this.currentState = state; in DeviceStateInfo()
91 info.baseState, info.currentState); in DeviceStateInfo()
100 && currentState == that.currentState in equals()
106 int result = Objects.hash(baseState, currentState); in hashCode()
121 if (currentState != other.currentState) { in diff()
135 dest.writeInt(currentState); in writeToParcel()
152 final int currentState = source.readInt();
154 return new DeviceStateInfo(supportedStates, baseState, currentState);
/aosp14/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/
H A DDeviceStateInfoTest.java45 final int currentState = 2; in create() local
47 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in create()
51 assertEquals(currentState, info.currentState); in create()
58 final int currentState = 2; in equals() local
60 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in equals()
64 currentState); in equals()
68 currentState); in equals()
76 final int currentState = 2; in diff_sameObject() local
78 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in diff_sameObject()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
H A DTransitionLayout.kt49 private var currentState: TransitionViewState = TransitionViewState()
128 val contentTranslationX = currentState.contentTranslation.x.toInt()
129 val contentTranslationY = currentState.contentTranslation.y.toInt()
132 val widgetState = currentState.widgetStates.get(child.id) ?: continue
179 translationX = currentState.translation.x
180 translationY = currentState.translation.y
182 CrossFadeHelper.fadeIn(this, currentState.alpha)
201 val widgetState = currentState.widgetStates.get(child.id) ?: continue
237 layoutTop + currentState.height)
303 val widgetState = currentState.widgetStates.get(child.id)
[all …]
H A DTransitionLayoutController.kt44 private var currentState = TransitionViewState() regex
65 currentState = getInterpolatedState(
69 reusedState = currentState)
70 applyStateToLayout(currentState)
284 val animated = animate && currentState.width != 0
289 currentState = state.copy(reusedState = currentState)
291 animationStartState = currentState.copy()
297 currentState = state.copy(reusedState = currentState)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/
H A DBackPanelControllerTest.kt93 assertThat(mBackPanelController.currentState)
103 assertThat(mBackPanelController.currentState)
119 assertThat(mBackPanelController.currentState)
127 assertThat(mBackPanelController.currentState)
144 assertThat(mBackPanelController.currentState)
153 assertThat(mBackPanelController.currentState)
180 assertThat(mBackPanelController.currentState)
211 assertThat(mBackPanelController.currentState)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/
H A DBackPanelController.kt321 when (currentState) {
420 when (currentState) {
504 when (currentState) {
512 when (currentState) {
526 when (currentState) {
537 when (currentState) {
739 when (currentState) {
822 !(currentState == GestureState.FLUNG || currentState == GestureState.COMMITTED),
890 currentState = newState
892 when (currentState) {
[all …]
/aosp14/frameworks/base/core/java/android/os/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
H A DShadeExpansionStateManagerTest.kt38 val currentState = shadeExpansionStateManager.addExpansionListener(listener) regex
39 listener.onPanelExpansionChanged(currentState)
72 val currentState = shadeExpansionStateManager.addExpansionListener(listener) regex
73 listener.onPanelExpansionChanged(currentState)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/lifecycle/
H A DRepeatWhenAttached.kt158 registry.currentState = Lifecycle.State.CREATED
167 registry.currentState = Lifecycle.State.DESTROYED
176 registry.currentState =
/aosp14/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
H A DBiometricSchedulerOperation.java293 final int currentState = mState; in cancel() local
294 if (currentState == STATE_STARTED_CANCELING) { in cancel()
300 if (currentState == STATE_WAITING_IN_QUEUE in cancel()
301 || currentState == STATE_WAITING_IN_QUEUE_CANCELING in cancel()
302 || currentState == STATE_WAITING_FOR_COOKIE) { in cancel()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/sender/
H A DChipStateSender.kt283 currentState: ChipStateSender?,
287 if (currentState == null) {
292 if (currentState == desiredState) {
296 return currentState.isValidNextState(desiredState)
H A DMediaTttSenderLogger.kt59 fun logInvalidStateTransitionError(currentState: String, desiredState: String) {
64 str1 = currentState
/aosp14/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
H A 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()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
H A DAccessPointControllerImplTest.kt94 assertThat(controller.lifecycle.currentState).isEqualTo(Lifecycle.State.CREATED)
100 assertThat(controller.lifecycle.currentState).isEqualTo(Lifecycle.State.STARTED)
108 assertThat(controller.lifecycle.currentState).isEqualTo(Lifecycle.State.CREATED)
117 assertThat(controller.lifecycle.currentState).isEqualTo(Lifecycle.State.STARTED)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/
H A DMediaHostStatesManager.kt50 val currentState = mediaHostStates.get(location) regex
51 if (!hostState.equals(currentState)) {
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/
H A DDeviceStateManagerServiceTest.java290 assertEquals(info.currentState, INVALID_DEVICE_STATE); in getDeviceStateInfo_baseStateAndCommittedStateNotSet()
303 assertEquals(callback.getLastNotifiedInfo().currentState, in registerCallback()
310 assertEquals(callback.getLastNotifiedInfo().currentState, in registerCallback()
320 assertEquals(callback.getLastNotifiedInfo().currentState, in registerCallback()
329 assertEquals(callback.getLastNotifiedInfo().currentState, in registerCallback()
341 assertEquals(callback.getLastNotifiedInfo().currentState, in registerCallback_emitsInitialValue()
391 assertEquals(callback.getLastNotifiedInfo().currentState, in requestState()
410 assertEquals(callback.getLastNotifiedInfo().currentState, in requestState()
716 assertEquals(callback.getLastNotifiedInfo().currentState, in requestBaseStateOverride()
736 assertEquals(callback.getLastNotifiedInfo().currentState, in requestBaseStateOverride()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/data/repository/
H A DShadeRepository.kt70 val currentState = shadeExpansionStateManager.addExpansionListener(callback) regex
71 callback.onPanelExpansionChanged(currentState)
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
H A DZenModeControllerImplTest.java158 final AtomicInteger currentState = new AtomicInteger(-1); in testModeChange_callbackNotified() local
163 currentState.set(zen); in testModeChange_callbackNotified()
179 assertEquals(state.intValue(), currentState.get()); in testModeChange_callbackNotified()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/permission/
H A DOneTimePermissionUserManager.java275 int currentState; in updateUidState()
277 currentState = getCurrentState(); in updateUidState()
278 if (currentState == STATE_GONE) { in updateUidState()
288 updateUidState(currentState); in updateUidState()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/transition/
H A DShadeTransitionController.kt66 val currentState = regex
68 onPanelExpansionChanged(currentState)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DDeviceStateRotationLockSettingControllerLogger.kt78 fun logUpdateDeviceState(currentState: Int, newState: Int) {
83 int1 = currentState
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
H A DNekoDialog.java53 int currentState = prefs.getFoodState(); in onFoodSelected() local
54 if (currentState == 0 && food.getType() != 0) { in onFoodSelected()

123