Home
last modified time | relevance | path

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

/cts/tests/tests/os/src/android/os/cts/
DMessageQueueTest.java238 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull() local
239 try (ParcelFileDescriptor reader = pipe[0]; in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull()
240 ParcelFileDescriptor writer = pipe[1]) { in testRegisterFileDescriptorCallbackThrowsWhenCallbackIsNull()
263 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in testUnregisterFileDescriptorCallbackDoesNothingWhenFdNotRegistered() local
264 try (ParcelFileDescriptor reader = pipe[0]; in testUnregisterFileDescriptorCallbackDoesNothingWhenFdNotRegistered()
265 ParcelFileDescriptor writer = pipe[1]) { in testUnregisterFileDescriptorCallbackDoesNothingWhenFdNotRegistered()
278 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in testFileDescriptorCallbacks() local
279 try (final FileInputStream reader = new AutoCloseInputStream(pipe[0]); in testFileDescriptorCallbacks()
280 final FileOutputStream writer = new AutoCloseOutputStream(pipe[1])) { in testFileDescriptorCallbacks()
293 assertEquals(pipe[1].getFileDescriptor(), fd); in testFileDescriptorCallbacks()
[all …]
DParcelFileDescriptorTest.java247 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createReliablePipe(); in testPipeNormal() local
248 final ParcelFileDescriptor red = pipe[0]; in testPipeNormal()
249 final ParcelFileDescriptor blue = pipe[1]; in testPipeNormal()
263 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createReliablePipe(); in testPipeError_Discouraged() local
264 final ParcelFileDescriptor red = pipe[0]; in testPipeError_Discouraged()
265 final ParcelFileDescriptor blue = pipe[1]; in testPipeError_Discouraged()
283 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createReliablePipe(); in testPipeError() local
284 final ParcelFileDescriptor red = pipe[0]; in testPipeError()
285 final ParcelFileDescriptor blue = pipe[1]; in testPipeError()
DSeccompTest.java416 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in installTestFilter() local
418 new ParcelFileDescriptor.AutoCloseOutputStream(pipe[1]); in installTestFilter()
456 return nativeInstallTestFilter(pipe[0].detachFd()); in installTestFilter()
DBundleTest.java862 final ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in testHasFileDescriptor() local
864 final ParcelFileDescriptor fd = pipe[0]; in testHasFileDescriptor()
900 pipe[0].close(); in testHasFileDescriptor()
901 pipe[1].close(); in testHasFileDescriptor()
/cts/tests/tests/content/src/android/content/pm/cts/
DIncrementalDeviceConnection.java183 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createSocketPair(); in connectToService() local
184 IoUtils.setBlocking(pipe[0].getFileDescriptor(), false); in connectToService()
185 IoUtils.setBlocking(pipe[1].getFileDescriptor(), false); in connectToService()
187 final ParcelFileDescriptor localPfd = pipe[0]; in connectToService()
188 final ParcelFileDescriptor processPfd = pipe[1]; in connectToService()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-29368/
Dpoc.cpp44 SYSCHK(pipe(pipe_fds)); in child_fn()
/cts/tests/musicrecognition/src/android/musicrecognition/cts/
DMusicRecognitionManagerTest.java165 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in testRemovesBindersFromBundle() local
170 mWatcher.resultExtras.putParcelable("fdKey", pipe[0]); in testRemovesBindersFromBundle()
182 pipe[0].close(); in testRemovesBindersFromBundle()
183 pipe[1].close(); in testRemovesBindersFromBundle()
/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.c53 if (pipe(fd) < 0) { in main()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyLocationTests.java284 LinkedBlockingQueue<ICtsLocationAccessControl> pipe = in bindLocationAccessControl() local
289 pipe.offer(ICtsLocationAccessControl.Stub.asInterface(service)); in bindLocationAccessControl()
299 return pipe.poll(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in bindLocationAccessControl()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioAEC.java123 public boolean updateRms(PipeShort pipe, int channelCount, int channel) { in updateRms() argument
125 int samplesAvailable = pipe.availableToRead(); in updateRms()
127 pipe.read(mAudioShortArray, 0, mBlockSize); in updateRms()
146 samplesAvailable = pipe.availableToRead(); in updateRms()
/cts/tests/aslr/src/
DAslrMallocTest.cpp72 ASSERT_TRUE(pipe(fds) != -1); in GetAddress()
/cts/suite/audio_quality/test/
DRemoteAudioFakeTcpTest.cpp60 if (pipe(pipefd) == -1) { in init()
/cts/tests/camera/libctscamera2jni/
Ddng-validate-jni.cpp404 err = pipe(pipeFds); in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
/cts/tools/release-parser/tests/resources/
DCtsAslrMallocTestCases32.pb.txt309 name: "pipe"
/cts/tests/media/src/android/mediav2/cts/
DMuxerUnitTest.java42 import static android.system.Os.pipe;
173 FileDescriptor[] fd = pipe(); in testIfNonSeekableFdIsRejected()
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_native_aidl_client.cpp375 while (pipe(fds) == -1 && errno == EAGAIN) in checkFdRepeat()
390 while (pipe(fds) == -1 && errno == EAGAIN) in TEST_P()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java862 FileDescriptor[] pipeFds = Os.pipe(); in sendOverPipe()