/frameworks/base/tools/aidl/ |
H A D | aidl_language.cpp | 7 int isatty(int fd) argument 9 return (fd == 0);
|
/frameworks/base/core/java/android/backup/ |
H A D | BackupHelper.java | 44 public void writeRestoreSnapshot(ParcelFileDescriptor fd); argument
|
H A D | BackupDataInput.java | 36 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 D | BackupDataOutput.java | 31 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 D | BackupHelperDispatcher.java | 145 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 D | backup.cpp | 58 int fd; local 60 fd = open(filename, O_RDONLY); 61 if (fd == -1) { 66 BackupDataReader reader(fd);
|
/frameworks/base/cmds/servicemanager/ |
H A D | bctest.c | 59 int fd; local
|
/frameworks/base/core/java/android/net/ |
H A D | LocalServerSocket.java | 63 * @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 D | ActivityManager.cpp | 32 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 D | android_backup_BackupDataOutput.cpp | 35 int fd = env->GetIntField(fileDescriptor, s_descriptorField); local 36 if (fd == -1) { 40 return (int)new BackupDataWriter(fd);
|
H A D | android_ddm_DdmHandleNativeHeap.cpp | 74 int fd = open(path, O_RDONLY); local 76 if (mapsFile != NULL && fd != -1) { 80 amount = read(fd, ptr, MAPS_FILE_SIZE);
|
H A D | android_util_FileObserver.cpp | 53 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 D | SystemClock.cpp | 55 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 D | Static.cpp | 67 FdTextOutput(int fd) : BufferedTextOutput(MULTITHREADED), mFD(fd) { } argument
|
H A D | ZipFileCRO.cpp | 50 bool ZipFileCRO_uncompressEntry(ZipFileCRO zipToken, ZipEntryRO entryToken, int fd) { argument 53 return zip->uncompressEntry(entry, fd);
|
/frameworks/base/media/libmediaplayerservice/ |
H A D | MidiMetadataRetriever.cpp | 49 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 D | VorbisMetadataRetriever.cpp | 45 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 D | MmapSource.cpp | 52 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 D | gpustate.c | 10 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 D | printapk.cpp | 28 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 D | sw_gralloc_handle.h | 35 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 D | PhoneSubInfoProxy.java | 91 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument 92 mPhoneSubInfo.dump(fd, pw, args);
|
/frameworks/base/tools/localize/ |
H A D | XMLHandler_test.cpp | 50 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 D | utils.c | 134 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 D | IBinder.java | 153 * @param fd The raw file descriptor that the dump is being sent to. 156 public void dump(FileDescriptor fd, String[] args) throws RemoteException; argument
|