Searched refs:fd (Results 26 - 50 of 486) sorted by relevance

1234567891011>>

/frameworks/av/libvideoeditor/osal/inc/
H A DLVOSA_FileReader_optim.h36 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 DBackupDataInput.java73 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 DBackupDataOutput.java68 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 Dandroid_hardware_SerialPort.cpp135 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 Dandroid_backup_BackupHelperDispatcher.cpp51 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 Dcom_android_internal_os_ZygoteInit.cpp98 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 Dandroid_os_FileUtils.cpp68 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 Dutils.c63 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 DActivityManager.cpp33 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 DAssetFileDescriptor.java47 * @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 Dlooper.h159 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 DThreadCpuUsage.cpp175 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 DDebugService.java42 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 DMtpRequestPacket.cpp38 int MtpRequestPacket::read(int fd) { argument
39 int ret = ::read(fd, mBuffer, mBufferSize);
H A DMtpResponsePacket.cpp38 int MtpResponsePacket::write(int fd) { argument
41 int ret = ::write(fd, mBuffer, mPacketSize);
H A DMtpEventPacket.h33 int write(int fd);
H A DMtpRequestPacket.h35 int read(int fd);
H A DMtpResponsePacket.h33 int write(int fd);
/frameworks/native/libs/utils/
H A DSystemClock.cpp55 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 Dscreencap.cpp113 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 Degl_cache.cpp227 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 Dbackup.cpp58 int fd; local
60 fd = open(filename, O_RDONLY);
61 if (fd == -1) {
66 BackupDataReader reader(fd);
/frameworks/native/include/utils/
H A DZipUtils.h36 static bool inflateToBuffer(int fd, void* buf, long uncompressedLen,
/frameworks/base/native/android/
H A Dlooper.cpp70 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 DSystemUI.java33 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument

Completed in 253 milliseconds

1234567891011>>