Searched refs:fd (Results 51 - 75 of 555) sorted by relevance

1234567891011>>

/frameworks/native/cmds/dumpstate/
H A Dutils.c66 int fd; local
76 if ((fd = open(cmdpath, O_RDONLY)) < 0) {
79 read(fd, cmdline, sizeof(cmdline) - 1);
80 close(fd);
114 int fd; local
127 if ((fd = open(commpath, O_RDONLY)) < 0) {
131 read(fd, comm, sizeof(comm) - 1);
132 close(fd);
152 int fd; local
158 if ((fd
215 int fd = open(path, O_RDONLY); local
360 int fd = accept(s, &addr, &alen); local
389 int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); local
482 int fd = open(traces_path, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW, 0666); /* -rw-rw-rw- */ local
532 int fd = open(path, O_RDONLY); local
[all...]
/frameworks/base/libs/androidfw/
H A DBackupHelpers.cpp90 read_snapshot_file(int fd, KeyedVector<String8,FileState>* snapshot) argument
96 amt = read(fd, &header, sizeof(header));
111 amt = read(fd, &file, sizeof(FileState));
123 amt = read(fd, filename, nameBufSize);
147 write_snapshot_file(int fd, const KeyedVector<String8,FileRec>& snapshot) argument
162 LOGP("write_snapshot_file fd=%d\n", fd);
167 amt = write(fd, &header, sizeof(header));
179 amt = write(fd, &r.s, sizeof(FileState));
186 amt = write(fd, nam
215 write_update_file(BackupDataWriter* dataStream, int fd, int mode, const String8& key, char const* realFilename) argument
302 int fd = open(realFilename, O_RDONLY); local
313 compute_crc32(int fd) argument
400 int fd = open(g.file.string(), O_RDONLY); local
540 int fd = open(filepath.string(), O_RDONLY); local
741 int fd; local
816 WriteSnapshot(int fd) argument
829 int fd; local
853 int fd; local
[all...]
H A DAsset.cpp126 int fd; local
128 fd = open(fileName, O_RDONLY | O_BINARY);
129 if (fd < 0)
140 length = lseek64(fd, 0, SEEK_END);
142 ::close(fd);
145 (void) lseek64(fd, 0, SEEK_SET);
148 if (fstat(fd, &st) < 0) {
149 ::close(fd);
154 ::close(fd);
160 result = pAsset->openChunk(fileName, fd,
187 int fd; local
373 openChunk(const char* fileName, int fd, off64_t offset, size_t length) argument
698 openChunk(int fd, off64_t offset, int compressionMethod, size_t uncompressedLen, size_t compressedLen) argument
[all...]
/frameworks/base/core/java/android/os/
H A DBinder.java262 ParcelFileDescriptor fd = data.readFileDescriptor();
264 if (fd != null) {
266 dump(fd.getFileDescriptor(), args);
269 fd.close();
290 public void dump(FileDescriptor fd, String[] args) { argument
291 FileOutputStream fout = new FileOutputStream(fd);
300 dump(fd, pw, args);
325 public void dumpAsync(final FileDescriptor fd, final String[] args) { argument
326 final FileOutputStream fout = new FileOutputStream(fd);
331 dump(fd, p
348 dump(FileDescriptor fd, PrintWriter fout, String[] args) argument
448 dump(FileDescriptor fd, String[] args) argument
462 dumpAsync(FileDescriptor fd, String[] args) argument
[all...]
H A DIBinder.java188 * @param fd The raw file descriptor that the dump is being sent to.
191 public void dump(FileDescriptor fd, String[] args) throws RemoteException; argument
198 * @param fd The raw file descriptor that the dump is being sent to.
201 public void dumpAsync(FileDescriptor fd, String[] args) throws RemoteException; argument
H A DParcelFileDescriptor.java167 public ParcelFileDescriptor(FileDescriptor fd) { argument
168 this(fd, null);
172 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { argument
173 if (fd == null) {
177 mFd = fd;
198 final FileDescriptor fd = openInternal(file, mode);
199 if (fd == null) return null;
201 return new ParcelFileDescriptor(fd);
231 final FileDescriptor fd = openInternal(file, mode);
232 if (fd
294 fromFd(int fd) argument
316 adoptFd(int fd) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java51 * @param fd The underlying file descriptor.
57 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument
59 this(fd, startOffset, length, null);
65 * @param fd The underlying file descriptor.
73 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument
75 if (fd == null) {
76 throw new IllegalArgumentException("fd must not be null");
82 mFd = fd;
204 public AutoCloseInputStream(AssetFileDescriptor fd) throws IOException { argument
205 super(fd
291 AutoCloseOutputStream(AssetFileDescriptor fd) argument
[all...]
/frameworks/rs/driver/
H A DrsdShader.cpp309 void RsdShader::logUniform(const Element *field, const float *fd, uint32_t arraySize ) { argument
318 ALOGV("{%f, %f, %f, %f", fd[0], fd[4], fd[8], fd[12]);
319 ALOGV(" %f, %f, %f, %f", fd[1], fd[5], fd[9], fd[13]);
320 ALOGV(" %f, %f, %f, %f", fd[
355 setUniform(const Context *rsc, const Element *field, const float *fd, int32_t slot, uint32_t arraySize ) argument
539 const float *fd = reinterpret_cast<const float *>(&data[offset]); local
[all...]
/frameworks/rs/cpu_ref/linkloader/
H A Dmain.cpp36 int &fd,
40 void close_mmap_file(int fd,
58 int fd = -1; local
62 if (!open_mmap_file(filename, fd, image, image_size)) {
70 close_mmap_file(fd, image, image_size);
212 int &fd,
230 fd = open(filename, O_RDONLY);
231 if (fd < 0) {
238 mmap(0, size, PROT_READ, MAP_PRIVATE, fd, 0));
242 close(fd);
211 open_mmap_file(char const *filename, int &fd, unsigned char const *&image, size_t &size) argument
249 close_mmap_file(int fd, unsigned char const *image, size_t size) argument
[all...]
/frameworks/av/media/mtp/
H A DMtpEventPacket.cpp43 int MtpEventPacket::write(int fd) { argument
51 int ret = ::ioctl(fd, MTP_SEND_EVENT, (unsigned long)&event);
/frameworks/base/core/java/android/bluetooth/
H A DIBluetoothHealthCallback.aidl31 ParcelFileDescriptor fd, int id);
/frameworks/base/core/java/android/net/
H A DLocalServerSocket.java63 * @param fd bound file descriptor
66 public LocalServerSocket(FileDescriptor fd) throws IOException argument
68 impl = new LocalSocketImpl(fd);
102 * @return fd or null
/frameworks/av/include/media/stagefright/
H A DStagefrightMediaScanner.h33 virtual char *extractAlbumArt(int fd);
/frameworks/av/services/camera/libcameraservice/utils/
H A DCameraTraces.h45 static status_t dump(int fd, const Vector<String16>& args);
/frameworks/base/core/jni/
H A Dandroid_ddm_DdmHandleNativeHeap.cpp49 int fd = open(path, O_RDONLY); local
50 if (fd != -1) {
53 while ((byteCount = TEMP_FAILURE_RETRY(read(fd, bytes, sizeof(bytes)))) > 0) {
56 close(fd);
H A Dandroid_os_SystemClock.cpp53 int fd; local
66 fd = open("/dev/alarm", O_RDWR);
67 if(fd < 0) {
73 res = ioctl(fd, ANDROID_ALARM_SET_RTC, &ts);
78 close(fd);
H A Dandroid_hardware_UsbDeviceConnection.cpp45 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
47 fd = dup(fd);
48 if (fd < 0)
52 struct usb_device* device = usb_device_new(deviceNameStr, fd);
57 close(fd);
90 int fd = android_hardware_UsbDeviceConnection_get_fd(env, thiz); local
91 if (fd < 0) return NULL;
92 lseek(fd, 0, SEEK_SET);
93 int length = read(fd, buffe
[all...]
/frameworks/base/include/androidfw/
H A DObbFile.h40 bool readFrom(int fd);
42 bool writeTo(int fd);
44 bool removeFrom(int fd);
141 bool parseObbFile(int fd);
/frameworks/av/media/libmediaplayerservice/
H A DMetadataRetrieverClient.cpp59 status_t MetadataRetrieverClient::dump(int fd, const Vector<String16>& args) const argument
67 write(fd, result.string(), result.size());
68 write(fd, "\n", 1);
135 status_t MetadataRetrieverClient::setDataSource(int fd, int64_t offset, int64_t length) argument
137 ALOGV("setDataSource fd=%d, offset=%lld, length=%lld", fd, offset, length);
140 int ret = fstat(fd, &sb);
142 ALOGE("fstat(%d) failed: %d, %s", fd, ret, strerror(errno));
153 ::close(fd);
163 fd,
[all...]
H A DMidiMetadataRetriever.cpp50 status_t MidiMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument
52 ALOGV("setDataSource: fd(%d), offset(%lld), and length(%lld)", fd, offset, length);
58 return mMidiPlayer->setDataSource(fd, offset, length);;
/frameworks/base/services/jni/
H A Dcom_android_server_SerialService.cpp41 int fd = open(pathStr, O_RDWR | O_NOCTTY); local
42 if (fd < 0) {
49 jobject fileDescriptor = jniCreateFileDescriptor(env, fd);
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
H A DVariableSpeedNative.java47 int fd = descriptorField.getInt(fileDescriptor);
48 VariableSpeedNative.playFileDescriptor(fd, afd.getStartOffset(), afd.getLength());
66 /*package*/ static native void playFileDescriptor(int fd, long offset, long length); argument
/frameworks/native/include/binder/
H A DMemoryHeapBase.h42 * maps the memory referenced by fd. but DOESN'T take ownership
45 MemoryHeapBase(int fd, size_t size, uint32_t flags = 0, uint32_t offset = 0);
84 // init() takes ownership of fd
85 status_t init(int fd, void *base, int size,
89 status_t mapfd(int fd, size_t size, uint32_t offset = 0);
/frameworks/wilhelm/src/android/
H A Dandroid_LocAVPlayer.cpp63 } else if (mPlayer->setDataSource(mDataLocator.fdi.fd, mDataLocator.fdi.offset,
68 // Binder dups the fd for use by mediaserver, so if we own the fd then OK to close now
70 (void) ::close(mDataLocator.fdi.fd);
71 mDataLocator.fdi.fd = -1;
/frameworks/base/services/common_time/
H A Ddiag_thread.cpp38 static bool setNonblocking(int fd) { argument
39 int flags = fcntl(fd, F_GETFL);
40 if (fcntl(fd, F_SETFL, flags | O_NONBLOCK) < 0) {
42 fd, errno);
49 static bool setNodelay(int fd) { argument
51 if (setsockopt(fd, IPPROTO_TCP, TCP_NODELAY, &tmp, sizeof(tmp)) < 0) {
53 fd, errno);
213 poll_fds[0].fd = listen_fd_;
216 poll_fds[0].fd = data_fd_;
231 if (poll_fds[0].fd
[all...]

Completed in 803 milliseconds

1234567891011>>