/frameworks/base/cmds/hid/jni/ |
H A D | com_android_commands_hid_Device.cpp | 52 static int handleLooperEvents(int /* fd */, int events, void* data) { 89 int fd = ::open(UHID_PATH, O_RDWR | O_CLOEXEC); local 90 if (fd < 0) { 108 ssize_t ret = TEMP_FAILURE_RETRY(::write(fd, &ev, sizeof(ev))); 110 ::close(fd); 116 ret = TEMP_FAILURE_RETRY(::read(fd, &ev, sizeof(ev))); 118 ::close(fd); 123 return new Device(id, fd, std::move(callback), looper); 126 Device::Device(int32_t id, int fd, std::unique_ptr<DeviceCallback> callback, sp<Looper> looper) : argument 127 mId(id), mFd(fd), mDeviceCallbac [all...] |
/frameworks/base/cmds/idmap/ |
H A D | inspect.cpp | 35 int fd; local 42 if ((fd = TEMP_FAILURE_RETRY(open(idmap_path, O_RDONLY))) < 0) { 46 if ((buf_ = (const char*)mmap(NULL, len_, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED) { 47 close(fd); 51 close(fd);
|
/frameworks/base/core/java/android/app/ |
H A D | DialogFragment.java | 557 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument 558 super.dump(prefix, fd, writer, args);
|
H A D | FragmentController.java | 427 public void dumpLoaders(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument 428 mHost.dumpLoaders(prefix, fd, writer, args);
|
H A D | Service.java | 745 * @param fd The raw file descriptor that the dump is being sent to. 750 protected void dump(FileDescriptor fd, PrintWriter writer, String[] args) { argument
|
/frameworks/base/core/java/android/content/ |
H A D | AsyncTaskLoader.java | 358 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument 359 super.dump(prefix, fd, writer, args);
|
H A D | Loader.java | 535 * @param fd The raw file descriptor that the dump is being sent to. 539 public void dump(String prefix, FileDescriptor fd, PrintWriter writer, String[] args) { argument
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetFileDescriptor.java | 51 * @param fd The underlying file descriptor. 57 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument 59 this(fd, startOffset, length, null); 65 * @param fd The underlying file descriptor. 73 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, argument 75 if (fd == null) { 76 throw new IllegalArgumentException("fd must not be null"); 82 mFd = fd; 204 public AutoCloseInputStream(AssetFileDescriptor fd) throws IOException { argument 205 super(fd 291 AutoCloseOutputStream(AssetFileDescriptor fd) argument [all...] |
/frameworks/base/core/java/android/hardware/location/ |
H A D | ContextHubService.java | 234 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
/frameworks/base/core/java/android/inputmethodservice/ |
H A D | IInputMethodWrapper.java | 219 protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) { argument 235 fd, fout, args, latch));
|
/frameworks/base/core/java/android/net/ |
H A D | LocalSocket.java | 72 public LocalSocket(FileDescriptor fd) throws IOException { argument 73 this(new LocalSocketImpl(fd), SOCKET_UNKNOWN); 320 * @return fd or null
|
H A D | LocalSocketImpl.java | 44 private FileDescriptor fd; field in class:LocalSocketImpl 45 /** whether fd is created internally */ 62 FileDescriptor myFd = fd; 85 FileDescriptor myFd = fd; 103 FileDescriptor myFd = fd; 138 FileDescriptor myFd = fd; 152 FileDescriptor myFd = fd; 166 FileDescriptor myFd = fd; 193 private native int read_native(FileDescriptor fd) throws IOException; argument 195 FileDescriptor fd) throw 194 readba_native(byte[] b, int off, int len, FileDescriptor fd) argument 196 writeba_native(byte[] b, int off, int len, FileDescriptor fd) argument 198 write_native(int b, FileDescriptor fd) argument 200 connectLocal(FileDescriptor fd, String name, int namespace) argument 202 bindLocal(FileDescriptor fd, String name, int namespace) argument 204 getPeerCredentials_native( FileDescriptor fd) argument 221 LocalSocketImpl(FileDescriptor fd) argument [all...] |
H A D | Network.java | 329 public void bindSocket(FileDescriptor fd) throws IOException { argument 331 final SocketAddress peer = Os.getpeername(fd); 348 final int err = NetworkUtils.bindSocketToNetwork(fd.getInt$(), netId);
|
H A D | NetworkFactory.java | 297 public void dump(FileDescriptor fd, PrintWriter writer, String[] args) { argument
|
H A D | NetworkUtils.java | 45 public native static void attachDhcpFilter(FileDescriptor fd) throws SocketException; argument 49 * @param fd the socket's {@link FileDescriptor}. 52 public native static void attachRaFilter(FileDescriptor fd, int packetType) throws SocketException; argument 87 * Protect {@code fd} from VPN connections. After protecting, data sent through 91 public static boolean protectFromVpn(FileDescriptor fd) { argument 92 return protectFromVpn(fd.getInt$());
|
/frameworks/base/core/java/android/nfc/cardemulation/ |
H A D | ApduServiceInfo.java | 493 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
H A D | NfcFServiceInfo.java | 297 public void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
/frameworks/base/core/java/android/os/ |
H A D | MemoryFile.java | 46 private static native long native_mmap(FileDescriptor fd, int length, int mode) argument 49 private static native void native_close(FileDescriptor fd); argument 50 private static native int native_read(FileDescriptor fd, long address, byte[] buffer, argument 52 private static native void native_write(FileDescriptor fd, long address, byte[] buffer, argument 54 private static native void native_pin(FileDescriptor fd, boolean pin) throws IOException; argument 55 private static native int native_get_size(FileDescriptor fd) throws IOException; argument 253 * @throws IOException If <code>fd</code> is not a valid file descriptor. 257 public static int getSize(FileDescriptor fd) throws IOException { argument 258 return native_get_size(fd);
|
/frameworks/base/core/java/android/service/voice/ |
H A D | VoiceInteractionService.java | 305 protected void dump(FileDescriptor fd, PrintWriter pw, String[] args) { argument
|
/frameworks/base/core/java/android/util/ |
H A D | MemoryIntArray.java | 232 private native long nativeOpen(int fd, boolean owner, boolean writable); argument 233 private native void nativeClose(int fd, long memoryAddr, boolean owner); argument 234 private native int nativeGet(int fd, long memoryAddr, int index, boolean owner); argument 235 private native void nativeSet(int fd, long memoryAddr, int index, int value, boolean owner); argument 236 private native int nativeSize(int fd); argument
|
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfRenderer.cpp | 68 const int fd = reinterpret_cast<intptr_t>(param); local 69 const int readCount = pread(fd, outBuffer, size, position); 77 static jlong nativeCreate(JNIEnv* env, jclass thiz, jint fd, jlong size) { argument 82 loader.m_Param = reinterpret_cast<void*>(intptr_t(fd));
|
/frameworks/base/core/jni/ |
H A D | android_hardware_UsbDeviceConnection.cpp | 45 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 47 fd = dup(fd); 48 if (fd < 0) 52 struct usb_device* device = usb_device_new(deviceNameStr, fd); 57 close(fd); 90 int fd = android_hardware_UsbDeviceConnection_get_fd(env, thiz); local 91 if (fd < 0) return NULL; 92 lseek(fd, 0, SEEK_SET); 93 int length = read(fd, buffe [all...] |
H A D | android_net_LocalSocketImpl.cpp | 51 /* private native void connectLocal(FileDescriptor fd, 59 int fd; local 61 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 70 fd, 83 /* private native void bindLocal(FileDescriptor fd, String name, namespace) 92 int fd; local 99 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 107 ret = socket_local_server_bind(fd, nameUtf8.c_str(), namespaceId); 183 static ssize_t socket_read_all(JNIEnv *env, jobject thisJ, int fd, argument 190 // Enough buffer for a pile of fd' 240 socket_write_all(JNIEnv *env, jobject object, int fd, void *buf, size_t len) argument 322 int fd; local 356 int fd; local 401 int fd; local 423 int fd; local 462 int fd; local [all...] |
H A D | android_os_MessageQueue.cpp | 50 void setFileDescriptorEvents(int fd, int events); 52 virtual int handleEvent(int fd, int events, void* data); 125 void NativeMessageQueue::setFileDescriptorEvents(int fd, int events) { argument 134 mLooper->addFd(fd, Looper::POLL_CALLBACK, looperEvents, this, 137 mLooper->removeFd(fd); 141 int NativeMessageQueue::handleEvent(int fd, int looperEvents, void* data) { argument 154 gMessageQueueClassInfo.dispatchEvents, fd, events); 156 return 0; // unregister the fd 159 setFileDescriptorEvents(fd, newWatchedEvents); 205 jlong ptr, jint fd, jin 204 android_os_MessageQueue_nativeSetFileDescriptorEvents(JNIEnv* env, jclass clazz, jlong ptr, jint fd, jint events) argument [all...] |
H A D | android_os_SELinux.cpp | 82 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); local 89 int ret = getpeercon(fd, &tmp); 97 ALOGV("getPeerCon(%d) => %s", fd, context.get());
|