Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccConnectorTest.java89 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testInitialState_unavailable_noPermission()
98 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testInitialState_unavailable_noBindPermission()
107 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testInitialState_unavailable_noPriority()
158 assertSame(mConnector.mAvailableState, mConnector.getCurrentState()); in testInitialState_available()
165 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testPackageChange_unavailableToAvailable()
175 assertSame(mConnector.mAvailableState, mConnector.getCurrentState()); in testPackageChange_unavailableToAvailable()
184 assertSame(mConnector.mAvailableState, mConnector.getCurrentState()); in testPackageChange_availableToUnavailable()
195 assertSame(mConnector.mUnavailableState, mConnector.getCurrentState()); in testPackageChange_availableToUnavailable()
295 assertEquals(mConnector.mConnectedState, mConnector.getCurrentState()); in testLinger()
299 assertEquals(mConnector.mConnectedState, mConnector.getCurrentState()); in testLinger()
[all …]
/frameworks/support/lifecycle/common/src/test/java/androidx/lifecycle/
DFullLifecycleObserverTest.java57 when(mLifecycle.getCurrentState()).thenReturn(CREATED); in eachEvent()
64 when(mLifecycle.getCurrentState()).thenReturn(STARTED); in eachEvent()
69 when(mLifecycle.getCurrentState()).thenReturn(RESUMED); in eachEvent()
74 when(mLifecycle.getCurrentState()).thenReturn(STARTED); in eachEvent()
79 when(mLifecycle.getCurrentState()).thenReturn(CREATED); in eachEvent()
84 when(mLifecycle.getCurrentState()).thenReturn(INITIALIZED); in eachEvent()
DReflectiveGenericLifecycleObserverTest.java62 when(mLifecycle.getCurrentState()).thenReturn(STARTED); in anyState()
99 when(mLifecycle.getCurrentState()).thenReturn(CREATED); in singleMethod()
121 when(mLifecycle.getCurrentState()).thenReturn(CREATED); in eachEvent()
127 when(mLifecycle.getCurrentState()).thenReturn(STARTED); in eachEvent()
132 when(mLifecycle.getCurrentState()).thenReturn(RESUMED); in eachEvent()
137 when(mLifecycle.getCurrentState()).thenReturn(STARTED); in eachEvent()
142 when(mLifecycle.getCurrentState()).thenReturn(CREATED); in eachEvent()
147 when(mLifecycle.getCurrentState()).thenReturn(INITIALIZED); in eachEvent()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGsmInboundSmsHandlerTest.java122 private IState getCurrentState() { in getCurrentState() method in GsmInboundSmsHandlerTest
197 assertEquals("StartupState", getCurrentState().getName()); in transitionFromStartupToIdle()
203 assertEquals("IdleState", getCurrentState().getName()); in transitionFromStartupToIdle()
212 assertEquals("WaitingState", getCurrentState().getName()); in verifySmsIntentBroadcasts()
221 assertEquals("WaitingState", getCurrentState().getName()); in verifySmsIntentBroadcasts()
226 assertEquals("IdleState", getCurrentState().getName()); in verifySmsIntentBroadcasts()
249 assertEquals("IdleState", getCurrentState().getName()); in testNewSms()
266 assertEquals("IdleState", getCurrentState().getName()); in testNewSmsFromBlockedNumber_noBroadcastsSent()
275 assertEquals("WaitingState", getCurrentState().getName()); in verifyDataSmsIntentBroadcasts()
280 assertEquals("IdleState", getCurrentState().getName()); in verifyDataSmsIntentBroadcasts()
[all …]
/frameworks/native/services/surfaceflinger/
DLayerVector.cpp42 (mStateSet == StateSet::Current) ? l->getCurrentState() : l->getDrawingState(); in do_compare()
44 (mStateSet == StateSet::Current) ? r->getCurrentState() : r->getDrawingState(); in do_compare()
65 auto& state = (stateSet == StateSet::Current) ? layer->getCurrentState() in traverseInZOrder()
77 auto& state = (stateSet == StateSet::Current) ? layer->getCurrentState() in traverseInReverseZOrder()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiControllerTest.java74 private IState getCurrentState() throws Exception { in getCurrentState() method in WifiControllerTest
145 assertEquals("StaDisabledState", getCurrentState().getName()); in enableWifi()
150 assertEquals("DeviceActiveState", getCurrentState().getName()); in enableWifi()
502 assertEquals("EcmState", getCurrentState().getName()); in testEcmOnFromDisabledMode()
694 assertEquals("EcmState", getCurrentState().getName()); in testWifiDoesNotToggleOnWhenInEcm()
718 assertEquals("EcmState", getCurrentState().getName()); in testScanModeDoesNotToggleOnWhenInEcm()
744 assertEquals("EcmState", getCurrentState().getName()); in testSoftApModeDoesNotToggleOnWhenInEcm()
764 assertEquals("DeviceActiveState", getCurrentState().getName()); in testReturnToDeviceActiveStateAfterAPModeShutdown()
777 assertEquals("DeviceActiveState", getCurrentState().getName()); in testReturnToDeviceActiveStateAfterAPModeShutdown()
790 assertEquals("DeviceActiveState", getCurrentState().getName()); in testReturnToDeviceActiveStateAfterWifiEnabledShutdown()
[all …]
DWifiStateMachineTest.java256 private IState getCurrentState() throws in getCurrentState() method in WifiStateMachineTest
559 assertEquals("DefaultState", getCurrentState().getName()); in createNew()
563 assertEquals("DefaultState", getCurrentState().getName()); in createNew()
569 assertEquals("DisconnectedState", getCurrentState().getName()); in loadComponentsInStaMode()
575 assertEquals("DefaultState", getCurrentState().getName()); in checkInitialStateStickyWhenDisabledMode()
581 assertEquals("DefaultState", getCurrentState().getName()); in checkInitialStateStickyWhenDisabledMode()
588 assertEquals("DefaultState", getCurrentState().getName()); in shouldStartSupplicantWhenConnectModeRequested()
594 assertEquals("DisconnectedState", getCurrentState().getName()); in shouldStartSupplicantWhenConnectModeRequested()
604 assertEquals("DefaultState", getCurrentState().getName()); in checkIsWifiEnabledForModeChanges()
610 assertEquals("DisconnectedState", getCurrentState().getName()); in checkIsWifiEnabledForModeChanges()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
DCdmaInboundSmsHandlerTest.java92 private IState getCurrentState() { in getCurrentState() method in CdmaInboundSmsHandlerTest
170 assertEquals("StartupState", getCurrentState().getName()); in transitionFromStartupToIdle()
176 assertEquals("IdleState", getCurrentState().getName()); in transitionFromStartupToIdle()
196 assertEquals("WaitingState", getCurrentState().getName()); in testNewSms()
204 assertEquals("WaitingState", getCurrentState().getName()); in testNewSms()
209 assertEquals("IdleState", getCurrentState().getName()); in testNewSms()
227 assertEquals("IdleState", getCurrentState().getName()); in testNewSmsFromBlockedNumber_noBroadcastsSent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DViewTransformationHelper.java60 public TransformState getCurrentState(int fadingView) { in getCurrentState() method in ViewTransformationHelper
109 TransformState ownState = getCurrentState(viewType); in transformTo()
117 TransformState otherState = notification.getCurrentState(viewType); in transformTo()
166 TransformState ownState = getCurrentState(viewType); in transformFrom()
174 TransformState otherState = notification.getCurrentState(viewType); in transformFrom()
192 TransformState ownState = getCurrentState(viewType); in setVisible()
202 TransformState ownState = getCurrentState(viewType); in abortTransformations()
DTransformableView.java38 TransformState getCurrentState(int fadingView); in getCurrentState() method
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
DFragmentViewLifecycleTest.java66 fragment.getViewLifecycleOwner().getLifecycle().getCurrentState()); in testFragmentViewLifecycle()
115 fragment.getViewLifecycleOwner().getLifecycle().getCurrentState()); in testFragmentViewLifecycleRunOnCommit()
170 viewLifecycleOwner.getLifecycle().getCurrentState()); in testFragmentViewLifecycleDetach()
176 viewLifecycleOwner.getLifecycle().getCurrentState()); in testFragmentViewLifecycleDetach()
198 viewLifecycleOwner.getLifecycle().getCurrentState()); in testFragmentViewLifecycleReattach()
205 viewLifecycleOwner.getLifecycle().getCurrentState()); in testFragmentViewLifecycleReattach()
213 fragment.getViewLifecycleOwner().getLifecycle().getCurrentState()); in testFragmentViewLifecycleReattach()
DFragmentArchLifecycleTest.java62 assertEquals(Lifecycle.State.CREATED, first.getLifecycle().getCurrentState()); in testFragmentAdditionDuringOnStop()
63 assertEquals(Lifecycle.State.CREATED, second.getLifecycle().getCurrentState()); in testFragmentAdditionDuringOnStop()
64 Assert.assertEquals(Lifecycle.State.CREATED, activity.getLifecycle().getCurrentState()); in testFragmentAdditionDuringOnStop()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DHybridNotificationView.java80 TransformState otherState = notification.getCurrentState( in onFinishInflate()
94 TransformState otherState = notification.getCurrentState( in onFinishInflate()
126 public TransformState getCurrentState(int fadingView) { in getCurrentState() method in HybridNotificationView
127 return mTransformationHelper.getCurrentState(fadingView); in getCurrentState()
DCustomInterpolatorTransformation.java48 TransformState otherState = notification.getCurrentState(mViewType); in transformTo()
69 TransformState otherState = notification.getCurrentState(mViewType); in transformFrom()
DNotificationHeaderViewWrapper.java210 public TransformState getCurrentState(int fadingView) { in getCurrentState() method in NotificationHeaderViewWrapper
211 return mTransformationHelper.getCurrentState(fadingView); in getCurrentState()
/frameworks/support/lifecycle/livedata-core/src/test/java/androidx/lifecycle/
DLiveDataTest.java608 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.STARTED); in setValue_lifecycleIsCreatedNoEvent_liveDataBecomesInactiveAndObserverNotCalled()
611 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.CREATED); in setValue_lifecycleIsCreatedNoEvent_liveDataBecomesInactiveAndObserverNotCalled()
641 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.STARTED); in test_liveDataInactiveViaSetValueThenLifecycleResumes()
644 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.CREATED); in test_liveDataInactiveViaSetValueThenLifecycleResumes()
652 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.STARTED); in test_liveDataInactiveViaSetValueThenLifecycleResumes()
678 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.STARTED); in setValue_oneOfTwoLifecyclesAreCreatedNoEvent()
679 when(mLifecycle4.getCurrentState()).thenReturn(Lifecycle.State.STARTED); in setValue_oneOfTwoLifecyclesAreCreatedNoEvent()
683 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.CREATED); in setValue_oneOfTwoLifecyclesAreCreatedNoEvent()
716 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.STARTED); in setValue_twoLifecyclesAreCreatedNoEvent()
717 when(mLifecycle4.getCurrentState()).thenReturn(Lifecycle.State.STARTED); in setValue_twoLifecyclesAreCreatedNoEvent()
[all …]
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/
DTestUtils.java109 Lifecycle.State currentState = owner.getLifecycle().getCurrentState(); in waitTillState()
116 if (provider.getLifecycle().getCurrentState() == state) { in waitTillState()
126 + owner.getLifecycle().getCurrentState(), latchResult, is(true)); in waitTillState()
/frameworks/support/lifecycle/livedata-core/src/main/java/androidx/lifecycle/
DLiveData.java167 if (owner.getLifecycle().getCurrentState() == DESTROYED) { in observe()
361 return mOwner.getLifecycle().getCurrentState().isAtLeast(STARTED); in shouldBeActive()
366 if (mOwner.getLifecycle().getCurrentState() == DESTROYED) { in onStateChanged()
/frameworks/support/lifecycle/common/src/main/java/androidx/lifecycle/
DLifecycle.java112 public abstract State getCurrentState(); in getCurrentState() method in Lifecycle
/frameworks/support/navigation/fragment/src/androidTest/java/androidx/navigation/fragment/
DFragmentNavigatorTest.java97 assertThat("Old instance should be destroyed", fragment.getLifecycle().getCurrentState(), in testSingleTopInitial()
128 assertThat("Old instance should be destroyed", fragment.getLifecycle().getCurrentState(), in testSingleTop()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcControllerTest.java94 private IState getCurrentState() { in getCurrentState() method in DcControllerTest
131 assertEquals("DccDefaultState", getCurrentState().getName()); in testDataDormant()
/frameworks/support/lifecycle/runtime/api/
Dcurrent.txt6 method public androidx.lifecycle.Lifecycle.State getCurrentState();
/frameworks/support/lifecycle/runtime/api_legacy/
D1.0.0.txt6 method public android.arch.lifecycle.Lifecycle.State getCurrentState();
D1.1.0.txt6 method public android.arch.lifecycle.Lifecycle.State getCurrentState();
Dcurrent.txt6 method public android.arch.lifecycle.Lifecycle.State getCurrentState();

123