/frameworks/native/cmds/installd/tests/ |
H A D | installd_service_test.cpp | 72 int fd = ::open(get_full_path(path).c_str(), O_RDWR | O_CREAT, mode); local 73 ::fchown(fd, owner, group); 74 ::fchmod(fd, mode); 75 ::close(fd);
|
/frameworks/native/services/displayservice/include/displayservice/ |
H A D | DisplayEventReceiver.h | 54 virtual int handleEvent(int fd, int events, void* /* data */) override;
|
/frameworks/native/services/sensorservice/hidl/ |
H A D | EventQueue.cpp | 35 int handleEvent(__unused int fd, __unused int events, __unused void* data) { argument
|
/frameworks/opt/net/lowpan/lowpan_hdlc_adapter/ |
H A D | lowpan_hdlc_adapter.cpp | 65 LowpanDeviceCallback(int fd): mFd(fd), mOpenError(-1) {} argument 170 ReadThread(sp<ILowpanDevice> service, int fd, sp<LowpanDeviceCallback> callback): argument 174 mFd(fd),
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | CarrierActionAgent.java | 306 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 310 mMeteredApnEnabledLog.dump(fd, ipw, args); 315 mRadioEnabledLog.dump(fd, ipw, args); 320 mReportDefaultNetworkStatusLog.dump(fd, ipw, args);
|
/frameworks/support/loader/src/main/java/androidx/loader/app/ |
H A D | LoaderManager.java | 220 * @param fd The raw file descriptor that the dump is being sent to. 227 public abstract void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args); argument
|
/frameworks/base/media/java/android/media/ |
H A D | MediaRecorder.java | 830 public void setAuxiliaryOutputFile(FileDescriptor fd) argument 850 * @param fd an open file descriptor to be written into. 854 public void setOutputFile(FileDescriptor fd) throws IllegalStateException argument 858 mFd = fd; 891 * @param fd an open file descriptor to be written into. 895 public void setNextOutputFile(FileDescriptor fd) throws IOException argument 897 _setNextOutputFile(fd); 943 private native void _setOutputFile(FileDescriptor fd) throws IllegalStateException, IOException; argument 944 private native void _setNextOutputFile(FileDescriptor fd) throws IllegalStateException, IOException; argument
|
H A D | ThumbnailUtils.java | 109 FileDescriptor fd = stream.getFD(); 113 BitmapFactory.decodeFileDescriptor(fd, null, options); 124 bitmap = BitmapFactory.decodeFileDescriptor(fd, null, options); 316 FileDescriptor fd = pfd.getFileDescriptor(); 319 BitmapFactory.decodeFileDescriptor(fd, null, options); 330 b = BitmapFactory.decodeFileDescriptor(fd, null, options);
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/src/ |
H A D | FwdLockEngine.cpp | 317 int fd) { 320 int fileDesc = dup(fd); 474 int fd, 480 int fd, 489 if ((-1 < fd) && 492 fileDesc = dup(fd); 517 LOG_VERBOSE("FwdLockEngine::onOpenDecryptSession Integrity Check failed for the fd"); 548 int fd = open(filePath, O_RDONLY); local 550 if (-1 < fd) { 552 result = onOpenDecryptSession(uniqueId, decryptHandle, fd, 315 onGetOriginalMimeType(int , const String8& , int fd) argument 472 onOpenDecryptSession(int , DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t ) argument [all...] |
/frameworks/av/services/camera/libcameraservice/api1/client2/ |
H A D | ZslProcessor.cpp | 677 void ZslProcessor::dump(int fd, const Vector<String16>& /*args*/) const { argument 681 write(fd, result.string(), result.size()); 682 mLatestCapturedRequest.dump(fd, 2, 6); 685 write(fd, result.string(), result.size()); 687 dumpZslQueue(fd); 705 void ZslProcessor::dumpZslQueue(int fd) const { 709 if (fd != -1) { 711 write(fd, header.string(), header.size()); 729 if (fd != -1) { 731 write(fd, resul [all...] |
/frameworks/base/services/core/java/com/android/server/ |
H A D | PinnerService.java | 470 FileDescriptor fd = new FileDescriptor(); 478 fd = Os.open(fileToPin, openFlags, 0); 479 mapSize = (int) Math.min(Os.fstat(fd).st_size, Integer.MAX_VALUE); 483 fd, /*offset=*/0); 533 safeClose(fd); 555 private static void safeClose(@Nullable FileDescriptor fd) { argument 556 if (fd != null && fd.valid()) { 558 Os.close(fd); 594 protected void dump(FileDescriptor fd, PrintWrite argument [all...] |
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
H A D | ArtManagerService.java | 276 ParcelFileDescriptor fd = null; 278 fd = ParcelFileDescriptor.open(snapshotProfile, ParcelFileDescriptor.MODE_READ_ONLY); 279 if (fd == null || !fd.getFileDescriptor().valid()) { 282 + packageName + ":" + snapshotProfile + ". isNull=" + (fd == null)); 285 postSuccess(packageName, fd, callback); 360 private void postSuccess(String packageName, ParcelFileDescriptor fd, argument 370 if (fd.getFileDescriptor().valid()) { 371 callback.onSuccess(fd); 381 IoUtils.closeQuietly(fd); [all...] |
/frameworks/native/libs/vr/libpdx_uds/ |
H A D | ipc_helper.cpp | 323 [](int fd) { return LocalHandle{fd}; }); 418 // Create inotify fd. 419 LocalHandle fd{inotify_init()}; 420 if (!fd) 423 // Set the inotify fd to non-blocking. 424 int ret = fcntl(fd.Get(), F_GETFL); 425 fcntl(fd.Get(), F_SETFL, ret | O_NONBLOCK); 428 pollfd pfd = {fd.Get(), POLLIN, 0}; 458 fd [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | AudioProfile.h | 122 void dump(int fd, int spaces) const; 284 void dump(int fd, int spaces) const argument 290 write(fd, buffer, strlen(buffer)); 293 write(fd, buffer, strlen(buffer)); 294 itemAt(i)->dump(fd, spaces + 8);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioPolicyMix.cpp | 55 status_t AudioPolicyMix::dump(int fd, int spaces, int index) const argument 111 write(fd, result.string(), result.size()); 352 status_t AudioPolicyMixCollection::dump(int fd) const 355 write(fd, log.c_str(), log.size()); 357 valueAt(i)->dump(fd, 2, i);
|
H A D | AudioSession.cpp | 138 status_t AudioSession::dump(int fd, int spaces, int index) const argument 167 write(fd, result.string(), result.size()); 281 status_t AudioSessionCollection::dump(int fd, int spaces) const argument 286 write(fd, buffer, strlen(buffer)); 288 valueAt(i)->dump(fd, spaces + 2, i);
|
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestEqFdPath.cpp | 124 int fd = open(path, O_RDONLY); local 125 if (fd == -1) { 128 locatorFd.fd = (SLint32) fd; 272 close(fd);
|
H A D | slesTestEqOutputPath.cpp | 131 int fd = open(path, O_RDONLY); local 132 if (fd == -1) { 135 locatorFd.fd = (SLint32) fd; 276 close(fd);
|
H A D | slesTestSendToPresetReverb.cpp | 177 int fd = open(path, O_RDONLY); local 178 if (fd == -1) { 182 locatorFd.fd = (SLint32) fd; 187 fprintf(stderr, "option --fd is not supported\n"); 321 close(locatorFd.fd); 351 } else if (!strcmp(arg, "--fd")) { 361 fprintf(stdout, "Usage: \t%s [--always-on] [--fd] [--loop] path preset directLevel "
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraService.cpp | 2681 status_t CameraService::dump(int fd, const Vector<String16>& args) { argument 2685 dprintf(fd, "Permission Denial: can't dump CameraService from pid=%d, uid=%d\n", 2693 dprintf(fd, "!! CameraService may be deadlocked !!\n"); 2697 dprintf(fd, "!! No camera HAL available !!\n"); 2700 dumpEventLog(fd); 2705 dprintf(fd, "\n== Service global info: ==\n\n"); 2706 dprintf(fd, "Number of camera devices: %d\n", mNumberOfCameras); 2707 dprintf(fd, "Number of normal camera devices: %zu\n", mNormalDeviceIds.size()); 2709 dprintf(fd, " Device %zu maps to \"%s\"\n", i, mNormalDeviceIds[i].c_str()); 2712 dprintf(fd, "Activ 2819 dumpEventLog(int fd) argument [all...] |
/frameworks/av/services/audioflinger/ |
H A D | Threads.cpp | 807 void AudioFlinger::ThreadBase::dumpBase(int fd, const Vector<String16>& args __unused) argument 813 dprintf(fd, "\n%s thread %p, name %s, tid %d, type %d (%s):\n", isOutput() ? "Output" : "Input", 818 dprintf(fd, " Thread may be deadlocked\n"); 821 dprintf(fd, " I/O handle: %d\n", mId); 822 dprintf(fd, " Standby: %s\n", mStandby ? "yes" : "no"); 823 dprintf(fd, " Sample rate: %u Hz\n", mSampleRate); 824 dprintf(fd, " HAL frame count: %zu\n", mFrameCount); 825 dprintf(fd, " HAL format: 0x%x (%s)\n", mHALFormat, formatToString(mHALFormat).c_str()); 826 dprintf(fd, " HAL buffer size: %zu bytes\n", mBufferSize); 827 dprintf(fd, " Channe 853 dumpEffectChains(int fd, const Vector<String16>& args) argument 1735 dump(int fd, const Vector<String16>& args) argument 1744 dumpTracks(int fd, const Vector<String16>& args __unused) argument 1809 dumpInternals(int fd, const Vector<String16>& args) argument 5022 dumpInternals(int fd, const Vector<String16>& args) argument 6079 dumpInternals(int fd, const Vector<String16>& args __unused) argument 7281 dump(int fd, const Vector<String16>& args) argument 7290 dumpInternals(int fd, const Vector<String16>& args) argument 7319 dumpTracks(int fd, const Vector<String16>& args __unused) argument 8608 dump(int fd, const Vector<String16>& args) argument 8617 dumpInternals(int fd, const Vector<String16>& args) argument 8629 dumpTracks(int fd, const Vector<String16>& args __unused) argument 8843 dumpInternals(int fd, const Vector<String16>& args) argument [all...] |
/frameworks/av/services/camera/libcameraservice/common/ |
H A D | CameraProviderManager.cpp | 353 status_t CameraProviderManager::dump(int fd, const Vector<String16>& args) { argument 357 provider->dump(fd, args); 658 status_t CameraProviderManager::ProviderInfo::dump(int fd, const Vector<String16>&) const { argument 659 dprintf(fd, "== Camera Provider HAL %s (v2.4, %s) static info: %zu devices: ==\n", 664 dprintf(fd, "== Camera HAL device %s (v%d.%d) static information: ==\n", device->mName.c_str(), 666 dprintf(fd, " Resource cost: %d\n", device->mResourceCost.resourceCost); 668 dprintf(fd, " Conflicting devices: None\n"); 670 dprintf(fd, " Conflicting devices:\n"); 672 dprintf(fd, " %s\n", 676 dprintf(fd, " API [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProviderMap.java | 351 protected boolean dumpProvider(FileDescriptor fd, PrintWriter pw, String name, String[] args, argument 365 dumpProvider("", fd, pw, providers.get(i), args, dumpAll); 374 private void dumpProvider(String prefix, FileDescriptor fd, PrintWriter pw, argument 379 dumpToTransferPipe(null , fd, pw, r, args); 401 dumpToTransferPipe(" ", fd, pw, r, args); 409 protected boolean dumpProviderProto(FileDescriptor fd, PrintWriter pw, String name, argument 425 dumpToTransferPipe(null, fd, pw, r, newArgs); 436 private void dumpToTransferPipe(String prefix, FileDescriptor fd, PrintWriter pw, argument 446 tp.go(fd, 2000);
|
/frameworks/native/libs/gui/bufferqueue/1.0/ |
H A D | H2BGraphicBufferProducer.cpp | 43 * \brief Take an fd and create a native handle containing only the given fd. 47 * \param[in] fd The source file descriptor (of type `int`). 48 * \return The create `native_handle_t*` that contains the given \p fd. If the 49 * supplied \p fd is negative, the created native handle will contain no file 57 inline native_handle_t* native_handle_create_from_fd(int fd) { argument 58 if (fd < 0) { 65 nh->data[0] = fd; 191 * \brief Return the size of the non-fd buffer required to flatten a fence. 197 * bytes required to store the number of file descriptors contained in the fd 283 int fd = native_handle_read_fd(fence); local 349 int fd = native_handle_read_fd(t); local [all...] |
/frameworks/base/services/backup/java/com/android/server/backup/ |
H A D | Trampoline.java | 300 public void adbBackup(ParcelFileDescriptor fd, boolean includeApks, boolean includeObbs, argument 306 svc.adbBackup(fd, includeApks, includeObbs, includeShared, doWidgets, 320 public void adbRestore(ParcelFileDescriptor fd) throws RemoteException { argument 323 svc.adbRestore(fd); 481 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 486 svc.dump(fd, pw, args);
|