/aosp14/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
H A D | LocationTimeZoneProvider.java | 448 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 D | BinderLocationTimeZoneProvider.java | 86 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 D | LocationTimeZoneProviderTest.java | 99 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 D | DeviceStateInfo.java | 71 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 D | DeviceStateInfoTest.java | 45 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 D | TransitionLayout.kt | 49 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 D | TransitionLayoutController.kt | 44 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 D | BackPanelControllerTest.kt | 93 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 D | BackPanelController.kt | 321 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 D | SystemService.java | 114 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 D | ShadeExpansionStateManagerTest.kt | 38 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 D | RepeatWhenAttached.kt | 158 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 D | BiometricSchedulerOperation.java | 293 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 D | ChipStateSender.kt | 283 currentState: ChipStateSender?, 287 if (currentState == null) { 292 if (currentState == desiredState) { 296 return currentState.isValidNextState(desiredState)
|
H A D | MediaTttSenderLogger.kt | 59 fun logInvalidStateTransitionError(currentState: String, desiredState: String) { 64 str1 = currentState
|
/aosp14/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/ |
H A D | NetworkState.java | 47 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 D | AccessPointControllerImplTest.kt | 94 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 D | MediaHostStatesManager.kt | 50 val currentState = mediaHostStates.get(location) regex 51 if (!hostState.equals(currentState)) {
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicestate/ |
H A D | DeviceStateManagerServiceTest.java | 290 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 D | ShadeRepository.kt | 70 val currentState = shadeExpansionStateManager.addExpansionListener(callback) regex 71 callback.onPanelExpansionChanged(currentState)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | ZenModeControllerImplTest.java | 158 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 D | OneTimePermissionUserManager.java | 275 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 D | ShadeTransitionController.kt | 66 val currentState = regex 68 onPanelExpansionChanged(currentState)
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | DeviceStateRotationLockSettingControllerLogger.kt | 78 fun logUpdateDeviceState(currentState: Int, newState: Int) { 83 int1 = currentState
|
/aosp14/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | NekoDialog.java | 53 int currentState = prefs.getFoodState(); in onFoodSelected() local 54 if (currentState == 0 && food.getType() != 0) { in onFoodSelected()
|