Home
last modified time | relevance | path

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

1234

/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DNetworkTypeControllerTest.java95 private IState getCurrentState() throws Exception { in getCurrentState() method in NetworkTypeControllerTest
295 assertEquals("legacy", getCurrentState().getName()); in testTransitionToCurrentStateLegacy()
925 assertEquals("legacy", getCurrentState().getName()); in testPrimaryTimerExpire()
934 assertEquals("legacy", getCurrentState().getName()); in testPrimaryTimerExpire()
957 assertEquals("legacy", getCurrentState().getName()); in testPrimaryTimerReset()
1001 assertEquals("legacy", getCurrentState().getName()); in testPrimaryTimerReset_theNetworkModeWithoutNr()
1097 assertEquals("legacy", getCurrentState().getName()); in testSecondaryTimerExpire()
1107 assertEquals("legacy", getCurrentState().getName()); in testSecondaryTimerExpire()
1116 assertEquals("legacy", getCurrentState().getName()); in testSecondaryTimerExpire()
1141 assertEquals("legacy", getCurrentState().getName()); in testSecondaryTimerReset()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
H A DSimSlotStateTest.java77 SimSlotState state = SimSlotState.getCurrentState(); in testEmptySlots()
91 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_nullSlot()
105 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_inactiveSlot()
119 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_noSimCard()
134 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_physicalSimCard()
149 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_physicalSimCardInErrorState()
164 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_physicalSimCardInRestrictedState()
180 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_esimCardWithNullCard()
195 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_esimCardWithoutProfile()
210 SimSlotState state = SimSlotState.getCurrentState(); in testSingleSim_esimCardWithProfile()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
H A 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 …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hfp/
H A DHeadsetStateMachineTest.java152 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testDefaultDisconnectedState()
164 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testSetupConnectedState()
180 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_DisconnectedToConnecting_Connect()
198 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_DisconnectedToConnecting_StackConnected()
216 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_DisconnectedToConnecting_StackConnecting()
235 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToDisconnected_StackDisconnected()
251 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToDisconnected_StackDisconnected()
270 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToDisconnected_Timeout()
288 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToConnected_StackSlcConnected()
299 Assert.assertThat(mHeadsetStateMachine.getCurrentState(), in testStateTransition_ConnectingToConnected_StackSlcConnected()
[all …]
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
H A DGsmInboundSmsHandlerTest.java126 private IState getCurrentState() { in getCurrentState() method in GsmInboundSmsHandlerTest
243 assertEquals("IdleState", getCurrentState().getName()); in transitionFromStartupToIdle()
321 assertEquals("IdleState", getCurrentState().getName()); in testNewSms()
338 assertEquals("IdleState", getCurrentState().getName()); in testNewSmsFromBlockedNumber_noBroadcastsSent()
357 assertEquals("IdleState", getCurrentState().getName()); in testNewSmsWithUserLocked_notificationShown()
387 assertEquals("IdleState", getCurrentState().getName()); in testNewSmsFromBlockedNumberWithUserLocked_noNotificationShown()
419 assertEquals("IdleState", getCurrentState().getName()); in testNewSms_filterInvoked_noBroadcastsSent()
458 assertEquals("IdleState", getCurrentState().getName()); in testNewSms_filterChaining_noBroadcastsSent()
476 assertEquals("IdleState", getCurrentState().getName()); in verifyDataSmsIntentBroadcasts()
570 assertEquals("IdleState", getCurrentState().getName()); in testInjectSms()
[all …]
/aosp12/frameworks/base/tests/vcn/java/com/android/server/vcn/
H A DVcnGatewayConnectionConnectingStateTest.java71 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testNullNetworkTriggersDisconnect()
83 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testNewNetworkTriggersReconnect()
96 assertEquals(mGatewayConnection.mConnectingState, mGatewayConnection.getCurrentState()); in testSameNetworkDoesNotTriggerReconnect()
104 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testChildSessionClosedTriggersDisconnect()
114 assertEquals(mGatewayConnection.mRetryTimeoutState, mGatewayConnection.getCurrentState()); in testIkeSessionClosedTriggersDisconnect()
134 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testTeardown()
143 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testNonTeardownDisconnectRequest()
H A DVcnGatewayConnectionRetryTimeoutStateTest.java65 assertEquals(mGatewayConnection.mConnectingState, mGatewayConnection.getCurrentState()); in testNewNetworkTriggerRetry()
79 assertEquals(mGatewayConnection.mRetryTimeoutState, mGatewayConnection.getCurrentState()); in testSameNetworkDoesNotTriggerRetry()
97 assertEquals(mGatewayConnection.mDisconnectedState, mGatewayConnection.getCurrentState()); in testNullNetworkTriggersDisconnect()
117 assertEquals(mGatewayConnection.mConnectingState, mGatewayConnection.getCurrentState()); in testTimeoutElapsingTriggersRetry()
135 assertNull(mGatewayConnection.getCurrentState()); in testTeardownDisconnectRequest()
147 assertEquals(mGatewayConnection.mDisconnectedState, mGatewayConnection.getCurrentState()); in testNonTeardownDisconnectRequest()
H A DVcnGatewayConnectionDisconnectedStateTest.java75 assertNull(vgc.getCurrentState()); in testEnterWhileQuittingTriggersQuit()
85 assertEquals(mGatewayConnection.mConnectingState, mGatewayConnection.getCurrentState()); in testNetworkChangesTriggerStateTransitions()
96 assertEquals(mGatewayConnection.mDisconnectedState, mGatewayConnection.getCurrentState()); in testNullNetworkDoesNotTriggerStateTransition()
109 assertNull(mGatewayConnection.getCurrentState()); in testTeardown()
121 assertEquals(mGatewayConnection.mDisconnectedState, mGatewayConnection.getCurrentState()); in testNonTeardownDisconnectRequest()
H A DVcnGatewayConnectionConnectedStateTest.java128 assertEquals(mGatewayConnection.mConnectedState, mGatewayConnection.getCurrentState()); in testNullNetworkDoesNotTriggerDisconnect()
142 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testNullNetworkAirplaneModeDisconnects()
153 assertEquals(mGatewayConnection.mConnectedState, mGatewayConnection.getCurrentState()); in testNewNetworkTriggersMigration()
165 assertEquals(mGatewayConnection.mConnectedState, mGatewayConnection.getCurrentState()); in testSameNetworkDoesNotTriggerMigration()
184 assertEquals(vcnGatewayConnection.mConnectedState, vcnGatewayConnection.getCurrentState()); in verifyVcnTransformsApplied()
239 assertEquals(mGatewayConnection.mConnectedState, mGatewayConnection.getCurrentState()); in testMigration()
297 assertEquals(mGatewayConnection.mConnectedState, mGatewayConnection.getCurrentState()); in testChildOpenedRegistersNetwork()
468 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testUnwantedNetworkAgentTriggersTeardown()
482 assertEquals(mGatewayConnection.mConnectedState, mGatewayConnection.getCurrentState()); in testUnwantedNetworkAgentWithDisconnectedNetworkAgent()
495 assertEquals(mGatewayConnection.mConnectedState, mGatewayConnection.getCurrentState()); in testUnwantedNetworkAgentWithNewNetworkAgent()
[all …]
H A DVcnGatewayConnectionDisconnectingStateTest.java56 assertEquals(mGatewayConnection.mRetryTimeoutState, mGatewayConnection.getCurrentState()); in testIkeSessionClosed()
87 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testTeardown()
103 assertEquals(mGatewayConnection.mDisconnectingState, mGatewayConnection.getCurrentState()); in testNonTeardownDisconnectRequest()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/qc/
H A DWifiBaseWorkerTestCase.java46 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.CREATED); in onCreate_lifecycleCreated()
53 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.RESUMED); in onSubscribe_lifecycleResumed()
61 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.CREATED); in onUnsubscribe_lifecycleCreated()
69 assertThat(mWorker.getLifecycle().getCurrentState()).isEqualTo(Lifecycle.State.DESTROYED); in onClose_lifecycleDestroyed()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/
H A 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()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/le_audio/
H A DLeAudioStateMachineTest.java131 assertThat(mLeAudioStateMachine.getCurrentState()) in testIncomingPriorityReject()
157 assertThat(mLeAudioStateMachine.getCurrentState()) in testIncomingPriorityAccept()
173 assertThat(mLeAudioStateMachine.getCurrentState()) in testIncomingPriorityAccept()
200 assertThat(mLeAudioStateMachine.getCurrentState()) in testOutgoingTimeout()
212 assertThat(mLeAudioStateMachine.getCurrentState()) in testOutgoingTimeout()
243 assertThat(mLeAudioStateMachine.getCurrentState()) in testIncomingTimeout()
255 assertThat(mLeAudioStateMachine.getCurrentState()) in testIncomingTimeout()
/aosp12/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
H A DControllerImpl.java189 if (provider.getCurrentState().isStarted()) { in stopProviderIfStarted()
196 ProviderState providerState = provider.getCurrentState(); in stopProvider()
259 ProviderState newPrimaryState = mPrimaryProvider.getCurrentState(); in alterProvidersStartedStateIfRequired()
265 ProviderState newSecondaryState = mSecondaryProvider.getCurrentState(); in alterProvidersStartedStateIfRequired()
271 + " primary=" + mPrimaryProvider.getCurrentState() in alterProvidersStartedStateIfRequired()
272 + " secondary=" + mPrimaryProvider.getCurrentState()); in alterProvidersStartedStateIfRequired()
290 + " primary=" + mPrimaryProvider.getCurrentState()); in alterProvidersStartedStateIfRequired()
298 ProviderState providerState = provider.getCurrentState(); in tryStartProvider()
386 ProviderState primaryCurrentState = mPrimaryProvider.getCurrentState(); in handleProviderFailedStateChange()
387 ProviderState secondaryCurrentState = mSecondaryProvider.getCurrentState(); in handleProviderFailedStateChange()
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/
H A DChildSessionStateMachineTest.java455 mChildSessionStateMachine.getCurrentState() in verifyInitCreateChildResp()
486 mChildSessionStateMachine.getCurrentState() in verifyInitCreateChildResp()
705 mChildSessionStateMachine.getCurrentState() in testCreateChildHandlesTemporaryFailure()
781 mChildSessionStateMachine.getCurrentState() in setupIdleStateMachine()
840 mChildSessionStateMachine.getCurrentState() in testDeleteChildLocal()
956 mChildSessionStateMachine.getCurrentState() in testReplyRekeyRequestDuringDeletion()
1020 mChildSessionStateMachine.getCurrentState() in testRekeyChildLocalCreateSendsRequest()
1164 mChildSessionStateMachine.getCurrentState() in verifyLocalRekeyCreateIsDone()
1223 mChildSessionStateMachine.getCurrentState() in testRekeyLocalCreateHandlesErrorNotifyResp()
1244 mChildSessionStateMachine.getCurrentState() in testRekeyLocalCreateHandlesRekeyRequest()
[all …]
H A DIkeSessionStateMachineTest.java1642 mIkeSessionStateMachine.getCurrentState() in testCreateIkeLocalIkeInitReceivesCookie()
1663 mIkeSessionStateMachine.getCurrentState() in testCreateIkeLocalIkeInitRcvRespAfterRcvCookie()
1837 mIkeSessionStateMachine.getCurrentState() in disableTestCreateIkeLocalIkeInit()
2009 mIkeSessionStateMachine.getCurrentState() in testCreateAdditionalChild()
2054 mIkeSessionStateMachine.getCurrentState() in testCreateAdditionalChild()
2097 mIkeSessionStateMachine.getCurrentState() in testTriggerDeleteChildLocal()
2132 mIkeSessionStateMachine.getCurrentState() in testTriggerRekeyChildLocal()
2162 mIkeSessionStateMachine.getCurrentState() in transitionToChildProcedureOngoing()
2221 mIkeSessionStateMachine.getCurrentState() in testDeferChildRequestToChildProcedureOngoing()
2439 mIkeSessionStateMachine.getCurrentState() in testRemoteRekeyChild()
[all …]
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/pbap/
H A DPbapStateMachineTest.java101 Assert.assertThat(mPbapStateMachine.getCurrentState(), in testInitialState()
114 Assert.assertThat(mPbapStateMachine.getCurrentState(), in testStateTransition_WaitingForAuthToFinished()
127 Assert.assertThat(mPbapStateMachine.getCurrentState(), in testStateTransition_WaitingForAuthToConnected()
140 Assert.assertThat(mPbapStateMachine.getCurrentState(), in testStateTransition_ConnectedToFinished()
147 Assert.assertThat(mPbapStateMachine.getCurrentState(), in testStateTransition_ConnectedToFinished()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DViewTransformationHelper.java91 public TransformState getCurrentState(int fadingView) { in getCurrentState() method in ViewTransformationHelper
140 TransformState ownState = getCurrentState(viewType); in transformTo()
148 TransformState otherState = notification.getCurrentState(viewType); in transformTo()
193 TransformState ownState = getCurrentState(viewType); in transformFrom()
201 TransformState otherState = notification.getCurrentState(viewType); in transformFrom()
219 TransformState ownState = getCurrentState(viewType); in setVisible()
229 TransformState ownState = getCurrentState(viewType); in abortTransformations()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/hearingaid/
H A DHearingAidStateMachineTest.java134 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingPriorityReject()
160 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingPriorityAccept()
176 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingPriorityAccept()
204 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testOutgoingTimeout()
216 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testOutgoingTimeout()
249 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingTimeout()
261 Assert.assertThat(mHearingAidStateMachine.getCurrentState(), in testIncomingTimeout()
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
H A DCdmaInboundSmsHandlerTest.java87 private IState getCurrentState() { in getCurrentState() method in CdmaInboundSmsHandlerTest
177 assertEquals("StartupState", getCurrentState().getName()); in transitionFromStartupToIdle()
183 assertEquals("IdleState", getCurrentState().getName()); in transitionFromStartupToIdle()
207 assertEquals("WaitingState", getCurrentState().getName()); in testNewSms()
215 assertEquals("WaitingState", getCurrentState().getName()); in testNewSms()
220 assertEquals("IdleState", getCurrentState().getName()); in testNewSms()
256 assertEquals("IdleState", getCurrentState().getName()); in testNewSmsFromBlockedNumber_noBroadcastsSent()
/aosp12/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/
H A DUceDeviceState.java194 getCurrentState()); in UceDeviceState()
217 public synchronized DeviceStateResult getCurrentState() { in getCurrentState() method in UceDeviceState
233 DeviceStateResult previousState = getCurrentState(); in refreshDeviceState()
280 DeviceStateResult currentState = getCurrentState(); in refreshDeviceState()
299 DeviceStateResult previousState = getCurrentState(); in resetDeviceState()
301 DeviceStateResult currentState = getCurrentState(); in resetDeviceState()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/slice/
H A DWifiScanWorkerTest.java68 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onConstructor_shouldBeInCreatedState()
76 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onSlicePinned_shouldBeInResumedState()
84 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in onSliceUnpinned_shouldBeInCreatedState()
92 assertThat(mWifiScanWorker.getLifecycle().getCurrentState()) in close_shouldBeInDestroyedState()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DHybridNotificationView.java80 TransformState otherState = notification.getCurrentState( in onFinishInflate()
94 TransformState otherState = notification.getCurrentState( in onFinishInflate()
123 public TransformState getCurrentState(int fadingView) { in getCurrentState() method in HybridNotificationView
124 return mTransformationHelper.getCurrentState(fadingView); in getCurrentState()
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dp/
H A DA2dpStateMachineTest.java155 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingPriorityReject()
181 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingPriorityAccept()
204 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingPriorityAccept()
228 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testOutgoingTimeout()
240 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testOutgoingTimeout()
268 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingTimeout()
280 Assert.assertThat(mA2dpStateMachine.getCurrentState(), in testIncomingTimeout()
/aosp12/packages/apps/Camera2/src/com/android/camera/ui/
H A DModeListView.java145 ModeListState getCurrentState() { in getCurrentState() method in ModeListView.CurrentStateManager
1047 mCurrentStateManager.getCurrentState().onSingleTapUp(ev);
1062 mCurrentStateManager.getCurrentState().onDown(ev);
1184 if (mCurrentStateManager.getCurrentState() == null) { in init()
1311 mCurrentStateManager.getCurrentState().onTouchEvent(ev); in onTouchEvent()
1467 mCurrentStateManager.getCurrentState().showSwitcherHint(); in showModeSwitcherHint()
1474 mCurrentStateManager.getCurrentState().hide(); in hide()
1481 mCurrentStateManager.getCurrentState().hideAnimated(); in hideAnimated()
1737 mCurrentStateManager.getCurrentState().hide();
1746 return mCurrentStateManager.getCurrentState().onMenuPressed();
[all …]

1234