car/app/app/src/main/java/androidx/car/app/media/CarAudioRecord.java
/** Stops recording the car microphone. */
Stops recording the car microphone.
Stops recording the car microphone .
public void stopRecording() {
        synchronized (mRecordingStateLock) {
            if (mOpenMicrophoneResponse != null) {
                if (mRecordingState != RECORDSTATE_REMOTE_CLOSED) {
                    mOpenMicrophoneResponse.getCarAudioCallback().onStopRecording();
                }
                mOpenMicrophoneResponse = null;
            }
            stopRecordingInternal();
            mRecordingState = RECORDSTATE_STOPPED;
        }
    }
public void stopRecording ( ) { synchronized ( mRecordingStateLock ) { if ( mOpenMicrophoneResponse != null ) { if ( mRecordingState != RECORDSTATE_REMOTE_CLOSED ) { mOpenMicrophoneResponse . getCarAudioCallback ( ) . onStopRecording ( ) ; } mOpenMicrophoneResponse = null ; } stopRecordingInternal ( ) ; mRecordingState = RECORDSTATE_STOPPED ; } }
Stops recording the car microphone.
Stops recording the car microphone .
// Don't tell the host to stop, when it already told the client to stop.