/frameworks/native/opengl/tests/gldual/jni/ |
H A D | gl_code.cpp | 152 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_init(JNIEnv * env, jobject obj, jint width, jint height); 153 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_step(JNIEnv * env, jobject obj); 156 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_init(JNIEnv * env, jobject obj, jint width, jint height)
argument 161 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_step(JNIEnv * env, jobject obj) argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapRegionDecoder.cpp | 73 static jobject doBuildTileIndex(JNIEnv* env, SkStream* stream) { argument 77 doThrowIOE(env, "Image format not supported"); 81 JavaPixelAllocator *javaAllocator = new JavaPixelAllocator(env); 89 doThrowIOE(env, msg); 95 return GraphicsJNI::createBitmapRegionDecoder(env, bm); 98 static jobject nativeNewInstanceFromByteArray(JNIEnv* env, jobject, jbyteArray byteArray, argument 104 AutoJavaByteArray ar(env, byteArray); 106 return doBuildTileIndex(env, stream); 109 static jobject nativeNewInstanceFromFileDescriptor(JNIEnv* env, jobject clazz, argument 111 NPE_CHECK_RETURN_ZERO(env, fileDescripto 150 nativeNewInstanceFromStream(JNIEnv* env, jobject clazz, jobject is, jbyteArray storage, jboolean isShareable) argument 166 nativeNewInstanceFromAsset(JNIEnv* env, jobject clazz, jint native_asset, jboolean isShareable) argument 183 nativeDecodeRegion(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd, int start_x, int start_y, int width, int height, jobject options) argument 263 nativeGetHeight(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd) argument 267 nativeGetWidth(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd) argument 271 nativeClean(JNIEnv* env, jobject, SkBitmapRegionDecoder *brd) argument 313 register_android_graphics_BitmapRegionDecoder(JNIEnv* env) argument [all...] |
H A D | CreateJavaOutputStreamAdaptor.cpp | 14 JavaInputStreamAdaptor(JNIEnv* env, jobject js, jbyteArray ar) argument 15 : fEnv(env), fJavaInputStream(js), fJavaByteArray(ar) { 17 fCapacity = env->GetArrayLength(ar); 23 JNIEnv* env = fEnv; local 27 env->CallVoidMethod(fJavaInputStream, gInputStream_resetMethodID); 28 if (env->ExceptionCheck()) { 29 env->ExceptionDescribe(); 30 env->ExceptionClear(); 38 JNIEnv* env = fEnv; local 46 jint n = env 78 JNIEnv* env = fEnv; local 96 JNIEnv* env = fEnv; local 109 JNIEnv* env = fEnv; local 145 CreateJavaInputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage, int markSize) argument 187 SkJavaOutputStream(JNIEnv* env, jobject stream, jbyteArray storage) argument 193 JNIEnv* env = fEnv; local 237 CreateJavaOutputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage) argument [all...] |
H A D | SurfaceTexture.cpp | 49 static void SurfaceTexture_setSurfaceTexture(JNIEnv* env, jobject thiz, argument 53 (SurfaceTexture*)env->GetIntField(thiz, fields.surfaceTexture); 60 env->SetIntField(thiz, fields.surfaceTexture, (int)surfaceTexture.get()); 63 sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz) argument 66 (SurfaceTexture*)env->GetIntField(thiz, fields.surfaceTexture)); 71 JNIEnv* env, jobject thiz) 73 sp<SurfaceTexture> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, thiz)); 79 bool android_SurfaceTexture_isInstanceOf(JNIEnv* env, jobject thiz) argument 81 jclass surfaceTextureClass = env->FindClass(kSurfaceTextureClassPathName); 82 return env 70 android_SurfaceTexture_getNativeWindow( JNIEnv* env, jobject thiz) argument 102 JNISurfaceTextureContext(JNIEnv* env, jobject weakThiz, jclass clazz) argument 110 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 135 JNIEnv* env = getJNIEnv(&needsDetach); local 150 JNIEnv* env = getJNIEnv(&needsDetach); local 163 SurfaceTexture_classInit(JNIEnv* env, jclass clazz) argument 179 SurfaceTexture_init(JNIEnv* env, jobject thiz, jint texName, jobject weakThiz, jboolean allowSynchronous) argument 202 SurfaceTexture_finalize(JNIEnv* env, jobject thiz) argument 209 SurfaceTexture_setDefaultBufferSize( JNIEnv* env, jobject thiz, jint width, jint height) argument 216 SurfaceTexture_updateTexImage(JNIEnv* env, jobject thiz) argument 228 SurfaceTexture_detachFromGLContext(JNIEnv* env, jobject thiz) argument 234 SurfaceTexture_attachToGLContext(JNIEnv* env, jobject thiz, jint tex) argument 240 SurfaceTexture_getTransformMatrix(JNIEnv* env, jobject thiz, jfloatArray jmtx) argument 249 SurfaceTexture_getTimestamp(JNIEnv* env, jobject thiz) argument 255 SurfaceTexture_release(JNIEnv* env, jobject thiz) argument 276 register_android_graphics_SurfaceTexture(JNIEnv* env) argument [all...] |
H A D | Typeface.cpp | 14 AutoJavaStringToUTF8(JNIEnv* env, jstring str) : fEnv(env), fJStr(str) argument 16 fCStr = env->GetStringUTFChars(str, NULL); 30 static SkTypeface* Typeface_create(JNIEnv* env, jobject, jstring name, argument 38 AutoJavaStringToUTF8 str(env, name); 44 static SkTypeface* Typeface_createFromTypeface(JNIEnv* env, jobject, SkTypeface* family, int style) { argument 48 static void Typeface_unref(JNIEnv* env, jobject obj, SkTypeface* face) { argument 52 static int Typeface_getStyle(JNIEnv* env, jobject obj, SkTypeface* face) { argument 115 static SkTypeface* Typeface_createFromAsset(JNIEnv* env, jobject, argument 119 NPE_CHECK_RETURN_ZERO(env, jassetMg 142 Typeface_createFromFile(JNIEnv* env, jobject, jstring jpath) argument 163 Typeface_setGammaForText(JNIEnv* env, jobject, jfloat blackGamma, jfloat whiteGamma) argument 183 register_android_graphics_Typeface(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); 235 env->ReleaseByteArrayElements(inYuv, yuv, 0); 236 env->ReleaseIntArrayElements(offsets, imgOffsets, 0); 237 env->ReleaseIntArrayElements(strides, imgStrides, 0); 251 int register_android_graphics_YuvImage(JNIEnv* env) argument 253 return android::AndroidRuntime::registerNativeMethods(env, kClassPathNam [all...] |
/frameworks/base/core/jni/ |
H A D | android_emoji_EmojiFactory.cpp | 108 JNIEnv* env, EmojiFactory* factory, jstring name) { 109 jobject obj = env->NewObject(gEmojiFactory_class, gEmojiFactory_constructorMethodID, 111 if (env->ExceptionCheck() != 0) { 113 env->ExceptionDescribe(); 119 JNIEnv* env, jobject clazz, jstring name) { 128 const jchar* jchars = env->GetStringChars(name, NULL); 129 jsize len = env->GetStringLength(name); 137 env->ReleaseStringChars(name, jchars); 139 return create_java_EmojiFactory(env, factory, name); 143 JNIEnv* env, jobjec 107 create_java_EmojiFactory( JNIEnv* env, EmojiFactory* factory, jstring name) argument 118 android_emoji_EmojiFactory_newInstance( JNIEnv* env, jobject clazz, jstring name) argument 142 android_emoji_EmojiFactory_newAvailableInstance( JNIEnv* env, jobject clazz) argument 163 android_emoji_EmojiFactory_getBitmapFromAndroidPua( JNIEnv* env, jobject clazz, jint nativeEmojiFactory, jint pua) argument 188 android_emoji_EmojiFactory_destructor( JNIEnv* env, jobject obj, jint nativeEmojiFactory) argument 197 android_emoji_EmojiFactory_getAndroidPuaFromVendorSpecificSjis( JNIEnv* env, jobject obj, jint nativeEmojiFactory, jchar sjis) argument 203 android_emoji_EmojiFactory_getVendorSpecificSjisFromAndroidPua( JNIEnv* env, jobject obj, jint nativeEmojiFactory, jint pua) argument 209 android_emoji_EmojiFactory_getAndroidPuaFromVendorSpecificPua( JNIEnv* env, jobject obj, jint nativeEmojiFactory, jint vsu) argument 215 android_emoji_EmojiFactory_getVendorSpecificPuaFromAndroidPua( JNIEnv* env, jobject obj, jint nativeEmojiFactory, jint pua) argument 221 android_emoji_EmojiFactory_getMaximumVendorSpecificPua( JNIEnv* env, jobject obj, jint nativeEmojiFactory) argument 227 android_emoji_EmojiFactory_getMinimumVendorSpecificPua( JNIEnv* env, jobject obj, jint nativeEmojiFactory) argument 233 android_emoji_EmojiFactory_getMaximumAndroidPua( JNIEnv* env, jobject obj, jint nativeEmojiFactory) argument 239 android_emoji_EmojiFactory_getMinimumAndroidPua( JNIEnv* env, jobject obj, jint nativeEmojiFactory) argument 272 make_globalref(JNIEnv* env, const char classname[]) argument 279 getFieldIDCheck(JNIEnv* env, jclass clazz, const char fieldname[], const char type[]) argument 287 register_android_emoji_EmojiFactory(JNIEnv* env) argument [all...] |
H A D | android_media_AudioSystem.cpp | 57 android_media_AudioSystem_muteMicrophone(JNIEnv *env, jobject thiz, jboolean on) argument 63 android_media_AudioSystem_isMicrophoneMuted(JNIEnv *env, jobject thiz) argument 71 android_media_AudioSystem_isStreamActive(JNIEnv *env, jobject thiz, jint stream, jint inPastMs) argument 79 android_media_AudioSystem_isSourceActive(JNIEnv *env, jobject thiz, jint source) argument 87 android_media_AudioSystem_setParameters(JNIEnv *env, jobject thiz, jstring keyValuePairs) argument 89 const jchar* c_keyValuePairs = env->GetStringCritical(keyValuePairs, 0); 92 c_keyValuePairs8 = String8(c_keyValuePairs, env->GetStringLength(keyValuePairs)); 93 env->ReleaseStringCritical(keyValuePairs, c_keyValuePairs); 100 android_media_AudioSystem_getParameters(JNIEnv *env, jobject thiz, jstring keys) argument 102 const jchar* c_keys = env 114 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 139 android_media_AudioSystem_setDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jint state, jstring device_address) argument 150 android_media_AudioSystem_getDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jstring device_address) argument 160 android_media_AudioSystem_setPhoneState(JNIEnv *env, jobject thiz, jint state) argument 166 android_media_AudioSystem_setForceUse(JNIEnv *env, jobject thiz, jint usage, jint config) argument 173 android_media_AudioSystem_getForceUse(JNIEnv *env, jobject thiz, jint usage) argument 179 android_media_AudioSystem_initStreamVolume(JNIEnv *env, jobject thiz, jint stream, jint indexMin, jint indexMax) argument 187 android_media_AudioSystem_setStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint index, jint device) argument 200 android_media_AudioSystem_getStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint device) argument 216 android_media_AudioSystem_setMasterVolume(JNIEnv *env, jobject thiz, jfloat value) argument 222 android_media_AudioSystem_getMasterVolume(JNIEnv *env, jobject thiz) argument 232 android_media_AudioSystem_setMasterMute(JNIEnv *env, jobject thiz, jboolean mute) argument 238 android_media_AudioSystem_getMasterMute(JNIEnv *env, jobject thiz) argument 248 android_media_AudioSystem_getDevicesForStream(JNIEnv *env, jobject thiz, jint stream) argument 254 android_media_AudioSystem_getPrimaryOutputSamplingRate(JNIEnv *env, jobject clazz) argument 260 android_media_AudioSystem_getPrimaryOutputFrameCount(JNIEnv *env, jobject clazz) argument 291 register_android_media_AudioSystem(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 164 android_media_JetPlayer_loadFromFileD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument 194 android_media_JetPlayer_closeFile(JNIEnv *env, jobject thiz) argument 215 android_media_JetPlayer_play(JNIEnv *env, jobject thiz) argument 238 android_media_JetPlayer_pause(JNIEnv *env, jobject thiz) argument 265 android_media_JetPlayer_queueSegment(JNIEnv *env, jobject thiz, jint segmentNum, jint libNum, jint repeatCount, jint transpose, jint muteFlags, jbyte userID) argument 291 android_media_JetPlayer_queueSegmentMuteArray(JNIEnv *env, jobject thiz, jint segmentNum, jint libNum, jint repeatCount, jint transpose, jbooleanArray muteArray, jbyte userID) argument 337 android_media_JetPlayer_setMuteFlags(JNIEnv *env, jobject thiz, jint muteFlags , jboolean bSync) argument 361 android_media_JetPlayer_setMuteArray(JNIEnv *env, jobject thiz, jbooleanArray muteArray, jboolean bSync) argument 406 android_media_JetPlayer_setMuteFlag(JNIEnv *env, jobject thiz, jint trackId, jboolean muteFlag, jboolean bSync) argument 432 android_media_JetPlayer_triggerClip(JNIEnv *env, jobject thiz, jint clipId) argument 456 android_media_JetPlayer_clearQueue(JNIEnv *env, jobject thiz) argument 506 register_android_media_JetPlayer(JNIEnv *env) argument [all...] |
H A D | android_media_RemoteDisplay.cpp | 52 NativeRemoteDisplayClient(JNIEnv* env, jobject remoteDisplayObj) : argument 53 mRemoteDisplayObjGlobal(env->NewGlobalRef(remoteDisplayObj)) { 58 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 59 env->DeleteGlobalRef(mRemoteDisplayObjGlobal); 65 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 67 jobject surfaceObj = android_view_Surface_createFromISurfaceTexture(env, surfaceTexture); 74 env->CallVoidMethod(mRemoteDisplayObjGlobal, 77 env->DeleteLocalRef(surfaceObj); 78 checkAndClearExceptionFromCallback(env, "notifyDisplayConnected"); 82 JNIEnv* env local 90 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 100 checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) argument 128 nativeListen(JNIEnv* env, jobject remoteDisplayObj, jstring ifaceStr) argument 152 nativeDispose(JNIEnv* env, jobject remoteDisplayObj, jint ptr) argument 166 register_android_media_RemoteDisplay(JNIEnv* env) argument [all...] |
H A D | android_net_NetUtils.cpp | 76 static jint android_net_utils_enableInterface(JNIEnv* env, jobject clazz, jstring ifname) argument 80 const char *nameStr = env->GetStringUTFChars(ifname, NULL); 82 env->ReleaseStringUTFChars(ifname, nameStr); 86 static jint android_net_utils_disableInterface(JNIEnv* env, jobject clazz, jstring ifname) argument 90 const char *nameStr = env->GetStringUTFChars(ifname, NULL); 92 env->ReleaseStringUTFChars(ifname, nameStr); 96 static jint android_net_utils_resetConnections(JNIEnv* env, jobject clazz, argument 101 const char *nameStr = env->GetStringUTFChars(ifname, NULL); 103 ALOGD("android_net_utils_resetConnections in env=%p clazz=%p iface=%s mask=0x%x\n", 104 env, claz 111 android_net_utils_runDhcpCommon(JNIEnv* env, jobject clazz, jstring ifname, jobject info, bool renew) argument 173 android_net_utils_runDhcp(JNIEnv* env, jobject clazz, jstring ifname, jobject info) argument 178 android_net_utils_runDhcpRenew(JNIEnv* env, jobject clazz, jstring ifname, jobject info) argument 184 android_net_utils_stopDhcp(JNIEnv* env, jobject clazz, jstring ifname) argument 194 android_net_utils_releaseDhcpLease(JNIEnv* env, jobject clazz, jstring ifname) argument 204 android_net_utils_getDhcpError(JNIEnv* env, jobject clazz) argument 227 register_android_net_NetworkUtils(JNIEnv* env) argument [all...] |
H A D | android_util_EventLog.cpp | 47 static jint android_util_EventLog_writeEvent_Integer(JNIEnv* env, jobject clazz, argument 57 static jint android_util_EventLog_writeEvent_Long(JNIEnv* env, jobject clazz, argument 67 static jint android_util_EventLog_writeEvent_String(JNIEnv* env, jobject clazz, argument 73 const char *str = value != NULL ? env->GetStringUTFChars(value, NULL) : "NULL"; 83 if (value != NULL) env->ReleaseStringUTFChars(value, str); 91 static jint android_util_EventLog_writeEvent_Array(JNIEnv* env, jobject clazz, argument 94 return android_util_EventLog_writeEvent_String(env, clazz, tag, NULL); 101 jsize copied = 0, num = env->GetArrayLength(value); 103 jobject item = env->GetObjectArrayElement(value, copied); 104 if (item == NULL || env 147 android_util_EventLog_readEvents(JNIEnv* env, jobject clazz, jintArray tags, jobject out) argument 266 register_android_util_EventLog(JNIEnv* env) argument [all...] |
H A D | android_util_XmlBlock.cpp | 34 static jint 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); 51 env->ReleaseByteArrayElements(bArray, b, 0); 54 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); 61 static jint android_content_XmlBlock_nativeGetStringBlock(JNIEnv* env, jobject clazz, argument 66 jniThrowNullPointerException(env, NULL); 73 static jint android_content_XmlBlock_nativeCreateParseState(JNIEnv* env, jobjec argument 93 android_content_XmlBlock_nativeNext(JNIEnv* env, jobject clazz, jint token) argument 125 android_content_XmlBlock_nativeGetNamespace(JNIEnv* env, jobject clazz, jint token) argument 136 android_content_XmlBlock_nativeGetName(JNIEnv* env, jobject clazz, jint token) argument 147 android_content_XmlBlock_nativeGetText(JNIEnv* env, jobject clazz, jint token) argument 158 android_content_XmlBlock_nativeGetLineNumber(JNIEnv* env, jobject clazz, jint token) argument 170 android_content_XmlBlock_nativeGetAttributeCount(JNIEnv* env, jobject clazz, jint token) argument 182 android_content_XmlBlock_nativeGetAttributeNamespace(JNIEnv* env, jobject clazz, jint token, jint idx) argument 194 android_content_XmlBlock_nativeGetAttributeName(JNIEnv* env, jobject clazz, jint token, jint idx) argument 206 android_content_XmlBlock_nativeGetAttributeResource(JNIEnv* env, jobject clazz, jint token, jint idx) argument 218 android_content_XmlBlock_nativeGetAttributeDataType(JNIEnv* env, jobject clazz, jint token, jint idx) argument 230 android_content_XmlBlock_nativeGetAttributeData(JNIEnv* env, jobject clazz, jint token, jint idx) argument 242 android_content_XmlBlock_nativeGetAttributeStringValue(JNIEnv* env, jobject clazz, jint token, jint idx) argument 254 android_content_XmlBlock_nativeGetAttributeIndex(JNIEnv* env, jobject clazz, jint token, jstring ns, jstring name) argument 284 android_content_XmlBlock_nativeGetIdAttribute(JNIEnv* env, jobject clazz, jint token) argument 297 android_content_XmlBlock_nativeGetClassAttribute(JNIEnv* env, jobject clazz, jint token) argument 310 android_content_XmlBlock_nativeGetStyleAttribute(JNIEnv* env, jobject clazz, jint token) argument 334 android_content_XmlBlock_nativeDestroyParseState(JNIEnv* env, jobject clazz, jint token) argument 346 android_content_XmlBlock_nativeDestroy(JNIEnv* env, jobject clazz, jint token) argument 409 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); 184 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 187 env->CallVoidMethod(mReceiverObjGlobal, 191 mMessageQueue->raiseAndClearException(env, "dispatchVsync"); 195 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 198 env 206 nativeInit(JNIEnv* env, jclass clazz, jobject receiverObj, jobject messageQueueObj) argument 228 nativeDispose(JNIEnv* env, jclass clazz, jint receiverPtr) argument 235 nativeScheduleVsync(JNIEnv* env, jclass clazz, jint receiverPtr) argument 268 register_android_view_DisplayEventReceiver(JNIEnv* env) argument [all...] |
H A D | android_view_GLES20DisplayList.cpp | 39 static void android_view_GLES20DisplayList_reset(JNIEnv* env, argument 48 static void android_view_GLES20DisplayList_setCaching(JNIEnv* env, argument 53 static void android_view_GLES20DisplayList_setStaticMatrix(JNIEnv* env, argument 58 static void android_view_GLES20DisplayList_setAnimationMatrix(JNIEnv* env, argument 63 static void android_view_GLES20DisplayList_setClipChildren(JNIEnv* env, argument 68 static void android_view_GLES20DisplayList_setAlpha(JNIEnv* env, argument 73 static void android_view_GLES20DisplayList_setHasOverlappingRendering(JNIEnv* env, argument 78 static void android_view_GLES20DisplayList_setTranslationX(JNIEnv* env, argument 83 static void android_view_GLES20DisplayList_setTranslationY(JNIEnv* env, argument 88 static void android_view_GLES20DisplayList_setRotation(JNIEnv* env, argument 93 android_view_GLES20DisplayList_setRotationX(JNIEnv* env, jobject clazz, DisplayList* displayList, float rx) argument 98 android_view_GLES20DisplayList_setRotationY(JNIEnv* env, jobject clazz, DisplayList* displayList, float ry) argument 103 android_view_GLES20DisplayList_setScaleX(JNIEnv* env, jobject clazz, DisplayList* displayList, float sx) argument 108 android_view_GLES20DisplayList_setScaleY(JNIEnv* env, jobject clazz, DisplayList* displayList, float sy) argument 113 android_view_GLES20DisplayList_setTransformationInfo(JNIEnv* env, jobject clazz, DisplayList* displayList, float alpha, float translationX, float translationY, float rotation, float rotationX, float rotationY, float scaleX, float scaleY) argument 127 android_view_GLES20DisplayList_setPivotX(JNIEnv* env, jobject clazz, DisplayList* displayList, float px) argument 132 android_view_GLES20DisplayList_setPivotY(JNIEnv* env, jobject clazz, DisplayList* displayList, float py) argument 137 android_view_GLES20DisplayList_setCameraDistance(JNIEnv* env, jobject clazz, DisplayList* displayList, float distance) argument 142 android_view_GLES20DisplayList_setLeft(JNIEnv* env, jobject clazz, DisplayList* displayList, int left) argument 147 android_view_GLES20DisplayList_setTop(JNIEnv* env, jobject clazz, DisplayList* displayList, int top) argument 152 android_view_GLES20DisplayList_setRight(JNIEnv* env, jobject clazz, DisplayList* displayList, int right) argument 157 android_view_GLES20DisplayList_setBottom(JNIEnv* env, jobject clazz, DisplayList* displayList, int bottom) argument 162 android_view_GLES20DisplayList_setLeftTop(JNIEnv* env, jobject clazz, DisplayList* displayList, int left, int top) argument 167 android_view_GLES20DisplayList_setLeftTopRightBottom(JNIEnv* env, jobject clazz, DisplayList* displayList, int left, int top, int right, int bottom) argument 173 android_view_GLES20DisplayList_offsetLeftRight(JNIEnv* env, jobject clazz, DisplayList* displayList, int offset) argument 178 android_view_GLES20DisplayList_offsetTopBottom(JNIEnv* env, jobject clazz, DisplayList* displayList, int offset) argument 239 register_android_view_GLES20DisplayList(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 jint intPtr = env->GetIntField(inputChannelObj, gInputChannelClassInfo.mPtr); 88 static void android_view_InputChannel_setNativeInputChannel(JNIEnv* env, jobject inputChannelObj, argument 90 env->SetIntField(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 280 register_android_view_InputChannel(JNIEnv* env) argument [all...] |
H A D | android_view_InputEventReceiver.cpp | 49 NativeInputEventReceiver(JNIEnv* env, 56 status_t consumeEvents(JNIEnv* env, bool consumeBatches, nsecs_t frameTime); 76 NativeInputEventReceiver::NativeInputEventReceiver(JNIEnv* env, argument 79 mReceiverObjGlobal(env->NewGlobalRef(receiverObj)), 88 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 89 env->DeleteGlobalRef(mReceiverObjGlobal); 132 JNIEnv* env = AndroidRuntime::getJNIEnv(); local 133 status_t status = consumeEvents(env, false /*consumeBatches*/, -1); 134 mMessageQueue->raiseAndClearException(env, "handleReceiveCallback"); 138 status_t NativeInputEventReceiver::consumeEvents(JNIEnv* env, argument 227 nativeInit(JNIEnv* env, jclass clazz, jobject receiverObj, jobject inputChannelObj, jobject messageQueueObj) argument 256 nativeDispose(JNIEnv* env, jclass clazz, jint receiverPtr) argument 263 nativeFinishInputEvent(JNIEnv* env, jclass clazz, jint receiverPtr, jint seq, jboolean handled) argument 275 nativeConsumeBatchedInputEvents(JNIEnv* env, jclass clazz, jint receiverPtr, jlong frameTimeNanos) argument 310 register_android_view_InputEventReceiver(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 jint nativeReadFromParcel(JNIEnv *env, jobject clazz, jobject parcelObj) { argument 82 Parcel* parcel = parcelForJavaObject(env, parcelObj); 101 static void nativeWriteToParcel(JNIEnv* env, jobject clazz, jint ptr, jobject parcelObj) { argument 103 Parcel* parcel = parcelForJavaObject(env, parcelObj); 110 static void nativeDispose(JNIEnv *env, jobject clazz, jint ptr) { argument 115 static jchar nativeGetCharacter(JNIEnv *env, jobject clazz, jint ptr, argument 121 static jboolean nativeGetFallbackAction(JNIEnv *env, jobject clazz, jint ptr, jint keyCode, argument 128 env 136 nativeGetNumber(JNIEnv *env, jobject clazz, jint ptr, jint keyCode) argument 141 nativeGetMatch(JNIEnv *env, jobject clazz, jint ptr, jint keyCode, jcharArray charsArray, jint metaState) argument 157 nativeGetDisplayLabel(JNIEnv *env, jobject clazz, jint ptr, jint keyCode) argument 162 nativeGetKeyboardType(JNIEnv *env, jobject clazz, jint ptr) argument 167 nativeGetEvents(JNIEnv *env, jobject clazz, jint ptr, jcharArray charsArray) argument 236 register_android_view_KeyCharacterMap(JNIEnv* env) argument [all...] |
H A D | android_view_KeyEvent.cpp | 51 jobject android_view_KeyEvent_fromNative(JNIEnv* env, const KeyEvent* event) { argument 52 jobject eventObj = env->CallStaticObjectMethod(gKeyEventClassInfo.clazz, 65 if (env->ExceptionCheck()) { 67 LOGE_EX(env); 68 env->ExceptionClear(); 74 status_t android_view_KeyEvent_toNative(JNIEnv* env, jobject eventObj, argument 76 jint deviceId = env->GetIntField(eventObj, gKeyEventClassInfo.mDeviceId); 77 jint source = env->GetIntField(eventObj, gKeyEventClassInfo.mSource); 78 jint metaState = env->GetIntField(eventObj, gKeyEventClassInfo.mMetaState); 79 jint action = env 93 android_view_KeyEvent_recycle(JNIEnv* env, jobject eventObj) argument 104 native_isSystemKey(JNIEnv* env, jobject clazz, jint keyCode) argument 108 native_hasDefaultAction(JNIEnv* env, jobject clazz, jint keyCode) argument 137 register_android_view_KeyEvent(JNIEnv* env) argument [all...] |
H A D | android_view_TextureView.cpp | 55 env->GetIntField(object, field) 58 env->SetIntField(object, field, value) 61 env->CallVoidMethod(object, method, __VA_ARGS__) 67 static void android_view_TextureView_setDefaultBufferSize(JNIEnv* env, jobject, argument 70 sp<SurfaceTexture> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, surface)); 101 static void android_view_TextureView_createNativeWindow(JNIEnv* env, jobject textureView, argument 104 sp<SurfaceTexture> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, surface)); 111 static void android_view_TextureView_destroyNativeWindow(JNIEnv* env, jobject textureView) { argument 123 static void android_view_TextureView_lockCanvas(JNIEnv* env, jobject, argument 174 static void android_view_TextureView_unlockCanvasAndPost(JNIEnv* env, jobjec argument 219 register_android_view_TextureView(JNIEnv* env) argument [all...] |
H A D | android_view_VelocityTracker.cpp | 141 static jint android_view_VelocityTracker_nativeInitialize(JNIEnv* env, jclass clazz, argument 144 ScopedUtfChars strategy(env, strategyStr); 150 static void android_view_VelocityTracker_nativeDispose(JNIEnv* env, jclass clazz, jint ptr) { argument 155 static void android_view_VelocityTracker_nativeClear(JNIEnv* env, jclass clazz, jint ptr) { argument 160 static void android_view_VelocityTracker_nativeAddMovement(JNIEnv* env, jclass clazz, jint ptr, argument 162 const MotionEvent* event = android_view_MotionEvent_getNativePtr(env, eventObj); 172 static void android_view_VelocityTracker_nativeComputeCurrentVelocity(JNIEnv* env, jclass clazz, argument 178 static jfloat android_view_VelocityTracker_nativeGetXVelocity(JNIEnv* env, jclass clazz, argument 186 static jfloat android_view_VelocityTracker_nativeGetYVelocity(JNIEnv* env, jclass clazz, argument 194 static jboolean android_view_VelocityTracker_nativeGetEstimator(JNIEnv* env, jclas argument 253 register_android_view_VelocityTracker(JNIEnv* env) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaCrypto.cpp | 40 static sp<JCrypto> getCrypto(JNIEnv *env, jobject thiz) { argument 41 return (JCrypto *)env->GetIntField(thiz, gFields.context); 45 JNIEnv *env, jobject thiz, 47 mObject = env->NewWeakGlobalRef(thiz); 55 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 57 env->DeleteWeakGlobalRef(mObject); 126 sp<ICrypto> JCrypto::GetCrypto(JNIEnv *env, jobject obj) { argument 127 jclass clazz = env->FindClass("android/media/MediaCrypto"); 130 if (!env->IsInstanceOf(obj, clazz)) { 134 sp<JCrypto> jcrypto = getCrypto(env, ob 44 JCrypto( JNIEnv *env, jobject thiz, const uint8_t uuid[16], const void *initData, size_t initSize) argument 147 setCrypto( JNIEnv *env, jobject thiz, const sp<JCrypto> &crypto) argument 161 android_media_MediaCrypto_release(JNIEnv *env, jobject thiz) argument 165 android_media_MediaCrypto_native_init(JNIEnv *env) argument 173 android_media_MediaCrypto_native_setup( JNIEnv *env, jobject thiz, jbyteArray uuidObj, jbyteArray initDataObj) argument 221 android_media_MediaCrypto_native_finalize( JNIEnv *env, jobject thiz) argument 226 android_media_MediaCrypto_isCryptoSchemeSupportedNative( JNIEnv *env, jobject thiz, jbyteArray uuidObj) argument 249 android_media_MediaCrypto_requiresSecureDecoderComponent( JNIEnv *env, jobject thiz, jstring mimeObj) argument 294 register_android_media_Crypto(JNIEnv *env) argument [all...] |
H A D | android_media_MediaScanner.cpp | 50 static status_t checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument 51 if (env->ExceptionCheck()) { 53 LOGE_EX(env); 54 env->ExceptionClear(); 63 MyMediaScannerClient(JNIEnv *env, jobject client) argument 64 : mEnv(env), 65 mClient(env->NewGlobalRef(client)), 72 env->FindClass(kClassMediaScannerClient); 77 mScanFileMethodID = env->GetMethodID( 82 mHandleStringTagMethodID = env 183 getNativeScanner_l(JNIEnv* env, jobject thiz) argument 188 setNativeScanner_l(JNIEnv* env, jobject thiz, MediaScanner *s) argument 194 android_media_MediaScanner_processDirectory( JNIEnv *env, jobject thiz, jstring path, jobject client) argument 223 android_media_MediaScanner_processFile( JNIEnv *env, jobject thiz, jstring path, jstring mimeType, jobject client) argument 266 android_media_MediaScanner_setLocale( JNIEnv *env, jobject thiz, jstring locale) argument 290 android_media_MediaScanner_extractAlbumArt( JNIEnv *env, jobject thiz, jobject fileDescriptor) argument 332 android_media_MediaScanner_native_init(JNIEnv *env) argument 347 android_media_MediaScanner_native_setup(JNIEnv *env, jobject thiz) argument 361 android_media_MediaScanner_native_finalize(JNIEnv *env, jobject thiz) argument 418 register_android_media_MediaScanner(JNIEnv *env) argument [all...] |
H A D | android_media_Utils.cpp | 30 JNIEnv *env, jobjectArray keys, jobjectArray values, 36 nKeyValuePairs = env->GetArrayLength(keys); 37 failed = (nKeyValuePairs != env->GetArrayLength(values)); 47 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); 54 jstring key = (jstring) env->GetObjectArrayElement(keys, i); 55 jstring value = (jstring) env->GetObjectArrayElement(values, i); 57 const char* keyStr = env->GetStringUTFChars(key, NULL); 62 const char* valueStr = env->GetStringUTFChars(value, NULL); 64 env->ReleaseStringUTFChars(key, keyStr); 70 env 29 ConvertKeyValueArraysToKeyedVector( JNIEnv *env, jobjectArray keys, jobjectArray values, KeyedVector<String8, String8>* keyedVector) argument 78 makeIntegerObject(JNIEnv *env, int32_t value) argument 88 makeLongObject(JNIEnv *env, int64_t value) argument 98 makeFloatObject(JNIEnv *env, float value) argument 108 makeByteBufferObject( JNIEnv *env, const void *data, size_t size) argument 128 SetMapInt32( JNIEnv *env, jobject hashMapObj, jmethodID hashMapPutID, const char *key, int32_t value) argument 141 ConvertMessageToMap( JNIEnv *env, const sp<AMessage> &msg, jobject *map) argument 276 ConvertKeyValueArraysToMessage( JNIEnv *env, jobjectArray keys, jobjectArray values, sp<AMessage> *out) argument [all...] |
/frameworks/base/media/jni/soundpool/ |
H A D | android_media_SoundPool.cpp | 36 static inline SoundPool* MusterSoundPool(JNIEnv *env, jobject thiz) { argument 37 return (SoundPool*)env->GetIntField(thiz, fields.mNativeContext); 42 android_media_SoundPool_load_URL(JNIEnv *env, jobject thiz, jstring path, jint priority) argument 45 SoundPool *ap = MusterSoundPool(env, thiz); 47 jniThrowException(env, "java/lang/IllegalArgumentException", NULL); 50 const char* s = env->GetStringUTFChars(path, NULL); 52 env->ReleaseStringUTFChars(path, s); 57 android_media_SoundPool_load_FD(JNIEnv *env, jobject thiz, jobject fileDescriptor, argument 61 SoundPool *ap = MusterSoundPool(env, thiz); 63 return ap->load(jniGetFDFromFileDescriptor(env, fileDescripto 68 android_media_SoundPool_unload(JNIEnv *env, jobject thiz, jint sampleID) argument 76 android_media_SoundPool_play(JNIEnv *env, jobject thiz, jint sampleID, jfloat leftVolume, jfloat rightVolume, jint priority, jint loop, jfloat rate) argument 87 android_media_SoundPool_pause(JNIEnv *env, jobject thiz, jint channelID) argument 96 android_media_SoundPool_resume(JNIEnv *env, jobject thiz, jint channelID) argument 105 android_media_SoundPool_autoPause(JNIEnv *env, jobject thiz) argument 114 android_media_SoundPool_autoResume(JNIEnv *env, jobject thiz) argument 123 android_media_SoundPool_stop(JNIEnv *env, jobject thiz, jint channelID) argument 132 android_media_SoundPool_setVolume(JNIEnv *env, jobject thiz, jint channelID, float leftVolume, float rightVolume) argument 142 android_media_SoundPool_setPriority(JNIEnv *env, jobject thiz, jint channelID, int priority) argument 152 android_media_SoundPool_setLoop(JNIEnv *env, jobject thiz, jint channelID, int loop) argument 162 android_media_SoundPool_setRate(JNIEnv *env, jobject thiz, jint channelID, float rate) argument 174 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 179 android_media_SoundPool_native_setup(JNIEnv *env, jobject thiz, jobject weakRef, jint maxChannels, jint streamType, jint srcQuality) argument 197 android_media_SoundPool_release(JNIEnv *env, jobject thiz) argument 286 JNIEnv* env = NULL; local [all...] |