Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 488) sorted by relevance

12345678910>>...20

/frameworks/base/core/java/android/net/
DLocalSocketImpl.java41 private FileDescriptor fd; field in LocalSocketImpl
169 private native int pending_native(FileDescriptor fd) throws IOException; in pending_native()
170 private native int available_native(FileDescriptor fd) throws IOException; in available_native()
171 private native int read_native(FileDescriptor fd) throws IOException; in read_native()
173 FileDescriptor fd) throws IOException; in readba_native()
175 FileDescriptor fd) throws IOException; in writeba_native()
176 private native void write_native(int b, FileDescriptor fd) in write_native()
178 private native void connectLocal(FileDescriptor fd, String name, in connectLocal()
180 private native void bindLocal(FileDescriptor fd, String name, int namespace) in bindLocal()
182 private native void listen_native(FileDescriptor fd, int backlog) in listen_native()
[all …]
/frameworks/base/libs/androidfw/
DObbFile.cpp88 int fd; in readFrom() local
107 bool ObbFile::readFrom(int fd) in readFrom()
117 bool ObbFile::parseObbFile(int fd) in parseObbFile()
228 int fd; in writeTo() local
245 bool ObbFile::writeTo(int fd) in writeTo()
313 int fd; in removeFrom() local
330 bool ObbFile::removeFrom(int fd) in removeFrom()
DBackupHelpers.cpp90 read_snapshot_file(int fd, KeyedVector<String8,FileState>* snapshot) in read_snapshot_file()
147 write_snapshot_file(int fd, const KeyedVector<String8,FileRec>& snapshot) in write_snapshot_file()
215 write_update_file(BackupDataWriter* dataStream, int fd, int mode, const String8& key, in write_update_file()
300 int fd = open(realFilename, O_RDONLY); in write_update_file() local
312 int fd = open(file, O_RDONLY); in compute_crc32() local
416 int fd = open(g.file.string(), O_RDONLY); in back_up_files() local
543 int fd = open(filepath.string(), O_RDONLY); in write_tarfile() local
747 int fd; in WriteFile() local
822 RestoreHelperBase::WriteSnapshot(int fd) in WriteSnapshot()
835 int fd; in write_text_file() local
[all …]
/frameworks/base/core/jni/
Dandroid_hardware_SerialPort.cpp135 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_hardware_SerialPort_open() local
163 int fd = env->GetIntField(thiz, field_context); in android_hardware_SerialPort_close() local
171 int fd = env->GetIntField(thiz, field_context); in android_hardware_SerialPort_read_array() local
193 int fd = env->GetIntField(thiz, field_context); in android_hardware_SerialPort_read_direct() local
210 int fd = env->GetIntField(thiz, field_context); in android_hardware_SerialPort_write_array() local
227 int fd = env->GetIntField(thiz, field_context); in android_hardware_SerialPort_write_direct() local
242 int fd = env->GetIntField(thiz, field_context); in android_hardware_SerialPort_send_break() local
Dandroid_net_LocalSocketImpl.cpp56 int fd; in socket_connect_local() local
89 int fd; in socket_bind_local() local
117 int fd; in socket_listen() local
147 int fd; in socket_accept() local
183 int fd; in socket_shutdown() local
238 int fd; in socket_getOption() local
287 int fd; in socket_setOption() local
352 int fd; in socket_pending() local
377 int fd; in socket_available() local
491 static ssize_t socket_read_all(JNIEnv *env, jobject thisJ, int fd, in socket_read_all()
[all …]
Dandroid_os_MemoryFile.cpp49 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_mmap() local
66 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_close() local
77 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_read() local
96 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_write() local
113 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_pin() local
122 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_get_size() local
Dcom_android_internal_os_ZygoteInit.cpp94 int fd; in com_android_internal_os_ZygoteInit_reopenStdio() local
131 int fd; in com_android_internal_os_ZygoteInit_setCloseOnExec() local
188 int fd = jniGetFDFromFileDescriptor(env, fdObj); in com_android_internal_os_ZygoteInit_selectReadable() local
218 int fd = jniGetFDFromFileDescriptor(env, fdObj); in com_android_internal_os_ZygoteInit_selectReadable() local
230 JNIEnv *env, jobject clazz, jint fd) in com_android_internal_os_ZygoteInit_createFileDescriptor()
Dandroid_util_FileObserver.cpp53 static void android_os_fileobserver_observe(JNIEnv* env, jobject object, jint fd) in android_os_fileobserver_observe()
105 static jint android_os_fileobserver_startWatching(JNIEnv* env, jobject object, jint fd, jstring pat… in android_os_fileobserver_startWatching()
125 static void android_os_fileobserver_stopWatching(JNIEnv* env, jobject object, jint fd, jint wfd) in android_os_fileobserver_stopWatching()
Dandroid_backup_BackupHelperDispatcher.cpp51 int fd = jniGetFDFromFileDescriptor(env, fdObj); in readHeader_native() local
128 int fd = jniGetFDFromFileDescriptor(env, fdObj); in skipChunk_native() local
151 int fd = jniGetFDFromFileDescriptor(env, fdObj); in allocateHeader_native() local
177 int fd = jniGetFDFromFileDescriptor(env, fdObj); in writeHeader_native() local
/frameworks/native/libs/binder/
DMemoryHeapBase.cpp50 int fd = ashmem_create_region(name == NULL ? "MemoryHeapBase" : name, size); in MemoryHeapBase() local
69 int fd = open(device, open_flags); in MemoryHeapBase() local
80 MemoryHeapBase::MemoryHeapBase(int fd, size_t size, uint32_t flags, uint32_t offset) in MemoryHeapBase()
89 status_t MemoryHeapBase::init(int fd, void *base, int size, int flags, const char* device) in init()
102 status_t MemoryHeapBase::mapfd(int fd, size_t size, uint32_t offset) in mapfd()
141 int fd = android_atomic_or(-1, &mFD); in dispose() local
/frameworks/base/services/core/jni/
Dcom_android_server_PersistentDataBlockService.cpp34 uint64_t get_block_device_size(int fd) in get_block_device_size()
47 int wipe_block_device(int fd) in wipe_block_device()
81 int fd = open(path, O_RDONLY); in com_android_server_PersistentDataBlockService_getBlockDeviceSize() local
91 int fd = open(path, O_WRONLY); in com_android_server_PersistentDataBlockService_wipe() local
Dcom_android_server_UsbDeviceManager.cpp52 static void set_accessory_string(JNIEnv *env, int fd, int cmd, jobjectArray strArray, int index) in set_accessory_string()
68 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_getAccessoryStrings() local
90 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_openAccessory() local
105 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_isStartRequested() local
117 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_getAudioMode() local
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java66 public void tag(FileDescriptor fd) throws SocketException { in tag()
76 private void tagSocketFd(FileDescriptor fd, int tag, int uid) { in tagSocketFd()
90 public void untag(FileDescriptor fd) throws SocketException { in untag()
97 private void unTagSocketFd(FileDescriptor fd) { in unTagSocketFd()
146 private static native int native_tagSocketFd(FileDescriptor fd, int tag, int uid); in native_tagSocketFd()
147 private static native int native_untagSocketFd(FileDescriptor fd); in native_untagSocketFd()
/frameworks/av/drm/common/
DReadWriteUtils.cpp41 int fd = fileno(file); in readBytes() local
63 int fd = fileno(file); in readBytes() local
83 int fd = fileno(file); in writeToFile() local
100 int fd = fileno(file); in appendToFile() local
/frameworks/base/libs/androidfw/tests/
DBackupData_test.cpp60 int fd = ::open(mFilename.string(), O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in SetUp() local
75 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F() local
117 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F() local
165 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F() local
220 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F() local
259 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F() local
320 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F() local
388 int fd = ::open(mFilename.string(), O_WRONLY); in TEST_F() local
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java168 public ParcelFileDescriptor(FileDescriptor fd) { in ParcelFileDescriptor()
173 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { in ParcelFileDescriptor()
199 final FileDescriptor fd = openInternal(file, mode); in open() local
232 final FileDescriptor fd = openInternal(file, mode); in open() local
264 final FileDescriptor fd = Os.dup(orig); in dup() local
295 public static ParcelFileDescriptor fromFd(int fd) throws IOException { in fromFd()
317 public static ParcelFileDescriptor adoptFd(int fd) { in adoptFd()
337 FileDescriptor fd = socket.getFileDescriptor$(); in fromSocket() local
351 FileDescriptor fd = datagramSocket.getFileDescriptor$(); in fromDatagramSocket() local
464 FileDescriptor fd = file.getFileDescriptor(); in fromData() local
[all …]
DMemoryFile.java46 private static native long native_mmap(FileDescriptor fd, int length, int mode) in native_mmap()
49 private static native void native_close(FileDescriptor fd); in native_close()
50 private static native int native_read(FileDescriptor fd, long address, byte[] buffer, in native_read()
52 private static native void native_write(FileDescriptor fd, long address, byte[] buffer, in native_write()
54 private static native void native_pin(FileDescriptor fd, boolean pin) throws IOException; in native_pin()
55 private static native int native_get_size(FileDescriptor fd) throws IOException; in native_get_size()
257 public static int getSize(FileDescriptor fd) throws IOException { in getSize()
/frameworks/base/cmds/idmap/
Dcreate.cpp34 int fd = TEMP_FAILURE_RETRY(open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)); in open_idmap() local
57 int write_idmap(int fd, const uint32_t *data, size_t size) in write_idmap()
171 int fd, bool check_if_stale) in create_and_write_idmap()
205 int fd = open_idmap(idmap_path); in idmap_create_path() local
218 int idmap_create_fd(const char *target_apk_path, const char *overlay_apk_path, int fd) in idmap_create_fd()
/frameworks/base/core/java/android/app/backup/
DBackupHelperDispatcher.java142 private static native int readHeader_native(Header h, FileDescriptor fd); in readHeader_native()
143 private static native int skipChunk_native(FileDescriptor fd, int bytesToSkip); in skipChunk_native()
145 private static native int allocateHeader_native(Header h, FileDescriptor fd); in allocateHeader_native()
146 private static native int writeHeader_native(Header h, FileDescriptor fd, int pos); in writeHeader_native()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DBitmapSerializeUtils.java57 private static native void nativeReadBitmapPixels(Bitmap bitmap, int fd); in nativeReadBitmapPixels()
59 private static native void nativeWriteBitmapPixels(Bitmap bitmap, int fd); in nativeWriteBitmapPixels()
/frameworks/base/packages/PrintSpooler/jni/
Dcom_android_printspooler_util_BitmapSerializeUtils.cpp29 static bool writeAllBytes(const int fd, void* buffer, const size_t byteCount) { in writeAllBytes()
48 static bool readAllBytes(const int fd, void* buffer, const size_t byteCount) { in readAllBytes()
82 static void readBitmapPixels(JNIEnv* env, jclass clazz, jobject jbitmap, jint fd) { in readBitmapPixels()
130 static void writeBitmapPixels(JNIEnv* env, jclass clazz, jobject jbitmap, jint fd) { in writeBitmapPixels()
/frameworks/native/cmds/dumpstate/
Dutils.c91 int fd; in __for_each_pid() local
139 int fd; in for_each_tid_helper() local
177 int fd; in show_wchan() local
255 int fd = open(path, O_RDONLY); in dump_file() local
266 int dump_file_from_fd(const char *title, const char *path, int fd) { in dump_file_from_fd()
417 int fd = accept(s, &addr, &alen); in redirect_to_socket() local
446 int fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); in redirect_to_file() local
539 int fd = open(traces_path, O_CREAT | O_WRONLY | O_TRUNC | O_NOFOLLOW, 0666); /* -rw-rw-rw- */ in dump_traces() local
/frameworks/base/cmds/bu/src/com/android/commands/bu/
DBackup.java122 ParcelFileDescriptor fd = null; in doFullBackup() local
141 ParcelFileDescriptor fd = null; in doFullRestore() local
/frameworks/av/services/audioflinger/
DStateQueue.cpp29 void StateQueueObserverDump::dump(int fd) in dump()
34 void StateQueueMutatorDump::dump(int fd) in dump()
/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java57 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, in AssetFileDescriptor()
73 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, in AssetFileDescriptor()
204 public AutoCloseInputStream(AssetFileDescriptor fd) throws IOException { in AutoCloseInputStream()
291 public AutoCloseOutputStream(AssetFileDescriptor fd) throws IOException { in AutoCloseOutputStream()

12345678910>>...20