Home
last modified time | relevance | path

Searched refs:nextState (Results 1 – 3 of 3) sorted by relevance

/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/devicestate/
DDeviceStateStatsTests.java94 int nextState = availableStates.get(nextStateIndex); in testDeviceStateChanges() local
95 CLog.d("testDeviceStateChange: from " + currentState + " to " + nextState); in testDeviceStateChanges()
96 testDeviceStateChange(nextState); in testDeviceStateChanges()
98 currentState = nextState; in testDeviceStateChanges()
102 private void testDeviceStateChange(int nextState) throws Exception { in testDeviceStateChange() argument
103 getDevice().executeShellCommand("cmd device_state state " + nextState); in testDeviceStateChange()
106 PollingCheck.waitFor(2000, () -> nextState == getDevice() in testDeviceStateChange()
114 assertThat(deviceStateChanged.getNewDeviceState()).isEqualTo(nextState); in testDeviceStateChange()
/cts/tests/devicestate/src/android/hardware/devicestate/cts/
DDeviceStateManagerTests.java196 int nextState = calculateDifferentState(callback.mCurrentState.getIdentifier(), in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest() local
199 assumeTrue(nextState != INVALID_DEVICE_STATE); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest()
201 activity.requestDeviceStateChange(nextState); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest()
247 int nextState = calculateDifferentState(callback.mCurrentState.getIdentifier(), in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest() local
250 assumeTrue(nextState != INVALID_DEVICE_STATE); in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest()
252 runWithControlDeviceStatePermission(() -> activity.requestDeviceStateChange(nextState)); in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest()
256 PollingCheck.waitFor(TIMEOUT, () -> callback.mCurrentState.getIdentifier() == nextState); in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest()
259 assertEquals(nextState, callback.mCurrentState.getIdentifier()); in testRequestStateSucceedsAsTopApp_ifStateDefinedAsAvailableForAppsToRequest()
304 int nextState = calculateDifferentState(callback.mCurrentState.getIdentifier(), in testRequestStateFailsAsBackgroundApp() local
307 assumeTrue(nextState != INVALID_DEVICE_STATE); in testRequestStateFailsAsBackgroundApp()
[all …]
/cts/apps/CtsVerifier/jni/audio_loopback/analyzer/
DLatencyAnalyzer.h553 echo_state nextState = mState; in processInputFrame() local
565 nextState = STATE_IN_PULSE; in processInputFrame()
574 nextState = STATE_GOT_DATA; in processInputFrame()
584 mState = nextState; in processInputFrame()