/cts/tests/tests/net/jni/ |
D | NativeMultinetworkJni.c | 76 int fd = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork() local 77 if (fd < 0) { in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork() 83 int rval = android_setsocknetwork(handle, fd); in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork() 86 handle, fd, rval, saved_errno); in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork() 87 close(fd); in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork() 136 int fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() local 137 if (fd < 0) { in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 144 rval = android_setsocknetwork(handle, fd); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 146 handle, fd, rval, errno); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 148 close(fd); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() [all …]
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_NativeCodeTest.cpp | 50 int fd = syscall(__NR_perf_event_open, attr, 0, -1, -1, 0); in android_security_cts_NativeCodeTest_doPerfEventTest() local 51 jboolean result = (fd != -1); in android_security_cts_NativeCodeTest_doPerfEventTest() 53 if (fd != -1) { in android_security_cts_NativeCodeTest_doPerfEventTest() 54 close(fd); in android_security_cts_NativeCodeTest_doPerfEventTest() 75 int fd[2]; in android_security_cts_NativeCodeTest_doPerfEventTest2() local 82 fd[0]=syscall(__NR_perf_event_open, &pe[0], 0, 0, -1, 0); in android_security_cts_NativeCodeTest_doPerfEventTest2() 83 fd[1]=syscall(__NR_perf_event_open, &pe[1], 0, 0, fd[0], 0); in android_security_cts_NativeCodeTest_doPerfEventTest2() 84 close(fd[0]); in android_security_cts_NativeCodeTest_doPerfEventTest2() 85 close(fd[1]); in android_security_cts_NativeCodeTest_doPerfEventTest2() 128 static void* mmap_syscall(void* addr, size_t len, int prot, int flags, int fd, off_t offset) in mmap_syscall() argument [all …]
|
D | android_security_cts_CharDeviceTest.cpp | 37 int fd = open("/dev/exynos-mem", O_RDWR); in android_security_cts_CharDeviceTest_doExynosWriteTest() local 38 if (fd < 0) { in android_security_cts_CharDeviceTest_doExynosWriteTest() 43 mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, PHYS_OFFSET); in android_security_cts_CharDeviceTest_doExynosWriteTest() 64 close(fd); in android_security_cts_CharDeviceTest_doExynosWriteTest() 75 int fd = open("/dev/exynos-mem", O_RDONLY); in android_security_cts_CharDeviceTest_doExynosReadTest() local 76 if (fd < 0) { in android_security_cts_CharDeviceTest_doExynosReadTest() 81 mmap(NULL, length, PROT_READ, MAP_SHARED, fd, PHYS_OFFSET); in android_security_cts_CharDeviceTest_doExynosReadTest() 104 close(fd); in android_security_cts_CharDeviceTest_doExynosReadTest()
|
D | android_security_cts_MMapExecutableTest.cpp | 42 int fd = open(filename.c_str(), O_RDONLY); in mmap_executable() local 43 if (fd == -1) { in mmap_executable() 49 if (fstat(fd, &stat_buf) == -1) { in mmap_executable() 61 PROT_EXEC | PROT_READ, MAP_PRIVATE, fd, kOffset); in mmap_executable()
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteStatementTest.java | 247 ParcelFileDescriptor fd = stm.simpleQueryForBlobFileDescriptor(); in doTestSimpleQueryForBlobFileDescriptorSuccess() local 248 assertFileDescriptorContent(BLOBS[i], fd); in doTestSimpleQueryForBlobFileDescriptorSuccess() 257 ParcelFileDescriptor fd = stm.simpleQueryForBlobFileDescriptor(); in testSimpleQueryForBlobFileDescriptorSuccessParam() local 258 assertFileDescriptorContent(BLOBS[0], fd); in testSimpleQueryForBlobFileDescriptorSuccessParam() 266 ParcelFileDescriptor fd = null; in testGetBlobFailureNoParam() local 269 fd = stm.simpleQueryForBlobFileDescriptor(); in testGetBlobFailureNoParam() 273 if (fd != null) { in testGetBlobFailureNoParam() 274 fd.close(); in testGetBlobFailureNoParam() 275 fd = null; in testGetBlobFailureNoParam() 287 ParcelFileDescriptor fd = null; in testGetBlobFailureParam() local [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | NativeDecoderTest.java | 114 AssetFileDescriptor fd = mResources.openRawResourceFd(res); in testExtractor() local 117 fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testExtractor() 119 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength()); in testExtractor() 121 fd.close(); in testExtractor() 132 private static int[] getSampleSizes(FileDescriptor fd, long offset, long size) in getSampleSizes() argument 135 ex.setDataSource(fd, offset, size); in getSampleSizes() 182 private static native int[] getSampleSizesNative(int fd, long offset, long size); in getSampleSizesNative() argument 210 AssetFileDescriptor fd = mResources.openRawResourceFd(res); in testDecoder() local 213 fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testDecoder() 215 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength()); in testDecoder() [all …]
|
D | Utils.java | 85 ParcelFileDescriptor fd = null; in toggleNotificationPolicyAccess() local 91 fd = uiAutomation.executeShellCommand( in toggleNotificationPolicyAccess() 99 fd = uiAutomation.executeShellCommand( in toggleNotificationPolicyAccess() 105 fd = uiAutomation.executeShellCommand("settings --user cur put secure " in toggleNotificationPolicyAccess() 109 if (fd != null) { in toggleNotificationPolicyAccess() 110 InputStream in = new FileInputStream(fd.getFileDescriptor()); in toggleNotificationPolicyAccess()
|
D | ExifInterfaceTest.java | 353 FileDescriptor fd = null; in testExifInterfaceCommon() local 355 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDONLY, 0600); in testExifInterfaceCommon() 356 exifInterface = new ExifInterface(fd); in testExifInterfaceCommon() 361 IoUtils.closeQuietly(fd); in testExifInterfaceCommon() 391 FileDescriptor fd = null; in testSaveAttributes_withFileDescriptor() local 393 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDWR, 0600); in testSaveAttributes_withFileDescriptor() 394 ExifInterface exifInterface = new ExifInterface(fd); in testSaveAttributes_withFileDescriptor() 396 Os.lseek(fd, 0, OsConstants.SEEK_SET); in testSaveAttributes_withFileDescriptor() 397 exifInterface = new ExifInterface(fd); in testSaveAttributes_withFileDescriptor() 404 Os.lseek(fd, 0, OsConstants.SEEK_SET); in testSaveAttributes_withFileDescriptor() [all …]
|
/cts/tests/tests/content/src/android/content/res/cts/ |
D | AssetFileDescriptor_AutoCloseOutputStreamTest.java | 57 ParcelFileDescriptor fd = ParcelFileDescriptor.open(file, in testAutoCloseOutputStream() local 59 mAssetFileDes = new AssetFileDescriptor(fd, 0, FILE_LENGTH); in testAutoCloseOutputStream() 69 fd = ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_WRITE); in testAutoCloseOutputStream() 70 mAssetFileDes = new AssetFileDescriptor(fd, 0, FILE_LENGTH); in testAutoCloseOutputStream()
|
D | AssetFileDescriptorTest.java | 73 ParcelFileDescriptor fd = ParcelFileDescriptor.open( in testConstructor() local 78 assetFileDes = new AssetFileDescriptor(fd, START_OFFSET, LENGTH); in testConstructor() 83 assetFileDes = new AssetFileDescriptor(fd, START_OFFSET, LENGTH, extras); in testConstructor() 89 assetFileDes = new AssetFileDescriptor(fd, START_OFFSET, LENGTH, extras); in testConstructor()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 281 AssetFileDescriptor fd = getInstrumentation().getContext().getResources() in doStagefrightTestMediaPlayer() 284 mp.setDataSource(fd.getFileDescriptor(), in doStagefrightTestMediaPlayer() 285 fd.getStartOffset(), in doStagefrightTestMediaPlayer() 286 fd.getLength()); in doStagefrightTestMediaPlayer() 315 AssetFileDescriptor fd = getInstrumentation().getContext().getResources() in doStagefrightTestMediaCodec() 320 mp.setDataSource(fd.getFileDescriptor(), in doStagefrightTestMediaCodec() 321 fd.getStartOffset(), in doStagefrightTestMediaCodec() 322 fd.getLength()); in doStagefrightTestMediaCodec() 342 AssetFileDescriptor fd = resources.openRawResourceFd(rid); in doStagefrightTestMediaCodec() local 345 ex.setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in doStagefrightTestMediaCodec()
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
D | VpnTest.java | 311 pollfd.fd = s; in checkPing() 486 FileDescriptor fd = mRemoteSocketFactoryClient.openSocketFd(host, port, TIMEOUT_MS); in openSocketFdInOtherApp() local 487 return fd; in openSocketFdInOtherApp() 490 private void sendRequest(FileDescriptor fd, String host) throws Exception { in sendRequest() argument 495 int ret = Os.write(fd, requestBytes, 0, requestBytes.length); in sendRequest() 500 Os.read(fd, response, 0, response.length); in sendRequest() 507 private void assertSocketStillOpen(FileDescriptor fd, String host) throws Exception { in assertSocketStillOpen() argument 509 sendRequest(fd, host); in assertSocketStillOpen() 511 Os.close(fd); in assertSocketStillOpen() 515 private void assertSocketClosed(FileDescriptor fd, String host) throws Exception { in assertSocketClosed() argument [all …]
|
/cts/apps/CameraITS/tests/scene3/ |
D | test_edge_enhancement.py | 28 def test_edge_mode(cam, edge_mode, sensitivity, exp, fd, out_surface): argument 55 req["android.lens.focusDistance"] = fd 96 s,e,_,_,fd = cam.do_3a(get_results=True) 107 ret = test_edge_mode(cam, edge_mode, s, e, fd, out_surface)
|
D | test_reprocess_edge_enhancement.py | 28 def test_edge_mode(cam, edge_mode, sensitivity, exp, fd, out_surface, argument 59 req["android.lens.focusDistance"] = fd 117 s,e,_,_,fd = cam.do_3a(get_results=True) 128 ret = test_edge_mode(cam, edge_mode, s, e, fd, out_surface) 151 ret = test_edge_mode(cam, edge_mode, s, e, fd, out_surface,
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PageRangeAdjustmentTest.java | 118 ParcelFileDescriptor fd = (ParcelFileDescriptor) args[1]; in testAllPagesWantedAndAllPagesWritten() 120 writeBlankPages(printAttributes[0], fd, 0, PAGE_COUNT - 1); in testAllPagesWantedAndAllPagesWritten() 121 fd.close(); in testAllPagesWantedAndAllPagesWritten() 227 ParcelFileDescriptor fd = (ParcelFileDescriptor) args[1]; in testSomePagesWantedAndAllPagesWritten() 229 writeBlankPages(printAttributes[0], fd, 0, PAGE_COUNT - 1); in testSomePagesWantedAndAllPagesWritten() 230 fd.close(); in testSomePagesWantedAndAllPagesWritten() 346 ParcelFileDescriptor fd = (ParcelFileDescriptor) args[1]; in testSomePagesWantedAndSomeMorePagesWritten() 355 writeBlankPages(printAttributes[0], fd, pages[0].getStart(), pages[0].getEnd()); in testSomePagesWantedAndSomeMorePagesWritten() 359 writeBlankPages(printAttributes[0], fd, REQUESTED_PAGE - 1, REQUESTED_PAGE); in testSomePagesWantedAndSomeMorePagesWritten() 364 fd.close(); in testSomePagesWantedAndSomeMorePagesWritten() [all …]
|
D | PrintDocumentAdapterContractTest.java | 92 ParcelFileDescriptor fd = (ParcelFileDescriptor) args[1]; in testNoPrintOptionsOrPrinterChange() 94 writeBlankPages(printAttributes[0], fd, pages[0].getStart(), pages[0].getEnd()); in testNoPrintOptionsOrPrinterChange() 95 fd.close(); in testNoPrintOptionsOrPrinterChange() 215 ParcelFileDescriptor fd = (ParcelFileDescriptor) args[1]; in testNoPrintOptionsOrPrinterChangeCanceled() 217 writeBlankPages(printAttributes[0], fd, pages[0].getStart(), pages[0].getEnd()); in testNoPrintOptionsOrPrinterChangeCanceled() 218 fd.close(); in testNoPrintOptionsOrPrinterChangeCanceled() 311 ParcelFileDescriptor fd = (ParcelFileDescriptor) args[1]; in testPrintOptionsChangeAndNoPrinterChange() 313 writeBlankPages(printAttributes[0], fd, pages[0].getStart(), pages[0].getEnd()); in testPrintOptionsChangeAndNoPrinterChange() 314 fd.close(); in testPrintOptionsChangeAndNoPrinterChange() 515 ParcelFileDescriptor fd = (ParcelFileDescriptor) args[1]; in testPrintOptionsChangeAndPrinterChange() [all …]
|
/cts/tests/tests/os/jni/seccomp-tests/ |
D | local-modifications-strict-args-fd88d16.diff | 74 + int fd; 81 + fd = open("/dev/zero", O_RDONLY); 82 + ASSERT_NE(-1, fd); 89 + NULL, PAGE_SIZE, PROT_READ, MAP_PRIVATE, fd, PAGE_SIZE); 93 + NULL, PAGE_SIZE, PROT_READ, MAP_PRIVATE, fd, 0x0C0FFEE); 99 + close(fd);
|
/cts/tests/tests/os/src/android/os/cts/ |
D | MessageQueueTest.java | 226 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testRegisterFileDescriptorCallbackThrowsWhenFdIsNull() 292 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testFileDescriptorCallbacks() 293 assertEquals(pipe[1].getFileDescriptor(), fd); in testFileDescriptorCallbacks() 329 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testFileDescriptorCallbacks() 330 assertEquals(pipe[0].getFileDescriptor(), fd); in testFileDescriptorCallbacks() 418 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testPathologicalFileDescriptorReuseCallbacks1() argument 448 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testPathologicalFileDescriptorReuseCallbacks1() argument 500 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testPathologicalFileDescriptorReuseCallbacks2() argument 530 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testPathologicalFileDescriptorReuseCallbacks2() argument 590 public int onFileDescriptorEvents(FileDescriptor fd, int events) { in testPathologicalFileDescriptorReuseCallbacks3() argument [all …]
|
D | SeccompTest.java | 253 ParcelFileDescriptor fd = null; in doFileWriteTest() local 256 fd = ParcelFileDescriptor.dup(fOut.getFD()); in doFileWriteTest() 266 assertTrue(service.writeToFile(fd)); in doFileWriteTest() 348 public boolean writeToFile(ParcelFileDescriptor fd) { 349 FileOutputStream fOut = new FileOutputStream(fd.getFileDescriptor());
|
D | ParcelFileDescriptorTest.java | 130 private static void assertFileDescriptorContent(byte[] expected, ParcelFileDescriptor fd) in assertFileDescriptorContent() argument 132 assertInputStreamContent(expected, new ParcelFileDescriptor.AutoCloseInputStream(fd)); in assertFileDescriptorContent() 152 FileDescriptor fd = pfd.getFileDescriptor(); in testFromDataSkip() local 153 assertNotNull(fd); in testFromDataSkip() 154 assertTrue(fd.valid()); in testFromDataSkip() 155 FileInputStream is = new FileInputStream(fd); in testFromDataSkip()
|
/cts/tools/utils/ |
D | android_api_description_splitter.py | 130 fd = open(filename, "w") 131 fd.write(doc.toxml()) 132 fd.close
|
/cts/tests/tests/security/res/raw/ |
D | openssl_heartbleed_test_cert.pem | 46 b8:61:92:cc:f4:fd:1e:47:da:53:98:0e:26:ec:1d: 53 32:4f:74:37:f3:0f:c8:11:77:fd:9e:82:36:04:fe: 55 1d:47:fd:8f:68:8c:ef:f7:c0:05:a9:70:39:cf:fb: 56 d6:fd:24:3a:b8:7a:cc:e3:62:b9:82:73:43:e2:0d: 69 7b:71:e1:4c:ac:bf:08:e3:08:72:e6:fd:8c:db:bd:84:01:ac: 81 cc:e3:11:d4:83:b6:6f:d8:87:17:eb:aa:fd:5b:37:21:c8:1e:
|
/cts/suite/audio_quality/lib/src/audio/ |
D | AudioPlaybackLocal.cpp | 101 int fd; in doStop() member 104 ioctl(pcm->fd, SNDRV_PCM_IOCTL_DRAIN); in doStop()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | ShellCommandBuilder.java | 73 try (ParcelFileDescriptor fd = automation.executeShellCommand(command)) { in execShellCommand() argument 74 try (InputStream inputStream = new FileInputStream(fd.getFileDescriptor())) { in execShellCommand()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | MultinetworkSysctlTest.java | 63 FileDescriptor fd = Os.open(fileName, 0, OsConstants.O_RDONLY); in readFile() local 64 int bytesRead = Os.read(fd, buf, 0, buf.length); in readFile()
|