Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 25 of 26) sorted by relevance

12

/cts/tests/tests/os/src/android/os/cts/
DMessageQueueTest.java300 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull() local
301 try (ParcelFileDescriptor reader = pipe[0]; in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull()
302 ParcelFileDescriptor writer = pipe[1]) { in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull()
329 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in testUnregisterFileDescriptorCallbackDoesNothingWhenFdNotRegistered() local
330 try (ParcelFileDescriptor reader = pipe[0]; in testUnregisterFileDescriptorCallbackDoesNothingWhenFdNotRegistered()
331 ParcelFileDescriptor writer = pipe[1]) { in testUnregisterFileDescriptorCallbackDoesNothingWhenFdNotRegistered()
346 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in testFileDescriptorCallbacks() local
347 try (final FileInputStream reader = new AutoCloseInputStream(pipe[0]); in testFileDescriptorCallbacks()
348 final FileOutputStream writer = new AutoCloseOutputStream(pipe[1])) { in testFileDescriptorCallbacks()
361 assertEquals(pipe[1].getFileDescriptor(), fd); in testFileDescriptorCallbacks()
[all …]
DParcelFileDescriptorTest.java332 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in testBasicPipeNormal() local
333 final ParcelFileDescriptor red = pipe[0]; in testBasicPipeNormal()
334 final ParcelFileDescriptor blue = pipe[1]; in testBasicPipeNormal()
347 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createReliablePipe(); in testPipeNormal() local
348 final ParcelFileDescriptor red = pipe[0]; in testPipeNormal()
349 final ParcelFileDescriptor blue = pipe[1]; in testPipeNormal()
364 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createReliablePipe(); in testPipeError_Discouraged() local
365 final ParcelFileDescriptor red = pipe[0]; in testPipeError_Discouraged()
366 final ParcelFileDescriptor blue = pipe[1]; in testPipeError_Discouraged()
385 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createReliablePipe(); in testPipeError() local
[all …]
DSeccompTest.java410 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in installTestFilter() local
412 new ParcelFileDescriptor.AutoCloseOutputStream(pipe[1]); in installTestFilter()
450 return nativeInstallTestFilter(pipe[0].detachFd()); in installTestFilter()
DBundleTest.java1292 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in testHasFileDescriptor() local
1294 final ParcelFileDescriptor fd = pipe[0]; in testHasFileDescriptor()
1330 pipe[0].close(); in testHasFileDescriptor()
1331 pipe[1].close(); in testHasFileDescriptor()
/cts/tests/tests/content/src/android/content/pm/cts/
DIncrementalDeviceConnection.java181 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createSocketPair(); in connectToService() local
182 IoUtils.setBlocking(pipe[0].getFileDescriptor(), false); in connectToService()
183 IoUtils.setBlocking(pipe[1].getFileDescriptor(), false); in connectToService()
185 final ParcelFileDescriptor localPfd = pipe[0]; in connectToService()
186 final ParcelFileDescriptor processPfd = pipe[1]; in connectToService()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sharesheet/
DSharesheetTestImageProvider.java71 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createReliablePipe(); in openAssetFile() local
74 sendBitmap(pipe[1], uriToColor(uri), name, getType(uri)); in openAssetFile()
79 pipe[1].close(); in openAssetFile()
85 return new AssetFileDescriptor(pipe[0], 0, -1); in openAssetFile()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DMainWearableSensingService.java196 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createReliablePipe(); in sendAudio() local
197 mAudioOutputStream = new ParcelFileDescriptor.AutoCloseOutputStream(pipe[PIPE_WRITE_INDEX]); in sendAudio()
200 new HotwordAudioStream.Builder(FAKE_AUDIO_FORMAT, pipe[PIPE_READ_INDEX]) in sendAudio()
203 pipe[PIPE_READ_INDEX].close(); in sendAudio()
/cts/tests/musicrecognition/src/android/musicrecognition/cts/
DMusicRecognitionManagerTest.java163 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in testRemovesBindersFromBundle() local
168 mWatcher.resultExtras.putParcelable("fdKey", pipe[0]); in testRemovesBindersFromBundle()
180 pipe[0].close(); in testRemovesBindersFromBundle()
181 pipe[1].close(); in testRemovesBindersFromBundle()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-29374/
Dpoc.cpp44 SYSCHK(pipe(pipe_fds)); in child_fn()
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DMyDocumentsProvider.java385 final ParcelFileDescriptor[] pipe; in openDocumentUnchecked() local
387 pipe = ParcelFileDescriptor.createPipe(); in openDocumentUnchecked()
398 pipe[0]); in openDocumentUnchecked()
409 return pipe[1]; in openDocumentUnchecked()
417 pipe[1]); in openDocumentUnchecked()
432 return pipe[0]; in openDocumentUnchecked()
/cts/tests/tests/os/assets/minijail/
Disolated-x86-64.policy34 pipe: 1
Disolated-arm.policy52 pipe: 1
Disolated-i386.policy53 pipe: 1
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2015-1805/
Dpoc.c55 if (pipe(fd) < 0) { in main()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioAEC.java141 public boolean updateRms(PipeShort pipe, int channelCount, int channel) { in updateRms() argument
143 int samplesAvailable = pipe.availableToRead(); in updateRms()
145 pipe.read(mAudioShortArray, 0, mBlockSize); in updateRms()
164 samplesAvailable = pipe.availableToRead(); in updateRms()
/cts/tests/aslr/src/
DAslrMallocTest.cpp72 ASSERT_TRUE(pipe(fds) != -1); in GetAddress()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyLocationTests.java311 LinkedBlockingQueue<ICtsLocationAccessControl> pipe = in bindLocationAccessControl() local
316 pipe.offer(ICtsLocationAccessControl.Stub.asInterface(service)); in bindLocationAccessControl()
326 return pipe.poll(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in bindLocationAccessControl()
/cts/tests/wearable/src/android/wearable/cts/
DCtsWearableSensingServiceDeviceTest.java552 ParcelFileDescriptor pipe = CtsWearableSensingService.getParcelFileDescriptor(); in readDataStream() local
553 InputStream is = new ParcelFileDescriptor.AutoCloseInputStream(pipe); in readDataStream()
/cts/tools/release-parser/tests/resources/
DCtsAslrMallocTestCases32.pb.txt309 name: "pipe"
/cts/tests/camera/libctscamera2jni/
Ddng-validate-jni.cpp404 err = pipe(pipeFds); in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
/cts/tests/media/src/android/mediav2/cts/
DMuxerUnitTest.java19 import static android.system.Os.pipe;
167 FileDescriptor[] fd = pipe(); in testIfNonSeekableFdIsRejected()
/cts/hostsidetests/adpf/app/hintsession/src/cpp/external/
Dandroid_native_app_glue.c257 if (pipe(msgpipe)) { in android_app_create()
/cts/tests/tests/content/src/android/content/res/cts/
DAssetFileDescriptor_AutoCloseInputStreamTest.java498 final FileDescriptor[] fds = Os.pipe(); in testNonSeekableInputStream()
/cts/tests/media/jni/
DNativeMuxerUnitTest.cpp82 if (pipe(pipefd) == -1) { in nativeTestIfNonSeekableFdIsRejected()
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_native_aidl_client.cpp387 while (pipe(fds) == -1 && errno == EAGAIN) in checkFdRepeat()
402 while (pipe(fds) == -1 && errno == EAGAIN) in TEST_P()

12