Searched refs:fd (Results 101 - 125 of 486) sorted by relevance

1234567891011>>

/frameworks/base/services/common_time/
H A Dcommon_time_server_api.cpp284 write(fd, buffer, res); \
288 status_t CommonTimeServer::dumpClockInterface(int fd, argument
300 write(fd, buffer, strlen(buffer));
356 mClient_PacketRTTLog.dumpLog(fd, mCommonClock);
357 mStateChangeLog.dumpLog(fd);
358 mElectionLog.dumpLog(fd);
359 mBadPktLog.dumpLog(fd);
365 status_t CommonTimeServer::dumpConfigInterface(int fd, argument
376 write(fd, buffer, strlen(buffer));
406 void CommonTimeServer::PacketRTTLog::dumpLog(int fd, cons argument
[all...]
/frameworks/native/libs/binder/
H A DProcessState.cpp309 int fd = open("/dev/binder", O_RDWR); local
310 if (fd >= 0) {
311 fcntl(fd, F_SETFD, FD_CLOEXEC);
313 status_t result = ioctl(fd, BINDER_VERSION, &vers);
316 close(fd);
317 fd = -1;
321 close(fd);
322 fd = -1;
325 result = ioctl(fd, BINDER_SET_MAX_THREADS, &maxThreads);
332 return fd;
[all...]
/frameworks/base/core/jni/
H A Dandroid_os_Parcel.cpp364 int fd = parcel->readFileDescriptor(); local
365 if (fd < 0) return NULL;
366 fd = dup(fd);
367 if (fd < 0) return NULL;
368 return jniCreateFileDescriptor(env, fd);
410 int fd = open(name8.string(), flags, realMode); local
411 if (fd < 0) {
415 jobject object = jniCreateFileDescriptor(env, fd);
417 close(fd);
434 int fd = dup(origfd); local
452 int fd = jniGetFDFromFileDescriptor(env, object); local
466 int fd = jniGetFDFromFileDescriptor(env, object); local
[all...]
H A Dcom_android_internal_content_NativeLibraryHelper.cpp122 int fd = TEMP_FAILURE_RETRY(open(filePath, O_RDONLY)); local
123 if (fd < 0) {
131 while ((numBytes = TEMP_FAILURE_RETRY(read(fd, crcBuffer, sizeof(crcBuffer)))) > 0) {
134 close(fd);
223 int fd = mkstemp(localTmpFileName); local
224 if (fd < 0) {
229 if (!zipFile->uncompressEntry(zipEntry, fd)) {
231 close(fd);
236 close(fd);
H A Dandroid_backup_BackupDataInput.cpp35 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local
36 if (fd == -1) {
40 return (int)new BackupDataReader(fd);
H A Dandroid_ddm_DdmHandleNativeHeap.cpp74 int fd = open(path, O_RDONLY); local
76 if (mapsFile != NULL && fd != -1) {
80 amount = read(fd, ptr, MAPS_FILE_SIZE);
/frameworks/base/core/java/android/content/
H A DContentProviderNative.java216 ParcelFileDescriptor fd;
217 fd = openFile(url, mode);
219 if (fd != null) {
221 fd.writeToParcel(reply,
235 AssetFileDescriptor fd;
236 fd = openAssetFile(url, mode);
238 if (fd != null) {
240 fd.writeToParcel(reply,
282 AssetFileDescriptor fd;
283 fd
[all...]
/frameworks/av/cmds/stagefright/
H A Dstream.cpp45 // Object assumes ownership of fd.
46 MyStreamSource(int fd);
67 MyStreamSource::MyStreamSource(int fd) argument
68 : mFd(fd),
71 CHECK_GE(fd, 0);
73 mFileSize = lseek64(fd, 0, SEEK_END);
74 lseek64(fd, 0, SEEK_SET);
358 int fd = open(argv[1], O_RDONLY); local
360 if (fd < 0) {
365 source = new MyStreamSource(fd);
[all...]
/frameworks/base/tests/touchlag/
H A Dtouchlag.cpp142 int fd; member in class:TouchEvents::EventThread
148 read(fd, &event, sizeof(event));
170 fd = open("/dev/input/event1", O_RDONLY);
224 int fd = open("/dev/graphics/fb0", O_RDWR); local
225 ioctl(fd, FBIOGET_VSCREENINFO, &vi);
226 ioctl(fd, FBIOGET_FSCREENINFO, &fi);
227 void* bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
260 int err = ioctl(fd, FBIO_WAITFORVSYNC, &crt);
292 close(fd);
/frameworks/av/drm/libdrmframework/include/
H A DDrmManagerService.h75 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd);
102 int uniqueId, int fd, off64_t offset, off64_t length, const char *mime);
123 virtual status_t dump(int fd, const Vector<String16>& args);
/frameworks/av/media/mtp/
H A DMtpDataPacket.h98 int read(int fd);
101 int write(int fd);
102 int writeData(int fd, void* data, uint32_t length);
H A DMtpServer.cpp98 MtpServer::MtpServer(int fd, MtpDatabase* database, bool ptp, argument
100 : mFD(fd),
154 int fd = mFD; local
156 ALOGV("MtpServer::run fd: %d\n", fd);
159 int ret = mRequest.read(fd);
180 int ret = mData.read(fd);
201 ret = mData.write(fd);
214 ret = mResponse.write(fd);
240 close(fd);
274 addEditObject(MtpObjectHandle handle, MtpString& path, uint64_t size, MtpObjectFormat format, int fd) argument
1187 int fd = open((const char *)path, O_RDWR | O_EXCL); local
[all...]
/frameworks/base/core/java/android/os/
H A DFileObserver.java133 private native void observe(int fd); argument
134 private native int startWatching(int fd, String path, int mask); argument
135 private native void stopWatching(int fd, int wfd); argument
/frameworks/base/graphics/java/android/graphics/
H A DBitmapRegionDecoder.java75 * @param fd The file descriptor containing the data to decode
87 FileDescriptor fd, boolean isShareable) throws IOException {
88 return nativeNewInstance(fd, isShareable);
269 FileDescriptor fd, boolean isShareable);
86 newInstance( FileDescriptor fd, boolean isShareable) argument
268 nativeNewInstance( FileDescriptor fd, boolean isShareable) argument
/frameworks/base/media/java/android/media/
H A DMediaPlayer.java874 AssetFileDescriptor fd = null;
877 fd = resolver.openAssetFileDescriptor(uri, "r");
878 if (fd == null) {
884 if (fd.getDeclaredLength() < 0) {
885 setDataSource(fd.getFileDescriptor());
887 setDataSource(fd.getFileDescriptor(), fd.getStartOffset(), fd.getDeclaredLength());
893 if (fd != null) {
894 fd
973 setDataSource(FileDescriptor fd) argument
989 setDataSource(FileDescriptor fd, long offset, long length) argument
1775 addTimedTextSource(FileDescriptor fd, String mimeType) argument
1799 addTimedTextSource(FileDescriptor fd, long offset, long length, String mimeType) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DSystemUIService.java119 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
123 ui.dump(fd, pw, args);
130 ui.dump(fd, pw, args);
/frameworks/native/libs/gui/
H A DSensorEventQueue.cpp79 const int fd = getFd(); local
97 } while (result != fd);
99 return (result == fd) ? status_t(NO_ERROR) : result;
/frameworks/native/services/surfaceflinger/
H A DMessageQueue.cpp162 int MessageQueue::cb_eventReceiver(int fd, int events, void* data) { argument
164 return queue->eventReceiver(fd, events);
167 int MessageQueue::eventReceiver(int fd, int events) { argument
/frameworks/base/core/java/android/app/
H A DApplicationThreadNative.java344 ParcelFileDescriptor fd = data.readFileDescriptor();
347 if (fd != null) {
348 dumpService(fd.getFileDescriptor(), service, args);
350 fd.close();
359 ParcelFileDescriptor fd = data.readFileDescriptor();
362 if (fd != null) {
363 dumpProvider(fd.getFileDescriptor(), service, args);
365 fd.close();
409 ParcelFileDescriptor fd = data.readInt() != 0
411 profilerControl(start, path, fd, profileTyp
974 dumpService(FileDescriptor fd, IBinder token, String[] args) argument
985 dumpProvider(FileDescriptor fd, IBinder token, String[] args) argument
1032 profilerControl(boolean start, String path, ParcelFileDescriptor fd, int profileType) argument
1091 dumpHeap(boolean managed, String path, ParcelFileDescriptor fd) argument
1108 dumpActivity(FileDescriptor fd, IBinder token, String prefix, String[] args) argument
1145 dumpMemInfo(FileDescriptor fd, boolean checkin, boolean all, String[] args) argument
1163 dumpGfxInfo(FileDescriptor fd, String[] args) argument
1172 dumpDbInfo(FileDescriptor fd, String[] args) argument
[all...]
/frameworks/base/services/input/
H A DEventHub.cpp160 EventHub::Device::Device(int fd, int32_t id, const String8& path, argument
163 fd(fd), id(id), path(path), identifier(identifier),
182 if (fd >= 0) {
183 ::close(fd);
184 fd = -1;
291 if(ioctl(device->fd, EVIOCGABS(axis), &info)) {
292 ALOGW("Error reading absolute controller %d for device %s fd %d, errno=%d",
293 axis, device->identifier.name.string(), device->fd, errno);
343 if (ioctl(device->fd, EVIOCGKE
[all...]
/frameworks/av/include/media/
H A DIMediaMetadataRetriever.h39 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
H A DMediaMetadataRetrieverInterface.h38 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
/frameworks/av/include/media/stagefright/
H A DAMRWriter.h33 AMRWriter(int fd);
/frameworks/av/media/libmedia/
H A Dmediametadataretriever.cpp112 status_t MediaMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument
114 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length);
120 if (fd < 0 || offset < 0 || length < 0) {
124 return mRetriever->setDataSource(fd, offset, length);
/frameworks/av/media/libstagefright/include/
H A DStagefrightMetadataRetriever.h39 virtual status_t setDataSource(int fd, int64_t offset, int64_t length);

Completed in 4386 milliseconds

1234567891011>>