Home
last modified time | relevance | path

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

12345678910>>...38

/frameworks/base/core/tests/coretests/src/android/os/
DRedactingFileDescriptorTest.java66 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testSingleByte() local
82 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testRanges() local
104 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_ONLY, in testEntireFile() local
117 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testReadWrite() local
174 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtStart() local
186 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAtOffset() local
198 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAcrossRedactionStart() local
210 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeAcrossRedactionEnd() local
222 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeOutsideRedaction() local
234 final FileDescriptor fd = RedactingFileDescriptor.open(mContext, mFile, MODE_READ_WRITE, in testFreeMultipleRedactions() local
/frameworks/base/services/core/java/com/android/server/connectivity/
DTcpKeepaliveController.java111 public static TcpKeepalivePacketData getTcpKeepalivePacket(@NonNull FileDescriptor fd) in getTcpKeepalivePacket()
128 private static TcpKeepalivePacketDataParcelable switchToRepairMode(FileDescriptor fd) in switchToRepairMode()
230 private static void switchOutOfRepairMode(@NonNull final FileDescriptor fd) { in switchOutOfRepairMode()
246 public void startSocketMonitor(@NonNull final FileDescriptor fd, in startSocketMonitor()
283 final FileDescriptor fd; in stopSocketMonitor() local
302 private static boolean isSocketIdle(FileDescriptor fd) throws ErrnoException { in isSocketIdle()
306 private static boolean isReceiveQueueEmpty(FileDescriptor fd) in isReceiveQueueEmpty()
317 private static boolean isSendQueueEmpty(FileDescriptor fd) in isSendQueueEmpty()
328 private static void dropAllIncomingPackets(FileDescriptor fd, boolean enable) in dropAllIncomingPackets()
/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()
/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.cpp61 int fd; in socket_connect_local() local
99 int fd; in socket_bind_local() local
129 static ssize_t socket_read_all(JNIEnv *env, jobject thisJ, int fd, in socket_read_all()
169 for (auto &fd : received_fds) { in socket_read_all() local
185 static int socket_write_all(JNIEnv *env, jobject object, int fd, in socket_write_all()
241 int fd; in socket_read() local
275 int fd; in socket_readba() local
320 int fd; in socket_write() local
342 int fd; in socket_writeba() local
381 int fd; in socket_get_peer_credentials() 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()
114 static void android_util_MemoryIntArray_close(JNIEnv* env, jobject clazz, jint fd, in android_util_MemoryIntArray_close()
150 jint fd, jlong address, jint index) in android_util_MemoryIntArray_get()
172 jint fd, jlong address, jint index, jint newValue) in android_util_MemoryIntArray_set()
193 static jint android_util_MemoryIntArray_size(JNIEnv* env, jobject clazz, jint fd) { in android_util_MemoryIntArray_size()
Dfd_utils.cpp185 const int fd; member in FileDescriptorInfo
215 FileDescriptorInfo* FileDescriptorInfo::CreateFromFd(int fd, fail_fn_t fail_fn) { in CreateFromFd()
393 FileDescriptorInfo::FileDescriptorInfo(int fd) : in FileDescriptorInfo()
404 int fd, int open_flags, int fd_flags, int fs_flags, in FileDescriptorInfo()
416 bool FileDescriptorInfo::GetSocketName(const int fd, std::string* result) { in GetSocketName()
489 const int fd = ParseFd(dir_entry, dir_fd); in Create() local
522 const int fd = ParseFd(dir_entry, dir_fd); in Restat() local
623 const int fd = (*it); in RestatInternal() local
632 const int fd = strtol(dir_entry->d_name, &end, 10); in ParseFd() local
/frameworks/native/libs/binder/
DMemoryHeapBase.cpp49 int fd = ashmem_create_region(name == nullptr ? "MemoryHeapBase" : name, size); in MemoryHeapBase() local
68 int fd = open(device, open_flags); in MemoryHeapBase() local
79 MemoryHeapBase::MemoryHeapBase(int fd, size_t size, uint32_t flags, off_t offset) in MemoryHeapBase()
88 status_t MemoryHeapBase::init(int fd, void *base, size_t size, int flags, const char* device) in init()
101 status_t MemoryHeapBase::mapfd(int fd, size_t size, off_t offset) in mapfd()
147 int fd = android_atomic_or(-1, &mFD); in dispose() local
/frameworks/base/services/core/jni/
Dcom_android_server_UsbDeviceManager.cpp46 static void set_accessory_string(JNIEnv *env, int fd, int cmd, jobjectArray strArray, int index) in set_accessory_string()
63 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_getAccessoryStrings() local
85 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_openAccessory() local
102 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_isStartRequested() local
114 int fd = open(DRIVER_NAME, O_RDWR); in android_server_UsbDeviceManager_getAudioMode() local
127 int fd = -1; in android_server_UsbDeviceManager_openControl() local
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
/frameworks/native/services/gpuservice/
DGpuService.h59 status_t dump(int fd, const Vector<String16>& args) override { return priorityDump(fd, args); } in dump()
64 status_t dumpCritical(int fd, const Vector<String16>& /*args*/, bool asProto) override { in dumpCritical()
68 status_t dumpAll(int fd, const Vector<String16>& args, bool asProto) override { in dumpAll()
/frameworks/base/core/java/com/android/server/
DNetworkManagementSocketTagger.java75 public void tag(FileDescriptor fd) throws SocketException { in tag()
88 private void tagSocketFd(FileDescriptor fd, int tag, int uid) { in tagSocketFd()
102 public void untag(FileDescriptor fd) throws SocketException { in untag()
109 private void unTagSocketFd(FileDescriptor fd) { in unTagSocketFd()
158 private static native int native_tagSocketFd(FileDescriptor fd, int tag, int uid); in native_tagSocketFd()
159 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/native/libs/incidentcompanion/src/
DIncidentManager.cpp90 int fd = in->readParcelFileDescriptor(); in readFromParcel() local
102 status_t IncidentManager::IncidentReport::setFileDescriptor(int fd) { in setFileDescriptor()
117 void IncidentManager::IncidentReport::takeFileDescriptor(int fd) { in takeFileDescriptor()
/frameworks/base/services/core/java/com/android/server/utils/
DPriorityDump.java139 public static void dump(PriorityDumper dumper, FileDescriptor fd, PrintWriter pw, in dump()
220 default void dumpCritical(FileDescriptor fd, PrintWriter pw, String[] args, in dumpCritical()
228 default void dumpHigh(FileDescriptor fd, PrintWriter pw, String[] args, boolean asProto) { in dumpHigh()
235 default void dumpNormal(FileDescriptor fd, PrintWriter pw, String[] args, boolean asProto) { in dumpNormal()
247 default void dump(FileDescriptor fd, PrintWriter pw, String[] args, boolean asProto) { in dump()
/frameworks/base/cmds/incidentd/src/
Dproto_util.cpp36 status_t write_header_section(int fd, const uint8_t* buf, size_t bufSize) { in write_header_section()
56 status_t write_section_header(int fd, int sectionId, size_t size) { in write_section_header()
62 status_t write_section(int fd, int sectionId, const MessageLite& message) { in write_section()
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java183 public ParcelFileDescriptor(FileDescriptor fd) { in ParcelFileDescriptor()
188 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { in ParcelFileDescriptor()
220 final FileDescriptor fd = openInternal(file, mode); in open() local
253 final FileDescriptor fd = openInternal(file, mode); in open() local
268 public static ParcelFileDescriptor fromFd(FileDescriptor fd, Handler handler, in fromFd()
327 final FileDescriptor fd = new FileDescriptor(); in dup() local
360 public static ParcelFileDescriptor fromFd(int fd) throws IOException { in fromFd()
388 public static ParcelFileDescriptor adoptFd(int fd) { in adoptFd()
420 FileDescriptor fd = socket.getFileDescriptor$(); in fromSocket() local
453 FileDescriptor fd = datagramSocket.getFileDescriptor$(); in fromDatagramSocket() local
[all …]
/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.java45 private FileDescriptor fd; field in LocalSocketImpl
162 private native int read_native(FileDescriptor fd) throws IOException; in read_native()
164 FileDescriptor fd) throws IOException; in readba_native()
166 FileDescriptor fd) throws IOException; in writeba_native()
167 private native void write_native(int b, FileDescriptor fd) in write_native()
169 private native void connectLocal(FileDescriptor fd, String name, in connectLocal()
171 private native void bindLocal(FileDescriptor fd, String name, int namespace) in bindLocal()
174 FileDescriptor fd) throws IOException; in getPeerCredentials_native()
191 /*package*/ LocalSocketImpl(FileDescriptor fd) in LocalSocketImpl()
/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()
176 int fd, bool check_if_stale) in create_and_write_idmap()
210 int fd = open_idmap(idmap_path); in idmap_create_path() local
223 int idmap_create_fd(const char *target_apk_path, const char *overlay_apk_path, int fd) in idmap_create_fd()
229 int idmap_verify_fd(const char *target_apk_path, const char *overlay_apk_path, int fd) in idmap_verify_fd()
/frameworks/base/native/android/
Dsharedmem.cpp56 size_t ASharedMemory_getSize(int fd) { in ASharedMemory_getSize()
60 int ASharedMemory_setProt(int fd, int prot) { in ASharedMemory_setProt()
74 int fd = env->CallIntMethod(javaSharedMemory, sSharedMemory.getFd); in ASharedMemory_dupFromJava() local
/frameworks/base/core/java/android/app/backup/
DBackupDataOutput.java79 public BackupDataOutput(FileDescriptor fd) { in BackupDataOutput()
85 public BackupDataOutput(FileDescriptor fd, long quota) { in BackupDataOutput()
90 public BackupDataOutput(FileDescriptor fd, long quota, int transportFlags) { in BackupDataOutput()
170 private native static long ctor(FileDescriptor fd); in ctor()
DFullBackupDataOutput.java56 public FullBackupDataOutput(ParcelFileDescriptor fd, long quota) { in FullBackupDataOutput()
63 public FullBackupDataOutput(ParcelFileDescriptor fd, long quota, int transportFlags) { in FullBackupDataOutput()
71 public FullBackupDataOutput(ParcelFileDescriptor fd) { in FullBackupDataOutput()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIService.java69 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { in dump()
75 dumpServices(((SystemUIApplication) getApplication()).getServices(), fd, pw, args); in dump() local
80 SystemUI[] services, FileDescriptor fd, PrintWriter pw, String[] args) { in dumpServices()
/frameworks/native/libs/vr/libpdx/private/pdx/
Dfile_handle.h29 explicit FileHandle(int fd) : fd_(fd) {} in FileHandle()
53 static FileHandle AsDuplicate(const int fd) { in AsDuplicate()
74 void Reset(int fd) { in Reset()

12345678910>>...38