Home
last modified time | relevance | path

Searched refs:getCurrentState (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DNetworkTypeControllerTest.java65 private IState getCurrentState() throws Exception { in getCurrentState() method in NetworkTypeControllerTest
171 assertEquals("DefaultState", getCurrentState().getName()); in testTransitionToCurrentStateLegacy()
176 assertEquals("legacy", getCurrentState().getName()); in testTransitionToCurrentStateLegacy()
181 assertEquals("DefaultState", getCurrentState().getName()); in testTransitionToCurrentStateRestricted()
187 assertEquals("restricted", getCurrentState().getName()); in testTransitionToCurrentStateRestricted()
192 assertEquals("DefaultState", getCurrentState().getName()); in testTransitionToCurrentStateIdle()
199 assertEquals("not_restricted_rrc_idle", getCurrentState().getName()); in testTransitionToCurrentStateIdle()
204 assertEquals("DefaultState", getCurrentState().getName()); in testTransitionToCurrentStateLteConnected()
211 assertEquals("not_restricted_rrc_con", getCurrentState().getName()); in testTransitionToCurrentStateLteConnected()
216 assertEquals("DefaultState", getCurrentState().getName()); in testTransitionToCurrentStateNrConnected()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DSimSlotStateTest.java75 SimSlotState state = SimSlotState.getCurrentState(); in testEmptySlots()
87 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_nullSlot()
99 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_inactiveSlot()
111 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_noSimCard()
124 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_physicalSimCard()
137 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_physicalSimCardInErrorState()
150 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_physicalSimCardInRestrictedState()
164 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_esimCardWithNullCard()
177 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_esimCardWithoutProfile()
190 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_esimCardWithProfile()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccConnectorTest.java92 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testInitialState_unavailable_noPermission()
101 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testInitialState_unavailable_noBindPermission()
110 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testInitialState_unavailable_noPriority()
162 assertSame(mConnector.mAvailableState, mConnector.getCurrentState()); in testInitialState_available()
169 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testPackageChange_unavailableToAvailable()
179 assertSame(mConnector.mAvailableState, mConnector.getCurrentState()); in testPackageChange_unavailableToAvailable()
188 assertSame(mConnector.mAvailableState, mConnector.getCurrentState()); in testPackageChange_availableToUnavailable()
199 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testPackageChange_availableToUnavailable()
299 assertEquals(mConnector.mConnectedState, mConnector.getCurrentState()); in testLinger()
303 assertEquals(mConnector.mConnectedState, mConnector.getCurrentState()); in testLinger()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmInboundSmsHandlerTest.java121 private IState getCurrentState() { in getCurrentState() method in GsmInboundSmsHandlerTest
260 assertEquals("StartupState", getCurrentState().getName()); in transitionFromStartupToIdle()
266 assertEquals("IdleState", getCurrentState().getName()); in transitionFromStartupToIdle()
294 assertEquals("WaitingState", getCurrentState().getName()); in verifySmsIntentBroadcasts()
312 assertEquals("WaitingState", getCurrentState().getName()); in verifySmsIntentBroadcasts()
318 assertEquals("IdleState", getCurrentState().getName()); in verifySmsIntentBroadcasts()
344 assertEquals("IdleState", getCurrentState().getName()); in testNewSms()
358 assertEquals("IdleState", getCurrentState().getName()); in testNewSmsFromBlockedNumber_noBroadcastsSent()
370 assertEquals("WaitingState", getCurrentState().getName()); in verifyDataSmsIntentBroadcasts()
375 assertEquals("IdleState", getCurrentState().getName()); in verifyDataSmsIntentBroadcasts()
[all …]
/frameworks/native/services/surfaceflinger/
DLayerVector.cpp46 (mStateSet == StateSet::Current) ? l->getCurrentState() : l->getDrawingState(); in do_compare()
48 (mStateSet == StateSet::Current) ? r->getCurrentState() : r->getDrawingState(); in do_compare()
69 auto& state = (stateSet == StateSet::Current) ? layer->getCurrentState() in traverseInZOrder()
81 auto& state = (stateSet == StateSet::Current) ? layer->getCurrentState() in traverseInReverseZOrder()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
DSysuiLifecycleTest.java108 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo( in testStateBeforeAttach()
120 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in testStateAfterAttach()
133 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.DESTROYED); in testStateAfterDetach()
148 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in testStateAfterReattach()
159 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in testStateWhenViewAlreadyAttached()
172 assertThat(lifecycle.getLifecycle().getCurrentState()).isEqualTo( in testStateWhenViewAlreadyDetached()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DViewTransformationHelper.java91 public TransformState getCurrentState(int fadingView) { in getCurrentState() method in ViewTransformationHelper
144 TransformState ownState = getCurrentState(viewType); in transformTo()
152 TransformState otherState = notification.getCurrentState(viewType); in transformTo()
201 TransformState ownState = getCurrentState(viewType); in transformFrom()
209 TransformState otherState = notification.getCurrentState(viewType); in transformFrom()
227 TransformState ownState = getCurrentState(viewType); in setVisible()
237 TransformState ownState = getCurrentState(viewType); in abortTransformations()
DTransformableView.java38 TransformState getCurrentState(int fadingView); in getCurrentState() method
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandlerTest.java87 private IState getCurrentState() { in getCurrentState() method in CdmaInboundSmsHandlerTest
175 assertEquals("StartupState", getCurrentState().getName()); in transitionFromStartupToIdle()
181 assertEquals("IdleState", getCurrentState().getName()); in transitionFromStartupToIdle()
205 assertEquals("WaitingState", getCurrentState().getName()); in testNewSms()
213 assertEquals("WaitingState", getCurrentState().getName()); in testNewSms()
218 assertEquals("IdleState", getCurrentState().getName()); in testNewSms()
253 assertEquals("IdleState", getCurrentState().getName()); in testNewSmsFromBlockedNumber_noBroadcastsSent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DHybridNotificationView.java79 TransformState otherState = notification.getCurrentState( in onFinishInflate()
93 TransformState otherState = notification.getCurrentState( in onFinishInflate()
122 public TransformState getCurrentState(int fadingView) { in getCurrentState() method in HybridNotificationView
123 return mTransformationHelper.getCurrentState(fadingView); in getCurrentState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DCustomInterpolatorTransformation.java43 TransformState otherState = notification.getCurrentState(mViewType); in transformTo()
64 TransformState otherState = notification.getCurrentState(mViewType); in transformFrom()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DClientModeImplTest.java283 private IState getCurrentState() throws in getCurrentState() method in ClientModeImplTest
658 assertEquals("DefaultState", getCurrentState().getName()); in createNew()
662 assertEquals("DefaultState", getCurrentState().getName()); in createNew()
668 assertEquals("DisconnectedState", getCurrentState().getName()); in loadComponentsInStaMode()
674 assertEquals("DefaultState", getCurrentState().getName()); in checkInitialStateStickyWhenDisabledMode()
680 assertEquals("DefaultState", getCurrentState().getName()); in checkInitialStateStickyWhenDisabledMode()
687 assertEquals("DefaultState", getCurrentState().getName()); in shouldStartSupplicantWhenConnectModeRequested()
693 assertEquals("DisconnectedState", getCurrentState().getName()); in shouldStartSupplicantWhenConnectModeRequested()
703 assertEquals("DefaultState", getCurrentState().getName()); in checkIsWifiEnabledForModeChanges()
709 assertEquals("DisconnectedState", getCurrentState().getName()); in checkIsWifiEnabledForModeChanges()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcControllerTest.java81 private IState getCurrentState() { in getCurrentState() method in DcControllerTest
120 assertEquals("DccDefaultState", getCurrentState().getName()); in testDataDormant()
DDataConnectionTest.java331 private IState getCurrentState() throws Exception { in getCurrentState() method in DataConnectionTest
365 assertEquals("DcInactiveState", getCurrentState().getName()); in testSanity()
394 assertEquals("DcActiveState", getCurrentState().getName()); in testConnectEvent()
416 assertEquals("DcInactiveState", getCurrentState().getName()); in testDisconnectEvent()
710 assertEquals("DcActiveState", getCurrentState().getName()); in connectEvent()
716 assertEquals("DcInactiveState", getCurrentState().getName()); in disconnectEvent()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java283 assertTrue(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testListeningTrue_stateAtLeastResumed()
288 assertFalse(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testTileDoesntStartResumed()
299 assertFalse(mTile.getLifecycle().getCurrentState().isAtLeast(RESUMED)); in testListeningFalse_stateAtMostCreated()
310 assertNotEquals(DESTROYED, mTile.getLifecycle().getCurrentState()); in testListeningFalse_stateNotDestroyed()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DSimSlotState.java31 public static SimSlotState getCurrentState() { in getCurrentState() method in SimSlotState
DMetricsCollector.java139 state = SimSlotState.getCurrentState(); in pullSimSlotState()
/frameworks/base/core/java/com/android/internal/util/
DStateMachine.java1150 private final IState getCurrentState() { in getCurrentState() method in StateMachine.SmHandler
1397 public final IState getCurrentState() { in getCurrentState() method in StateMachine
1401 return smh.getCurrentState(); in getCurrentState()
1569 smh.mLogRecords.add(this, smh.getCurrentMessage(), string, smh.getCurrentState(), in addLogRec()
2094 pw.println("curState=" + getCurrentState().getName()); in dump()
2103 state = mSmHandler.getCurrentState().getName().toString(); in toString()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNetworkTypeController.java797 mPreviousState = getCurrentState().getName(); in transitionWithTimerTo()
806 String currentName = getCurrentState().getName(); in transitionWithSecondaryTimerTo()
817 transitionTo(getCurrentState()); in transitionWithSecondaryTimerTo()
838 if (!transitionState.equals(getCurrentState())) { in transitionToCurrentState()
846 String currentState = getCurrentState().getName(); in updateTimers()
DSmsDispatchersController.java287 if (mGsmInboundSmsHandler.getCurrentState().getName().equals("WaitingState") in handlePartialSegmentTimerExpiry()
288 || mCdmaInboundSmsHandler.getCurrentState().getName().equals("WaitingState")) { in handlePartialSegmentTimerExpiry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationHeaderViewWrapper.java344 public TransformState getCurrentState(int fadingView) { in getCurrentState() method in NotificationHeaderViewWrapper
345 return mTransformationHelper.getCurrentState(fadingView); in getCurrentState()
DNotificationTemplateViewWrapper.java80 TransformState otherState = notification.getCurrentState( in NotificationTemplateViewWrapper()
106 TransformState otherState = notification.getCurrentState( in NotificationTemplateViewWrapper()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DActiveModeWarden.java469 IState state = mWifiController.getCurrentState(); in getCurrentMode()
480 IState state = mWifiController.getCurrentState(); in isInEmergencyMode()
DSupplicantStateTracker.java90 return getCurrentState().getName(); in getSupplicantStateName()
/frameworks/native/services/surfaceflinger/tests/unittests/
DRefreshRateSelectionTest.cpp126 layer->commitTransaction(layer->getCurrentState()); in commitTransaction()

12