/frameworks/av/libvideoeditor/osal/inc/ |
H A D | LVOSA_FileReader_optim.h | 36 M4OSA_Void* (*pFctPtr_Open)( M4OSA_Void* fd, 39 M4OSA_FilePosition (*pFctPtr_Read)( M4OSA_Void* fd, 43 M4OSA_FilePosition (*pFctPtr_Seek)( M4OSA_Void* fd, 47 M4OSA_FilePosition (*pFctPtr_Tell)( M4OSA_Void* fd, 49 M4OSA_Int32 (*pFctPtr_Close)( M4OSA_Void* fd,
|
/frameworks/base/core/java/android/app/backup/ |
H A D | BackupDataInput.java | 73 public BackupDataInput(FileDescriptor fd) { argument 74 if (fd == null) throw new NullPointerException(); 75 mBackupReader = ctor(fd); 77 throw new RuntimeException("Native initialization failed with fd=" + fd); 188 private native static int ctor(FileDescriptor fd); argument
|
H A D | BackupDataOutput.java | 68 public BackupDataOutput(FileDescriptor fd) { argument 69 if (fd == null) throw new NullPointerException(); 70 mBackupWriter = ctor(fd); 72 throw new RuntimeException("Native initialization failed with fd=" + fd); 124 private native static int ctor(FileDescriptor fd); argument
|
/frameworks/base/core/jni/ |
H A D | android_hardware_SerialPort.cpp | 135 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 137 fd = dup(fd); 138 if (fd < 0) { 142 env->SetIntField(thiz, field_context, fd); 145 if (tcgetattr(fd, &tio)) 156 tcsetattr(fd, TCSANOW, &tio); 157 tcflush(fd, TCIFLUSH); 163 int fd = env->GetIntField(thiz, field_context); local 164 close(fd); 171 int fd = env->GetIntField(thiz, field_context); local 193 int fd = env->GetIntField(thiz, field_context); local 210 int fd = env->GetIntField(thiz, field_context); local 227 int fd = env->GetIntField(thiz, field_context); local 242 int fd = env->GetIntField(thiz, field_context); local [all...] |
H A D | android_backup_BackupHelperDispatcher.cpp | 51 int fd = jniGetFDFromFileDescriptor(env, fdObj); local 53 amt = read(fd, &flattenedHeader.headerSize, sizeof(flattenedHeader.headerSize)); 63 lseek(fd, remainingHeader, SEEK_CUR); 69 amt = read(fd, &flattenedHeader.version, 81 lseek(fd, remainingHeader, SEEK_CUR); 108 amt = read(fd, buf, flattenedHeader.nameLength); 116 lseek(fd, remainingHeader, SEEK_CUR); 128 int fd = jniGetFDFromFileDescriptor(env, fdObj); local 130 lseek(fd, bytesToSkip, SEEK_CUR); 151 int fd local 177 int fd = jniGetFDFromFileDescriptor(env, fdObj); local [all...] |
H A D | com_android_internal_os_ZygoteInit.cpp | 98 int fd; local 101 fd = jniGetFDFromFileDescriptor(env, in); 108 err = dup2(fd, STDIN_FILENO); 111 fd = jniGetFDFromFileDescriptor(env, out); 118 err = dup2(fd, STDOUT_FILENO); 121 fd = jniGetFDFromFileDescriptor(env, errfd); 128 err = dup2(fd, STDERR_FILENO); 135 int fd; local 139 fd = jniGetFDFromFileDescriptor(env, descriptor); 145 fdFlags = fcntl(fd, F_GETF 241 int fd = jniGetFDFromFileDescriptor(env, fdObj); local 271 int fd = jniGetFDFromFileDescriptor(env, fdObj); local 282 com_android_internal_os_ZygoteInit_createFileDescriptor( JNIEnv *env, jobject clazz, jint fd) argument [all...] |
H A D | android_os_FileUtils.cpp | 68 int fd = open(pathStr, O_RDONLY); local 69 if (fd >= 0) { 70 result = ioctl(fd, VFAT_IOCTL_GET_VOLUME_ID); 71 close(fd);
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 63 int fd; local 73 if ((fd = open(cmdpath, O_RDONLY)) < 0) { 76 read(fd, cmdline, sizeof(cmdline)); 77 close(fd); 88 int fd; local 93 if ((fd = open(path, O_RDONLY)) < 0) { 98 if (read(fd, buffer, sizeof(buffer)) < 0) { 106 close(fd); 147 int fd = open(path, O_RDONLY); local 148 if (fd < 289 int fd = accept(s, &addr, &alen); local 318 int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); local 408 int fd = open(traces_path, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW, 0666); /* -rw-rw-rw- */ local 458 int fd = open(path, O_RDONLY); local [all...] |
/frameworks/av/media/libmediaplayerservice/ |
H A D | ActivityManager.cpp | 33 int fd = -1; local 45 // Success is indicated here by a nonzero int followed by the fd; 48 fd = dup(reply.readFileDescriptor()); 58 return fd;
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetFileDescriptor.java | 47 * @param fd The underlying file descriptor. 53 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument 55 if (fd == null) { 56 throw new IllegalArgumentException("fd must not be null"); 62 mFd = fd; 174 public AutoCloseInputStream(AssetFileDescriptor fd) throws IOException { argument 175 super(fd.getParcelFileDescriptor()); 176 super.skip(fd.getStartOffset()); 177 mRemaining = (int)fd.getLength(); 261 public AutoCloseOutputStream(AssetFileDescriptor fd) throw argument [all...] |
/frameworks/native/include/android/ |
H A D | looper.h | 159 typedef int (*ALooper_callbackFunc)(int fd, int events, void* data); 182 * events and data associated with the fd, otherwise they will be set to NULL. 208 * "fd" is the file descriptor to be added. 230 int ALooper_addFd(ALooper* looper, int fd, int ident, int events, 250 int ALooper_removeFd(ALooper* looper, int fd);
|
/frameworks/native/libs/cpustats/ |
H A D | ThreadCpuUsage.cpp | 175 int fd = open("/sys/devices/system/cpu/kernel_max", O_RDONLY); local 176 if (fd >= 0) { 179 ssize_t actual = read(fd, kernelMax, sizeof(kernelMax)); 195 (void) close(fd); 211 // double-checked locking idiom is not broken for atomic values such as fd 212 int fd = sScalingFds[cpuNum]; local 213 if (fd < 0) { 216 fd = sScalingFds[cpuNum]; 217 if (fd < 0) { 225 fd [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | DebugService.java | 42 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 68 phoneBase.dump(fd, pw, args); 75 phoneBase.mDataConnectionTracker.dump(fd, pw, args); 82 phoneBase.getServiceStateTracker().dump(fd, pw, args); 89 phoneBase.getCallTracker().dump(fd, pw, args); 96 ((RIL)phoneBase.mCM).dump(fd, pw, args);
|
/frameworks/av/media/mtp/ |
H A D | MtpRequestPacket.cpp | 38 int MtpRequestPacket::read(int fd) { argument 39 int ret = ::read(fd, mBuffer, mBufferSize);
|
H A D | MtpResponsePacket.cpp | 38 int MtpResponsePacket::write(int fd) { argument 41 int ret = ::write(fd, mBuffer, mPacketSize);
|
H A D | MtpEventPacket.h | 33 int write(int fd);
|
H A D | MtpRequestPacket.h | 35 int read(int fd);
|
H A D | MtpResponsePacket.h | 33 int write(int fd);
|
/frameworks/native/libs/utils/ |
H A D | SystemClock.cpp | 55 int fd; 70 fd = open("/dev/alarm", O_RDWR); 71 if(fd < 0) { 77 res = ioctl(fd, ANDROID_ALARM_SET_RTC, &ts); 82 close(fd); 180 int fd = open("/dev/alarm", O_RDONLY); local 181 if (android_atomic_cmpxchg(-1, fd, &s_fd)) { 182 close(fd);
|
/frameworks/base/cmds/screencap/ |
H A D | screencap.cpp | 113 int fd = -1; local 115 fd = dup(STDOUT_FILENO); 118 fd = open(fn, O_WRONLY | O_CREAT | O_TRUNC, 0664); 119 if (fd == -1) { 129 if (fd == -1) { 181 write(fd, streamData->data(), streamData->size()); 184 write(fd, &w, 4); 185 write(fd, &h, 4); 186 write(fd, &f, 4); 187 write(fd, bas [all...] |
/frameworks/native/opengl/libs/EGL/ |
H A D | egl_cache.cpp | 227 int fd = open(fname, O_CREAT | O_EXCL | O_RDWR, 0); local 228 if (fd == -1) { 238 fd = open(fname, O_CREAT | O_EXCL | O_RDWR, 0); 240 if (fd == -1) { 253 close(fd); 264 close(fd); 274 if (write(fd, buf, fileSize) == -1) { 278 close(fd); 284 fchmod(fd, S_IRUSR); 285 close(fd); 293 int fd = open(mFilename.string(), O_RDONLY, 0); local [all...] |
/frameworks/base/cmds/backup/ |
H A D | backup.cpp | 58 int fd; local 60 fd = open(filename, O_RDONLY); 61 if (fd == -1) { 66 BackupDataReader reader(fd);
|
/frameworks/native/include/utils/ |
H A D | ZipUtils.h | 36 static bool inflateToBuffer(int fd, void* buf, long uncompressedLen,
|
/frameworks/base/native/android/ |
H A D | looper.cpp | 70 int ALooper_addFd(ALooper* looper, int fd, int ident, int events, argument 72 return static_cast<Looper*>(looper)->addFd(fd, ident, events, callback, data); 75 int ALooper_removeFd(ALooper* looper, int fd) { argument 76 return static_cast<Looper*>(looper)->removeFd(fd);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
H A D | SystemUI.java | 33 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|