/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 718 struct pollfd pfd = { ifd, POLLIN, 0 }; local 719 int ret = poll(&pfd, 1, 5000); /* 5 sec timeout */
|
/frameworks/native/libs/binder/tests/ |
H A D | binderDriverInterfaceTest.cpp | 125 pollfd pfd = pollfd(); local 127 pfd.fd = m_binderFd; 128 pfd.events = POLLIN; 129 ret = poll(&pfd, 1, timeout_ms);
|
H A D | binderLibTest.cpp | 187 pollfd pfd = pollfd(); local 189 pfd.fd = fd; 190 pfd.events = POLLIN; 191 ret = poll(&pfd, 1, timeout_ms);
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
H A D | PrintPreviewController.java | 265 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, 269 mPageAdapter.open(pfd, new Runnable() {
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | BluetoothManagerService.java | 1847 ParcelFileDescriptor pfd = null; 1857 pfd = ParcelFileDescriptor.dup(fd); 1858 mBluetooth.dump(pfd); 1864 if (pfd != null) { 1866 pfd.close();
|
H A D | GraphicsStatsService.java | 93 ParcelFileDescriptor pfd = null; 100 pfd = requestBufferForProcessLocked(token, uid, pid, packageName); 105 return pfd;
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityManagerService.java | 10219 ParcelFileDescriptor pfd = null; 10232 pfd = cph.provider.openFile(null, uri, "r", null, token); 10234 // do nothing; pfd will be returned null 10244 return pfd;
|
H A D | ProcessStatsService.java | 461 ParcelFileDescriptor pfd = ParcelFileDescriptor.open( 463 historic.add(pfd); 557 ParcelFileDescriptor pfd = getStatsOverTime(aggregateHours*60*60*1000 559 if (pfd == null) { 564 InputStream stream = new ParcelFileDescriptor.AutoCloseInputStream(pfd);
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
H A D | WallpaperManagerService.java | 862 ParcelFileDescriptor pfd = updateWallpaperBitmapLocked(name, wallpaper); 863 if (pfd != null) { 866 return pfd;
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbMidiDevice.java | 213 StructPollfd pfd = mPollFDs[index]; 214 if ((pfd.revents & (OsConstants.POLLERR 217 } else if ((pfd.revents & OsConstants.POLLIN) != 0) { 219 pfd.revents = 0;
|
/frameworks/base/native/android/ |
H A D | sensor.cpp | 133 struct pollfd pfd; local 134 pfd.fd = static_cast<SensorEventQueue*>(queue)->getFd(); 135 pfd.events = POLLIN; 136 pfd.revents = 0; 138 int nfd = poll(&pfd, 1, 0); 143 if (pfd.revents != POLLIN)
|
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/ |
H A D | StubProvider.java | 240 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(document.file, 243 pfd = new ParcelFileDescriptor(pfd) { 250 return pfd;
|
/frameworks/base/drm/java/android/drm/ |
H A D | DrmOutputStream.java | 54 * @param pfd Opened with "rw" mode. 56 public DrmOutputStream(DrmManagerClient client, ParcelFileDescriptor pfd, String mimeType) argument 59 mPfd = pfd; 60 mFd = pfd.getFileDescriptor();
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
H A D | BitmapFactoryTest.java | 37 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(out.toByteArray(), null); 38 FileDescriptor fd = pfd.getFileDescriptor();
|
/frameworks/base/media/java/android/media/ |
H A D | ThumbnailUtils.java | 296 * The image data will be read from specified pfd if it's not null, otherwise 303 Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, 307 if (pfd == null) pfd = makeInputStream(uri, cr); 308 if (pfd == null) return null; 311 FileDescriptor fd = pfd.getFileDescriptor(); 330 closeSilently(pfd); 302 makeBitmap(int minSideLength, int maxNumOfPixels, Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, BitmapFactory.Options options) argument
|
/frameworks/base/media/java/android/media/midi/ |
H A D | IMidiDeviceServer.aidl | 30 // connects the input port pfd to the specified output port 31 void connectPorts(IBinder token, in ParcelFileDescriptor pfd, int outputPortNumber);
|
H A D | MidiDevice.java | 127 ParcelFileDescriptor pfd = mDeviceServer.openInputPort(token, portNumber); 128 if (pfd == null) { 131 return new MidiInputPort(mDeviceServer, token, pfd, portNumber); 150 ParcelFileDescriptor pfd = mDeviceServer.openOutputPort(token, portNumber); 151 if (pfd == null) { 154 return new MidiOutputPort(mDeviceServer, token, pfd, portNumber); 178 ParcelFileDescriptor pfd = inputPort.claimFileDescriptor(); 179 if (pfd == null) { 184 mDeviceServer.connectPorts(token, pfd, outputPortNumber); 186 IoUtils.closeQuietly(pfd); [all...] |
H A D | MidiDeviceServer.java | 257 public void connectPorts(IBinder token, ParcelFileDescriptor pfd, 259 MidiInputPort inputPort = new MidiInputPort(pfd, outputPortNumber);
|
H A D | MidiInputPort.java | 51 ParcelFileDescriptor pfd, int portNumber) { 56 mParcelFileDescriptor = pfd; 58 mOutputStream = new FileOutputStream(pfd.getFileDescriptor()); 62 /* package */ MidiInputPort(ParcelFileDescriptor pfd, int portNumber) { argument 63 this(null, null, pfd, portNumber); 107 ParcelFileDescriptor pfd; 109 pfd = mParcelFileDescriptor; 110 if (pfd == null) return null; 119 return pfd; 50 MidiInputPort(IMidiDeviceServer server, IBinder token, ParcelFileDescriptor pfd, int portNumber) argument
|
H A D | MidiOutputPort.java | 94 ParcelFileDescriptor pfd, int portNumber) { 98 mInputStream = new ParcelFileDescriptor.AutoCloseInputStream(pfd); 103 /* package */ MidiOutputPort(ParcelFileDescriptor pfd, int portNumber) { argument 104 this(null, null, pfd, portNumber); 93 MidiOutputPort(IMidiDeviceServer server, IBinder token, ParcelFileDescriptor pfd, int portNumber) argument
|
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerBaseTest.java | 334 * @param pfd The input file to compare the size of 337 protected void verifyFileSize(ParcelFileDescriptor pfd, long size) { argument 338 assertEquals(pfd.getStatSize(), size); 381 * @param pfd The file whose data we want to verify 385 protected void verifyFileContents(ParcelFileDescriptor pfd, File file) throws IOException { argument 389 AutoCloseInputStream input = new ParcelFileDescriptor.AutoCloseInputStream(pfd); 391 assertEquals(file.length(), pfd.getStatSize()); 485 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId); 492 verifyFileSize(pfd, fileSize); 493 verifyFileContents(pfd, fileDat [all...] |
H A D | DownloadManagerFunctionalTest.java | 128 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId); 134 verifyFileSize(pfd, fileSize); 135 verifyFileContents(pfd, fileData); 140 pfd.close();
|
H A D | DownloadManagerStressTest.java | 132 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); 133 verifyFileContents(pfd, largeFile); 134 verifyFileSize(pfd, largeFile.length());
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerBaseTest.java | 250 * @param pfd The input file to compare the size of 253 protected void verifyFileSize(ParcelFileDescriptor pfd, long size) { argument 254 assertEquals(pfd.getStatSize(), size);
|
H A D | DownloadManagerTestApp.java | 188 ParcelFileDescriptor pfd = null; 200 pfd = mDownloadManager.openDownloadedFile(dlRequest); 201 verifyFileSize(pfd, filesize); 209 if (pfd != null) { 210 pfd.close(); 239 ParcelFileDescriptor pfd = null; 243 pfd = mDownloadManager.openDownloadedFile(dlRequest); 244 verifyFileSize(pfd, filesize); 246 if (pfd != null) { 247 pfd [all...] |