/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
D | LocationTimeZoneProvider.java | 447 ProviderState currentState = ProviderState.createStartingState(this); in initialize() local 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() 488 ProviderState currentState = mCurrentState.get(); in destroy() local 489 if (!currentState.isTerminated()) { in destroy() 491 currentState.newState(PROVIDER_STATE_DESTROYED, null, null, "destroy"); in destroy() 590 ProviderState currentState = mCurrentState.get(); in startUpdates() local 591 ProviderState newState = currentState.newState(PROVIDER_STATE_STARTED_INITIALIZING, in startUpdates() [all …]
|
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()
|
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/location/ |
D | LocationTimeZoneProviderTest.java | 96 ProviderState currentState = assertAndReturnProviderState( in lifecycle() local 99 assertNull(currentState.currentUserConfiguration); in lifecycle() 100 assertSame(provider, currentState.provider); in lifecycle() 117 ProviderState currentState = assertAndReturnProviderState( in lifecycle() local 120 assertSame(provider, currentState.provider); in lifecycle() 121 assertEquals(config, currentState.currentUserConfiguration); in lifecycle() 122 assertNull(currentState.event); in lifecycle() 145 ProviderState currentState = assertAndReturnProviderState( in lifecycle() local 148 assertSame(provider, currentState.provider); in lifecycle() 149 assertEquals(event, currentState.event); in lifecycle() [all …]
|
/frameworks/base/core/java/android/hardware/devicestate/ |
D | DeviceStateInfo.java | 71 public final DeviceState currentState; field in DeviceStateInfo 85 this.currentState = state; in DeviceStateInfo() 93 this(new ArrayList<>(info.supportedStates), info.baseState, info.currentState); in DeviceStateInfo() 102 && currentState.equals(that.currentState) in equals() 108 int result = Objects.hash(baseState, currentState); in hashCode() 123 if (!currentState.equals(other.currentState)) { in diff() 137 dest.writeTypedObject(currentState.getConfiguration(), flags); in writeToParcel() 158 final DeviceState currentState = new DeviceState( 161 return new DeviceStateInfo(supportedStates, baseState, currentState);
|
D | DeviceStateUtil.java | 43 public static int calculateBaseStateIdentifier(@NonNull DeviceState currentState, in calculateBaseStateIdentifier() argument 45 DeviceState.Configuration stateConfiguration = currentState.getConfiguration(); in calculateBaseStateIdentifier()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/haptics/slider/ |
D | SliderStateTrackerTest.kt | 74 assertThat(mSliderStateTracker.currentState).isEqualTo(SliderState.IDLE) in <lambda>() 86 assertThat(mSliderStateTracker.currentState).isEqualTo(SliderState.IDLE) in <lambda>() 99 assertThat(mSliderStateTracker.currentState).isEqualTo(SliderState.WAIT) in <lambda>() 120 assertThat(mSliderStateTracker.currentState) in <lambda>() 145 assertThat(mSliderStateTracker.currentState) in <lambda>() 169 assertThat(mSliderStateTracker.currentState) in <lambda>() 193 assertThat(mSliderStateTracker.currentState).isEqualTo(SliderState.JUMP_BOOKEND_SELECTED) in <lambda>() 215 assertThat(mSliderStateTracker.currentState).isEqualTo(SliderState.JUMP_BOOKEND_SELECTED) in <lambda>() 234 assertThat(mSliderStateTracker.currentState).isEqualTo(SliderState.IDLE) in <lambda>() 253 assertThat(mSliderStateTracker.currentState).isEqualTo(SliderState.DRAG_HANDLE_DRAGGING) in <lambda>() [all …]
|
/frameworks/base/core/tests/devicestatetests/src/android/hardware/devicestate/ |
D | DeviceStateInfoTest.java | 80 final DeviceState currentState = DEVICE_STATE_2; in create() local 82 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in create() 86 assertEquals(currentState, info.currentState); in create() 94 final DeviceState currentState = DEVICE_STATE_2; in equals() local 96 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in equals() 100 currentState); in equals() 104 new ArrayList<>(List.of(DEVICE_STATE_0, DEVICE_STATE_2)), baseState, currentState); in equals() 113 final DeviceState currentState = DEVICE_STATE_2; in diff_sameObject() local 115 final DeviceStateInfo info = new DeviceStateInfo(supportedStates, baseState, currentState); in diff_sameObject()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/slider/ |
D | SliderTracker.kt | 42 var currentState: SliderState = SliderState.IDLE in <lambda>() variable in com.android.systemui.haptics.slider.SliderTracker 62 executeOnState(currentState) in <lambda>() 88 protected abstract fun executeOnState(currentState: SliderState) in <lambda>() 92 currentState = SliderState.IDLE in <lambda>()
|
D | SliderStateTracker.kt | 58 when (currentState) { in iterateState() 94 if (isActive && currentState == SliderState.WAIT) { in launchTimer() 97 executeOnState(currentState) in launchTimer() 103 if (currentState != SliderState.WAIT) return in handleWait() 121 if (currentState != SliderState.WAIT) { in handleWait() 174 override fun executeOnState(currentState: SliderState) { in executeOnState() 175 when (currentState) { in executeOnState() 260 currentState = state in handleArrowBookend()
|
/frameworks/native/libs/battery/ |
D | MultiStateCounter.h | 41 state_t currentState; variable 125 currentState(0), in MultiStateCounter() 153 setState(currentState, timestamp); in setEnabled() 180 states[currentState].timeInStateSinceUpdate += timestamp - lastStateChangeTimestamp; in setState() 197 currentState = state; in setState() 208 currentState = source.currentState; in copyStatesFrom() 237 setState(currentState, timestamp); in updateValue() 291 add(&states[currentState].counter, value, 1 /* numerator */, 1 /* denominator */); in addValue() 332 str << " currentState: " << currentState; in toString()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/ |
D | TransitionLayout.kt | 49 private var currentState: TransitionViewState = TransitionViewState() variable 128 val contentTranslationX = currentState.contentTranslation.x.toInt() in applyCurrentState() 129 val contentTranslationY = currentState.contentTranslation.y.toInt() in applyCurrentState() 132 val widgetState = currentState.widgetStates.get(child.id) ?: continue in applyCurrentState() 179 translationX = currentState.translation.x in applyCurrentState() 180 translationY = currentState.translation.y in applyCurrentState() 182 CrossFadeHelper.fadeIn(this, currentState.alpha) in applyCurrentState() 201 val widgetState = currentState.widgetStates.get(child.id) ?: continue in onMeasure() 236 setLeftTopRightBottom(layoutLeft, layoutTop, layoutLeft + currentState.width, in updateBounds() 237 layoutTop + currentState.height) in updateBounds() [all …]
|
D | TransitionLayoutController.kt | 54 private var currentState = TransitionViewState() variable in com.android.systemui.util.animation.TransitionLayoutController 76 currentState = getInterpolatedState( in updateStateFromAnimation() 80 reusedState = currentState) in updateStateFromAnimation() 81 applyStateToLayout(currentState) in updateStateFromAnimation() 355 val animated = animate && currentState.width != 0 in setState() 360 currentState = state.copy(reusedState = currentState) in setState() 362 animationStartState = currentState.copy() in setState() 370 currentState = state.copy(reusedState = currentState) in setState()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/gestural/ |
D | BackPanelControllerTest.kt | 100 assertThat(mBackPanelController.currentState) in handlesActionDown() 110 assertThat(mBackPanelController.currentState) in staysHiddenBeforeSlopCrossed() 120 assertThat(mBackPanelController.currentState) in handlesBackCommitted() 131 assertThat(mBackPanelController.currentState) in handlesBackCommitted() 138 assertThat(mBackPanelController.currentState) in handlesBackCommitted() 148 assertThat(mBackPanelController.currentState) in handlesBackCommitted() 158 assertThat(mBackPanelController.currentState) in handlesBackCancelled() 177 assertThat(mBackPanelController.currentState) in handlesBackCancelled()
|
/frameworks/base/services/foldables/devicestateprovider/src/com/android/server/policy/ |
D | BookStylePreferredScreenCalculator.java | 207 boolean likelyReverseWedge, State currentState) { in isApplicable() argument 212 currentState.stickyKeepOuterUntil90Degrees) in isApplicable() 214 currentState.stickyKeepInnerUntil45Degrees); in isApplicable() 223 boolean likelyReverseWedge, State currentState) { in tryTransition() argument 224 if (!isApplicable(hingeAngle, likelyTentOrWedge, likelyReverseWedge, currentState)) { in tryTransition() 228 boolean stickyKeepOuterUntil90Degrees = currentState.stickyKeepOuterUntil90Degrees; in tryTransition() 229 boolean stickyKeepInnerUntil45Degrees = currentState.stickyKeepInnerUntil45Degrees; in tryTransition()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/ |
D | BackPanelController.kt | 133 @VisibleForTesting internal var currentState: GestureState = GestureState.GONE in <lambda>() variable 318 when (currentState) { in <lambda>() 418 when (currentState) { in <lambda>() 502 when (currentState) { in <lambda>() 510 when (currentState) { in <lambda>() 524 when (currentState) { in <lambda>() 535 when (currentState) { in <lambda>() 737 when (currentState) { in <lambda>() 820 !(currentState == GestureState.FLUNG || currentState == GestureState.COMMITTED), in <lambda>() 824 when (currentState) { in <lambda>() [all …]
|
/frameworks/wilhelm/tests/sandbox/ |
D | monkey.c | 252 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/opt/net/ims/src/java/com/android/ims/rcs/uce/ |
D | UceDeviceState.java | 317 DeviceStateResult currentState = getCurrentState(); in refreshDeviceState() local 322 if (!currentState.isRequestForbidden()) { in refreshDeviceState() 324 } else if (!currentState.isDeviceStateEqual(previousState)) { in refreshDeviceState() 325 saveDeviceStateToPreference(currentState); in refreshDeviceState() 328 logd("refreshDeviceState: previous: " + previousState + ", current: " + currentState); in refreshDeviceState() 338 DeviceStateResult currentState = getCurrentState(); in resetDeviceState() local 343 logd("resetDeviceState: previous=" + previousState + ", current=" + currentState); in resetDeviceState()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/ |
D | DreamOverlayServiceTest.kt | 482 assertThat(lifecycleRegistry.currentState).isEqualTo(Lifecycle.State.DESTROYED) in testDestroy() 499 assertThat(lifecycleRegistry.currentState).isEqualTo(Lifecycle.State.DESTROYED) in testDoNotRemoveViewOnDestroyIfOverlayNotStarted() 737 assertThat(lifecycleRegistry.currentState).isEqualTo(Lifecycle.State.CREATED) in testLifecycle_createdAfterConstruction() 782 assertThat(lifecycleRegistry.currentState).isEqualTo(Lifecycle.State.STARTED) in testLifecycle_dreamNotFocusedOnStart_isStarted() 820 assertThat(lifecycleRegistry.currentState).isEqualTo(Lifecycle.State.RESUMED) in testNotificationShadeShown_setsLifecycleState() 829 assertThat(lifecycleRegistry.currentState).isEqualTo(Lifecycle.State.STARTED) in testNotificationShadeShown_setsLifecycleState() 836 assertThat(lifecycleRegistry.currentState).isEqualTo(Lifecycle.State.RESUMED) in testNotificationShadeShown_setsLifecycleState() 851 assertThat(lifecycleRegistry.currentState).isEqualTo(Lifecycle.State.RESUMED) in testBouncerShown_setsLifecycleState() 859 assertThat(lifecycleRegistry.currentState).isEqualTo(Lifecycle.State.STARTED) in testBouncerShown_setsLifecycleState() 867 assertThat(lifecycleRegistry.currentState).isEqualTo(Lifecycle.State.RESUMED) in testBouncerShown_setsLifecycleState() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/analytics/ |
D | TelephonyAnalytics.java | 717 TimeStampedServiceState currentState = in logSimAbsentState() local 720 setCurrentStateAndAddLastState(currentState, now); in logSimAbsentState() 723 TimeStampedServiceState currentState = in logOosWithIwlan() local 726 setCurrentStateAndAddLastState(currentState, now); in logOosWithIwlan() 730 TimeStampedServiceState currentState = in logAirplaneModeServiceState() local 732 setCurrentStateAndAddLastState(currentState, now); in logAirplaneModeServiceState() 736 TimeStampedServiceState currentState = in logNoNetworkCoverage() local 739 setCurrentStateAndAddLastState(currentState, now); in logNoNetworkCoverage() 743 TimeStampedServiceState currentState = in logInServiceData() local 746 setCurrentStateAndAddLastState(currentState, now); in logInServiceData() [all …]
|
/frameworks/base/core/java/android/os/ |
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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | GlanceableHubContainerControllerTest.kt | 331 assertThat(underTest.lifecycle.currentState).isEqualTo(Lifecycle.State.INITIALIZED) in lifecycle_initializedAfterConstruction() 355 assertThat(underTest.lifecycle.currentState).isEqualTo(Lifecycle.State.CREATED) in lifecycle_createdAfterViewCreated() 361 assertThat(underTest.lifecycle.currentState).isEqualTo(Lifecycle.State.STARTED) in lifecycle_startedAfterFlowsUpdate() 369 assertThat(underTest.lifecycle.currentState).isEqualTo(Lifecycle.State.RESUMED) in lifecycle_resumedAfterCommunalShows() 379 assertThat(underTest.lifecycle.currentState).isEqualTo(Lifecycle.State.RESUMED) in lifecycle_startedAfterCommunalCloses() 384 assertThat(underTest.lifecycle.currentState).isEqualTo(Lifecycle.State.STARTED) in lifecycle_startedAfterCommunalCloses() 399 assertThat(underTest.lifecycle.currentState).isEqualTo(Lifecycle.State.STARTED) in lifecycle_startedAfterPrimaryBouncerShows() 414 assertThat(underTest.lifecycle.currentState).isEqualTo(Lifecycle.State.STARTED) in lifecycle_startedAfterAlternateBouncerShows() 423 assertThat(underTest.lifecycle.currentState).isEqualTo(Lifecycle.State.CREATED) in lifecycle_createdAfterDisposeView() 437 assertThat(underTest.lifecycle.currentState).isEqualTo(Lifecycle.State.STARTED) in lifecycle_startedAfterShadeShows()
|
D | ShadeExpansionStateManagerTest.kt | 38 val currentState = shadeExpansionStateManager.addExpansionListener(listener) in onPanelExpansionChanged_listenerNotified() constant 39 listener.onPanelExpansionChanged(currentState) in onPanelExpansionChanged_listenerNotified() 61 val currentState = shadeExpansionStateManager.addExpansionListener(listener) in addExpansionListener_listenerNotifiedOfCurrentValues() constant 62 listener.onPanelExpansionChanged(currentState) in addExpansionListener_listenerNotifiedOfCurrentValues()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/ |
D | DreamUniverse.kt | 47 lifecycle.currentState = Lifecycle.State.CREATED in onCreate() 51 lifecycle.currentState = Lifecycle.State.STARTED in onStart() 55 lifecycle.currentState = Lifecycle.State.CREATED in onStop()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/ |
D | KeyguardSurfaceBehindInteractor.kt | 62 ) { startedStep, currentState, notifAnimationRunning -> in <lambda>() method 64 if (startedStep.to == KeyguardState.GONE && currentState != KeyguardState.GONE) { in <lambda>() 97 KeyguardSurfaceBehindModel(alpha = if (isSurfaceVisible(currentState)) 1f else 0f) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/controller/ |
D | KeyguardMediaController.kt | 189 val currentState = statusBarStateController.state in refreshMediaPosition() constant 191 val keyguardOrUserSwitcher = (currentState == StatusBarState.KEYGUARD) in refreshMediaPosition() 206 currentState = currentState, in refreshMediaPosition() 222 lastUsedStatusBarState = currentState in refreshMediaPosition()
|