Searched refs:env (Results 76 - 100 of 315) sorted by relevance

1234567891011>>

/frameworks/base/media/jni/
H A Dandroid_media_MediaDrm.cpp39 var = env->FindClass(className); \
43 var = env->GetFieldID(clazz, fieldName, fieldDescriptor); \
47 var = env->GetMethodID(clazz, fieldName, fieldDescriptor); \
51 var = env->GetStaticFieldID(clazz, fieldName, fieldDescriptor); \
55 var = env->GetStaticMethodID(clazz, fieldName, fieldDescriptor); \
143 JNIDrmListener(JNIEnv* env, jobject thiz, jobject weak_thiz);
152 JNIDrmListener::JNIDrmListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
156 jclass clazz = env->GetObjectClass(thiz);
159 jniThrowException(env, "java/lang/Exception",
163 mClass = (jclass)env
173 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
202 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
221 throwStateException(JNIEnv *env, const char *msg, status_t err) argument
230 throwExceptionAsNecessary( JNIEnv *env, status_t err, const char *msg = NULL) argument
298 GetDrm(JNIEnv *env, jobject thiz) argument
303 JDrm( JNIEnv *env, jobject thiz, const uint8_t uuid[16]) argument
313 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
401 JByteArrayToVector(JNIEnv *env, jbyteArray const &byteArray) argument
409 VectorToJByteArray(JNIEnv *env, Vector<uint8_t> const &vector) argument
418 JStringToString8(JNIEnv *env, jstring const &jstr) argument
441 HashMapToKeyedVector(JNIEnv *env, jobject &hashMap) argument
484 KeyedVectorToHashMap(JNIEnv *env, KeyedVector<String8, String8> const &map) argument
497 ListOfVectorsToArrayListOfByteArray(JNIEnv *env, List<Vector<uint8_t> > list) argument
516 setDrm( JNIEnv *env, jobject thiz, const sp<JDrm> &drm) argument
530 CheckSession(JNIEnv *env, const sp<IDrm> &drm, jbyteArray const &jsessionId) argument
544 android_media_MediaDrm_release(JNIEnv *env, jobject thiz) argument
552 android_media_MediaDrm_native_init(JNIEnv *env) argument
630 android_media_MediaDrm_native_setup( JNIEnv *env, jobject thiz, jobject weak_this, jbyteArray uuidObj) argument
664 android_media_MediaDrm_native_finalize( JNIEnv *env, jobject thiz) argument
669 android_media_MediaDrm_isCryptoSchemeSupportedNative( JNIEnv *env, jobject thiz, jbyteArray uuidObj, jstring jmimeType) argument
695 android_media_MediaDrm_openSession( JNIEnv *env, jobject thiz) argument
715 android_media_MediaDrm_closeSession( JNIEnv *env, jobject thiz, jbyteArray jsessionId) argument
730 android_media_MediaDrm_getKeyRequest( JNIEnv *env, jobject thiz, jbyteArray jsessionId, jbyteArray jinitData, jstring jmimeType, jint jkeyType, jobject joptParams) argument
797 android_media_MediaDrm_provideKeyResponse( JNIEnv *env, jobject thiz, jbyteArray jsessionId, jbyteArray jresponse) argument
823 android_media_MediaDrm_removeKeys( JNIEnv *env, jobject thiz, jbyteArray jkeysetId) argument
840 android_media_MediaDrm_restoreKeys( JNIEnv *env, jobject thiz, jbyteArray jsessionId, jbyteArray jkeysetId) argument
863 android_media_MediaDrm_queryKeyStatus( JNIEnv *env, jobject thiz, jbyteArray jsessionId) argument
883 android_media_MediaDrm_getProvisionRequestNative( JNIEnv *env, jobject thiz, jint jcertType, jstring jcertAuthority) argument
930 android_media_MediaDrm_provideProvisionResponseNative( JNIEnv *env, jobject thiz, jbyteArray jresponse) argument
969 android_media_MediaDrm_unprovisionDeviceNative( JNIEnv *env, jobject thiz) argument
985 android_media_MediaDrm_getSecureStops( JNIEnv *env, jobject thiz) argument
1006 android_media_MediaDrm_getSecureStop( JNIEnv *env, jobject thiz, jbyteArray ssid) argument
1027 android_media_MediaDrm_releaseSecureStops( JNIEnv *env, jobject thiz, jbyteArray jssRelease) argument
1044 android_media_MediaDrm_releaseAllSecureStops( JNIEnv *env, jobject thiz) argument
1059 android_media_MediaDrm_getPropertyString( JNIEnv *env, jobject thiz, jstring jname) argument
1087 android_media_MediaDrm_getPropertyByteArray( JNIEnv *env, jobject thiz, jstring jname) argument
1115 android_media_MediaDrm_setPropertyString( JNIEnv *env, jobject thiz, jstring jname, jstring jvalue) argument
1145 android_media_MediaDrm_setPropertyByteArray( JNIEnv *env, jobject thiz, jstring jname, jbyteArray jvalue) argument
1175 android_media_MediaDrm_setCipherAlgorithmNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jstring jalgorithm) argument
1199 android_media_MediaDrm_setMacAlgorithmNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jstring jalgorithm) argument
1224 android_media_MediaDrm_encryptNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jbyteArray jkeyId, jbyteArray jinput, jbyteArray jiv) argument
1255 android_media_MediaDrm_decryptNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jbyteArray jkeyId, jbyteArray jinput, jbyteArray jiv) argument
1285 android_media_MediaDrm_signNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jbyteArray jkeyId, jbyteArray jmessage) argument
1315 android_media_MediaDrm_verifyNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jbyteArray jkeyId, jbyteArray jmessage, jbyteArray jsignature) argument
1344 android_media_MediaDrm_signRSANative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jstring jalgorithm, jbyteArray jwrappedKey, jbyteArray jmessage) argument
1468 register_android_media_Drm(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaExtractor.cpp59 JavaDataSourceBridge(JNIEnv *env, jobject source) { argument
60 mDataSource = env->NewGlobalRef(source);
62 jclass datasourceclass = env->GetObjectClass(mDataSource);
65 mReadMethod = env->GetMethodID(datasourceclass, "readAt", "(J[BI)I");
68 mGetSizeMethod = env->GetMethodID(datasourceclass, "getSize", "()J");
71 mCloseMethod = env->GetMethodID(datasourceclass, "close", "()V");
76 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
77 env->CallVoidMethod(mDataSource, mCloseMethod);
78 env->DeleteGlobalRef(mDataSource);
86 JNIEnv *env local
105 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
121 JMediaExtractor(JNIEnv *env, jobject thiz) argument
134 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
168 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
180 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
204 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
324 setMediaExtractor( JNIEnv *env, jobject thiz, const sp<JMediaExtractor> &extractor) argument
340 getMediaExtractor(JNIEnv *env, jobject thiz) argument
344 android_media_MediaExtractor_release(JNIEnv *env, jobject thiz) argument
348 android_media_MediaExtractor_getTrackCount( JNIEnv *env, jobject thiz) argument
360 android_media_MediaExtractor_getTrackFormatNative( JNIEnv *env, jobject thiz, jint index) argument
380 android_media_MediaExtractor_getFileFormatNative( JNIEnv *env, jobject thiz) argument
400 android_media_MediaExtractor_selectTrack( JNIEnv *env, jobject thiz, jint index) argument
417 android_media_MediaExtractor_unselectTrack( JNIEnv *env, jobject thiz, jint index) argument
434 android_media_MediaExtractor_seekTo( JNIEnv *env, jobject thiz, jlong timeUs, jint mode) argument
452 android_media_MediaExtractor_advance( JNIEnv *env, jobject thiz) argument
473 android_media_MediaExtractor_readSampleData( JNIEnv *env, jobject thiz, jobject byteBuf, jint offset) argument
495 android_media_MediaExtractor_getSampleTrackIndex( JNIEnv *env, jobject thiz) argument
517 android_media_MediaExtractor_getSampleTime( JNIEnv *env, jobject thiz) argument
539 android_media_MediaExtractor_getSampleFlags( JNIEnv *env, jobject thiz) argument
561 android_media_MediaExtractor_getSampleCryptoInfo( JNIEnv *env, jobject thiz, jobject cryptoInfoObj) argument
665 android_media_MediaExtractor_native_init(JNIEnv *env) argument
681 android_media_MediaExtractor_native_setup( JNIEnv *env, jobject thiz) argument
687 android_media_MediaExtractor_setDataSource( JNIEnv *env, jobject thiz, jobject httpServiceBinderObj, jstring pathObj, jobjectArray keysArray, jobjectArray valuesArray) argument
737 android_media_MediaExtractor_setDataSourceFd( JNIEnv *env, jobject thiz, jobject fileDescObj, jlong offset, jlong length) argument
765 android_media_MediaExtractor_setDataSourceCallback( JNIEnv *env, jobject thiz, jobject callbackObj) argument
792 android_media_MediaExtractor_getCachedDurationUs( JNIEnv *env, jobject thiz) argument
810 android_media_MediaExtractor_hasCacheReachedEOS( JNIEnv *env, jobject thiz) argument
828 android_media_MediaExtractor_native_finalize( JNIEnv *env, jobject thiz) argument
894 register_android_media_MediaExtractor(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaCodec.cpp89 JNIEnv *env, jobject thiz,
93 jclass clazz = env->GetObjectClass(thiz);
96 mClass = (jclass)env->NewGlobalRef(clazz);
97 mObject = env->NewWeakGlobalRef(thiz);
99 cacheJavaObjects(env);
117 void JMediaCodec::cacheJavaObjects(JNIEnv *env) { argument
118 jclass clazz = (jclass)env->FindClass("java/nio/ByteBuffer");
119 mByteBufferClass = (jclass)env->NewGlobalRef(clazz);
123 env, env
88 JMediaCodec( JNIEnv *env, jobject thiz, const char *name, bool nameIsType, bool encoder) argument
194 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
203 deleteJavaObjects(JNIEnv *env) argument
294 dequeueOutputBuffer( JNIEnv *env, jobject bufferInfo, size_t *index, int64_t timeoutUs) argument
329 getFormat(JNIEnv *env, bool input, jobject *format) const argument
340 getOutputFormat(JNIEnv *env, size_t index, jobject *format) const argument
350 getBuffers( JNIEnv *env, bool input, jobjectArray *bufArray) const argument
391 createByteBufferFromABuffer( JNIEnv *env, bool readOnly, bool clearBuffer, const sp<ABuffer> &buffer, jobject *buf) const argument
429 getBuffer( JNIEnv *env, bool input, size_t index, jobject *buf) const argument
446 getImage( JNIEnv *env, bool input, size_t index, jobject *buf) const argument
541 getName(JNIEnv *env, jstring *nameStr) const argument
565 createCodecException( JNIEnv *env, status_t err, int32_t actionCode, const char *msg = NULL) argument
597 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
705 setMediaCodec( JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) argument
725 getMediaCodec(JNIEnv *env, jobject thiz) argument
729 android_media_MediaCodec_release(JNIEnv *env, jobject thiz) argument
733 throwCodecException(JNIEnv *env, status_t err, int32_t actionCode, const char *msg) argument
738 throwCryptoException(JNIEnv *env, status_t err, const char *msg) argument
773 throwExceptionAsNecessary( JNIEnv *env, status_t err, int32_t actionCode = ACTION_CODE_FATAL, const char *msg = NULL) argument
803 android_media_MediaCodec_native_setCallback( JNIEnv *env, jobject thiz, jobject cb) argument
819 android_media_MediaCodec_native_configure( JNIEnv *env, jobject thiz, jobjectArray keys, jobjectArray values, jobject jsurface, jobject jcrypto, jint flags) argument
865 android_media_MediaCodec_createInputSurface(JNIEnv* env, jobject thiz) argument
888 android_media_MediaCodec_start(JNIEnv *env, jobject thiz) argument
903 android_media_MediaCodec_stop(JNIEnv *env, jobject thiz) argument
918 android_media_MediaCodec_reset(JNIEnv *env, jobject thiz) argument
940 android_media_MediaCodec_flush(JNIEnv *env, jobject thiz) argument
955 android_media_MediaCodec_queueInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jint size, jlong timestampUs, jint flags) argument
981 android_media_MediaCodec_queueSecureInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jobject cryptoInfoObj, jlong timestampUs, jint flags) argument
1123 android_media_MediaCodec_dequeueInputBuffer( JNIEnv *env, jobject thiz, jlong timeoutUs) argument
1144 android_media_MediaCodec_dequeueOutputBuffer( JNIEnv *env, jobject thiz, jobject bufferInfo, jlong timeoutUs) argument
1166 android_media_MediaCodec_releaseOutputBuffer( JNIEnv *env, jobject thiz, jint index, jboolean render, jboolean updatePTS, jlong timestampNs) argument
1183 android_media_MediaCodec_signalEndOfInputStream(JNIEnv* env, jobject thiz) argument
1198 android_media_MediaCodec_getFormatNative( JNIEnv *env, jobject thiz, jboolean input) argument
1221 android_media_MediaCodec_getOutputFormatForIndexNative( JNIEnv *env, jobject thiz, jint index) argument
1244 android_media_MediaCodec_getBuffers( JNIEnv *env, jobject thiz, jboolean input) argument
1270 android_media_MediaCodec_getBuffer( JNIEnv *env, jobject thiz, jboolean input, jint index) argument
1296 android_media_MediaCodec_getImage( JNIEnv *env, jobject thiz, jboolean input, jint index) argument
1322 android_media_MediaCodec_getName( JNIEnv *env, jobject thiz) argument
1345 android_media_MediaCodec_setParameters( JNIEnv *env, jobject thiz, jobjectArray keys, jobjectArray vals) argument
1366 android_media_MediaCodec_setVideoScalingMode( JNIEnv *env, jobject thiz, jint mode) argument
1384 android_media_MediaCodec_native_init(JNIEnv *env) argument
1459 android_media_MediaCodec_native_setup( JNIEnv *env, jobject thiz, jstring name, jboolean nameIsType, jboolean encoder) argument
1497 android_media_MediaCodec_native_finalize( JNIEnv *env, jobject thiz) argument
1574 register_android_media_MediaCodec(JNIEnv *env) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_app_backup_FullBackup.cpp73 static jint backupToTar(JNIEnv* env, jobject clazz, jstring packageNameObj, argument
79 const char* packagenamechars = (packageNameObj) ? env->GetStringUTFChars(packageNameObj, NULL) : NULL;
80 const char* rootchars = (rootpathObj) ? env->GetStringUTFChars(rootpathObj, NULL) : NULL;
81 const char* pathchars = (pathObj) ? env->GetStringUTFChars(pathObj, NULL) : NULL;
82 const char* domainchars = (domainObj) ? env->GetStringUTFChars(domainObj, NULL) : NULL;
89 if (domainchars) env->ReleaseStringUTFChars(domainObj, domainchars);
90 if (pathchars) env->ReleaseStringUTFChars(pathObj, pathchars);
91 if (rootchars) env->ReleaseStringUTFChars(rootpathObj, rootchars);
92 if (packagenamechars) env->ReleaseStringUTFChars(packageNameObj, packagenamechars);
95 BackupDataWriter* writer = (BackupDataWriter*) env
119 register_android_app_backup_FullBackup(JNIEnv* env) argument
[all...]
H A Dcom_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp31 static jlong createAccelerateDecelerateInterpolator(JNIEnv* env, jobject clazz) { argument
35 static jlong createAccelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { argument
39 static jlong createAnticipateInterpolator(JNIEnv* env, jobject clazz, jfloat tension) { argument
43 static jlong createAnticipateOvershootInterpolator(JNIEnv* env, jobject clazz, jfloat tension) { argument
47 static jlong createBounceInterpolator(JNIEnv* env, jobject clazz) { argument
51 static jlong createCycleInterpolator(JNIEnv* env, jobject clazz, jfloat cycles) { argument
55 static jlong createDecelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { argument
59 static jlong createLinearInterpolator(JNIEnv* env, jobject clazz) { argument
63 static jlong createOvershootInterpolator(JNIEnv* env, jobject clazz, jfloat tension) { argument
67 static jlong createLutInterpolator(JNIEnv* env, jobjec argument
100 register_com_android_internal_view_animation_NativeInterpolatorFactoryHelper(JNIEnv* env) argument
[all...]
H A Dandroid_view_PointerIcon.cpp43 jobject android_view_PointerIcon_getSystemIcon(JNIEnv* env, jobject contextObj, int32_t style) { argument
44 jobject pointerIconObj = env->CallStaticObjectMethod(gPointerIconClassInfo.clazz,
46 if (env->ExceptionCheck()) {
48 LOGW_EX(env);
49 env->ExceptionClear();
55 status_t android_view_PointerIcon_load(JNIEnv* env, jobject pointerIconObj, jobject contextObj, argument
63 jobject loadedPointerIconObj = env->CallObjectMethod(pointerIconObj,
65 if (env->ExceptionCheck() || !loadedPointerIconObj) {
67 LOGW_EX(env);
68 env
92 android_view_PointerIcon_loadSystemIcon(JNIEnv* env, jobject contextObj, int32_t style, PointerIcon* outPointerIcon) argument
126 register_android_view_PointerIcon(JNIEnv* env) argument
[all...]
H A Dandroid_hardware_UsbDeviceConnection.cpp36 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 Dandroid_util_Log.cpp74 static jboolean android_util_Log_isLoggable(JNIEnv* env, jobject clazz, jstring tag, jint level) argument
80 const char* chars = env->GetStringUTFChars(tag, NULL);
91 jniThrowException(env, "java/lang/IllegalArgumentException", buf2);
96 env->ReleaseStringUTFChars(tag, chars);
108 static jint android_util_Log_println_native(JNIEnv* env, jobject clazz, argument
115 jniThrowNullPointerException(env, "println needs a message");
120 jniThrowNullPointerException(env, "bad bufID");
125 tag = env->GetStringUTFChars(tagObj, NULL);
126 msg = env->GetStringUTFChars(msgObj, NULL);
131 env
146 register_android_util_Log(JNIEnv* env) argument
[all...]
H A Dandroid_util_XmlBlock.cpp34 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 Dandroid_animation_PropertyValuesHolder.cpp33 JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName)
35 const char *nativeString = env->GetStringUTFChars(methodName, 0);
36 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(I)V");
37 env->ReleaseStringUTFChars(methodName, nativeString);
42 JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName)
44 const char *nativeString = env->GetStringUTFChars(methodName, 0);
45 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(F)V");
46 env->ReleaseStringUTFChars(methodName, nativeString);
50 static jlong getMultiparameterMethod(JNIEnv* env, jclass targetClass, jstring methodName, argument
53 const char *nativeString = env
32 android_animation_PropertyValuesHolder_getIntMethod( JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName) argument
41 android_animation_PropertyValuesHolder_getFloatMethod( JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName) argument
64 android_animation_PropertyValuesHolder_getMultipleFloatMethod( JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName, jint parameterCount) argument
70 android_animation_PropertyValuesHolder_getMultipleIntMethod( JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName, jint parameterCount) argument
76 android_animation_PropertyValuesHolder_callIntMethod( JNIEnv* env, jclass pvhObject, jobject target, jlong methodID, jint arg) argument
82 android_animation_PropertyValuesHolder_callFloatMethod( JNIEnv* env, jclass pvhObject, jobject target, jlong methodID, jfloat arg) argument
88 android_animation_PropertyValuesHolder_callTwoFloatMethod( JNIEnv* env, jclass pvhObject, jobject target, jlong methodID, float arg1, float arg2) argument
94 android_animation_PropertyValuesHolder_callFourFloatMethod( JNIEnv* env, jclass pvhObject, jobject target, jlong methodID, float arg1, float arg2, float arg3, float arg4) argument
101 android_animation_PropertyValuesHolder_callMultipleFloatMethod( JNIEnv* env, jclass pvhObject, jobject target, jlong methodID, jfloatArray arg) argument
115 android_animation_PropertyValuesHolder_callTwoIntMethod( JNIEnv* env, jclass pvhObject, jobject target, jlong methodID, int arg1, int arg2) argument
121 android_animation_PropertyValuesHolder_callFourIntMethod( JNIEnv* env, jclass pvhObject, jobject target, jlong methodID, int arg1, int arg2, int arg3, int arg4) argument
128 android_animation_PropertyValuesHolder_callMultipleIntMethod( JNIEnv* env, jclass pvhObject, jobject target, jlong methodID, jintArray arg) argument
169 register_android_animation_PropertyValuesHolder(JNIEnv* env) argument
[all...]
H A Dandroid_server_NetworkManagementSocketTagger.cpp33 static jint QTagUid_tagSocketFd(JNIEnv* env, jclass, argument
36 int userFd = jniGetFDFromFileDescriptor(env, fileDescriptor);
38 if (env->ExceptionOccurred() != NULL) {
50 static jint QTagUid_untagSocketFd(JNIEnv* env, jclass, argument
52 int userFd = jniGetFDFromFileDescriptor(env, fileDescriptor);
54 if (env->ExceptionOccurred() != NULL) {
66 static jint QTagUid_setCounterSet(JNIEnv* env, jclass, argument
76 static jint QTagUid_deleteTagData(JNIEnv* env, jclass, argument
93 int register_android_server_NetworkManagementSocketTagger(JNIEnv* env) { argument
94 return jniRegisterNativeMethods(env, "co
[all...]
H A Dandroid_util_FloatMath.cpp9 static float FloorF(JNIEnv* env, jobject clazz, float x) { argument
13 static float CeilF(JNIEnv* env, jobject clazz, float x) { argument
17 static float SinF(JNIEnv* env, jobject clazz, float x) { argument
21 static float CosF(JNIEnv* env, jobject clazz, float x) { argument
25 static float SqrtF(JNIEnv* env, jobject clazz, float x) { argument
29 static float ExpF(JNIEnv* env, jobject clazz, float x) { argument
33 static float PowF(JNIEnv* env, jobject clazz, float x, float y) { argument
37 static float HypotF(JNIEnv* env, jobject clazz, float x, float y) { argument
53 int register_android_util_FloatMath(JNIEnv* env) argument
55 int result = android::AndroidRuntime::registerNativeMethods(env,
[all...]
H A Dandroid_view_MotionEvent.cpp66 MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj) { argument
71 env->GetLongField(eventObj, gMotionEventClassInfo.mNativePtr));
74 static void android_view_MotionEvent_setNativePtr(JNIEnv* env, jobject eventObj, argument
76 env->SetLongField(eventObj, gMotionEventClassInfo.mNativePtr,
80 jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* event) { argument
81 jobject eventObj = env->CallStaticObjectMethod(gMotionEventClassInfo.clazz,
83 if (env->ExceptionCheck() || !eventObj) {
85 LOGE_EX(env);
86 env->ExceptionClear();
90 MotionEvent* destEvent = android_view_MotionEvent_getNativePtr(env, eventOb
100 android_view_MotionEvent_recycle(JNIEnv* env, jobject eventObj) argument
115 validatePointerCount(JNIEnv* env, jint pointerCount) argument
124 validatePointerPropertiesArray(JNIEnv* env, jobjectArray pointerPropertiesObjArray, size_t pointerCount) argument
140 validatePointerCoordsObjArray(JNIEnv* env, jobjectArray pointerCoordsObjArray, size_t pointerCount) argument
156 validatePointerIndex(JNIEnv* env, jint pointerIndex, size_t pointerCount) argument
165 validateHistoryPos(JNIEnv* env, jint historyPos, size_t historySize) argument
174 validatePointerCoords(JNIEnv* env, jobject pointerCoordsObj) argument
183 validatePointerProperties(JNIEnv* env, jobject pointerPropertiesObj) argument
192 pointerCoordsToNative(JNIEnv* env, jobject pointerCoordsObj, float xOffset, float yOffset, PointerCoords* outRawPointerCoords) argument
235 obtainPackedAxisValuesArray(JNIEnv* env, uint32_t minSize, jobject outPointerCoordsObj) argument
256 pointerCoordsFromNative(JNIEnv* env, const PointerCoords* rawPointerCoords, float xOffset, float yOffset, jobject outPointerCoordsObj) argument
313 pointerPropertiesToNative(JNIEnv* env, jobject pointerPropertiesObj, PointerProperties* outPointerProperties) argument
322 pointerPropertiesFromNative(JNIEnv* env, const PointerProperties* pointerProperties, jobject outPointerPropertiesObj) argument
333 android_view_MotionEvent_nativeInitialize(JNIEnv* env, jclass clazz, jlong nativePtr, jint deviceId, jint source, jint action, jint flags, jint edgeFlags, jint metaState, jint buttonState, jfloat xOffset, jfloat yOffset, jfloat xPrecision, jfloat yPrecision, jlong downTimeNanos, jlong eventTimeNanos, jint pointerCount, jobjectArray pointerPropertiesObjArray, jobjectArray pointerCoordsObjArray) argument
385 android_view_MotionEvent_nativeCopy(JNIEnv* env, jclass clazz, jlong destNativePtr, jlong sourceNativePtr, jboolean keepHistory) argument
396 android_view_MotionEvent_nativeDispose(JNIEnv* env, jclass clazz, jlong nativePtr) argument
402 android_view_MotionEvent_nativeAddBatch(JNIEnv* env, jclass clazz, jlong nativePtr, jlong eventTimeNanos, jobjectArray pointerCoordsObjArray, jint metaState) argument
428 android_view_MotionEvent_nativeGetDeviceId(JNIEnv* env, jclass clazz, jlong nativePtr) argument
434 android_view_MotionEvent_nativeGetSource(JNIEnv* env, jclass clazz, jlong nativePtr) argument
440 android_view_MotionEvent_nativeSetSource(JNIEnv* env, jclass clazz, jlong nativePtr, jint source) argument
446 android_view_MotionEvent_nativeGetAction(JNIEnv* env, jclass clazz, jlong nativePtr) argument
452 android_view_MotionEvent_nativeSetAction(JNIEnv* env, jclass clazz, jlong nativePtr, jint action) argument
458 android_view_MotionEvent_nativeIsTouchEvent(JNIEnv* env, jclass clazz, jlong nativePtr) argument
464 android_view_MotionEvent_nativeGetFlags(JNIEnv* env, jclass clazz, jlong nativePtr) argument
470 android_view_MotionEvent_nativeSetFlags(JNIEnv* env, jclass clazz, jlong nativePtr, jint flags) argument
476 android_view_MotionEvent_nativeGetEdgeFlags(JNIEnv* env, jclass clazz, jlong nativePtr) argument
482 android_view_MotionEvent_nativeSetEdgeFlags(JNIEnv* env, jclass clazz, jlong nativePtr, jint edgeFlags) argument
488 android_view_MotionEvent_nativeGetMetaState(JNIEnv* env, jclass clazz, jlong nativePtr) argument
494 android_view_MotionEvent_nativeGetButtonState(JNIEnv* env, jclass clazz, jlong nativePtr) argument
500 android_view_MotionEvent_nativeOffsetLocation(JNIEnv* env, jclass clazz, jlong nativePtr, jfloat deltaX, jfloat deltaY) argument
506 android_view_MotionEvent_nativeGetXOffset(JNIEnv* env, jclass clazz, jlong nativePtr) argument
512 android_view_MotionEvent_nativeGetYOffset(JNIEnv* env, jclass clazz, jlong nativePtr) argument
518 android_view_MotionEvent_nativeGetXPrecision(JNIEnv* env, jclass clazz, jlong nativePtr) argument
524 android_view_MotionEvent_nativeGetYPrecision(JNIEnv* env, jclass clazz, jlong nativePtr) argument
530 android_view_MotionEvent_nativeGetDownTimeNanos(JNIEnv* env, jclass clazz, jlong nativePtr) argument
536 android_view_MotionEvent_nativeSetDownTimeNanos(JNIEnv* env, jclass clazz, jlong nativePtr, jlong downTimeNanos) argument
542 android_view_MotionEvent_nativeGetPointerCount(JNIEnv* env, jclass clazz, jlong nativePtr) argument
548 android_view_MotionEvent_nativeGetPointerId(JNIEnv* env, jclass clazz, jlong nativePtr, jint pointerIndex) argument
558 android_view_MotionEvent_nativeGetToolType(JNIEnv* env, jclass clazz, jlong nativePtr, jint pointerIndex) argument
568 android_view_MotionEvent_nativeFindPointerIndex(JNIEnv* env, jclass clazz, jlong nativePtr, jint pointerId) argument
574 android_view_MotionEvent_nativeGetHistorySize(JNIEnv* env, jclass clazz, jlong nativePtr) argument
580 android_view_MotionEvent_nativeGetEventTimeNanos(JNIEnv* env, jclass clazz, jlong nativePtr, jint historyPos) argument
594 android_view_MotionEvent_nativeGetRawAxisValue(JNIEnv* env, jclass clazz, jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) argument
613 android_view_MotionEvent_nativeGetAxisValue(JNIEnv* env, jclass clazz, jlong nativePtr, jint axis, jint pointerIndex, jint historyPos) argument
632 android_view_MotionEvent_nativeGetPointerCoords(JNIEnv* env, jclass clazz, jlong nativePtr, jint pointerIndex, jint historyPos, jobject outPointerCoordsObj) argument
655 android_view_MotionEvent_nativeGetPointerProperties(JNIEnv* env, jclass clazz, jlong nativePtr, jint pointerIndex, jobject outPointerPropertiesObj) argument
668 android_view_MotionEvent_nativeScale(JNIEnv* env, jclass clazz, jlong nativePtr, jfloat scale) argument
674 android_view_MotionEvent_nativeTransform(JNIEnv* env, jclass clazz, jlong nativePtr, jobject matrixObj) argument
692 android_view_MotionEvent_nativeReadFromParcel(JNIEnv* env, jclass clazz, jlong nativePtr, jobject parcelObj) argument
712 android_view_MotionEvent_nativeWriteToParcel(JNIEnv* env, jclass clazz, jlong nativePtr, jobject parcelObj) argument
723 android_view_MotionEvent_nativeAxisToString(JNIEnv* env, jclass clazz, jint axis) argument
728 android_view_MotionEvent_nativeAxisFromString(JNIEnv* env, jclass clazz, jstring label) argument
872 register_android_view_MotionEvent(JNIEnv* env) argument
[all...]
H A Dandroid_backup_BackupDataInput.cpp33 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) argument
35 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor);
44 dtor_native(JNIEnv* env, jobject clazz, jlong r) argument
50 readNextHeader_native(JNIEnv* env, jobject clazz, jlong r, jobject entity) argument
77 jstring keyStr = env->NewStringUTF(key.string());
78 env->SetObjectField(entity, s_keyField, keyStr);
79 env->SetIntField(entity, s_dataSizeField, dataSize);
92 readEntityData_native(JNIEnv* env, jobject clazz, jlong r, jbyteArray data, jint offset, jint size) argument
97 if (env->GetArrayLength(data) < (size+offset)) {
102 jbyte* dataBytes = env
115 skipEntityData_native(JNIEnv* env, jobject clazz, jlong r) argument
134 register_android_backup_BackupDataInput(JNIEnv* env) argument
[all...]
H A Dandroid_view_Surface.cpp86 bool android_view_Surface_isInstanceOf(JNIEnv* env, jobject obj) { argument
87 return env->IsInstanceOf(obj, gSurfaceClassInfo.clazz);
90 sp<ANativeWindow> android_view_Surface_getNativeWindow(JNIEnv* env, jobject surfaceObj) { argument
91 return android_view_Surface_getSurface(env, surfaceObj);
94 sp<Surface> android_view_Surface_getSurface(JNIEnv* env, jobject surfaceObj) { argument
96 jobject lock = env->GetObjectField(surfaceObj,
98 if (env->MonitorEnter(lock) == JNI_OK) {
100 env->GetLongField(surfaceObj, gSurfaceClassInfo.mNativeObject));
101 env->MonitorExit(lock);
103 env
107 android_view_Surface_createFromIGraphicBufferProducer(JNIEnv* env, const sp<IGraphicBufferProducer>& bufferProducer) argument
140 nativeCreateFromSurfaceTexture(JNIEnv* env, jclass clazz, jobject surfaceTextureObj) argument
159 nativeRelease(JNIEnv* env, jclass clazz, jlong nativeObject) argument
164 nativeIsValid(JNIEnv* env, jclass clazz, jlong nativeObject) argument
169 nativeIsConsumerRunningBehind(JNIEnv* env, jclass clazz, jlong nativeObject) argument
195 nativeLockCanvas(JNIEnv* env, jclass clazz, jlong nativeObject, jobject canvasObj, jobject dirtyRectObj) argument
268 nativeUnlockCanvasAndPost(JNIEnv* env, jclass clazz, jlong nativeObject, jobject canvasObj) argument
297 nativeCreateFromSurfaceControl(JNIEnv* env, jclass clazz, jlong surfaceControlNativeObj) argument
313 nativeReadFromParcel(JNIEnv* env, jclass clazz, jlong nativeObject, jobject parcelObj) argument
349 nativeWriteToParcel(JNIEnv* env, jclass clazz, jlong nativeObject, jobject parcelObj) argument
360 nativeGetWidth(JNIEnv* env, jclass clazz, jlong nativeObject) argument
368 nativeGetHeight(JNIEnv* env, jclass clazz, jlong nativeObject) argument
387 create(JNIEnv* env, jclass clazz, jlong rootNodePtr, jlong surfacePtr) argument
401 setSurface(JNIEnv* env, jclass clazz, jlong rendererPtr, jlong surfacePtr) argument
407 draw(JNIEnv* env, jclass clazz, jlong rendererPtr) argument
413 destroy(JNIEnv* env, jclass clazz, jlong rendererPtr) argument
455 register_android_view_Surface(JNIEnv* env) argument
[all...]
H A Dandroid_hardware_location_ActivityRecognitionHardware.cpp36 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 Dcom_android_internal_net_NetworkStatsFactory.cpp63 static jobjectArray get_string_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument
66 jobjectArray array = (jobjectArray)env->GetObjectField(obj, field);
71 return env->NewObjectArray(size, gStringClass, NULL);
74 static jintArray get_int_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument
77 jintArray array = (jintArray)env->GetObjectField(obj, field);
82 return env->NewIntArray(size);
85 static jlongArray get_long_array(JNIEnv* env, jobject obj, jfieldID field, int size, bool grow) argument
88 jlongArray array = (jlongArray)env->GetObjectField(obj, field);
93 return env->NewLongArray(size);
96 static int readNetworkStatsDetail(JNIEnv* env, jclas argument
286 findClass(JNIEnv* env, const char* name) argument
302 register_com_android_internal_net_NetworkStatsFactory(JNIEnv* env) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DMaskFilter.cpp9 static void ThrowIAE_IfNull(JNIEnv* env, void* ptr) { argument
11 doThrowIAE(env);
17 static void destructor(JNIEnv* env, jobject, jlong filterHandle) { argument
22 static jlong createBlur(JNIEnv* env, jobject, jfloat radius, jint blurStyle) { argument
25 ThrowIAE_IfNull(env, filter);
29 static jlong createEmboss(JNIEnv* env, jobject, jfloatArray dirArray, jfloat ambient, jfloat specular, jfloat radius) { argument
32 AutoJavaFloatArray autoDir(env, dirArray, 3);
41 ThrowIAE_IfNull(env, filter);
45 static jlong createTable(JNIEnv* env, jobject, jbyteArray jtable) { argument
46 AutoJavaByteArray autoTable(env, jtabl
51 createClipTable(JNIEnv* env, jobject, jint min, jint max) argument
56 createGammaTable(JNIEnv* env, jobject, jfloat gamma) argument
86 register_android_graphics_MaskFilter(JNIEnv* env) argument
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_gl_frame.cpp44 jboolean Java_android_filterfw_core_GLFrame_nativeAllocate(JNIEnv* env, argument
49 GLEnv* gl_env_ptr = ConvertFromJava<GLEnv>(env, gl_env);
53 return ToJBool(WrapObjectInJava(frame, env, thiz, true));
60 jboolean Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture(JNIEnv* env, argument
66 GLEnv* gl_env_ptr = ConvertFromJava<GLEnv>(env, gl_env);
70 return ToJBool(WrapObjectInJava(frame, env, thiz, true));
77 jboolean Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo(JNIEnv* env, argument
83 GLEnv* gl_env_ptr = ConvertFromJava<GLEnv>(env, gl_env);
87 return ToJBool(WrapObjectInJava(frame, env, thiz, true));
94 jboolean Java_android_filterfw_core_GLFrame_nativeAllocateExternal(JNIEnv* env, argument
108 Java_android_filterfw_core_GLFrame_nativeDeallocate(JNIEnv* env, jobject thiz) argument
112 Java_android_filterfw_core_GLFrame_setNativeData(JNIEnv* env, jobject thiz, jbyteArray data, jint offset, jint length) argument
129 Java_android_filterfw_core_GLFrame_getNativeData(JNIEnv* env, jobject thiz) argument
141 Java_android_filterfw_core_GLFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints) argument
158 Java_android_filterfw_core_GLFrame_getNativeInts(JNIEnv* env, jobject thiz) argument
170 Java_android_filterfw_core_GLFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray floats) argument
194 Java_android_filterfw_core_GLFrame_getNativeFloats(JNIEnv* env, jobject thiz) argument
216 Java_android_filterfw_core_GLFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size) argument
233 Java_android_filterfw_core_GLFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap) argument
248 Java_android_filterfw_core_GLFrame_setNativeViewport(JNIEnv* env, jobject thiz, jint x, jint y, jint width, jint height) argument
258 Java_android_filterfw_core_GLFrame_getNativeTextureId(JNIEnv* env, jobject thiz) argument
263 Java_android_filterfw_core_GLFrame_getNativeFboId(JNIEnv* env, jobject thiz) argument
268 Java_android_filterfw_core_GLFrame_generateNativeMipMap(JNIEnv* env, jobject thiz) argument
273 Java_android_filterfw_core_GLFrame_setNativeTextureParam(JNIEnv* env, jobject thiz, jint param, jint value) argument
281 Java_android_filterfw_core_GLFrame_nativeResetParams(JNIEnv* env, jobject thiz) argument
286 Java_android_filterfw_core_GLFrame_nativeCopyFromNative(JNIEnv* env, jobject thiz, jobject frame) argument
297 Java_android_filterfw_core_GLFrame_nativeCopyFromGL(JNIEnv* env, jobject thiz, jobject frame) argument
308 Java_android_filterfw_core_GLFrame_nativeFocus(JNIEnv* env, jobject thiz) argument
313 Java_android_filterfw_core_GLFrame_nativeReattachTexToFbo(JNIEnv* env, jobject thiz) argument
318 Java_android_filterfw_core_GLFrame_nativeDetachTexFromFbo(JNIEnv* env, jobject thiz) argument
[all...]
H A Djni_native_frame.cpp35 jboolean Java_android_filterfw_core_NativeFrame_nativeAllocate(JNIEnv* env, argument
38 return ToJBool(WrapObjectInJava(new NativeFrame(size), env, thiz, true));
41 jboolean Java_android_filterfw_core_NativeFrame_nativeDeallocate(JNIEnv* env, jobject thiz) { argument
42 return ToJBool(DeleteNativeObject<NativeFrame>(env, thiz));
53 jboolean Java_android_filterfw_core_NativeFrame_setNativeData(JNIEnv* env, argument
58 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thiz);
60 jbyte* bytes = env->GetByteArrayElements(data, NULL);
65 env->ReleaseByteArrayElements(data, bytes, JNI_ABORT);
72 jbyteArray Java_android_filterfw_core_NativeFrame_getNativeData(JNIEnv* env, argument
75 NativeFrame* frame = ConvertFromJava<NativeFrame>(env, thi
87 Java_android_filterfw_core_NativeFrame_getNativeBuffer(JNIEnv* env, jobject thiz, jobject buffer) argument
98 Java_android_filterfw_core_NativeFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints) argument
116 Java_android_filterfw_core_NativeFrame_getNativeInts(JNIEnv* env, jobject thiz, jint size) argument
132 Java_android_filterfw_core_NativeFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray floats) argument
150 Java_android_filterfw_core_NativeFrame_getNativeFloats(JNIEnv* env, jobject thiz, jint size) argument
166 Java_android_filterfw_core_NativeFrame_setNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument
216 Java_android_filterfw_core_NativeFrame_getNativeBitmap(JNIEnv* env, jobject thiz, jobject bitmap, jint size, jint bytes_per_sample) argument
268 Java_android_filterfw_core_NativeFrame_getNativeCapacity(JNIEnv* env, jobject thiz) argument
273 Java_android_filterfw_core_NativeFrame_nativeCopyFromNative(JNIEnv* env, jobject thiz, jobject frame) argument
284 Java_android_filterfw_core_NativeFrame_nativeCopyFromGL(JNIEnv* env, jobject thiz, jobject frame) argument
[all...]
H A Djni_gl_frame.h27 Java_android_filterfw_core_GLFrame_nativeAllocate(JNIEnv* env,
34 Java_android_filterfw_core_GLFrame_nativeAllocateWithTexture(JNIEnv* env,
42 Java_android_filterfw_core_GLFrame_nativeAllocateWithFbo(JNIEnv* env,
50 Java_android_filterfw_core_GLFrame_nativeAllocateExternal(JNIEnv* env,
55 Java_android_filterfw_core_GLFrame_nativeDeallocate(JNIEnv* env, jobject thiz);
58 Java_android_filterfw_core_GLFrame_setNativeInts(JNIEnv* env, jobject thiz, jintArray ints);
61 Java_android_filterfw_core_GLFrame_getNativeInts(JNIEnv* env, jobject thiz);
64 Java_android_filterfw_core_GLFrame_setNativeFloats(JNIEnv* env, jobject thiz, jfloatArray ints);
67 Java_android_filterfw_core_GLFrame_getNativeFloats(JNIEnv* env, jobject thiz);
70 Java_android_filterfw_core_GLFrame_setNativeData(JNIEnv* env,
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_location_GpsLocationProvider.cpp79 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
80 if (env->ExceptionCheck()) {
82 LOGE_EX(env);
83 env->ExceptionClear();
89 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
90 env->CallVoidMethod(mCallbacksObj, method_reportLocation, location->flags,
95 checkAndClearExceptionFromCallback(env, __FUNCTION__);
100 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
101 env->CallVoidMethod(mCallbacksObj, method_reportStatus, status->status);
102 checkAndClearExceptionFromCallback(env, __FUNCTION_
107 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
115 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
127 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
144 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
169 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
185 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
211 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
301 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
333 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
340 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
354 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
367 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
394 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
404 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
414 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
424 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
442 android_location_GpsLocationProvider_class_init_native(JNIEnv* env, jclass clazz) argument
512 android_location_GpsLocationProvider_is_supported(JNIEnv* env, jclass clazz) argument
520 android_location_GpsLocationProvider_init(JNIEnv* env, jobject obj) argument
546 android_location_GpsLocationProvider_cleanup(JNIEnv* env, jobject obj) argument
552 android_location_GpsLocationProvider_set_position_mode(JNIEnv* env, jobject obj, jint mode, jint recurrence, jint min_interval, jint preferred_accuracy, jint preferred_time) argument
567 android_location_GpsLocationProvider_start(JNIEnv* env, jobject obj) argument
580 android_location_GpsLocationProvider_stop(JNIEnv* env, jobject obj) argument
593 android_location_GpsLocationProvider_delete_aiding_data(JNIEnv* env, jobject obj, jint flags) argument
599 android_location_GpsLocationProvider_read_sv_status(JNIEnv* env, jobject obj, jintArray prnArray, jfloatArray snrArray, jfloatArray elevArray, jfloatArray azumArray, jintArray maskArray) argument
630 android_location_GpsLocationProvider_agps_set_reference_location_cellid(JNIEnv* env, jobject obj, jint type, jint mcc, jint mnc, jint lac, jint cid) argument
657 android_location_GpsLocationProvider_agps_send_ni_message(JNIEnv* env, jobject obj, jbyteArray ni_msg, jint size) argument
674 android_location_GpsLocationProvider_agps_set_id(JNIEnv *env, jobject obj, jint type, jstring setid_string) argument
687 android_location_GpsLocationProvider_read_nmea(JNIEnv* env, jobject obj, jbyteArray nmeaArray, jint buffer_size) argument
700 android_location_GpsLocationProvider_inject_time(JNIEnv* env, jobject obj, jlong time, jlong timeReference, jint uncertainty) argument
707 android_location_GpsLocationProvider_inject_location(JNIEnv* env, jobject obj, jdouble latitude, jdouble longitude, jfloat accuracy) argument
714 android_location_GpsLocationProvider_supports_xtra(JNIEnv* env, jobject obj) argument
723 android_location_GpsLocationProvider_inject_xtra_data(JNIEnv* env, jobject obj, jbyteArray data, jint length) argument
736 android_location_GpsLocationProvider_agps_data_conn_open( JNIEnv* env, jobject obj, jstring apn, jint apnIpType) argument
762 android_location_GpsLocationProvider_agps_data_conn_closed(JNIEnv* env, jobject obj) argument
771 android_location_GpsLocationProvider_agps_data_conn_failed(JNIEnv* env, jobject obj) argument
780 android_location_GpsLocationProvider_set_agps_server(JNIEnv* env, jobject obj, jint type, jstring hostname, jint port) argument
792 android_location_GpsLocationProvider_send_ni_response(JNIEnv* env, jobject obj, jint notifId, jint response) argument
803 android_location_GpsLocationProvider_get_internal_state(JNIEnv* env, jobject obj) argument
817 android_location_GpsLocationProvider_update_network_state(JNIEnv* env, jobject obj, jboolean connected, jint type, jboolean roaming, jboolean available, jstring extraInfo, jstring apn) argument
840 android_location_GpsLocationProvider_is_geofence_supported(JNIEnv* env, jobject obj) argument
848 android_location_GpsLocationProvider_add_geofence(JNIEnv* env, jobject obj, jint geofence_id, jdouble latitude, jdouble longitude, jdouble radius, jint last_transition, jint monitor_transition, jint notification_responsiveness, jint unknown_timer) argument
863 android_location_GpsLocationProvider_remove_geofence(JNIEnv* env, jobject obj, jint geofence_id) argument
874 android_location_GpsLocationProvider_pause_geofence(JNIEnv* env, jobject obj, jint geofence_id) argument
885 android_location_GpsLocationProvider_resume_geofence(JNIEnv* env, jobject obj, jint geofence_id, jint monitor_transition) argument
896 translate_gps_clock(JNIEnv* env, GpsClock* clock) argument
955 translate_gps_measurement(JNIEnv* env, GpsMeasurement* measurement) argument
1202 translate_gps_measurements(JNIEnv* env, GpsData* data) argument
1226 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
1265 android_location_GpsLocationProvider_is_measurement_supported( JNIEnv* env, jclass clazz) argument
1274 android_location_GpsLocationProvider_start_measurement_collection( JNIEnv* env, jobject obj) argument
1291 android_location_GpsLocationProvider_stop_measurement_collection( JNIEnv* env, jobject obj) argument
1303 translate_gps_navigation_message(JNIEnv* env, GpsNavigationMessage* message) argument
1339 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
1375 android_location_GpsLocationProvider_is_navigation_message_supported( JNIEnv* env, jclass clazz) argument
1384 android_location_GpsLocationProvider_start_navigation_message_collection( JNIEnv* env, jobject obj) argument
1401 android_location_GpsLocationProvider_stop_navigation_message_collection( JNIEnv* env, jobject obj) argument
1413 android_location_GpsLocationProvider_configuration_update(JNIEnv* env, jobject obj, jstring config_content) argument
1519 register_android_server_location_GpsLocationProvider(JNIEnv* env) argument
[all...]
H A Dcom_android_server_input_InputWindowHandle.cpp71 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
72 env->DeleteWeakGlobalRef(mObjWeak);
75 jobject NativeInputWindowHandle::getInputWindowHandleObjLocalRef(JNIEnv* env) { argument
76 return env->NewLocalRef(mObjWeak);
80 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
81 jobject obj = env->NewLocalRef(mObjWeak);
93 jobject inputChannelObj = env->GetObjectField(obj,
96 mInfo->inputChannel = android_view_InputChannel_getInputChannel(env, inputChannelObj);
97 env->DeleteLocalRef(inputChannelObj);
102 jstring nameObj = jstring(env
169 android_server_InputWindowHandle_getHandle( JNIEnv* env, jobject inputWindowHandleObj) argument
200 android_server_InputWindowHandle_nativeDispose(JNIEnv* env, jobject obj) argument
227 register_android_server_InputWindowHandle(JNIEnv* env) argument
[all...]
/frameworks/av/media/libstagefright/http/
H A DHTTPHelper.cpp39 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
42 env, env->FindClass("android/media/MediaHTTPService"));
45 jmethodID constructID = env->GetMethodID(clazz.get(), "<init>", "()V");
49 env, env->NewObject(clazz.get(), constructID));
54 env->GetMethodID(clazz.get(), "asBinder", "()Landroid/os/IBinder;");
58 env, env->CallObjectMethod(httpServiceObj.get(), asBinderID));
62 ibinderForJavaObject(env, httpServiceBinderOb
[all...]
/frameworks/base/media/jni/audioeffect/
H A Dandroid_media_Visualizer.cpp87 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
90 env->DeleteGlobalRef(waveform_data);
95 env->DeleteGlobalRef(fft_data);
138 static void ensureArraySize(JNIEnv *env, jbyteArray *array, uint32_t size) { argument
140 uint32_t len = env->GetArrayLength(*array);
144 env->DeleteGlobalRef(*array);
148 jbyteArray localRef = env->NewByteArray(size);
151 *array = (jbyteArray)env->NewGlobalRef(localRef);
154 env->DeleteLocalRef(localRef);
170 JNIEnv *env local
232 getVisualizer(JNIEnv* env, jobject thiz) argument
248 android_media_visualizer_native_init(JNIEnv *env) argument
325 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
337 android_media_visualizer_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, jint sessionId, jintArray jId) argument
421 android_media_visualizer_native_finalize(JNIEnv *env, jobject thiz) argument
442 android_media_visualizer_native_release(JNIEnv *env, jobject thiz) argument
453 android_media_visualizer_native_setEnabled(JNIEnv *env, jobject thiz, jboolean enabled) argument
474 android_media_visualizer_native_getEnabled(JNIEnv *env, jobject thiz) argument
489 android_media_visualizer_native_getCaptureSizeRange(JNIEnv *env, jobject thiz) argument
501 android_media_visualizer_native_getMaxCaptureRate(JNIEnv *env, jobject thiz) argument
507 android_media_visualizer_native_setCaptureSize(JNIEnv *env, jobject thiz, jint size) argument
518 android_media_visualizer_native_getCaptureSize(JNIEnv *env, jobject thiz) argument
528 android_media_visualizer_native_setScalingMode(JNIEnv *env, jobject thiz, jint mode) argument
539 android_media_visualizer_native_getScalingMode(JNIEnv *env, jobject thiz) argument
549 android_media_visualizer_native_setMeasurementMode(JNIEnv *env, jobject thiz, jint mode) argument
559 android_media_visualizer_native_getMeasurementMode(JNIEnv *env, jobject thiz) argument
569 android_media_visualizer_native_getSamplingRate(JNIEnv *env, jobject thiz) argument
579 android_media_visualizer_native_getWaveForm(JNIEnv *env, jobject thiz, jbyteArray jWaveform) argument
597 android_media_visualizer_native_getFft(JNIEnv *env, jobject thiz, jbyteArray jFft) argument
616 android_media_visualizer_native_getPeakRms(JNIEnv *env, jobject thiz, jobject jPeakRmsObj) argument
635 android_media_setPeriodicCapture(JNIEnv *env, jobject thiz, jint rate, jboolean jWaveform, jboolean jFft) argument
693 register_android_media_visualizer(JNIEnv *env) argument
[all...]

Completed in 3671 milliseconds

1234567891011>>