/frameworks/base/core/java/android/printservice/ |
H A D | IPrintServiceClient.aidl | 36 oneway void writePrintJobData(in ParcelFileDescriptor fd, in PrintJobId printJobId);
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 657 * @param fd The file descriptor containing the bitmap data to decode 666 public static Bitmap decodeFileDescriptor(FileDescriptor fd, Rect outPadding, Options opts) { argument 671 if (nativeIsSeekable(fd)) { 672 bm = nativeDecodeFileDescriptor(fd, outPadding, opts); 674 FileInputStream fis = new FileInputStream(fd); 700 * @param fd The file descriptor containing the bitmap data to decode 703 public static Bitmap decodeFileDescriptor(FileDescriptor fd) { argument 704 return decodeFileDescriptor(fd, null, null); 709 private static native Bitmap nativeDecodeFileDescriptor(FileDescriptor fd, argument 714 private static native boolean nativeIsSeekable(FileDescriptor fd); argument [all...] |
H A D | BitmapRegionDecoder.java | 74 * @param fd The file descriptor containing the data to decode 86 FileDescriptor fd, boolean isShareable) throws IOException { 87 return nativeNewInstance(fd, isShareable); 267 FileDescriptor fd, boolean isShareable); 85 newInstance( FileDescriptor fd, boolean isShareable) argument 266 nativeNewInstance( FileDescriptor fd, boolean isShareable) argument
|
/frameworks/base/libs/androidfw/ |
H A D | BackupData.cpp | 59 BackupDataWriter::BackupDataWriter(int fd) argument 60 :m_fd(fd), 64 m_pos = (ssize_t) lseek(fd, 0, SEEK_CUR); 65 if (DEBUG) ALOGI("BackupDataWriter(%d) @ %ld", fd, (long)m_pos); 184 BackupDataReader::BackupDataReader(int fd) argument 185 :m_fd(fd), 191 m_pos = (ssize_t) lseek(fd, 0, SEEK_CUR); 192 if (DEBUG) ALOGI("BackupDataReader(%d) @ %ld", fd, (long)m_pos);
|
/frameworks/ex/framesequence/jni/ |
H A D | Stream.h | 57 FileStream(FILE* fd) : mFd(fd) {} argument
|
/frameworks/native/libs/binder/ |
H A D | Static.cpp | 51 FdTextOutput(int fd) : BufferedTextOutput(MULTITHREADED), mFD(fd) { } argument
|
H A D | ProcessState.cpp | 310 int fd = open("/dev/binder", O_RDWR); local 311 if (fd >= 0) { 312 fcntl(fd, F_SETFD, FD_CLOEXEC); 314 status_t result = ioctl(fd, BINDER_VERSION, &vers); 317 close(fd); 318 fd = -1; 322 close(fd); 323 fd = -1; 326 result = ioctl(fd, BINDER_SET_MAX_THREADS, &maxThreads); 333 return fd; [all...] |
/frameworks/av/drm/libdrmframework/plugins/forward-lock/FwdLockEngine/include/ |
H A D | FwdLockEngine.h | 154 * @param fd descriptor of the protected content as a file source 158 String8 onGetOriginalMimeType(int uniqueId, const String8& path, int fd); 325 * @param fd File descriptor of the protected content to be decrypted 334 int fd, off64_t offset, off64_t length); 338 int fd, int offset, int length); 542 DecodeSession(int fd) { argument 543 fileDesc = fd;
|
/frameworks/av/media/libmediaplayerservice/ |
H A D | StagefrightPlayer.cpp | 65 status_t StagefrightPlayer::setDataSource(int fd, int64_t offset, int64_t length) { argument 66 ALOGV("setDataSource(%d, %lld, %lld)", fd, offset, length); 67 return mPlayer->setDataSource(dup(fd), offset, length); 218 status_t StagefrightPlayer::dump(int fd, const Vector<String16> &args) const { argument 219 return mPlayer->dump(fd, args);
|
/frameworks/base/libs/common_time/ |
H A D | common_time_server_api.cpp | 284 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/base/services/core/jni/ |
H A D | com_android_server_AlarmManagerService.cpp | 53 CLOCK_REALTIME fd which exists specifically to be canceled on RTC changes */ 73 AlarmImplAlarmDriver(int fd) : AlarmImpl(&fd, 1) { } argument 164 int fd; local 173 fd = open("/dev/rtc0", O_RDWR); 174 if (fd < 0) { 196 res = ioctl(fd, RTC_SET_TIME, &rtc); 200 close(fd); 276 int fd = open("/dev/alarm", O_RDWR); local 277 if (fd < [all...] |
/frameworks/native/cmds/dumpstate/ |
H A D | dumpstate.c | 57 int fd; member in struct:__anon1163 67 int fd = open(data[i].name, O_RDONLY | O_CLOEXEC | O_NOFOLLOW); local 69 if (fstat(fd, &st) == 0 && S_ISREG(st.st_mode) && 71 data[i].fd = fd; 73 close(fd); 74 data[i].fd = -1; 187 int fd = open(anr_traces_path, O_RDONLY | O_CLOEXEC | O_NOFOLLOW); local 188 if (fd < 0) { 191 dump_file_from_fd("VM TRACES AT LAST ANR", anr_traces_path, fd); [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | NativeCrashListener.java | 180 static int readExactly(FileDescriptor fd, byte[] buffer, int offset, int numBytes) argument 184 int n = Os.read(fd, buffer, offset + totalRead, numBytes); 198 void consumeNativeCrashData(FileDescriptor fd) { argument 205 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_RCVTIMEO, timeout); 206 Os.setsockoptTimeval(fd, SOL_SOCKET, SO_SNDTIMEO, timeout); 209 int headerBytes = readExactly(fd, buf, 0, 8); 240 bytes = Os.read(fd, buf, 0, buf.length);
|
/frameworks/av/cmds/stagefright/ |
H A D | stream.cpp | 47 // Object assumes ownership of fd. 48 MyStreamSource(int fd); 69 MyStreamSource::MyStreamSource(int fd) argument 70 : mFd(fd), 73 CHECK_GE(fd, 0); 75 mFileSize = lseek64(fd, 0, SEEK_END); 76 lseek64(fd, 0, SEEK_SET); 362 int fd = open(argv[1], O_RDONLY); local 364 if (fd < 0) { 369 source = new MyStreamSource(fd); [all...] |
/frameworks/base/tests/touchlag/ |
H A D | touchlag.cpp | 142 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 D | DrmManagerService.h | 73 String8 getOriginalMimeType(int uniqueId, const String8& path, int fd); 100 int uniqueId, int fd, off64_t offset, off64_t length, const char *mime); 121 virtual status_t dump(int fd, const Vector<String16>& args);
|
/frameworks/base/core/java/android/os/ |
H A D | FileObserver.java | 130 private native void observe(int fd); argument 131 private native int startWatching(int fd, String path, int mask); argument 132 private native void stopWatching(int fd, int wfd); argument
|
/frameworks/base/core/jni/ |
H A D | android_backup_BackupDataInput.cpp | 35 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 36 if (fd == -1) { 40 return (jlong)new BackupDataReader(fd);
|
H A D | android_util_Process.cpp | 196 int fd; local 201 fd = open(proc_path, O_RDONLY); 202 if (fd >= 0) { 203 int rc = read(fd, cmdline, sizeof(cmdline)-1); 205 close(fd); 367 int fd = open(text, O_WRONLY); local 368 if (fd >= 0) { 370 write(fd, text, strlen(text)); 371 close(fd); 416 int fd local 529 int fd = open(file.string(), O_RDONLY); local 828 int fd = open(file8, O_RDONLY); local 964 int fd = open(path, O_RDONLY); local [all...] |
/frameworks/native/services/inputflinger/ |
H A D | EventHub.cpp | 140 EventHub::Device::Device(int fd, int32_t id, const String8& path, argument 143 fd(fd), id(id), path(path), identifier(identifier), 163 if (fd >= 0) { 164 ::close(fd); 165 fd = -1; 284 if(ioctl(device->fd, EVIOCGABS(axis), &info)) { 285 ALOGW("Error reading absolute controller %d for device %s fd %d, errno=%d", 286 axis, device->identifier.name.string(), device->fd, errno); 336 if (ioctl(device->fd, EVIOCGKE 1056 int fd = open(devicePath, O_RDWR | O_CLOEXEC); local [all...] |
/frameworks/av/include/media/ |
H A D | IMediaMetadataRetriever.h | 42 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
|
H A D | MediaMetadataRetrieverInterface.h | 42 virtual status_t setDataSource(int fd, int64_t offset, int64_t length) = 0;
|
/frameworks/av/include/media/stagefright/ |
H A D | AMRWriter.h | 33 AMRWriter(int fd);
|
/frameworks/av/media/libmedia/ |
H A D | MemoryLeakTrackUtil.cpp | 75 void dumpMemoryAddresses(int fd) argument 147 write(fd, result.string(), result.size()); 164 write(fd, result.string(), result.size()); 175 void dumpMemoryAddresses(int fd) {}
|
H A D | mediametadataretriever.cpp | 117 status_t MediaMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument 119 ALOGV("setDataSource(%d, %" PRId64 ", %" PRId64 ")", fd, offset, length); 125 if (fd < 0 || offset < 0 || length < 0) { 129 return mRetriever->setDataSource(fd, offset, length);
|