/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
D | DownloadManagerTestApp.java | 188 ParcelFileDescriptor pfd = null; in verifyFileDownloadSucceeded() local 200 pfd = mDownloadManager.openDownloadedFile(dlRequest); in verifyFileDownloadSucceeded() 201 verifyFileSize(pfd, filesize); in verifyFileDownloadSucceeded() 209 if (pfd != null) { in verifyFileDownloadSucceeded() 210 pfd.close(); in verifyFileDownloadSucceeded() 239 ParcelFileDescriptor pfd = null; in runLargeDownloadOverWiFi() local 243 pfd = mDownloadManager.openDownloadedFile(dlRequest); in runLargeDownloadOverWiFi() 244 verifyFileSize(pfd, filesize); in runLargeDownloadOverWiFi() 246 if (pfd != null) { in runLargeDownloadOverWiFi() 247 pfd.close(); in runLargeDownloadOverWiFi() [all …]
|
/frameworks/base/core/java/android/hardware/ |
D | SerialPort.java | 55 public void open(ParcelFileDescriptor pfd, int speed) throws IOException { in open() argument 56 native_open(pfd.getFileDescriptor(), speed); in open() 57 mFileDescriptor = pfd; in open() 125 private native void native_open(FileDescriptor pfd, int speed) throws IOException; in native_open() argument
|
D | SerialManager.java | 73 ParcelFileDescriptor pfd = mService.openSerialPort(name); in openSerialPort() local 74 if (pfd != null) { in openSerialPort() 76 port.open(pfd, speed); in openSerialPort()
|
/frameworks/base/core/java/android/util/ |
D | MemoryIntArray.java | 81 ParcelFileDescriptor pfd = parcel.readParcelable(null); in MemoryIntArray() local 82 if (pfd == null) { in MemoryIntArray() 85 mFd = pfd.detachFd(); in MemoryIntArray() 178 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.fromFd(mFd)) { in writeToParcel() argument 179 parcel.writeParcelable(pfd, flags); in writeToParcel()
|
/frameworks/base/services/core/java/com/android/server/net/watchlist/ |
D | NetworkWatchlistShellCommand.java | 73 final ParcelFileDescriptor pfd = openFileForSystem(configXmlPath, "r"); in runSetTestConfig() local 74 if (pfd == null) { in runSetTestConfig() 78 final InputStream fileStream = new FileInputStream(pfd.getFileDescriptor()); in runSetTestConfig()
|
/frameworks/base/native/android/ |
D | sensor.cpp | 255 struct pollfd pfd; in ASensorEventQueue_hasEvents() local 256 pfd.fd = static_cast<SensorEventQueue*>(queue)->getFd(); in ASensorEventQueue_hasEvents() 257 pfd.events = POLLIN; in ASensorEventQueue_hasEvents() 258 pfd.revents = 0; in ASensorEventQueue_hasEvents() 260 int nfd = poll(&pfd, 1, 0); in ASensorEventQueue_hasEvents() 265 if (pfd.revents != POLLIN) in ASensorEventQueue_hasEvents()
|
/frameworks/base/drm/java/android/drm/ |
D | DrmOutputStream.java | 56 public DrmOutputStream(DrmManagerClient client, ParcelFileDescriptor pfd, String mimeType) in DrmOutputStream() argument 59 mPfd = pfd; in DrmOutputStream() 60 mFd = pfd.getFileDescriptor(); in DrmOutputStream()
|
/frameworks/base/tools/incident_report/ |
D | main.cpp | 369 int pfd[2]; in main() local 370 if (pipe(pfd) != 0) { in main() 381 dup2(pfd[1], STDOUT_FILENO); in main() 382 close(pfd[0]); in main() 383 close(pfd[1]); in main() 411 inFd = pfd[0]; in main() 412 close(pfd[1]); in main()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | BitmapFactoryTest.java | 37 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(out.toByteArray(), null); in testBitmapParcelFileDescriptor() local 38 FileDescriptor fd = pfd.getFileDescriptor(); in testBitmapParcelFileDescriptor()
|
/frameworks/base/core/java/android/os/ |
D | ParcelFileDescriptor.java | 260 public static ParcelFileDescriptor fromPfd(ParcelFileDescriptor pfd, Handler handler, in fromPfd() argument 263 original.setInt$(pfd.detachFd()); in fromPfd() 278 final ParcelFileDescriptor pfd = new ParcelFileDescriptor(fd, comm[0]); in fromFd() local 301 return pfd; in fromFd() 940 public AutoCloseInputStream(ParcelFileDescriptor pfd) { in AutoCloseInputStream() argument 941 super(pfd.getFileDescriptor()); in AutoCloseInputStream() 942 mPfd = pfd; in AutoCloseInputStream() 991 public AutoCloseOutputStream(ParcelFileDescriptor pfd) { in AutoCloseOutputStream() argument 992 super(pfd.getFileDescriptor()); in AutoCloseOutputStream() 993 mPfd = pfd; in AutoCloseOutputStream()
|
D | ShellCommand.java | 239 ParcelFileDescriptor pfd = getShellCallback().openFile(path, in openFileForSystem() local 241 if (pfd != null) { in openFileForSystem() 242 if (DEBUG) Slog.d(TAG, "Got file: " + pfd); in openFileForSystem() 243 return pfd; in openFileForSystem()
|
/frameworks/base/media/apex/java/android/media/ |
D | ProxyDataSourceCallback.java | 37 ProxyDataSourceCallback(ParcelFileDescriptor pfd) throws IOException { in ProxyDataSourceCallback() argument 38 mPFD = pfd.dup(); in ProxyDataSourceCallback()
|
/frameworks/base/core/java/android/net/ |
D | TestNetworkInterface.java | 44 public TestNetworkInterface(ParcelFileDescriptor pfd, String intf) { in TestNetworkInterface() argument 45 mFileDescriptor = pfd; in TestNetworkInterface()
|
D | TcpSocketKeepalive.java | 32 @NonNull ParcelFileDescriptor pfd, in TcpSocketKeepalive() argument 35 super(service, network, pfd, executor, callback); in TcpSocketKeepalive()
|
D | NattSocketKeepalive.java | 38 @NonNull ParcelFileDescriptor pfd, in NattSocketKeepalive() argument 44 super(service, network, pfd, executor, callback); in NattSocketKeepalive()
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | ShellHelper.java | 49 ParcelFileDescriptor pfd = automan.executeShellCommand(command); in runShellCommandRaw() local 52 try(FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in runShellCommandRaw()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | DownloadManagerBaseTest.java | 342 protected void verifyFileSize(ParcelFileDescriptor pfd, long size) { in verifyFileSize() argument 343 assertEquals(pfd.getStatSize(), size); in verifyFileSize() 390 protected void verifyFileContents(ParcelFileDescriptor pfd, File file) throws IOException { in verifyFileContents() argument 394 AutoCloseInputStream input = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in verifyFileContents() 396 assertEquals(file.length(), pfd.getStatSize()); in verifyFileContents() 490 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId); in verifyAndCleanupSingleFileDownload() local 497 verifyFileSize(pfd, fileSize); in verifyAndCleanupSingleFileDownload() 498 verifyFileContents(pfd, fileData); in verifyAndCleanupSingleFileDownload() 500 pfd.close(); in verifyAndCleanupSingleFileDownload()
|
D | DownloadManagerStressTest.java | 135 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); in testDownloadLargeFile() local 136 verifyFileContents(pfd, largeFile); in testDownloadLargeFile() 137 verifyFileSize(pfd, largeFile.length()); in testDownloadLargeFile()
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | TextClassifierImpl.java | 556 final ParcelFileDescriptor pfd = ParcelFileDescriptor.open( in getAnnotatorImpl() local 559 if (pfd != null) { in getAnnotatorImpl() 563 mAnnotatorImpl = new AnnotatorModel(pfd.getFd()); in getAnnotatorImpl() 567 maybeCloseAndLogError(pfd); in getAnnotatorImpl() 583 final ParcelFileDescriptor pfd = ParcelFileDescriptor.open( in getLangIdImpl() local 586 if (pfd != null) { in getLangIdImpl() 587 mLangIdImpl = new LangIdModel(pfd.getFd()); in getLangIdImpl() 591 maybeCloseAndLogError(pfd); in getLangIdImpl() 609 final ParcelFileDescriptor pfd = ParcelFileDescriptor.open( in getActionsImpl() local 612 if (pfd == null) { in getActionsImpl() [all …]
|
/frameworks/base/core/tests/overlaytests/device/src/com/android/overlaytest/ |
D | LocalOverlayManager.java | 65 final ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command); in executeShellCommand() local 66 try (InputStream in = new ParcelFileDescriptor.AutoCloseInputStream(pfd)) { in executeShellCommand()
|
/frameworks/base/core/java/android/hardware/usb/ |
D | UsbDeviceConnection.java | 63 /* package */ boolean open(String name, ParcelFileDescriptor pfd, @NonNull Context context) { in open() argument 65 boolean wasOpened = native_open(name, pfd.getFileDescriptor()); in open() 374 private native boolean native_open(String deviceName, FileDescriptor pfd); in native_open() argument
|
/frameworks/native/libs/vr/libpdx_uds/ |
D | service_framework_tests.cpp | 647 pollfd pfd{client->event_fd(), POLLIN, 0}; in TEST_F() local 648 int count = poll(&pfd, 1, 0); in TEST_F() 653 count = poll(&pfd, 1, 10000 /*10s*/); in TEST_F() 655 ASSERT_TRUE((POLLIN & pfd.revents) != 0); in TEST_F() 668 pollfd pfd{client->event_fd(), POLLIN, 0}; in TEST_F() local 669 int count = poll(&pfd, 1, 0); in TEST_F() 674 count = poll(&pfd, 1, 10000 /*10s*/); in TEST_F() 676 auto event_status = client->GetEventMask(pfd.revents); in TEST_F()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | IpSecServiceParameterizedTest.java | 573 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); in verifyApplyTransportModeTransformCommon() local 576 mIpSecService.applyTransportModeTransform(pfd, IpSecManager.DIRECTION_OUT, resourceId); in verifyApplyTransportModeTransformCommon() 580 eq(pfd), in verifyApplyTransportModeTransformCommon() 602 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); in testApplyTransportModeTransformWithClosedSpi() local 605 mIpSecService.applyTransportModeTransform(pfd, IpSecManager.DIRECTION_OUT, resourceId); in testApplyTransportModeTransformWithClosedSpi() 609 eq(pfd), in testApplyTransportModeTransformWithClosedSpi() 621 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); in testRemoveTransportModeTransform() local 622 mIpSecService.removeTransportModeTransforms(pfd); in testRemoveTransportModeTransform() 624 verify(mMockNetd).ipSecRemoveTransportModeTransform(pfd); in testRemoveTransportModeTransform()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbMidiDevice.java | 223 StructPollfd pfd = mPollFDs[index]; in openLocked() local 224 if ((pfd.revents & (OsConstants.POLLERR in openLocked() 227 } else if ((pfd.revents & OsConstants.POLLIN) != 0) { in openLocked() 229 pfd.revents = 0; in openLocked()
|
/frameworks/native/libs/binder/tests/ |
D | binderDriverInterfaceTest.cpp | 135 pollfd pfd = pollfd(); in binderWaitForReadData() local 137 pfd.fd = m_binderFd; in binderWaitForReadData() 138 pfd.events = POLLIN; in binderWaitForReadData() 139 ret = poll(&pfd, 1, timeout_ms); in binderWaitForReadData()
|