/frameworks/native/cmds/dumpstate/ |
H A D | DumpstateUtil.h | 39 * Defines what should happen with the main output stream (`stdout` or fd) of a command. 156 * |fd| file descriptor that receives the command's 'stdout'. 163 int RunCommandToFd(int fd, const std::string& title, const std::vector<std::string>& full_command, 169 * |fd| file descriptor where the file is dumped into. 174 int DumpFileToFd(int fd, const std::string& title, const std::string& path);
|
H A D | dumpstate.h | 124 void Dump(int fd, const std::string& prefix) const; 221 bool AddZipEntryFromFd(const std::string& entry_name, int fd); 356 /* prints the contents of the fd 357 * fd must have been opened with the flag O_NONBLOCK. 359 int dump_file_from_fd(const char *title, const char *path, int fd); 368 int (*dump_from_fd)(const char* title, const char* path, int fd)); 416 time_t get_mtime(int fd, time_t default_mtime);
|
/frameworks/native/services/surfaceflinger/ |
H A D | MessageQueue.h | 89 static int cb_eventReceiver(int fd, int events, void* data); 90 int eventReceiver(int fd, int events);
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkUtils.java | 45 public native static void attachDhcpFilter(FileDescriptor fd) throws SocketException; argument 49 * @param fd the socket's {@link FileDescriptor}. 52 public native static void attachRaFilter(FileDescriptor fd, int packetType) throws SocketException; argument 59 * @param fd the socket's {@link FileDescriptor}. 62 public native static void attachControlPacketFilter(FileDescriptor fd, int packetType) argument 67 * @param fd the socket's {@link FileDescriptor}. 70 public native static void setupRaSocket(FileDescriptor fd, int ifIndex) throws SocketException; argument 106 * Protect {@code fd} from VPN connections. After protecting, data sent through 110 public static boolean protectFromVpn(FileDescriptor fd) { argument 111 return protectFromVpn(fd [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/utils/ |
H A D | PriorityDumpTest.java | 190 public void dumpCritical(FileDescriptor fd, PrintWriter pw, String[] args) { argument 191 criticalFd = fd; 197 public void dumpHigh(FileDescriptor fd, PrintWriter pw, String[] args) { argument 198 highFd = fd; 204 public void dumpNormal(FileDescriptor fd, PrintWriter pw, String[] args) { argument 205 normalFd = fd;
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | PinnerService.java | 309 FileDescriptor fd = new FileDescriptor(); 311 fd = Os.open(fileToPin, 315 StructStat sb = Os.fstat(fd); 318 Os.close(fd); 332 Os.close(fd); 337 OsConstants.MAP_PRIVATE, fd, offset); 338 Os.close(fd); 345 if(fd.valid()) { 347 Os.close(fd); 350 Slog.e(TAG, "Failed to close fd, erro 372 dump(FileDescriptor fd, PrintWriter pw, String[] args) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | PhoneFactory.java | 387 public static void dump(FileDescriptor fd, PrintWriter printwriter, String[] args) { argument 392 sPhoneSwitcher.dump(fd, pw, args); 401 phone.dump(fd, pw, args); 410 sTelephonyNetworkFactories[i].dump(fd, pw, args); 416 ((IccCardProxy)phone.getIccCard()).dump(fd, pw, args); 428 sSubscriptionMonitor.dump(fd, pw, args); 438 sUiccController.dump(fd, pw, args); 449 SubscriptionController.getInstance().dump(fd, pw, args); 460 sSubInfoRecordUpdater.dump(fd, pw, args); 474 sLocalLogs.get(key).dump(fd, p [all...] |
/frameworks/base/core/java/android/os/ |
H A D | MessageQueue.java | 68 private native static void nativeSetFileDescriptorEvents(long ptr, int fd, int events); argument 176 * @param fd The file descriptor for which a listener will be registered. 187 public void addOnFileDescriptorEventListener(@NonNull FileDescriptor fd, argument 190 if (fd == null) { 191 throw new IllegalArgumentException("fd must not be null"); 198 updateOnFileDescriptorEventListenerLocked(fd, events, listener); 209 * @param fd The file descriptor whose listener will be unregistered. 214 public void removeOnFileDescriptorEventListener(@NonNull FileDescriptor fd) { argument 215 if (fd == null) { 216 throw new IllegalArgumentException("fd mus 224 updateOnFileDescriptorEventListenerLocked(FileDescriptor fd, int events, OnFileDescriptorEventListener listener) argument 261 dispatchEvents(int fd, int events) argument 889 onFileDescriptorEvents(@onNull FileDescriptor fd, @Events int events) argument [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A D | ExifInterfaceTest.java | 344 FileDescriptor fd = null; 346 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDONLY, 0600); 347 exifInterface = new ExifInterface(fd); 352 IoUtils.closeQuietly(fd); 382 FileDescriptor fd = null; 384 fd = Os.open(imageFile.getAbsolutePath(), OsConstants.O_RDWR, 0600); 385 ExifInterface exifInterface = new ExifInterface(fd); 387 Os.lseek(fd, 0, OsConstants.SEEK_SET); 388 exifInterface = new ExifInterface(fd); 395 Os.lseek(fd, [all...] |
/frameworks/base/media/java/android/media/ |
H A D | MediaRecorder.java | 782 public void setAuxiliaryOutputFile(FileDescriptor fd) argument 802 * @param fd an open file descriptor to be written into. 806 public void setOutputFile(FileDescriptor fd) throws IllegalStateException argument 810 mFd = fd; 843 * @param fd an open file descriptor to be written into. 847 public void setNextOutputFile(FileDescriptor fd) throws IOException argument 849 _setNextOutputFile(fd); 895 private native void _setOutputFile(FileDescriptor fd) throws IllegalStateException, IOException; argument 896 private native void _setNextOutputFile(FileDescriptor fd) throws IllegalStateException, IOException; argument
|
/frameworks/base/core/jni/ |
H A D | com_android_internal_content_NativeLibraryHelper.cpp | 127 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); local 128 if (fd < 0) { 138 while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) { 141 close(fd); 254 int fd = mkstemp(localTmpFileName); local 255 if (fd < 0) { 260 if (!zipFile->uncompressEntry(zipEntry, fd)) { 262 close(fd); 267 close(fd);
|
H A D | android_os_Parcel.cpp | 442 int fd = parcel->readFileDescriptor(); local 443 if (fd < 0) return NULL; 444 fd = dup(fd); 445 if (fd < 0) return NULL; 446 return jniCreateFileDescriptor(env, fd); 485 int fd = open(name8.c_str(), flags, realMode); local 486 if (fd < 0) { 490 jobject object = jniCreateFileDescriptor(env, fd); 492 close(fd); 509 int fd = dup(origfd); local 527 int fd = jniGetFDFromFileDescriptor(env, object); local 541 int fd = jniGetFDFromFileDescriptor(env, object); local [all...] |
/frameworks/native/libs/binder/ |
H A D | IMemory.cpp | 265 ALOGD("UNMAPPING binder=%p, heap=%p, size=%zu, fd=%d", 293 int fd = fcntl(heap->mHeapId.load(memory_order_relaxed), F_DUPFD_CLOEXEC, 0); local 294 ALOGE_IF(fd==-1, "cannot dup fd=%d", 296 mHeapId.store(fd, memory_order_release); 322 ALOGE_IF(err, "binder=%p transaction failed fd=%d, size=%zd, err=%d (%s)", 328 int fd = fcntl(parcel_fd, F_DUPFD_CLOEXEC, 0); local 329 ALOGE_IF(fd==-1, "cannot dup fd=%d, size=%zd, err=%d (%s)", 337 mBase = mmap(0, size, access, MAP_SHARED, fd, offse [all...] |
/frameworks/av/cmds/stagefright/ |
H A D | muxer.cpp | 78 int fd = open(outputFileName, O_CREAT | O_LARGEFILE | O_TRUNC | O_RDWR, S_IRUSR | S_IWUSR); local 80 if (fd < 0) { 82 return fd; 84 sp<MediaMuxer> muxer = new MediaMuxer(fd, container); 85 close(fd);
|
/frameworks/av/drm/common/ |
H A D | DrmEngineBase.cpp | 69 String8 DrmEngineBase::getOriginalMimeType(int uniqueId, const String8& path, int fd) { argument 70 return onGetOriginalMimeType(uniqueId, path, fd); 124 int fd, off64_t offset, off64_t length, const char* mime) { 127 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length); 130 return onOpenDecryptSession(uniqueId, decryptHandle, fd, offset, length, mime); 122 openDecryptSession( int uniqueId, DecryptHandle* decryptHandle, int fd, off64_t offset, off64_t length, const char* mime) argument
|
/frameworks/av/media/libstagefright/tests/ |
H A D | SurfaceMediaSource_test.cpp | 463 sp<MediaRecorder> SurfaceMediaSourceGLTest::setUpMediaRecorder(int fd, int videoSource, argument 469 mr->setOutputFile(fd); 736 int fd = open(fileName, O_RDWR | O_CREAT, 0744); 737 if (fd < 0) { 738 ALOGE("ERROR: Could not open the the file %s, fd = %d !!", fileName, fd); 740 CHECK(fd >= 0); 742 sp<MediaRecorder> mr = SurfaceMediaSourceGLTest::setUpMediaRecorder(fd, 765 close(fd); 870 int fd [all...] |
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
H A D | AudioOutputDescriptor.h | 45 status_t dump(int fd); 102 status_t dump(int fd); 145 status_t dump(int fd); 193 status_t dump(int fd) const; 207 status_t dump(int fd) const;
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | AudioPatch.cpp | 40 status_t AudioPatch::dump(int fd, int spaces, int index) const argument 85 write(fd, result.string(), result.size()); 167 status_t AudioPatchCollection::dump(int fd) const 172 write(fd, buffer, strlen(buffer)); 174 valueAt(i)->dump(fd, 2, i);
|
/frameworks/base/cmds/idmap/ |
H A D | inspect.cpp | 36 int fd; local 43 if ((fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY))) < 0) { 47 if ((buf_ = (const char*)mmap(NULL, len_, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) { 48 close(fd); 52 close(fd);
|
/frameworks/wilhelm/tests/examples/ |
H A D | slesTestBassBoostPath.cpp | 119 int fd = open(path, O_RDONLY); local 120 if (fd == -1) { 123 locatorFd.fd = (SLint32) fd; 243 close(fd);
|
H A D | slesTestPlayFdPath.cpp | 132 int fd = open(path, O_RDONLY); local 133 if (fd == -1) { 137 locatorFd.fd = (SLint32) fd; 218 close(fd);
|
H A D | slesTestVirtualizerPath.cpp | 120 int fd = open(path, O_RDONLY); local 121 if (fd == -1) { 124 locatorFd.fd = (SLint32) fd; 245 close(fd);
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | RenderProxy.cpp | 413 int fd, int dumpFlags) { 414 args->context->profiler().dumpData(args->fd); 416 args->context->dumpFrames(args->fd); 422 args->thread->jankTracker().dump(args->fd); 427 void RenderProxy::dumpProfileInfo(int fd, int dumpFlags) { argument 431 args->fd = fd; 460 CREATE_BRIDGE2(dumpGraphicsMemory, int fd, RenderThread* thread) { argument 461 args->thread->jankTracker().dump(args->fd); 463 FILE *file = fdopen(args->fd, " 412 CREATE_BRIDGE4(dumpProfileInfo, CanvasContext* context, RenderThread* thread, int fd, int dumpFlags) argument 476 dumpGraphicsMemory(int fd) argument 484 CREATE_BRIDGE2(setProcessStatsBuffer, RenderThread* thread, int fd) argument 490 setProcessStatsBuffer(int fd) argument [all...] |
/frameworks/av/drm/libdrmframework/include/ |
H A D | DrmManagerService.h | 92 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd); 119 int uniqueId, int fd, off64_t offset, off64_t length, const char *mime); 140 virtual status_t dump(int fd, const Vector<String16>& args);
|
/frameworks/av/media/libmedia/ |
H A D | IMediaRecorder.cpp | 178 status_t setOutputFile(int fd) { argument 179 ALOGV("setOutputFile(%d)", fd); 182 data.writeFileDescriptor(fd); 187 status_t setNextOutputFile(int fd) { argument 188 ALOGV("setNextOutputFile(%d)", fd); 191 data.writeFileDescriptor(fd); 458 int fd = dup(data.readFileDescriptor()); local 459 reply->writeInt32(setOutputFile(fd)); 460 ::close(fd); 466 int fd local [all...] |