/frameworks/base/cmds/app_process/ |
H A D | app_main.cpp | 49 virtual void onVmCreated(JNIEnv* env) argument 69 mClass = env->FindClass(slashClassName); 75 mClass = reinterpret_cast<jclass>(env->NewGlobalRef(mClass));
|
/frameworks/base/core/jni/android/graphics/ |
H A D | CreateJavaOutputStreamAdaptor.cpp | 17 JavaInputStreamAdaptor(JNIEnv* env, jobject js, jbyteArray ar) argument 18 : fEnv(env), fJavaInputStream(js), fJavaByteArray(ar) { 20 fCapacity = env->GetArrayLength(ar); 27 JNIEnv* env = fEnv; local 62 JNIEnv* env = fEnv; local 75 jint n = env->CallIntMethod(fJavaInputStream, 77 if (env->ExceptionCheck()) { 78 env->ExceptionDescribe(); 79 env->ExceptionClear(); 91 env 113 JNIEnv* env = fEnv; local 138 CreateJavaInputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage) argument 166 CopyJavaInputStream(JNIEnv* env, jobject stream, jbyteArray storage) argument 182 SkJavaOutputStream(JNIEnv* env, jobject stream, jbyteArray storage) argument 192 JNIEnv* env = fEnv; local 242 CreateJavaOutputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage) argument 254 findClassCheck(JNIEnv* env, const char classname[]) argument 260 getMethodIDCheck(JNIEnv* env, jclass clazz, const char methodname[], const char type[]) argument 267 register_android_graphics_CreateJavaOutputStreamAdaptor(JNIEnv* env) argument [all...] |
H A D | Movie.cpp | 26 jobject create_jmovie(JNIEnv* env, SkMovie* moov) { argument 30 return env->NewObject(gMovie_class, gMovie_constructorMethodID, 34 static SkMovie* J2Movie(JNIEnv* env, jobject movie) { argument 35 SkASSERT(env); 37 SkASSERT(env->IsInstanceOf(movie, gMovie_class)); 38 SkMovie* m = (SkMovie*)env->GetLongField(movie, gMovie_nativeInstanceID); 45 static jint movie_width(JNIEnv* env, jobject movie) { argument 46 NPE_CHECK_RETURN_ZERO(env, movie); 47 return static_cast<jint>(J2Movie(env, movie)->width()); 50 static jint movie_height(JNIEnv* env, jobjec argument 55 movie_isOpaque(JNIEnv* env, jobject movie) argument 60 movie_duration(JNIEnv* env, jobject movie) argument 65 movie_setTime(JNIEnv* env, jobject movie, jint ms) argument 70 movie_draw(JNIEnv* env, jobject movie, jobject canvas, jfloat fx, jfloat fy, jobject jpaint) argument 84 movie_decodeAsset(JNIEnv* env, jobject clazz, jlong native_asset) argument 94 movie_decodeStream(JNIEnv* env, jobject clazz, jobject istream) argument 117 movie_decodeByteArray(JNIEnv* env, jobject clazz, jbyteArray byteArray, jint offset, jint length) argument 134 movie_destructor(JNIEnv* env, jobject, jlong movieHandle) argument 164 register_android_graphics_Movie(JNIEnv* env) argument [all...] |
H A D | PathMeasure.cpp | 55 static jlong create(JNIEnv* env, jobject clazz, jlong pathHandle, argument 67 static void setPath(JNIEnv* env, jobject clazz, jlong pairHandle, argument 81 static jfloat getLength(JNIEnv* env, jobject clazz, jlong pairHandle) { argument 86 static void convertTwoElemFloatArray(JNIEnv* env, jfloatArray array, const SkScalar src[2]) { argument 87 AutoJavaFloatArray autoArray(env, array, 2); 93 static jboolean getPosTan(JNIEnv* env, jobject clazz, jlong pairHandle, jfloat dist, jfloatArray pos, jfloatArray tan) { argument 104 convertTwoElemFloatArray(env, pos, tmpPos); 107 convertTwoElemFloatArray(env, tan, tmpTan); 112 static jboolean getMatrix(JNIEnv* env, jobject clazz, jlong pairHandle, jfloat dist, argument 120 static jboolean getSegment(JNIEnv* env, jobjec argument 128 isClosed(JNIEnv* env, jobject clazz, jlong pairHandle) argument 134 nextContour(JNIEnv* env, jobject clazz, jlong pairHandle) argument 140 destroy(JNIEnv* env, jobject clazz, jlong pairHandle) argument 158 register_android_graphics_PathMeasure(JNIEnv* env) argument [all...] |
H A D | SurfaceTexture.cpp | 54 static void SurfaceTexture_setSurfaceTexture(JNIEnv* env, jobject thiz, argument 58 (GLConsumer*)env->GetLongField(thiz, fields.surfaceTexture); 65 env->SetLongField(thiz, fields.surfaceTexture, (jlong)surfaceTexture.get()); 68 static void SurfaceTexture_setProducer(JNIEnv* env, jobject thiz, argument 72 (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer); 79 env->SetLongField(thiz, fields.producer, (jlong)producer.get()); 82 static void SurfaceTexture_setFrameAvailableListener(JNIEnv* env, argument 87 env->GetLongField(thiz, fields.frameAvailableListener); 94 env->SetLongField(thiz, fields.frameAvailableListener, (jlong)listener.get()); 97 sp<GLConsumer> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobjec argument 101 SurfaceTexture_getProducer(JNIEnv* env, jobject thiz) argument 105 android_SurfaceTexture_getNativeWindow(JNIEnv* env, jobject thiz) argument 112 android_SurfaceTexture_isInstanceOf(JNIEnv* env, jobject thiz) argument 134 JNISurfaceTextureContext(JNIEnv* env, jobject weakThiz, jclass clazz) argument 142 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 168 JNIEnv* env = getJNIEnv(&needsDetach); local 183 JNIEnv* env = getJNIEnv(&needsDetach); local 202 SurfaceTexture_classInit(JNIEnv* env, jclass clazz) argument 230 SurfaceTexture_init(JNIEnv* env, jobject thiz, jboolean isDetached, jint texName, jboolean singleBufferMode, jobject weakThiz) argument 272 SurfaceTexture_finalize(JNIEnv* env, jobject thiz) argument 281 SurfaceTexture_setDefaultBufferSize( JNIEnv* env, jobject thiz, jint width, jint height) argument 287 SurfaceTexture_updateTexImage(JNIEnv* env, jobject thiz) argument 299 SurfaceTexture_releaseTexImage(JNIEnv* env, jobject thiz) argument 311 SurfaceTexture_detachFromGLContext(JNIEnv* env, jobject thiz) argument 317 SurfaceTexture_attachToGLContext(JNIEnv* env, jobject thiz, jint tex) argument 323 SurfaceTexture_getTransformMatrix(JNIEnv* env, jobject thiz, jfloatArray jmtx) argument 332 SurfaceTexture_getTimestamp(JNIEnv* env, jobject thiz) argument 338 SurfaceTexture_release(JNIEnv* env, jobject thiz) argument 360 register_android_graphics_SurfaceTexture(JNIEnv* env) argument [all...] |
H A D | YuvToJpegEncoder.cpp | 219 static jboolean YuvImage_compressToJpeg(JNIEnv* env, jobject, jbyteArray inYuv, argument 223 jbyte* yuv = env->GetByteArrayElements(inYuv, NULL); 224 SkWStream* strm = CreateJavaOutputStreamAdaptor(env, jstream, jstorage); 226 jint* imgOffsets = env->GetIntArrayElements(offsets, NULL); 227 jint* imgStrides = env->GetIntArrayElements(strides, NULL); 236 env->ReleaseByteArrayElements(inYuv, yuv, 0); 237 env->ReleaseIntArrayElements(offsets, imgOffsets, 0); 238 env->ReleaseIntArrayElements(strides, imgStrides, 0); 252 int register_android_graphics_YuvImage(JNIEnv* env) argument 254 return android::AndroidRuntime::registerNativeMethods(env, kClassPathNam [all...] |
/frameworks/base/core/jni/android/graphics/pdf/ |
H A D | PdfDocument.cpp | 127 static jlong nativeCreateDocument(JNIEnv* env, jobject thiz) { argument 131 static jlong nativeStartPage(JNIEnv* env, jobject thiz, jlong documentPtr, argument 140 static void nativeFinishPage(JNIEnv* env, jobject thiz, jlong documentPtr) { argument 145 static void nativeWriteTo(JNIEnv* env, jobject thiz, jlong documentPtr, jobject out, argument 148 SkWStream* skWStream = CreateJavaOutputStreamAdaptor(env, out, chunk); 153 static void nativeClose(JNIEnv* env, jobject thiz, jlong documentPtr) { argument 166 int register_android_graphics_pdf_PdfDocument(JNIEnv* env) { argument 168 env, "android/graphics/pdf/PdfDocument", gPdfDocument_Methods,
|
/frameworks/base/core/jni/ |
H A D | android_emoji_EmojiFactory.cpp | 105 JNIEnv* env, EmojiFactory* factory, jstring name) { 106 jobject obj = env->NewObject(gEmojiFactory_class, gEmojiFactory_constructorMethodID, 108 if (env->ExceptionCheck() != 0) { 110 env->ExceptionDescribe(); 116 JNIEnv* env, jobject clazz, jstring name) { 125 ScopedUtfChars nameUtf(env, name); 133 return create_java_EmojiFactory(env, factory, name); 137 JNIEnv* env, jobject clazz) { 149 jstring jname = env->NewStringUTF(factory->Name()); 154 return create_java_EmojiFactory(env, factor 104 create_java_EmojiFactory( JNIEnv* env, EmojiFactory* factory, jstring name) argument 115 android_emoji_EmojiFactory_newInstance( JNIEnv* env, jobject clazz, jstring name) argument 136 android_emoji_EmojiFactory_newAvailableInstance( JNIEnv* env, jobject clazz) argument 157 android_emoji_EmojiFactory_getBitmapFromAndroidPua( JNIEnv* env, jobject clazz, jlong nativeEmojiFactory, jint pua) argument 177 android_emoji_EmojiFactory_destructor( JNIEnv* env, jobject obj, jlong nativeEmojiFactory) argument 186 android_emoji_EmojiFactory_getAndroidPuaFromVendorSpecificSjis( JNIEnv* env, jobject obj, jlong nativeEmojiFactory, jchar sjis) argument 192 android_emoji_EmojiFactory_getVendorSpecificSjisFromAndroidPua( JNIEnv* env, jobject obj, jlong nativeEmojiFactory, jint pua) argument 198 android_emoji_EmojiFactory_getAndroidPuaFromVendorSpecificPua( JNIEnv* env, jobject obj, jlong nativeEmojiFactory, jint vsu) argument 204 android_emoji_EmojiFactory_getVendorSpecificPuaFromAndroidPua( JNIEnv* env, jobject obj, jlong nativeEmojiFactory, jint pua) argument 210 android_emoji_EmojiFactory_getMaximumVendorSpecificPua( JNIEnv* env, jobject obj, jlong nativeEmojiFactory) argument 216 android_emoji_EmojiFactory_getMinimumVendorSpecificPua( JNIEnv* env, jobject obj, jlong nativeEmojiFactory) argument 222 android_emoji_EmojiFactory_getMaximumAndroidPua( JNIEnv* env, jobject obj, jlong nativeEmojiFactory) argument 228 android_emoji_EmojiFactory_getMinimumAndroidPua( JNIEnv* env, jobject obj, jlong nativeEmojiFactory) argument 261 make_globalref(JNIEnv* env, const char classname[]) argument 268 getFieldIDCheck(JNIEnv* env, jclass clazz, const char fieldname[], const char type[]) argument 276 register_android_emoji_EmojiFactory(JNIEnv* env) argument [all...] |
H A D | android_hardware_UsbDeviceConnection.cpp | 36 struct usb_device* get_device_from_object(JNIEnv* env, jobject connection) argument 38 return (struct usb_device*)env->GetLongField(connection, field_context); 42 android_hardware_UsbDeviceConnection_open(JNIEnv *env, jobject thiz, jstring deviceName, argument 45 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 51 const char *deviceNameStr = env->GetStringUTFChars(deviceName, NULL); 54 env->SetLongField(thiz, field_context, (jlong)device); 60 env->ReleaseStringUTFChars(deviceName, deviceNameStr); 65 android_hardware_UsbDeviceConnection_close(JNIEnv *env, jobject thiz) argument 68 struct usb_device* device = get_device_from_object(env, thiz); 71 env 76 android_hardware_UsbDeviceConnection_get_fd(JNIEnv *env, jobject thiz) argument 87 android_hardware_UsbDeviceConnection_get_desc(JNIEnv *env, jobject thiz) argument 108 android_hardware_UsbDeviceConnection_claim_interface(JNIEnv *env, jobject thiz, jint interfaceID, jboolean force) argument 127 android_hardware_UsbDeviceConnection_release_interface(JNIEnv *env, jobject thiz, jint interfaceID) argument 143 android_hardware_UsbDeviceConnection_set_interface(JNIEnv *env, jobject thiz, jint interfaceID, jint alternateSetting) argument 156 android_hardware_UsbDeviceConnection_set_configuration(JNIEnv *env, jobject thiz, jint configurationID) argument 168 android_hardware_UsbDeviceConnection_control_request(JNIEnv *env, jobject thiz, jint requestType, jint request, jint value, jint index, jbyteArray buffer, jint start, jint length, jint timeout) argument 194 android_hardware_UsbDeviceConnection_bulk_request(JNIEnv *env, jobject thiz, jint endpoint, jbyteArray buffer, jint start, jint length, jint timeout) argument 218 android_hardware_UsbDeviceConnection_request_wait(JNIEnv *env, jobject thiz) argument 234 android_hardware_UsbDeviceConnection_get_serial(JNIEnv *env, jobject thiz) argument 269 register_android_hardware_UsbDeviceConnection(JNIEnv *env) argument [all...] |
H A D | android_hardware_camera2_legacy_PerfMeasurement.cpp | 82 bool checkGlError(JNIEnv* env) { argument 85 jniThrowExceptionFmt(env, "java/lang/IllegalStateException", 231 static jlong PerfMeasurement_nativeCreateContext(JNIEnv* env, jobject thiz, argument 237 static void PerfMeasurement_nativeDeleteContext(JNIEnv* env, jobject thiz, argument 243 static jboolean PerfMeasurement_nativeQuerySupport(JNIEnv* env, jobject thiz) { argument 245 checkGlError(env); 249 static void PerfMeasurement_nativeStartGlTimer(JNIEnv* env, jobject thiz, argument 257 jniThrowExceptionFmt(env, "java/lang/IllegalStateException", 261 jniThrowExceptionFmt(env, "java/lang/IllegalStateException", 266 jniThrowExceptionFmt(env, "jav 274 PerfMeasurement_nativeStopGlTimer(JNIEnv* env, jobject thiz, jlong contextHandle) argument 294 PerfMeasurement_nativeGetNextGlDuration(JNIEnv* env, jobject thiz, jlong contextHandle) argument 328 register_android_hardware_camera2_legacy_PerfMeasurement(JNIEnv* env) argument [all...] |
H A D | android_hardware_location_ActivityRecognitionHardware.cpp | 36 static void check_and_clear_exceptions(JNIEnv* env, const char* method_name) { argument 37 if (!env->ExceptionCheck()) { 42 LOGE_EX(env); 43 env->ExceptionClear(); 46 static jint attach_thread(JNIEnv** env) { argument 56 jint result = java_vm->AttachCurrentThread(env, &args); 94 JNIEnv* env = NULL; local 95 int result = attach_thread(&env); 102 env->FindClass("android/hardware/location/ActivityRecognitionHardware$Event"); 103 jmethodID event_ctor = env 133 class_init(JNIEnv* env, jclass clazz) argument 166 initialize(JNIEnv* env, jobject obj) argument 183 release(JNIEnv* env, jobject obj) argument 198 is_supported(JNIEnv* env, jclass clazz) argument 208 get_supported_activities(JNIEnv* env, jobject obj) argument 243 enable_activity_event( JNIEnv* env, jobject obj, jint activity_handle, jint event_type, jlong report_latency_ns) argument 259 disable_activity_event( JNIEnv* env, jobject obj, jint activity_handle, jint event_type) argument 273 flush(JNIEnv* env, jobject obj) argument 293 register_android_hardware_location_ActivityRecognitionHardware(JNIEnv* env) argument [all...] |
H A D | android_media_JetPlayer.cpp | 58 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 59 if (env) { 60 env->CallStaticVoidMethod( 64 if (env->ExceptionCheck()) { 65 env->ExceptionDescribe(); 66 env->ExceptionClear(); 69 ALOGE("JET jetPlayerEventCallback(): No JNI env for JET event callback, can't post event."); 79 android_media_JetPlayer_setup(JNIEnv *env, jobject thiz, jobject weak_this, argument 83 JetPlayer* lpJet = new JetPlayer(env->NewGlobalRef(weak_this), maxTracks, trackBufferSize); 90 env 103 android_media_JetPlayer_finalize(JNIEnv *env, jobject thiz) argument 119 android_media_JetPlayer_release(JNIEnv *env, jobject thiz) argument 129 android_media_JetPlayer_loadFromFile(JNIEnv *env, jobject thiz, jstring path) argument 165 android_media_JetPlayer_loadFromFileD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument 196 android_media_JetPlayer_closeFile(JNIEnv *env, jobject thiz) argument 218 android_media_JetPlayer_play(JNIEnv *env, jobject thiz) argument 242 android_media_JetPlayer_pause(JNIEnv *env, jobject thiz) argument 270 android_media_JetPlayer_queueSegment(JNIEnv *env, jobject thiz, jint segmentNum, jint libNum, jint repeatCount, jint transpose, jint muteFlags, jbyte userID) argument 297 android_media_JetPlayer_queueSegmentMuteArray(JNIEnv *env, jobject thiz, jint segmentNum, jint libNum, jint repeatCount, jint transpose, jbooleanArray muteArray, jbyte userID) argument 344 android_media_JetPlayer_setMuteFlags(JNIEnv *env, jobject thiz, jint muteFlags , jboolean bSync) argument 369 android_media_JetPlayer_setMuteArray(JNIEnv *env, jobject thiz, jbooleanArray muteArray, jboolean bSync) argument 415 android_media_JetPlayer_setMuteFlag(JNIEnv *env, jobject thiz, jint trackId, jboolean muteFlag, jboolean bSync) argument 442 android_media_JetPlayer_triggerClip(JNIEnv *env, jobject thiz, jint clipId) argument 467 android_media_JetPlayer_clearQueue(JNIEnv *env, jobject thiz) argument 518 register_android_media_JetPlayer(JNIEnv *env) argument [all...] |
H A D | android_media_RemoteDisplay.cpp | 53 NativeRemoteDisplayClient(JNIEnv* env, jobject remoteDisplayObj) : argument 54 mRemoteDisplayObjGlobal(env->NewGlobalRef(remoteDisplayObj)) { 59 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 60 env->DeleteGlobalRef(mRemoteDisplayObjGlobal); 66 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 68 jobject surfaceObj = android_view_Surface_createFromIGraphicBufferProducer(env, bufferProducer); 75 env->CallVoidMethod(mRemoteDisplayObjGlobal, 78 env->DeleteLocalRef(surfaceObj); 79 checkAndClearExceptionFromCallback(env, "notifyDisplayConnected"); 83 JNIEnv* env local 91 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 101 checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) argument 137 nativeListen(JNIEnv* env, jobject remoteDisplayObj, jstring ifaceStr) argument 161 nativePause(JNIEnv* env, jobject remoteDisplayObj, jlong ptr) argument 166 nativeResume(JNIEnv* env, jobject remoteDisplayObj, jlong ptr) argument 171 nativeDispose(JNIEnv* env, jobject remoteDisplayObj, jlong ptr) argument 189 register_android_media_RemoteDisplay(JNIEnv* env) argument [all...] |
H A D | android_net_NetUtils.cpp | 81 static jint android_net_utils_resetConnections(JNIEnv* env, jobject clazz, argument 86 const char *nameStr = env->GetStringUTFChars(ifname, NULL); 88 ALOGD("android_net_utils_resetConnections in env=%p clazz=%p iface=%s mask=0x%x\n", 89 env, clazz, nameStr, mask); 92 env->ReleaseStringUTFChars(ifname, nameStr); 96 static jboolean android_net_utils_runDhcpCommon(JNIEnv* env, jobject clazz, jstring ifname, argument 114 const char *nameStr = env->GetStringUTFChars(ifname, NULL); 128 env->ReleaseStringUTFChars(ifname, nameStr); 130 env->CallVoidMethod(dhcpResults, dhcpResultsFieldIds.clear); 134 result = env 186 android_net_utils_runDhcp(JNIEnv* env, jobject clazz, jstring ifname, jobject info) argument 191 android_net_utils_runDhcpRenew(JNIEnv* env, jobject clazz, jstring ifname, jobject info) argument 198 android_net_utils_stopDhcp(JNIEnv* env, jobject clazz, jstring ifname) argument 208 android_net_utils_releaseDhcpLease(JNIEnv* env, jobject clazz, jstring ifname) argument 218 android_net_utils_getDhcpError(JNIEnv* env, jobject clazz) argument 223 android_net_utils_bindProcessToNetwork(JNIEnv *env, jobject thiz, jint netId) argument 228 android_net_utils_getNetworkBoundToProcess(JNIEnv *env, jobject thiz) argument 233 android_net_utils_bindProcessToNetworkForHostResolution(JNIEnv *env, jobject thiz, jint netId) argument 239 android_net_utils_bindSocketToNetwork(JNIEnv *env, jobject thiz, jint socket, jint netId) argument 245 android_net_utils_protectFromVpn(JNIEnv *env, jobject thiz, jint socket) argument 270 register_android_net_NetworkUtils(JNIEnv* env) argument [all...] |
H A D | android_net_TrafficStats.cpp | 153 static jlong getTotalStat(JNIEnv* env, jclass clazz, jint type) { argument 163 static jlong getIfaceStat(JNIEnv* env, jclass clazz, jstring iface, jint type) { argument 164 ScopedUtfChars iface8(env, iface); 178 static jlong getUidStat(JNIEnv* env, jclass clazz, jint uid, jint type) { argument 194 int register_android_net_TrafficStats(JNIEnv* env) { argument 195 return AndroidRuntime::registerNativeMethods(env, "android/net/TrafficStats",
|
H A D | android_os_SELinux.cpp | 48 static jboolean isSELinuxEnabled(JNIEnv *env, jobject) { argument 59 static jboolean isSELinuxEnforced(JNIEnv *env, jobject) { argument 70 static jboolean setSELinuxEnforce(JNIEnv *env, jobject, jboolean value) { argument 88 static jstring getPeerCon(JNIEnv *env, jobject, jobject fileDescriptor) { argument 94 jniThrowNullPointerException(env, 99 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); 100 if (env->ExceptionOccurred() != NULL) { 109 ScopedLocalRef<jstring> contextStr(env, NULL); 111 contextStr.reset(env->NewStringUTF(context.get())); 127 static jboolean setFSCreateCon(JNIEnv *env, jobjec argument 158 setFileCon(JNIEnv *env, jobject, jstring pathStr, jstring contextStr) argument 191 getFileCon(JNIEnv *env, jobject, jstring pathStr) argument 222 getCon(JNIEnv *env, jobject) argument 249 getPidCon(JNIEnv *env, jobject, jint pid) argument 275 getBooleanNames(JNIEnv *env, JNIEnv) argument 306 getBooleanValue(JNIEnv *env, jobject, jstring nameStr) argument 331 setBooleanValue(JNIEnv *env, jobject, jstring nameStr, jboolean value) argument 363 checkSELinuxAccess(JNIEnv *env, jobject, jstring subjectContextStr, jstring objectContextStr, jstring objectClassStr, jstring permissionStr) argument 407 native_restorecon(JNIEnv *env, jobject, jstring pathnameStr, jint flags) argument 465 register_android_os_SELinux(JNIEnv *env) argument [all...] |
H A D | android_util_EventLog.cpp | 49 static jint android_util_EventLog_writeEvent_Integer(JNIEnv* env UNUSED, 60 static jint android_util_EventLog_writeEvent_Long(JNIEnv* env UNUSED, 71 static jint android_util_EventLog_writeEvent_String(JNIEnv* env, argument 78 const char *str = value != NULL ? env->GetStringUTFChars(value, NULL) : "NULL"; 88 if (value != NULL) env->ReleaseStringUTFChars(value, str); 96 static jint android_util_EventLog_writeEvent_Array(JNIEnv* env, jobject clazz, argument 99 return android_util_EventLog_writeEvent_String(env, clazz, tag, NULL); 106 jsize copied = 0, num = env->GetArrayLength(value); 108 jobject item = env->GetObjectArrayElement(value, copied); 109 if (item == NULL || env 152 android_util_EventLog_readEvents(JNIEnv* env, jobject clazz UNUSED, jintArray tags, jobject out) argument 264 register_android_util_EventLog(JNIEnv* env) argument [all...] |
H A D | android_util_XmlBlock.cpp | 34 static jlong android_content_XmlBlock_nativeCreate(JNIEnv* env, jobject clazz, argument 39 jniThrowNullPointerException(env, NULL); 43 jsize bLen = env->GetArrayLength(bArray); 45 jniThrowException(env, "java/lang/IndexOutOfBoundsException", NULL); 49 jbyte* b = env->GetByteArrayElements(bArray, NULL); 52 env->ReleaseByteArrayElements(bArray, b, 0); 55 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); 62 static jlong android_content_XmlBlock_nativeGetStringBlock(JNIEnv* env, jobject clazz, argument 67 jniThrowNullPointerException(env, NULL); 74 static jlong android_content_XmlBlock_nativeCreateParseState(JNIEnv* env, jobjec argument 94 android_content_XmlBlock_nativeNext(JNIEnv* env, jobject clazz, jlong token) argument 128 android_content_XmlBlock_nativeGetNamespace(JNIEnv* env, jobject clazz, jlong token) argument 139 android_content_XmlBlock_nativeGetName(JNIEnv* env, jobject clazz, jlong token) argument 150 android_content_XmlBlock_nativeGetText(JNIEnv* env, jobject clazz, jlong token) argument 161 android_content_XmlBlock_nativeGetLineNumber(JNIEnv* env, jobject clazz, jlong token) argument 173 android_content_XmlBlock_nativeGetAttributeCount(JNIEnv* env, jobject clazz, jlong token) argument 185 android_content_XmlBlock_nativeGetAttributeNamespace(JNIEnv* env, jobject clazz, jlong token, jint idx) argument 197 android_content_XmlBlock_nativeGetAttributeName(JNIEnv* env, jobject clazz, jlong token, jint idx) argument 209 android_content_XmlBlock_nativeGetAttributeResource(JNIEnv* env, jobject clazz, jlong token, jint idx) argument 221 android_content_XmlBlock_nativeGetAttributeDataType(JNIEnv* env, jobject clazz, jlong token, jint idx) argument 233 android_content_XmlBlock_nativeGetAttributeData(JNIEnv* env, jobject clazz, jlong token, jint idx) argument 245 android_content_XmlBlock_nativeGetAttributeStringValue(JNIEnv* env, jobject clazz, jlong token, jint idx) argument 257 android_content_XmlBlock_nativeGetAttributeIndex(JNIEnv* env, jobject clazz, jlong token, jstring ns, jstring name) argument 287 android_content_XmlBlock_nativeGetIdAttribute(JNIEnv* env, jobject clazz, jlong token) argument 300 android_content_XmlBlock_nativeGetClassAttribute(JNIEnv* env, jobject clazz, jlong token) argument 313 android_content_XmlBlock_nativeGetStyleAttribute(JNIEnv* env, jobject clazz, jlong token) argument 337 android_content_XmlBlock_nativeDestroyParseState(JNIEnv* env, jobject clazz, jlong token) argument 349 android_content_XmlBlock_nativeDestroy(JNIEnv* env, jobject clazz, jlong token) argument 412 register_android_content_XmlBlock(JNIEnv* env) argument [all...] |
H A D | android_view_DisplayEventReceiver.cpp | 48 NativeDisplayEventReceiver(JNIEnv* env, 71 NativeDisplayEventReceiver::NativeDisplayEventReceiver(JNIEnv* env, argument 73 mReceiverObjGlobal(env->NewGlobalRef(receiverObj)), 79 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 80 env->DeleteGlobalRef(mReceiverObjGlobal); 188 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 191 env->CallVoidMethod(mReceiverObjGlobal, 195 mMessageQueue->raiseAndClearException(env, "dispatchVsync"); 199 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 202 env 210 nativeInit(JNIEnv* env, jclass clazz, jobject receiverObj, jobject messageQueueObj) argument 232 nativeDispose(JNIEnv* env, jclass clazz, jlong receiverPtr) argument 239 nativeScheduleVsync(JNIEnv* env, jclass clazz, jlong receiverPtr) argument 272 register_android_view_DisplayEventReceiver(JNIEnv* env) argument [all...] |
H A D | android_view_GraphicBuffer.cpp | 83 env->GetIntField(object, field) 86 env->SetIntField(object, field, value) 89 env->GetLongField(object, field) 92 env->SetLongField(object, field, value) 95 env->CallVoidMethod(object, method, __VA_ARGS__) 113 static jlong android_view_GraphiceBuffer_create(JNIEnv* env, jobject clazz, argument 134 static void android_view_GraphiceBuffer_destroy(JNIEnv* env, jobject clazz, argument 158 static jboolean android_view_GraphicBuffer_lockCanvas(JNIEnv* env, jobject, argument 207 SkCanvas* nativeCanvas = GraphicsJNI::getNativeCanvas(env, canvas); 218 static jboolean android_view_GraphicBuffer_unlockCanvasAndPost(JNIEnv* env, jobjec argument 237 android_view_GraphiceBuffer_write(JNIEnv* env, jobject clazz, jlong wrapperHandle, jobject dest) argument 247 android_view_GraphiceBuffer_read(JNIEnv* env, jobject clazz, jobject in) argument 264 graphicBufferForJavaObject(JNIEnv* env, jobject obj) argument 309 register_android_view_GraphicBuffer(JNIEnv* env) argument [all...] |
H A D | android_view_InputChannel.cpp | 50 void invokeAndRemoveDisposeCallback(JNIEnv* env, jobject obj); 72 void NativeInputChannel::invokeAndRemoveDisposeCallback(JNIEnv* env, jobject obj) { argument 74 mDisposeCallback(env, obj, mInputChannel, mDisposeData); 82 static NativeInputChannel* android_view_InputChannel_getNativeInputChannel(JNIEnv* env, argument 84 jlong longPtr = env->GetLongField(inputChannelObj, gInputChannelClassInfo.mPtr); 88 static void android_view_InputChannel_setNativeInputChannel(JNIEnv* env, jobject inputChannelObj, argument 90 env->SetLongField(inputChannelObj, gInputChannelClassInfo.mPtr, 94 sp<InputChannel> android_view_InputChannel_getInputChannel(JNIEnv* env, jobject inputChannelObj) { argument 96 android_view_InputChannel_getNativeInputChannel(env, inputChannelObj); 100 void android_view_InputChannel_setDisposeCallback(JNIEnv* env, jobjec argument 111 android_view_InputChannel_createInputChannel(JNIEnv* env, NativeInputChannel* nativeInputChannel) argument 121 android_view_InputChannel_nativeOpenInputChannelPair(JNIEnv* env, jclass clazz, jstring nameObj) argument 160 android_view_InputChannel_nativeDispose(JNIEnv* env, jobject obj, jboolean finalized) argument 176 android_view_InputChannel_nativeTransferTo(JNIEnv* env, jobject obj, jobject otherObj) argument 190 android_view_InputChannel_nativeReadFromParcel(JNIEnv* env, jobject obj, jobject parcelObj) argument 220 android_view_InputChannel_nativeWriteToParcel(JNIEnv* env, jobject obj, jobject parcelObj) argument 238 android_view_InputChannel_nativeGetName(JNIEnv* env, jobject obj) argument 249 android_view_InputChannel_nativeDup(JNIEnv* env, jobject obj, jobject otherObj) argument 291 register_android_view_InputChannel(JNIEnv* env) argument [all...] |
H A D | android_view_InputEventReceiver.cpp | 52 NativeInputEventReceiver(JNIEnv* env, 59 status_t consumeEvents(JNIEnv* env, bool consumeBatches, nsecs_t frameTime, 89 NativeInputEventReceiver::NativeInputEventReceiver(JNIEnv* env, argument 92 mReceiverWeakGlobal(env->NewGlobalRef(receiverWeak)), 101 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 102 env->DeleteGlobalRef(mReceiverWeakGlobal); 170 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 171 status_t status = consumeEvents(env, false /*consumeBatches*/, -1, NULL); 172 mMessageQueue->raiseAndClearException(env, "handleReceiveCallback"); 194 JNIEnv* env local 217 consumeEvents(JNIEnv* env, bool consumeBatches, nsecs_t frameTime, bool* outConsumedBatch) argument 333 nativeInit(JNIEnv* env, jclass clazz, jobject receiverWeak, jobject inputChannelObj, jobject messageQueueObj) argument 362 nativeDispose(JNIEnv* env, jclass clazz, jlong receiverPtr) argument 369 nativeFinishInputEvent(JNIEnv* env, jclass clazz, jlong receiverPtr, jint seq, jboolean handled) argument 381 nativeConsumeBatchedInputEvents(JNIEnv* env, jclass clazz, jlong receiverPtr, jlong frameTimeNanos) argument 420 register_android_view_InputEventReceiver(JNIEnv* env) argument [all...] |
H A D | android_view_InputEventSender.cpp | 51 NativeInputEventSender(JNIEnv* env, 75 status_t receiveFinishedSignals(JNIEnv* env); 79 NativeInputEventSender::NativeInputEventSender(JNIEnv* env, argument 82 mSenderWeakGlobal(env->NewGlobalRef(senderWeak)), 91 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 92 env->DeleteGlobalRef(mSenderWeakGlobal); 172 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 173 status_t status = receiveFinishedSignals(env); 174 mMessageQueue->raiseAndClearException(env, "handleReceiveCallback"); 178 status_t NativeInputEventSender::receiveFinishedSignals(JNIEnv* env) { argument 233 nativeInit(JNIEnv* env, jclass clazz, jobject senderWeak, jobject inputChannelObj, jobject messageQueueObj) argument 262 nativeDispose(JNIEnv* env, jclass clazz, jlong senderPtr) argument 269 nativeSendKeyEvent(JNIEnv* env, jclass clazz, jlong senderPtr, jint seq, jobject eventObj) argument 279 nativeSendMotionEvent(JNIEnv* env, jclass clazz, jlong senderPtr, jint seq, jobject eventObj) argument 311 register_android_view_InputEventSender(JNIEnv* env) argument [all...] |
H A D | android_view_InputQueue.cpp | 50 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 51 mInputQueueWeakGlobal = env->NewGlobalRef(inputQueueObj); 56 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 57 env->DeleteGlobalRef(mInputQueueWeakGlobal); 135 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 136 ScopedLocalRef<jobject> inputQueueObj(env, jniGetReferent(env, mInputQueueWeakGlobal)); 153 env->CallVoidMethod(inputQueueObj.get(), gInputQueueClassInfo.finishInputEvent, 196 static jlong nativeInit(JNIEnv* env, jobject clazz, jobject queueWeak, jobject jMsgQueue) { argument 197 sp<MessageQueue> messageQueue = android_os_MessageQueue_getMessageQueue(env, jMsgQueu 211 nativeDispose(JNIEnv* env, jobject clazz, jlong ptr) argument 217 nativeSendKeyEvent(JNIEnv* env, jobject clazz, jlong ptr, jobject eventObj, jboolean predispatch) argument 236 nativeSendMotionEvent(JNIEnv* env, jobject clazz, jlong ptr, jobject eventObj) argument 271 register_android_view_InputQueue(JNIEnv* env) argument [all...] |
H A D | android_view_KeyCharacterMap.cpp | 69 jobject android_view_KeyCharacterMap_create(JNIEnv* env, int32_t deviceId, argument 77 return env->NewObject(gKeyCharacterMapClassInfo.clazz, gKeyCharacterMapClassInfo.ctor, 81 static jlong nativeReadFromParcel(JNIEnv *env, jobject clazz, jobject parcelObj) { argument 82 Parcel* parcel = parcelForJavaObject(env, parcelObj); 101 static void nativeWriteToParcel(JNIEnv* env, jobject clazz, jlong ptr, jobject parcelObj) { argument 103 Parcel* parcel = parcelForJavaObject(env, parcelObj); 110 static void nativeDispose(JNIEnv *env, jobject clazz, jlong ptr) { argument 115 static jchar nativeGetCharacter(JNIEnv *env, jobject clazz, jlong ptr, argument 121 static jboolean nativeGetFallbackAction(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode, argument 128 env 136 nativeGetNumber(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode) argument 141 nativeGetMatch(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode, jcharArray charsArray, jint metaState) argument 157 nativeGetDisplayLabel(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode) argument 162 nativeGetKeyboardType(JNIEnv *env, jobject clazz, jlong ptr) argument 167 nativeGetEvents(JNIEnv *env, jobject clazz, jlong ptr, jcharArray charsArray) argument 236 register_android_view_KeyCharacterMap(JNIEnv* env) argument [all...] |