Searched refs:fileDescriptor (Results 1 – 9 of 9) sorted by relevance
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2180/ |
D | poc.c | 53 int fileDescriptor = open((const char *)argv[1], O_RDONLY); in main() local 54 FAIL_CHECK(fileDescriptor >= 0); in main() 57 close(fileDescriptor); in main() 61 ippReadFile(fileDescriptor, job); in main() 64 close(fileDescriptor); in main()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | SharedMemoryFileDescriptorTest.java | 55 ParcelFileDescriptor fileDescriptor = p.readFileDescriptor(); in testCreation() local 58 SharedMemory sharedMem2 = SharedMemory.fromFileDescriptor(fileDescriptor); in testCreation() 61 assertFalse(fileDescriptor.getFileDescriptor().valid()); in testCreation() 82 ParcelFileDescriptor fileDescriptor = p.readFileDescriptor(); in testDuplication() local 83 ParcelFileDescriptor dupFileDescriptor = fileDescriptor.dup(); in testDuplication() 89 assertTrue(fileDescriptor.getFileDescriptor().valid()); in testDuplication()
|
/cts/hostsidetests/media/app/MediaExtractorTest/src/android/media/cts/ |
D | MediaExtractorDeviceSideTest.java | 57 try (AssetFileDescriptor fileDescriptor = assetManager.openFd(SAMPLE_PATH)) { in testEntryPointSdk() argument 58 mediaExtractor.setDataSource(fileDescriptor); in testEntryPointSdk() 98 try (AssetFileDescriptor fileDescriptor = assetManager.openFd(SAMPLE_PATH)) { in assertMediaExtractorAcceptsLogSessionId() argument 99 mediaExtractor.setDataSource(fileDescriptor); in assertMediaExtractorAcceptsLogSessionId()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/unittests/ |
D | AlwaysOnHotwordDetectorEventPayloadTest.java | 123 ParcelFileDescriptor fileDescriptor = ParcelFileDescriptor.open(new File("/dev/null"), in testEventPayload_getAudioStream() local 127 .setAudioStream(fileDescriptor) in testEventPayload_getAudioStream() 129 assertThat(eventPayload.getAudioStream()).isEqualTo(fileDescriptor); in testEventPayload_getAudioStream()
|
/cts/tests/net/src/android/net/cts/ |
D | LocalSocketTest.java | 298 FileDescriptor fileDescriptor = socketPair.clientSocket.getFileDescriptor(); in testLocalSocketCreatedFromFileDescriptor() local 299 assertTrue(fileDescriptor.valid()); in testLocalSocketCreatedFromFileDescriptor() 302 LocalSocket clientSocketCreatedFromFileDescriptor = new LocalSocket(fileDescriptor); in testLocalSocketCreatedFromFileDescriptor() 317 assertTrue(fileDescriptor.valid()); in testLocalSocketCreatedFromFileDescriptor() 321 assertFalse(fileDescriptor.valid()); in testLocalSocketCreatedFromFileDescriptor()
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechServiceTest.java | 143 ParcelFileDescriptor fileDescriptor = ParcelFileDescriptor.open(sampleFile, in testSynthesizeToFileWithFileDescriptor() local 152 UTTERANCE, params, fileDescriptor, in testSynthesizeToFileWithFileDescriptor() 312 ParcelFileDescriptor fileDescriptor = ParcelFileDescriptor.open(sampleFile, in generateSampleAudio() local 321 UTTERANCE, params, fileDescriptor, in generateSampleAudio()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | CallLogTest.java | 249 ParcelFileDescriptor fileDescriptor = in testOpenFileOutsideOfScopeThrowsException() local 252 if (fileDescriptor != null) { in testOpenFileOutsideOfScopeThrowsException()
|
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | ResourcesLoaderTestBase.kt | 276 FileOutputStream(fd.fileDescriptor).use { output -> in <lambda>()
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTest.java | 207 ParcelFileDescriptor fileDescriptor = mDownloadManager.openDownloadedFile(id); in testMinimumDownload() local 208 assertEquals(MINIMUM_DOWNLOAD_BYTES, fileDescriptor.getStatSize()); in testMinimumDownload()
|