Searched refs:recorderState (Results 1 - 2 of 2) sorted by relevance

/packages/apps/SoundRecorder/src/com/android/soundrecorder/
H A DRecorder.java64 public void saveState(Bundle recorderState) { argument
65 recorderState.putString(SAMPLE_PATH_KEY, mSampleFile.getAbsolutePath());
66 recorderState.putInt(SAMPLE_LENGTH_KEY, mSampleLength);
75 public void restoreState(Bundle recorderState) { argument
76 String samplePath = recorderState.getString(SAMPLE_PATH_KEY);
79 int sampleLength = recorderState.getInt(SAMPLE_LENGTH_KEY, -1);
H A DSoundRecorder.java286 Bundle recorderState = icycle.getBundle(RECORDER_STATE_KEY);
287 if (recorderState != null) {
288 mRecorder.restoreState(recorderState);
289 mSampleInterrupted = recorderState.getBoolean(SAMPLE_INTERRUPTED_KEY, false);
290 mMaxFileSize = recorderState.getLong(MAX_FILE_SIZE_KEY, -1);
313 Bundle recorderState = new Bundle();
315 mRecorder.saveState(recorderState);
316 recorderState.putBoolean(SAMPLE_INTERRUPTED_KEY, mSampleInterrupted);
317 recorderState.putLong(MAX_FILE_SIZE_KEY, mMaxFileSize);
319 outState.putBundle(RECORDER_STATE_KEY, recorderState);
[all...]

Completed in 53 milliseconds