Lines Matching defs:state

65      * Calls method under test in the given state of the MediaRecorder object.
67 * @param state the MediaRecorder state in which the method under test is called.
69 private void callMediaRecorderMethodUnderTestInState(MediaRecorderStateErrors.MediaRecorderState state) {
70 Log.v(TAG, "call " + mMethodUnderTest + ": started in state " + state);
71 setMediaRecorderToState(state);
77 Log.v(TAG, "call " + mMethodUnderTest + ": ended in state " + state);
82 * object to the corresponding state, given the assumption that reset()
83 * always resets the MediaRecorder object to Initial (after reset) state.
95 // However, this is no longer true. The plan is to have a STOPPED state.
96 // and from STOPPED state, start can be called without the need to
161 * method can only be called once even in the DATASOURCECONFIGURED state
177 * the Error state. We arbitrary choose one here.
186 * won't be set to the Error state
195 * won't be set to the Error state
211 * Sets the state of the MediaRecorder object to the specified one.
213 * @param state the state of the MediaRecorder object.
215 private void setMediaRecorderToState(MediaRecorderStateErrors.MediaRecorderState state) {
216 mMediaRecorderState = state;
217 switch(state) {
246 * Sets the error value of the corresponding state to the given error.
248 * @param state the state of the MediaRecorder object.
249 * @param error the value of the state error to be set.
251 private void setStateError(MediaRecorderStateErrors.MediaRecorderState state, boolean error) {
252 switch(state) {