Home
last modified time | relevance | path

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

/cts/tests/tests/voiceinteraction/common/src/android/voiceinteraction/common/
DAudioStreamHelper.java42 ParcelFileDescriptor[] parcelFileDescriptors = ParcelFileDescriptor.createPipe(); in createFakeAudioStreamPipe() local
44 new ParcelFileDescriptor.AutoCloseOutputStream(parcelFileDescriptors[1])) { in createFakeAudioStreamPipe()
47 return parcelFileDescriptors; in createFakeAudioStreamPipe()
50 public static void closeAudioStreamPipe(ParcelFileDescriptor[] parcelFileDescriptors) in closeAudioStreamPipe() argument
52 if (parcelFileDescriptors != null) { in closeAudioStreamPipe()
53 parcelFileDescriptors[0].close(); in closeAudioStreamPipe()
54 parcelFileDescriptors[1].close(); in closeAudioStreamPipe()
/cts/tests/tests/time/shell_utils/device/android/app/time/cts/shell/device/
DInstrumentationShellCommandExecutor.java45 ParcelFileDescriptor[] parcelFileDescriptors = in executeToBytesInternal() local
48 parcelFileDescriptors[1].close(); in executeToBytesInternal()
50 byte[] stdOut = readBytesAndClose(parcelFileDescriptors[0]); in executeToBytesInternal()
51 byte[] stdErr = readBytesAndClose(parcelFileDescriptors[2]); in executeToBytesInternal()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DHotwordDetectionServiceBasicTest.java759 final ParcelFileDescriptor[] parcelFileDescriptors = ParcelFileDescriptor.createPipe(); in testHotwordDetectionService_onDetectFromExternalSourceAudioBroken_onFailure() local
774 parcelFileDescriptors[1])) { in testHotwordDetectionService_onDetectFromExternalSourceAudioBroken_onFailure()
792 alwaysOnHotwordDetector.startRecognition(parcelFileDescriptors[0], in testHotwordDetectionService_onDetectFromExternalSourceAudioBroken_onFailure()
797 parcelFileDescriptors[0].close(); in testHotwordDetectionService_onDetectFromExternalSourceAudioBroken_onFailure()
798 parcelFileDescriptors[1].close(); in testHotwordDetectionService_onDetectFromExternalSourceAudioBroken_onFailure()