Home
last modified time | relevance | path

Searched refs:lastState (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/accessibility/data/repository/
DNightDisplayRepositoryTest.kt97 val lastState by collectLastValue(underTest.nightDisplayState(testUser)) in nightDisplayState_matchesAutoMode() constant
104 assertThat(lastState!!.autoMode).isEqualTo(ColorDisplayManager.AUTO_MODE_DISABLED) in nightDisplayState_matchesAutoMode()
107 assertThat(lastState!!.autoMode).isEqualTo(ColorDisplayManager.AUTO_MODE_CUSTOM_TIME) in nightDisplayState_matchesAutoMode()
110 assertThat(lastState!!.startTime).isEqualTo(testStartTime) in nightDisplayState_matchesAutoMode()
113 assertThat(lastState!!.endTime).isEqualTo(testEndTime) in nightDisplayState_matchesAutoMode()
117 assertThat(lastState!!.autoMode).isEqualTo(ColorDisplayManager.AUTO_MODE_TWILIGHT) in nightDisplayState_matchesAutoMode()
127 val lastState by collectLastValue(underTest.nightDisplayState(testUser)) in nightDisplayState_matchesIsNightDisplayActivated() constant
132 assertThat(lastState!!.isActivated) in nightDisplayState_matchesIsNightDisplayActivated()
136 assertThat(lastState!!.isActivated).isTrue() in nightDisplayState_matchesIsNightDisplayActivated()
139 assertThat(lastState!!.isActivated).isFalse() in nightDisplayState_matchesIsNightDisplayActivated()
[all …]
/frameworks/base/services/core/java/com/android/server/sensorprivacy/
DSensorPrivacyStateControllerImpl.java71 SensorState lastState = mPersistedState.getState(toggleType, userId, sensor); in setStateLocked() local
72 if (lastState == null) { in setStateLocked()
84 if (lastState.setEnabled(enabled)) { in setStateLocked()
85 notifyStateChangeLocked(toggleType, userId, sensor, lastState); in setStateLocked()
98 SensorState lastState = mPersistedState.getState(toggleType, userId, sensor); in setStateLocked() local
99 if (lastState == null) { in setStateLocked()
111 if (lastState.setState(state)) { in setStateLocked()
112 notifyStateChangeLocked(toggleType, userId, sensor, lastState); in setStateLocked()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java364 BatteryStateSnapshot lastState = state.get(); in testMaybeShowHybridWarning() local
368 mPowerUI.maybeShowHybridWarning(state.get(), lastState); in testMaybeShowHybridWarning() local
374 lastState = state.get(); in testMaybeShowHybridWarning()
378 mPowerUI.maybeShowHybridWarning(state.get(), lastState); in testMaybeShowHybridWarning() local
384 lastState = state.get(); in testMaybeShowHybridWarning()
388 mPowerUI.maybeShowHybridWarning(state.get(), lastState); in testMaybeShowHybridWarning() local
581 BatteryStateSnapshot lastState = state.get(); in testShouldShowStandardWarning() local
586 boolean shouldShow = mPowerUI.shouldShowLowBatteryWarning(state.get(), lastState); in testShouldShowStandardWarning()
588 lastState = state.get(); in testShouldShowStandardWarning()
592 shouldShow = mPowerUI.shouldShowLowBatteryWarning(state.get(), lastState); in testShouldShowStandardWarning()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DFoldStateLoggingProviderImpl.kt51 @LoggedFoldedStates private var lastState: Int? = null variable in com.android.systemui.unfold.FoldStateLoggingProviderImpl
68 lastState = FULLY_CLOSED in onFoldUpdate()
84 val previous = lastState in dispatchState()
97 lastState = current in dispatchState()
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DNetworkState.java149 State lastState = mStateDepository.get(mStateDepository.size() - 1); in validateNetworkDisconnection() local
150 if ( lastState != mTransitionTarget) { in validateNetworkDisconnection()
152 lastState)); in validateNetworkDisconnection()
190 State lastState = mStateDepository.get(mStateDepository.size() - 1); in validateNetworkConnection() local
191 if ( lastState != mTransitionTarget) { in validateNetworkConnection()
193 lastState)); in validateNetworkConnection()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/analytics/
DServiceStateAnalyticsProvider.java111 TelephonyAnalytics.ServiceStateAnalytics.TimeStampedServiceState lastState, in getContentValues() argument
114 long timeInterval = endTimeStamp - lastState.mTimestampStart; in getContentValues()
118 values.put(ServiceStateAnalyticsTable.SLOT_ID, lastState.mSlotIndex); in getContentValues()
119 values.put(ServiceStateAnalyticsTable.RAT, lastState.mRAT); in getContentValues()
120 values.put(ServiceStateAnalyticsTable.DEVICE_STATUS, lastState.mDeviceStatus); in getContentValues()
128 public void insertDataToDb(TimeStampedServiceState lastState, long endTimeStamp) { in insertDataToDb() argument
129 ContentValues values = getContentValues(lastState, endTimeStamp); in insertDataToDb()
DTelephonyAnalytics.java751 TimeStampedServiceState lastState = mLastState.getAndSet(currentState); in setCurrentStateAndAddLastState() local
752 addData(lastState, now); in setCurrentStateAndAddLastState()
755 private void addData(TimeStampedServiceState lastState, long now) { in addData() argument
756 if (lastState == null) { in addData()
759 if (now - lastState.mTimestampStart < BUFFER_TIME) { in addData()
762 Rlog.d(TAG, "Last State = " + lastState.toString() + "End = " + now); in addData()
763 mServiceStateAnalyticsProvider.insertDataToDb(lastState, now); in addData()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DServiceStateStats.java81 TimestampedServiceState lastState = in conclude() local
84 addServiceState(lastState, now); in conclude()
90 TimestampedServiceState lastState = in onImsVoiceRegistrationChanged() local
102 addServiceState(lastState, now); in onImsVoiceRegistrationChanged()
167 TimestampedServiceState lastState = in onFoldStateChanged() local
174 addServiceState(lastState, now); in onFoldStateChanged()
185 TimestampedServiceState lastState = in onVoiceServiceStateOverrideChanged() local
195 addServiceState(lastState, now); in onVoiceServiceStateOverrideChanged()
427 TimestampedServiceState lastState = in onInternetDataNetworkChanged() local
437 addServiceState(lastState, now); in onInternetDataNetworkChanged()
DRcsStats.java965 LastSipDelegateStat lastState = getLastSipDelegateStat(subId, supportedTags); in createSipDelegateStats() local
966 lastState.createSipDelegateStat(subId); in createSipDelegateStats()
974 LastSipDelegateStat lastState = getLastSipDelegateStat(subId, supportedTags); in onSipDelegateStats() local
975 lastState.setSipDelegateDestroyReason(destroyReason); in onSipDelegateStats()
/frameworks/base/services/core/java/com/android/server/am/
DUserState.java59 public int lastState = STATE_BOOTING; field in UserState
108 lastState = state; in setState()
153 + ", lastState=" + stateToString(lastState) + ", switching=" + switching + "]"; in toString()
DUidObserverController.java392 final int lastState = reg.mLastProcStates.get(item.uid, in dispatchUidsChangedForObserver() local
394 if (lastState != ActivityManager.PROCESS_STATE_UNKNOWN) { in dispatchUidsChangedForObserver()
395 final boolean lastAboveCut = lastState <= reg.mCutpoint; in dispatchUidsChangedForObserver()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/
DFakeStatusBarStateController.kt11 @JvmField var lastState = StatusBarState.SHADE variable in com.android.systemui.statusbar.FakeStatusBarStateController
64 this.lastState = oldState in getState()
140 override fun fromShadeLocked() = lastState == StatusBarState.SHADE_LOCKED in goingToFullShade()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileViewImpl.kt185 private var lastState = INVALID in <lambda>() variable
666 lastState != INVALID && in <lambda>()
667 state.state == lastState && in <lambda>()
706 if (state.state != lastState || state.disabledByPolicy != lastDisabledByPolicy) { in <lambda>()
759 lastState = state.state in <lambda>()
1009 getBackgroundColorForState(lastState, lastDisabledByPolicy), in <lambda>()
1010 getLabelColorForState(lastState, lastDisabledByPolicy), in <lambda>()
1011 getSecondaryLabelColorForState(lastState, lastDisabledByPolicy), in <lambda>()
1012 getChevronColorForState(lastState, lastDisabledByPolicy), in <lambda>()
1013 getOverlayColorForState(lastState), in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/domain/pipeline/
DMediaTimeoutListener.kt208 var lastState: PlaybackState? = null in <lambda>() variable
220 fun isPlaying() = lastState?.state?.isPlaying() ?: false in <lambda>()
279 (lastState?.actions == state?.actions) && in <lambda>()
280 areCustomActionListsEqual(lastState?.customActions, state?.customActions) in <lambda>()
283 lastState = state in <lambda>()
/frameworks/base/services/core/java/com/android/server/wm/
DTrustedPresentationListenerController.java323 boolean lastState = trustedPresentationInfo.mLastComputedTrustedPresentationState; in checkIfInThreshold()
333 lastState, newState, alpha, trustedPresentationInfo.mThresholds.getMinAlpha(), in checkIfInThreshold()
337 if (lastState && !newState) { in checkIfInThreshold()
349 } else if (!lastState && newState) { in checkIfInThreshold()
DTaskFragment.java1574 final ActivityRecord.State lastState = next.getState(); in resumeTopActivity() local
1665 + "%s", lastState, next); in resumeTopActivity()
1666 next.setState(lastState, "resumeTopActivityInnerLocked"); in resumeTopActivity()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/analytics/
DServiceStateAnalyticsProviderTest.java100 TelephonyAnalytics.ServiceStateAnalytics.TimeStampedServiceState lastState = in testInsertDataToDb() local
107 long timeInterval = 343443434 /*endTimeStamp*/ - lastState.getTimestampStart(); in testInsertDataToDb()
111 values.put(ServiceStateAnalyticsTable.SLOT_ID, lastState.getSlotIndex()); in testInsertDataToDb()
112 values.put(ServiceStateAnalyticsTable.RAT, lastState.getRAT()); in testInsertDataToDb()
113 values.put(ServiceStateAnalyticsTable.DEVICE_STATUS, lastState.getDeviceStatus()); in testInsertDataToDb()
147 mServiceStateAnalyticsProvider.insertDataToDb(lastState, 343443434 /*endTimeStamp*/); in testInsertDataToDb()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DImeVisibilityStateComputerTest.java238 final ImeTargetWindowState lastState = mComputer.getWindowStateOrNull( in testComputeState_lastImeRequestedVisible_preserved_When_StateUnChanged() local
240 assertThat(lastState.isRequestedImeVisible()).isTrue(); in testComputeState_lastImeRequestedVisible_preserved_When_StateUnChanged()
247 lastState.isRequestedImeVisible()); in testComputeState_lastImeRequestedVisible_preserved_When_StateUnChanged()
/frameworks/base/services/foldables/devicestateprovider/src/com/android/server/policy/
DFoldableDeviceStateProvider.java542 final int lastState = stateContext.getLastReportedDeviceState(); in createTentModeClosedState() local
549 final boolean isLastStateClosed = lastState == closedDeviceState in createTentModeClosedState()
550 || lastState == INVALID_DEVICE_STATE_IDENTIFIER; in createTentModeClosedState()
/frameworks/base/services/core/java/com/android/server/inputmethod/
DImeVisibilityStateComputer.java453 final ImeTargetWindowState lastState = in computeState() local
455 if (lastState != null) { in computeState()
456 state.setRequestedImeVisible(lastState.mRequestedImeVisible); in computeState()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DElement.kt570 private fun Element.SceneState.updateValuesBeforeInterruption(lastState: Element.SceneState) { in updateValuesBeforeInterruption()
571 offsetBeforeInterruption = lastState.offsetBeforeInterruption in updateValuesBeforeInterruption()
572 sizeBeforeInterruption = lastState.sizeBeforeInterruption in updateValuesBeforeInterruption()
573 scaleBeforeInterruption = lastState.scaleBeforeInterruption in updateValuesBeforeInterruption()
574 alphaBeforeInterruption = lastState.alphaBeforeInterruption in updateValuesBeforeInterruption()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DWindowMagnificationGestureHandlerTest.java239 private void forEachState(IntConsumer action, int lastState) { in forEachState() argument
240 for (int state = FIRST_STATE; state <= lastState; state++) { in forEachState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarStateControllerImpl.java655 private void recordHistoricalState(int newState, int lastState, boolean upcoming) { in recordHistoricalState() argument
660 state.mLastState = lastState; in recordHistoricalState()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java1735 final TwilightState lastState = mTwilightManager.getLastTwilightState(); in updateConfigurationLocked() local
1736 activateNightMode = lastState == null ? mComputedNightMode : lastState.isNight(); in updateConfigurationLocked()
/frameworks/base/core/java/android/view/
DInsetsController.java868 final InsetsState lastState = new InsetsState(mState, true /* copySources */); in onStateChanged() local
873 if (!mState.equals(lastState, false /* excludesCaptionBar */, in onStateChanged()

12