Searched refs:nextState (Results 1 – 3 of 3) sorted by relevance
94 int nextState = availableStates.get(nextStateIndex); in testDeviceStateChanges() local95 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() argument103 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()
196 int nextState = calculateDifferentState(callback.mCurrentState.getIdentifier(), in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest() local199 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() local250 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() local307 assumeTrue(nextState != INVALID_DEVICE_STATE); in testRequestStateFailsAsBackgroundApp()[all …]
553 echo_state nextState = mState; in processInputFrame() local565 nextState = STATE_IN_PULSE; in processInputFrame()574 nextState = STATE_GOT_DATA; in processInputFrame()584 mState = nextState; in processInputFrame()