/frameworks/av/services/camera/libcameraservice/utils/ |
H A D | CameraTraces.cpp | 67 status_t CameraTraces::dump(int fd, const Vector<String16> &args __attribute__((unused))) { argument 68 ALOGV("%s: fd = %d", __FUNCTION__, fd); 72 if (fd < 0) { 73 ALOGW("%s: Negative FD (%d)", __FUNCTION__, fd); 77 dprintf(fd, "== Camera error traces (%zu): ==\n", pcsList.size()); 80 dprintf(fd, " No camera traces collected.\n"); 87 pcs.dump(fd, DUMP_INDENT);
|
/frameworks/base/core/jni/ |
H A D | android_os_SharedMemory.cpp | 55 int fd = ashmem_create_region(name, size); local 58 int err = fd < 0 ? errno : 0; 64 if (fd < 0) { 69 return jniCreateFileDescriptor(env, fd); 73 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 74 if (!ashmem_valid(fd)) { 77 size_t size = ashmem_get_size_region(fd); 82 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 84 if (ashmem_set_prot_region(fd, prot)) {
|
H A D | android_util_FileObserver.cpp | 49 static void android_os_fileobserver_observe(JNIEnv* env, jobject object, jint fd) argument 59 int num_bytes = read(fd, event_buf, sizeof(event_buf)); 101 static jint android_os_fileobserver_startWatching(JNIEnv* env, jobject object, jint fd, jstring pathString, jint mask) argument 107 if (fd >= 0) 111 res = inotify_add_watch(fd, path, mask); 121 static void android_os_fileobserver_stopWatching(JNIEnv* env, jobject object, jint fd, jint wfd) argument 125 inotify_rm_watch((int)fd, (uint32_t)wfd);
|
/frameworks/native/services/utils/ |
H A D | PriorityDumper.cpp | 40 status_t PriorityDumper::dumpAll(int fd, const Vector<String16>& args, bool asProto) { argument 42 status = dumpCritical(fd, args, asProto); 44 status = dumpHigh(fd, args, asProto); 46 status = dumpNormal(fd, args, asProto); 51 status_t PriorityDumper::priorityDump(int fd, const Vector<String16>& args) { argument 72 status = dumpCritical(fd, strippedArgs, asProto); 75 status = dumpHigh(fd, strippedArgs, asProto); 78 status = dumpNormal(fd, strippedArgs, asProto); 81 status = dumpAll(fd, strippedArgs, asProto);
|
/frameworks/av/services/audioflinger/ |
H A D | FastCaptureDumpState.cpp | 36 void FastCaptureDumpState::dump(int fd) const 39 dprintf(fd, " FastCapture not initialized\n"); 45 dprintf(fd, " FastCapture command=%s readSequence=%u framesRead=%u\n"
|
/frameworks/base/services/net/java/android/net/netlink/ |
H A D | NetlinkSocket.java | 62 FileDescriptor fd; 65 fd = forProto(nlProto); 66 connectToKernel(fd); 67 sendMessage(fd, msg, 0, msg.length, IO_TIMEOUT); 68 final ByteBuffer bytes = recvMessage(fd, DEFAULT_RECV_BUFSIZE, IO_TIMEOUT); 101 IoUtils.closeQuietly(fd); 105 final FileDescriptor fd = Os.socket(AF_NETLINK, SOCK_DGRAM, nlProto); 106 Os.setsockoptInt(fd, SOL_SOCKET, SO_RCVBUF, SOCKET_RECV_BUFSIZE); 107 return fd; 110 public static void connectToKernel(FileDescriptor fd) throw argument 126 recvMessage(FileDescriptor fd, int bufsize, long timeoutMs) argument 149 sendMessage( FileDescriptor fd, byte[] bytes, int offset, int count, long timeoutMs) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | BitmapFactoryTest.java | 38 FileDescriptor fd = pfd.getFileDescriptor(); 39 assertNotNull("Got null FileDescriptor", fd); 40 assertTrue("Got invalid FileDescriptor", fd.valid()); 41 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fd);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | Dumpable.java | 21 void dump(FileDescriptor fd, PrintWriter pw, String[] args); argument
|
/frameworks/base/services/backup/java/com/android/server/backup/params/ |
H A D | AdbRestoreParams.java | 24 fd = input;
|
/frameworks/minikin/tests/perftests/ |
H A D | main.cpp | 27 int fd = open(fn, O_RDONLY); local 28 LOG_ALWAYS_FATAL_IF(fd == -1); 30 LOG_ALWAYS_FATAL_IF(fstat(fd, &st) != 0); 31 void* data = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, fd, 0);
|
/frameworks/av/drm/common/ |
H A D | ReadWriteUtils.cpp | 41 int fd = fileno(file); local 44 if (fstat(fd, &sb) == 0 && sb.st_size > 0) { 47 if (length == read(fd, (void*) bytes, length)) { 63 int fd = fileno(file); local 66 if (fstat(fd, &sb) == 0 && sb.st_size > 0) { 69 if (length != read(fd, (void*) *buffer, length)) { 83 int fd = fileno(file); local 86 if (FAILURE != ftruncate(fd, size)) { 87 if (size != write(fd, data.string(), size)) { 100 int fd local [all...] |
/frameworks/av/include/media/stagefright/foundation/ |
H A D | FileDescriptor.h | 29 * status_t function(int fd) { 30 * FileDescriptor::Autoclose managedFd(fd); 50 Autoclose(int fd) argument 51 : mFd(fd) {
|
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
H A D | FileDescriptor.h | 29 * status_t function(int fd) { 30 * FileDescriptor::Autoclose managedFd(fd); 50 Autoclose(int fd) argument 51 : mFd(fd) {
|
/frameworks/av/media/libstagefright/include/media/stagefright/foundation/ |
H A D | FileDescriptor.h | 29 * status_t function(int fd) { 30 * FileDescriptor::Autoclose managedFd(fd); 50 Autoclose(int fd) argument 51 : mFd(fd) {
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
H A D | BitmapSerializeUtils.java | 57 private static native void nativeReadBitmapPixels(Bitmap bitmap, int fd); argument 59 private static native void nativeWriteBitmapPixels(Bitmap bitmap, int fd); argument
|
/frameworks/native/cmds/lshal/ |
H A D | PipeRelay.h | 40 int fd() const; 49 static void CloseFd(int *fd);
|
/frameworks/av/services/minijail/ |
H A D | av_services_minijail_unittest.cpp | 43 android::base::unique_fd fd(android::WritePolicyToPipe(base_policy_, std::string())); 44 EXPECT_LE(0, fd.get()); 45 bool success = android::base::ReadFdToString(fd.get(), &final_string); 53 android::base::unique_fd fd(android::WritePolicyToPipe(base_policy_, additional_policy_)); 54 EXPECT_LE(0, fd.get()); 55 bool success = android::base::ReadFdToString(fd.get(), &final_string);
|
/frameworks/base/core/java/android/util/ |
H A D | LocalLog.java | 53 public synchronized void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 60 public synchronized void reverseDump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 72 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 73 mLog.dump(fd, pw, args); 75 public void reverseDump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 76 mLog.reverseDump(fd, pw, args);
|
/frameworks/base/tools/obbtool/ |
H A D | pbkdf2gen.cpp | 44 int fd = open("/dev/urandom", O_RDONLY); local 45 if (fd < 0) { 47 close(fd); 53 if (read(fd, &salt, SALT_LEN) != SALT_LEN) { 55 close(fd); 58 close(fd);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
H A D | VolumeCurve.cpp | 71 void VolumeCurve::dump(int fd) const 84 write(fd, result.string(), result.size()); 87 void VolumeCurvesForStream::dump(int fd, int spaces = 0, bool curvePoints) const argument 102 write(fd, result.string(), result.size()); 111 write(fd, buffer, strlen(buffer)); 112 valueAt(i)->dump(fd); 115 write(fd, result.string(), result.size()); 118 status_t VolumeCurvesCollection::dump(int fd) const 124 write(fd, buffer, strlen(buffer)); 127 write(fd, buffe [all...] |
/frameworks/opt/net/wifi/libwifi_hal/ |
H A D | wifi_hal_common.cpp | 56 int fd; local 58 fd = TEMP_FAILURE_RETRY(open(filename, O_RDONLY | O_CLOEXEC | O_NOFOLLOW)); 59 if (fd < 0) { 64 ret = syscall(__NR_finit_module, fd, args, 0); 66 close(fd); 94 int fd; local 98 fd = TEMP_FAILURE_RETRY(open(WIFI_DRIVER_STATE_CTRL_PARAM, O_WRONLY)); 99 if (fd < 0) { 104 if (TEMP_FAILURE_RETRY(write(fd, state, len)) != len) { 108 close(fd); 214 int fd; local [all...] |
/frameworks/ml/nn/runtime/ |
H A D | Memory.cpp | 53 int fd = mHandle->data[0]; local 54 if (fd != -1) { 55 close(fd); 61 int MemoryFd::set(size_t size, int prot, int fd, size_t offset) { argument 62 if (fd < 0) { 63 LOG(ERROR) << "ANeuralNetworksMemory_createFromFd invalid fd " << fd; 66 if (size == 0 || fd < 0) { 67 LOG(ERROR) << "Invalid size or fd"; 70 int dupfd = dup(fd); 114 int fd = mHandle->data[0]; local [all...] |
/frameworks/base/core/java/com/android/server/ |
H A D | NetworkManagementSocketTagger.java | 75 public void tag(FileDescriptor fd) throws SocketException { argument 78 Log.d(TAG, "tagSocket(" + fd.getInt$() + ") with statsTag=0x" 85 tagSocketFd(fd, options.statsTag, options.statsUid); 88 private void tagSocketFd(FileDescriptor fd, int tag, int uid) { argument 92 final int errno = native_tagSocketFd(fd, tag, uid); 94 Log.i(TAG, "tagSocketFd(" + fd.getInt$() + ", " 102 public void untag(FileDescriptor fd) throws SocketException { argument 104 Log.i(TAG, "untagSocket(" + fd.getInt$() + ")"); 106 unTagSocketFd(fd); 109 private void unTagSocketFd(FileDescriptor fd) { argument 158 native_tagSocketFd(FileDescriptor fd, int tag, int uid) argument 159 native_untagSocketFd(FileDescriptor fd) argument [all...] |
/frameworks/native/libs/vr/libpdx/private/pdx/ |
H A D | file_handle.h | 29 explicit FileHandle(int fd) : fd_(fd) {} argument 51 // Returns a FileHandle as a duplicate handle of |fd|. Borrowed handles and 53 static FileHandle AsDuplicate(const int fd) { argument 55 return FileHandle(dup(fd)); 57 return FileHandle(fd); 73 // Resets the underlying file handle to |fd|. 74 void Reset(int fd) { argument 76 fd_ = fd; 86 // Return the internal fd, passin [all...] |
/frameworks/av/media/mtp/tests/ |
H A D | MtpFfsHandle_test.cpp | 66 int fd[2]; local 69 EXPECT_EQ(pipe(fd), 0); 70 control.reset(fd[0]); 71 handle->mControl.reset(fd[1]); 73 EXPECT_EQ(pipe(fd), 0); 74 EXPECT_EQ(fcntl(fd[0], F_SETPIPE_SZ, 1048576), 1048576); 75 bulk_in.reset(fd[0]); 76 handle->mBulkIn.reset(fd[1]); 78 EXPECT_EQ(pipe(fd), 0); 79 EXPECT_EQ(fcntl(fd[ [all...] |