Home
last modified time | relevance | path

Searched refs:pipe (Results 1 – 18 of 18) 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/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/
DMyDocumentsProvider.java384 final ParcelFileDescriptor[] pipe; in openDocumentUnchecked() local
386 pipe = ParcelFileDescriptor.createPipe(); in openDocumentUnchecked()
397 pipe[0]); in openDocumentUnchecked()
408 return pipe[1]; in openDocumentUnchecked()
416 pipe[1]); in openDocumentUnchecked()
431 return pipe[0]; in openDocumentUnchecked()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyLocationTests.java217 LinkedBlockingQueue<ICtsLocationAccessControl> pipe = in bindLocationAccessControl() local
222 pipe.offer(ICtsLocationAccessControl.Stub.asInterface(service)); in bindLocationAccessControl()
232 return pipe.poll(TEST_TIMEOUT, TimeUnit.MILLISECONDS); in bindLocationAccessControl()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioAEC.java122 public boolean updateRms(PipeShort pipe, int channelCount, int channel) { in updateRms() argument
124 int samplesAvailable = pipe.availableToRead(); in updateRms()
126 pipe.read(mAudioShortArray, 0, mBlockSize); in updateRms()
145 samplesAvailable = pipe.availableToRead(); in updateRms()
/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/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;
172 FileDescriptor[] fd = pipe(); in testIfNonSeekableFdIsRejected()
/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_native_aidl_client.cpp310 while (pipe(fds) == -1 && errno == EAGAIN) in checkFdRepeat()
325 while (pipe(fds) == -1 && errno == EAGAIN) in TEST_P()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java837 FileDescriptor[] pipeFds = Os.pipe(); in sendOverPipe()