Home
last modified time | relevance | path

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

12345678910>>...24

/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.cpp87 read_snapshot_file(int fd, KeyedVector<String8,FileState>* snapshot) in read_snapshot_file()
144 write_snapshot_file(int fd, const KeyedVector<String8,FileRec>& snapshot) in write_snapshot_file()
212 write_update_file(BackupDataWriter* dataStream, int fd, int mode, const String8& key, in write_update_file()
297 int fd = open(realFilename, O_RDONLY); in write_update_file() local
309 int fd = open(file, O_RDONLY); in compute_crc32() local
413 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
742 int fd; in WriteFile() local
817 RestoreHelperBase::WriteSnapshot(int fd) in WriteSnapshot()
830 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_util_MemoryIntArray.cpp39 int fd = ashmem_create_region(nameStr, ashmemSize); in android_util_MemoryIntArray_create() local
56 static jlong android_util_MemoryIntArray_open(JNIEnv* env, jobject clazz, jint fd, in android_util_MemoryIntArray_open()
93 static void android_util_MemoryIntArray_close(JNIEnv* env, jobject clazz, jint fd, in android_util_MemoryIntArray_close()
124 jint fd, jlong address, jint index, jboolean owner) in android_util_MemoryIntArray_get()
141 jint fd, jlong address, jint index, jint newValue, jboolean owner) in android_util_MemoryIntArray_set()
157 static jint android_util_MemoryIntArray_size(JNIEnv* env, jobject clazz, jint fd) { in android_util_MemoryIntArray_size()
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
Dandroid_net_LocalSocketImpl.cpp59 int fd; in socket_connect_local() local
92 int fd; in socket_bind_local() local
183 static ssize_t socket_read_all(JNIEnv *env, jobject thisJ, int fd, in socket_read_all()
240 static int socket_write_all(JNIEnv *env, jobject object, int fd, in socket_write_all()
322 int fd; in socket_read() local
356 int fd; in socket_readba() local
401 int fd; in socket_write() local
423 int fd; in socket_writeba() local
462 int fd; in socket_get_peer_credentials() local
Dandroid_util_FileObserver.cpp49 static void android_os_fileobserver_observe(JNIEnv* env, jobject object, jint fd) in android_os_fileobserver_observe()
101 static jint android_os_fileobserver_startWatching(JNIEnv* env, jobject object, jint fd, jstring pat… in android_os_fileobserver_startWatching()
121 static void android_os_fileobserver_stopWatching(JNIEnv* env, jobject object, jint fd, jint wfd) in android_os_fileobserver_stopWatching()
Dandroid_backup_BackupHelperDispatcher.cpp52 int fd = jniGetFDFromFileDescriptor(env, fdObj); in readHeader_native() local
129 int fd = jniGetFDFromFileDescriptor(env, fdObj); in skipChunk_native() local
152 int fd = jniGetFDFromFileDescriptor(env, fdObj); in allocateHeader_native() local
178 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/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/base/services/core/jni/
Dcom_android_server_PersistentDataBlockService.cpp35 uint64_t get_block_device_size(int fd) in get_block_device_size()
48 int wipe_block_device(int fd) in wipe_block_device()
82 int fd = open(path.c_str(), O_RDONLY); in com_android_server_PersistentDataBlockService_getBlockDeviceSize() local
96 int fd = open(path.c_str(), O_WRONLY); in com_android_server_PersistentDataBlockService_wipe() local
Dcom_android_server_UsbDeviceManager.cpp44 static void set_accessory_string(JNIEnv *env, int fd, int cmd, jobjectArray strArray, int index) in set_accessory_string()
61 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_getAccessoryStrings() local
83 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_openAccessory() local
99 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_isStartRequested() local
111 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_getAudioMode() local
/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/net/
DLocalSocketImpl.java44 private FileDescriptor fd; field in LocalSocketImpl
193 private native int read_native(FileDescriptor fd) throws IOException; in read_native()
195 FileDescriptor fd) throws IOException; in readba_native()
197 FileDescriptor fd) throws IOException; in writeba_native()
198 private native void write_native(int b, FileDescriptor fd) in write_native()
200 private native void connectLocal(FileDescriptor fd, String name, in connectLocal()
202 private native void bindLocal(FileDescriptor fd, String name, int namespace) in bindLocal()
205 FileDescriptor fd) throws IOException; in getPeerCredentials_native()
221 /*package*/ LocalSocketImpl(FileDescriptor fd) throws IOException in LocalSocketImpl()
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java169 public ParcelFileDescriptor(FileDescriptor fd) { in ParcelFileDescriptor()
174 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { in ParcelFileDescriptor()
200 final FileDescriptor fd = openInternal(file, mode); in open() local
233 final FileDescriptor fd = openInternal(file, mode); in open() local
241 FileDescriptor fd, Handler handler, final OnCloseListener listener) throws IOException { in fromFd()
294 final FileDescriptor fd = Os.dup(orig); in dup() local
325 public static ParcelFileDescriptor fromFd(int fd) throws IOException { in fromFd()
347 public static ParcelFileDescriptor adoptFd(int fd) { in adoptFd()
367 FileDescriptor fd = socket.getFileDescriptor$(); in fromSocket() local
381 FileDescriptor fd = datagramSocket.getFileDescriptor$(); in fromDatagramSocket() 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/core/java/android/util/
DLocalLog.java51 public synchronized void dump(FileDescriptor fd, PrintWriter pw, String[] args) { in dump()
58 public synchronized void reverseDump(FileDescriptor fd, PrintWriter pw, String[] args) { in reverseDump()
69 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { in dump()
DMemoryIntArray.java232 private native long nativeOpen(int fd, boolean owner, boolean writable); in nativeOpen()
233 private native void nativeClose(int fd, long memoryAddr, boolean owner); in nativeClose()
234 private native int nativeGet(int fd, long memoryAddr, int index, boolean owner); in nativeGet()
235 private native void nativeSet(int fd, long memoryAddr, int index, int value, boolean owner); in nativeSet()
236 private native int nativeSize(int fd); in nativeSize()
/frameworks/base/cmds/idmap/
Dcreate.cpp35 int fd = TEMP_FAILURE_RETRY(open(path, O_WRONLY | O_CREAT | O_TRUNC, 0644)); in open_idmap() local
58 int write_idmap(int fd, const uint32_t *data, size_t size) in write_idmap()
172 int fd, bool check_if_stale) in create_and_write_idmap()
206 int fd = open_idmap(idmap_path); in idmap_create_path() local
219 int idmap_create_fd(const char *target_apk_path, const char *overlay_apk_path, int fd) in idmap_create_fd()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DAppFuseTest.java61 final ParcelFileDescriptor fd = appFuse.openFile( in testOpenFile() local
121 final ParcelFileDescriptor fd = appFuse.openFile( in testReadFile() local
157 final ParcelFileDescriptor fd = appFuse.openFile( in testWriteFile() local
187 final ParcelFileDescriptor fd = appFuse.openFile( in testWriteFile_writeError() local
224 final ParcelFileDescriptor fd = appFuse.openFile( in testWriteFile_flushError() local
/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()
89 static void readBitmapPixels(JNIEnv* env, jclass /* clazz */, jobject jbitmap, jint fd) { in readBitmapPixels()
137 static void writeBitmapPixels(JNIEnv* env, jclass /* clazz */, jobject jbitmap, jint fd) { in writeBitmapPixels()
/frameworks/native/cmds/dumpstate/
Dutils.cpp134 int fd; in __for_each_pid() local
202 int fd; in for_each_tid_helper() local
242 int fd, ret, save_errno; in show_wchan() local
308 int fd, ret, save_errno; in show_showtime() local
405 static int _dump_file_from_fd(const char *title, const char *path, int fd) { in _dump_file_from_fd()
472 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_NONBLOCK | O_CLOEXEC)); in dump_file() local
483 int fd = TEMP_FAILURE_RETRY(open(path, O_RDONLY | O_NONBLOCK | O_CLOEXEC)); in read_file_as_long() local
511 int (*dump_from_fd)(const char *title, const char *path, int fd)) { in dump_files()
517 int fd, retval = 0; in dump_files() local
578 int dump_file_from_fd(const char *title, const char *path, int fd) { in dump_file_from_fd()
[all …]

12345678910>>...24