Searched defs:fd (Results 1 - 25 of 163) sorted by relevance

1234567

/frameworks/base/tools/aidl/
H A Daidl_language.cpp7 int isatty(int fd) argument
9 return (fd == 0);
/frameworks/base/core/java/android/backup/
H A DBackupHelper.java44 public void writeRestoreSnapshot(ParcelFileDescriptor fd); argument
H A DBackupDataInput.java36 public BackupDataInput(FileDescriptor fd) { argument
37 if (fd == null) throw new NullPointerException();
38 mBackupReader = ctor(fd);
40 throw new RuntimeException("Native initialization failed with fd=" + fd);
106 private native static int ctor(FileDescriptor fd); argument
H A DBackupDataOutput.java31 public BackupDataOutput(FileDescriptor fd) { argument
32 if (fd == null) throw new NullPointerException();
33 mBackupWriter = ctor(fd);
35 throw new RuntimeException("Native initialization failed with fd=" + fd);
70 private native static int ctor(FileDescriptor fd); argument
H A DBackupHelperDispatcher.java145 private static native int readHeader_native(Header h, FileDescriptor fd); argument
146 private static native int skipChunk_native(FileDescriptor fd, int bytesToSkip); argument
148 private static native int allocateHeader_native(Header h, FileDescriptor fd); argument
149 private static native int writeHeader_native(Header h, FileDescriptor fd, int pos); argument
/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/base/cmds/servicemanager/
H A Dbctest.c59 int fd; local
/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/base/core/jni/
H A DActivityManager.cpp32 int fd = -1; local
44 // Success is indicated here by a nonzero int followed by the fd;
47 fd = dup(reply.readFileDescriptor());
57 return fd;
H A Dandroid_backup_BackupDataOutput.cpp35 int fd = env->GetIntField(fileDescriptor, s_descriptorField); local
36 if (fd == -1) {
40 return (int)new BackupDataWriter(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);
H A Dandroid_util_FileObserver.cpp53 static void android_os_fileobserver_observe(JNIEnv* env, jobject object, jint fd) argument
63 int num_bytes = read(fd, event_buf, sizeof(event_buf));
101 static jint android_os_fileobserver_startWatching(JNIEnv* env, jobject object, jint fd, jstring pathString, jint mask) argument
107 if (fd >= 0)
111 res = inotify_add_watch(fd, path, mask);
121 static void android_os_fileobserver_stopWatching(JNIEnv* env, jobject object, jint fd, jint wfd) argument
125 inotify_rm_watch((int)fd, (uint32_t)wfd);
/frameworks/base/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);
113 int fd = open("/dev/alarm", O_RDONLY); local
114 if (android_atomic_cmpxchg(-1, fd, &s_fd)) {
115 close(fd);
H A DStatic.cpp67 FdTextOutput(int fd) : BufferedTextOutput(MULTITHREADED), mFD(fd) { } argument
H A DZipFileCRO.cpp50 bool ZipFileCRO_uncompressEntry(ZipFileCRO zipToken, ZipEntryRO entryToken, int fd) { argument
53 return zip->uncompressEntry(entry, fd);
/frameworks/base/media/libmediaplayerservice/
H A DMidiMetadataRetriever.cpp49 status_t MidiMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument
51 LOGV("setDataSource: fd(%d), offset(%lld), and length(%lld)", fd, offset, length);
57 return mMidiPlayer->setDataSource(fd, offset, length);;
H A DVorbisMetadataRetriever.cpp45 status_t VorbisMetadataRetriever::setDataSource(int fd, int64_t offset, int64_t length) argument
47 LOGV("setDataSource: fd(%d), offset(%lld), and length(%lld)", fd, offset, length);
53 return mVorbisPlayer->setDataSource(fd, offset, length);
/frameworks/base/media/libstagefright/
H A DMmapSource.cpp52 MmapSource::MmapSource(int fd, int64_t offset, int64_t length) argument
53 : mFd(fd),
56 LOGV("MmapSource fd:%d offset:%lld length:%lld", fd, offset, length);
57 CHECK(fd >= 0);
/frameworks/base/opengl/tests/angeles/
H A Dgpustate.c10 int fd; local
13 fd = open(fn, O_RDWR | O_SYNC);
14 if(fd < 0) {
20 MAP_SHARED, fd, base);
21 close(fd);
/frameworks/base/tools/aapt/
H A Dprintapk.cpp28 int fd; local
44 fd = open(filename, O_RDONLY);
45 if (fd == -1) {
50 size = lseek(fd, 0, SEEK_END);
51 amt = lseek(fd, 0, SEEK_SET);
64 amt = read(fd, buf, size);
70 close(fd);
/frameworks/base/include/private/ui/
H A Dsw_gralloc_handle.h35 int fd; member in struct:android::sw_gralloc_handle_t
48 fd(-1), magic(sMagic), size(0), base(0), prot(0), pid(getpid())
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DPhoneSubInfoProxy.java91 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
92 mPhoneSubInfo.dump(fd, pw, args);
/frameworks/base/tools/localize/
H A DXMLHandler_test.cpp50 int fd = open(filename.c_str(), O_RDONLY); local
51 if (fd < 0) {
56 ssize_t len = read(fd, buf, sizeof(buf)-1);
63 close(fd);
/frameworks/base/cmds/installd/
H A Dutils.c134 int fd, res; local
137 fd = openat(dfd, name, O_RDONLY | O_DIRECTORY);
138 if (fd < 0) {
141 d = fdopendir(fd);
143 close(fd);
/frameworks/base/core/java/android/os/
H A DIBinder.java153 * @param fd The raw file descriptor that the dump is being sent to.
156 public void dump(FileDescriptor fd, String[] args) throws RemoteException; argument

Completed in 340 milliseconds

1234567