/external/webkit/Source/WebKit2/Platform/CoreIPC/unix/ |
AttachmentUnix.cpp | 35 Attachment::Attachment(int fileDescriptor, size_t size) 37 , m_fileDescriptor(fileDescriptor)
|
/frameworks/base/core/jni/ |
android_os_MemoryFile.cpp | 46 static jint android_os_MemoryFile_mmap(JNIEnv* env, jobject clazz, jobject fileDescriptor, 49 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 63 static void android_os_MemoryFile_close(JNIEnv* env, jobject clazz, jobject fileDescriptor) 65 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 67 jniSetFileDescriptorOfFD(env, fileDescriptor, -1); 73 jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, 76 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 92 jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, 95 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 110 static void android_os_MemoryFile_pin(JNIEnv* env, jobject clazz, jobject fileDescriptor, jboolean pin [all...] |
android_server_NetworkManagementSocketTagger.cpp | 34 jobject fileDescriptor, 36 int userFd = jniGetFDFromFileDescriptor(env, fileDescriptor); 39 LOGE("Can't get FileDescriptor num"); 51 jobject fileDescriptor) { 52 int userFd = jniGetFDFromFileDescriptor(env, fileDescriptor); 55 LOGE("Can't get FileDescriptor num"); 87 { "native_tagSocketFd", "(Ljava/io/FileDescriptor;II)I", (void*)QTagUid_tagSocketFd}, 88 { "native_untagSocketFd", "(Ljava/io/FileDescriptor;)I", (void*)QTagUid_untagSocketFd},
|
android_net_LocalSocketImpl.cpp | 48 * private native FileDescriptor 67 /* private native void connectLocal(FileDescriptor fd, 72 jobject fileDescriptor, jstring name, jint namespaceId) 80 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 102 /* private native void bindLocal(FileDescriptor fd, String name, namespace) 107 socket_bind_local (JNIEnv *env, jobject object, jobject fileDescriptor, 119 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 139 socket_listen (JNIEnv *env, jobject object, jobject fileDescriptor, int backlog) 144 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 158 /* private native FileDescriptor [all...] |
android_backup_BackupDataOutput.cpp | 29 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) 31 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 101 { "ctor", "(Ljava/io/FileDescriptor;)I", (void*)ctor_native },
|
android_backup_BackupDataInput.cpp | 33 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) 35 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 126 { "ctor", "(Ljava/io/FileDescriptor;)I", (void*)ctor_native },
|
android_backup_FileBackupHelperBase.cpp | 97 writeSnapshot_native(JNIEnv* env, jobject clazz, jint ptr, jobject fileDescriptor) 102 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 113 "(Ljava/io/FileDescriptor;ILjava/io/FileDescriptor;[Ljava/lang/String;[Ljava/lang/String;)I", 116 { "writeSnapshot_native", "(ILjava/io/FileDescriptor;)I", (void*)writeSnapshot_native },
|
/libcore/luni/src/main/native/ |
NetFd.h | 21 * Wraps access to the int inside a java.io.FileDescriptor, taking care of throwing exceptions. 25 NetFd(JNIEnv* env, jobject fileDescriptor) 26 : mEnv(env), mFileDescriptor(fileDescriptor), mFd(-1)
|
libcore_net_RawSocket.cpp | 49 * value is placed into the supplied FileDescriptor instance. 55 static void RawSocket_create(JNIEnv* env, jclass, jobject fileDescriptor, 77 jniSetFileDescriptorOfFD(env, fileDescriptor, sock); 94 * FileDescriptor instance. 98 static int RawSocket_sendPacket(JNIEnv* env, jclass, jobject fileDescriptor, 102 NetFd fd(env, fileDescriptor); 151 static jint RawSocket_recvPacket(JNIEnv* env, jclass, jobject fileDescriptor, 155 NetFd fd(env, fileDescriptor); 208 NATIVE_METHOD(RawSocket, create, "(Ljava/io/FileDescriptor;Ljava/lang/String;)V"), 209 NATIVE_METHOD(RawSocket, sendPacket, "(Ljava/io/FileDescriptor;Ljava/lang/String;[B[BII)I") [all...] |
/cts/tests/jni/ |
android_net_cts_NetlinkSocket.cpp | 30 jobject fileDescriptor) 39 jniSetFileDescriptorOfFD(env, fileDescriptor, sock); 43 jobject fileDescriptor, jint pid, jbyteArray packet) 55 int sock = jniGetFDFromFileDescriptor(e, fileDescriptor); 63 { "sendmsg", "(Ljava/io/FileDescriptor;I[B)I", (void *) android_net_cts_NetlinkSocket_sendmsg }, 64 { "create_native", "(Ljava/io/FileDescriptor;)V", (void *) android_net_cts_NetlinkSocket_create },
|
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/ |
VariableSpeedNative.java | 25 import java.io.FileDescriptor; 44 FileDescriptor fileDescriptor = afd.getFileDescriptor(); 45 Field descriptorField = fileDescriptor.getClass().getDeclaredField("descriptor"); 47 int fd = descriptorField.getInt(fileDescriptor);
|
/external/webkit/Source/WebKit2/Platform/unix/ |
SharedMemoryUnix.cpp | 98 void SharedMemory::Handle::adoptFromAttachment(int fileDescriptor, size_t size) 103 m_fileDescriptor = fileDescriptor; 118 int fileDescriptor; 119 while ((fileDescriptor = mkstemp(tempNameC)) == -1) { 123 while (fcntl(fileDescriptor, F_SETFD, FD_CLOEXEC) == -1) { 125 while (close(fileDescriptor) == -1 && errno == EINTR) { } 131 while (ftruncate(fileDescriptor, size) == -1) { 133 while (close(fileDescriptor) == -1 && errno == EINTR) { } 139 void* data = mmap(0, size, PROT_READ | PROT_WRITE, MAP_SHARED, fileDescriptor, 0); 141 while (close(fileDescriptor) == -1 && errno == EINTR) { [all...] |
/dalvik/libnativehelper/include/nativehelper/ |
JNIHelp.h | 84 * Returns a new java.io.FileDescriptor for the given int fd. 89 * Returns the int fd from a java.io.FileDescriptor. 91 int jniGetFDFromFileDescriptor(C_JNIEnv* env, jobject fileDescriptor); 94 * Sets the int fd in a java.io.FileDescriptor. 96 void jniSetFileDescriptorOfFD(C_JNIEnv* env, jobject fileDescriptor, int value); 151 inline int jniGetFDFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) { 152 return jniGetFDFromFileDescriptor(&env->functions, fileDescriptor); 155 inline void jniSetFileDescriptorOfFD(JNIEnv* env, jobject fileDescriptor, int value) { 156 jniSetFileDescriptorOfFD(&env->functions, fileDescriptor, value);
|
/external/webkit/Source/WebKit2/Platform/CoreIPC/ |
Attachment.h | 52 Attachment(int fileDescriptor, size_t); 73 int fileDescriptor() const { return m_fileDescriptor; }
|
/external/webkit/Source/WebKit2/Platform/gtk/ |
WorkQueueGtk.cpp | 141 void WorkQueue::registerEventSourceHandler(int fileDescriptor, int condition, PassOwnPtr<WorkItem> item) 143 GRefPtr<GSocket> socket = adoptGRef(g_socket_new_from_fd(fileDescriptor, 0)); 158 EventSourceIterator it = m_eventSources.find(fileDescriptor); 163 m_eventSources.set(fileDescriptor, sources); 169 void WorkQueue::unregisterEventSourceHandler(int fileDescriptor) 171 ASSERT(fileDescriptor); 175 EventSourceIterator it = m_eventSources.find(fileDescriptor); 177 ASSERT(m_eventSources.contains(fileDescriptor));
|
/frameworks/media/libvideoeditor/osal/inc/ |
LVOSA_FileReader_optim.h | 62 M4OSA_Void* fileDescriptor, 66 M4OSA_Void* fileDescriptor,
|
M4OSA_FileReader.h | 77 M4OSA_Void* fileDescriptor, 105 M4OSA_Void* fileDescriptor,
|
M4OSA_FileWriter.h | 73 M4OSA_Void* fileDescriptor, 101 M4OSA_Void* fileDescriptor,
|
/frameworks/base/services/jni/ |
com_android_server_UsbDeviceManager.cpp | 94 jobject fileDescriptor = jniCreateFileDescriptor(env, fd); 95 if (fileDescriptor == NULL) { 99 gParcelFileDescriptorOffsets.mConstructor, fileDescriptor); 135 gParcelFileDescriptorOffsets.mConstructor = env->GetMethodID(clazz, "<init>", "(Ljava/io/FileDescriptor;)V");
|
com_android_server_UsbHostManager.cpp | 160 jobject fileDescriptor = jniCreateFileDescriptor(env, newFD); 161 if (fileDescriptor == NULL) { 165 gParcelFileDescriptorOffsets.mConstructor, fileDescriptor); 195 gParcelFileDescriptorOffsets.mConstructor = env->GetMethodID(clazz, "<init>", "(Ljava/io/FileDescriptor;)V");
|
/external/webkit/Source/WebKit2/Platform/ |
SharedMemory.h | 65 void adoptFromAttachment(int fileDescriptor, size_t);
|
/dalvik/libnativehelper/ |
JNIHelp.cpp | 314 reinterpret_cast<jclass>(env->NewGlobalRef(env->FindClass("java/io/FileDescriptor"))); 336 jobject fileDescriptor = (*env)->NewObject(e, 338 jniSetFileDescriptorOfFD(env, fileDescriptor, fd); 339 return fileDescriptor; 342 int jniGetFDFromFileDescriptor(C_JNIEnv* env, jobject fileDescriptor) { 344 return (*env)->GetIntField(e, fileDescriptor, gCachedFields.descriptorField); 347 void jniSetFileDescriptorOfFD(C_JNIEnv* env, jobject fileDescriptor, int value) { 349 (*env)->SetIntField(e, fileDescriptor, gCachedFields.descriptorField, value);
|
/frameworks/base/core/jni/android/graphics/ |
BitmapRegionDecoder.cpp | 109 jobject fileDescriptor, jboolean isShareable) { 110 NPE_CHECK_RETURN_ZERO(env, fileDescriptor); 112 jint descriptor = jniGetFDFromFileDescriptor(env, fileDescriptor); 288 "(Ljava/io/FileDescriptor;Z)Landroid/graphics/BitmapRegionDecoder;",
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/ |
UsbAccessoryTestActivity.java | 44 import java.io.FileDescriptor; 156 FileDescriptor fileDescriptor = mFileDescriptor.getFileDescriptor(); 157 FileInputStream inputStream = new FileInputStream(fileDescriptor); 158 FileOutputStream outputStream = new FileOutputStream(fileDescriptor);
|
/frameworks/base/media/jni/ |
android_media_MediaScanner.cpp | 272 JNIEnv *env, jobject thiz, jobject fileDescriptor) 281 if (fileDescriptor == NULL) { 286 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 374 "(Ljava/io/FileDescriptor;)[B",
|