Lines Matching refs:env
91 MtpDatabase* getMtpDatabase(JNIEnv *env, jobject database) { in getMtpDatabase() argument
92 return (MtpDatabase *)env->GetLongField(database, field_context); in getMtpDatabase()
105 MyMtpDatabase(JNIEnv *env, jobject client);
107 void cleanup(JNIEnv *env);
188 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { in checkAndClearExceptionFromCallback() argument
189 if (env->ExceptionCheck()) { in checkAndClearExceptionFromCallback()
191 LOGE_EX(env); in checkAndClearExceptionFromCallback()
192 env->ExceptionClear(); in checkAndClearExceptionFromCallback()
198 MyMtpDatabase::MyMtpDatabase(JNIEnv *env, jobject client) in MyMtpDatabase() argument
199 : mDatabase(env->NewGlobalRef(client)), in MyMtpDatabase()
206 jintArray intArray = env->NewIntArray(3); in MyMtpDatabase()
210 mIntBuffer = (jintArray)env->NewGlobalRef(intArray); in MyMtpDatabase()
211 jlongArray longArray = env->NewLongArray(2); in MyMtpDatabase()
215 mLongBuffer = (jlongArray)env->NewGlobalRef(longArray); in MyMtpDatabase()
217 jcharArray charArray = env->NewCharArray(PATH_MAX + 1); in MyMtpDatabase()
221 mStringBuffer = (jcharArray)env->NewGlobalRef(charArray); in MyMtpDatabase()
224 void MyMtpDatabase::cleanup(JNIEnv *env) { in cleanup() argument
225 env->DeleteGlobalRef(mDatabase); in cleanup()
226 env->DeleteGlobalRef(mIntBuffer); in cleanup()
227 env->DeleteGlobalRef(mLongBuffer); in cleanup()
228 env->DeleteGlobalRef(mStringBuffer); in cleanup()
240 JNIEnv* env = AndroidRuntime::getJNIEnv(); in beginSendObject() local
241 jstring pathStr = env->NewStringUTF(path); in beginSendObject()
242 MtpObjectHandle result = env->CallIntMethod(mDatabase, method_beginSendObject, in beginSendObject()
247 env->DeleteLocalRef(pathStr); in beginSendObject()
248 checkAndClearExceptionFromCallback(env, __FUNCTION__); in beginSendObject()
254 JNIEnv* env = AndroidRuntime::getJNIEnv(); in endSendObject() local
255 jstring pathStr = env->NewStringUTF(path); in endSendObject()
256 env->CallVoidMethod(mDatabase, method_endSendObject, pathStr, in endSendObject()
260 env->DeleteLocalRef(pathStr); in endSendObject()
261 checkAndClearExceptionFromCallback(env, __FUNCTION__); in endSendObject()
267 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getObjectList() local
268 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, method_getObjectList, in getObjectList()
273 jint* handles = env->GetIntArrayElements(array, 0); in getObjectList()
274 jsize length = env->GetArrayLength(array); in getObjectList()
277 env->ReleaseIntArrayElements(array, handles, 0); in getObjectList()
278 env->DeleteLocalRef(array); in getObjectList()
280 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getObjectList()
287 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getNumObjects() local
288 int result = env->CallIntMethod(mDatabase, method_getNumObjects, in getNumObjects()
291 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getNumObjects()
296 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getSupportedPlaybackFormats() local
297 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, in getSupportedPlaybackFormats()
302 jint* formats = env->GetIntArrayElements(array, 0); in getSupportedPlaybackFormats()
303 jsize length = env->GetArrayLength(array); in getSupportedPlaybackFormats()
306 env->ReleaseIntArrayElements(array, formats, 0); in getSupportedPlaybackFormats()
307 env->DeleteLocalRef(array); in getSupportedPlaybackFormats()
309 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getSupportedPlaybackFormats()
314 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getSupportedCaptureFormats() local
315 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, in getSupportedCaptureFormats()
320 jint* formats = env->GetIntArrayElements(array, 0); in getSupportedCaptureFormats()
321 jsize length = env->GetArrayLength(array); in getSupportedCaptureFormats()
324 env->ReleaseIntArrayElements(array, formats, 0); in getSupportedCaptureFormats()
325 env->DeleteLocalRef(array); in getSupportedCaptureFormats()
327 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getSupportedCaptureFormats()
332 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getSupportedObjectProperties() local
333 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, in getSupportedObjectProperties()
338 jint* properties = env->GetIntArrayElements(array, 0); in getSupportedObjectProperties()
339 jsize length = env->GetArrayLength(array); in getSupportedObjectProperties()
342 env->ReleaseIntArrayElements(array, properties, 0); in getSupportedObjectProperties()
343 env->DeleteLocalRef(array); in getSupportedObjectProperties()
345 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getSupportedObjectProperties()
350 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getSupportedDeviceProperties() local
351 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, in getSupportedDeviceProperties()
356 jint* properties = env->GetIntArrayElements(array, 0); in getSupportedDeviceProperties()
357 jsize length = env->GetArrayLength(array); in getSupportedDeviceProperties()
360 env->ReleaseIntArrayElements(array, properties, 0); in getSupportedDeviceProperties()
361 env->DeleteLocalRef(array); in getSupportedDeviceProperties()
363 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getSupportedDeviceProperties()
374 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getObjectPropertyValue() local
375 jobject list = env->CallObjectMethod( in getObjectPropertyValue()
383 MtpResponseCode result = env->GetIntField(list, field_mResult); in getObjectPropertyValue()
384 int count = env->GetIntField(list, field_mCount); in getObjectPropertyValue()
389 jintArray objectHandlesArray = (jintArray)env->GetObjectField(list, field_mObjectHandles); in getObjectPropertyValue()
390 jintArray propertyCodesArray = (jintArray)env->GetObjectField(list, field_mPropertyCodes); in getObjectPropertyValue()
391 jintArray dataTypesArray = (jintArray)env->GetObjectField(list, field_mDataTypes); in getObjectPropertyValue()
392 jlongArray longValuesArray = (jlongArray)env->GetObjectField(list, field_mLongValues); in getObjectPropertyValue()
393 … jobjectArray stringValuesArray = (jobjectArray)env->GetObjectField(list, field_mStringValues); in getObjectPropertyValue()
395 jint* objectHandles = env->GetIntArrayElements(objectHandlesArray, 0); in getObjectPropertyValue()
396 jint* propertyCodes = env->GetIntArrayElements(propertyCodesArray, 0); in getObjectPropertyValue()
397 jint* dataTypes = env->GetIntArrayElements(dataTypesArray, 0); in getObjectPropertyValue()
398 … jlong* longValues = (longValuesArray ? env->GetLongArrayElements(longValuesArray, 0) : NULL); in getObjectPropertyValue()
452 jstring stringValue = (jstring)env->GetObjectArrayElement(stringValuesArray, 0); in getObjectPropertyValue()
453 const char* str = (stringValue ? env->GetStringUTFChars(stringValue, NULL) : NULL); in getObjectPropertyValue()
456 env->ReleaseStringUTFChars(stringValue, str); in getObjectPropertyValue()
460 env->DeleteLocalRef(stringValue); in getObjectPropertyValue()
468 env->ReleaseIntArrayElements(objectHandlesArray, objectHandles, 0); in getObjectPropertyValue()
469 env->ReleaseIntArrayElements(propertyCodesArray, propertyCodes, 0); in getObjectPropertyValue()
470 env->ReleaseIntArrayElements(dataTypesArray, dataTypes, 0); in getObjectPropertyValue()
472 env->ReleaseLongArrayElements(longValuesArray, longValues, 0); in getObjectPropertyValue()
474 env->DeleteLocalRef(objectHandlesArray); in getObjectPropertyValue()
475 env->DeleteLocalRef(propertyCodesArray); in getObjectPropertyValue()
476 env->DeleteLocalRef(dataTypesArray); in getObjectPropertyValue()
478 env->DeleteLocalRef(longValuesArray); in getObjectPropertyValue()
480 env->DeleteLocalRef(stringValuesArray); in getObjectPropertyValue()
483 env->DeleteLocalRef(list); in getObjectPropertyValue()
484 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getObjectPropertyValue()
553 JNIEnv* env = AndroidRuntime::getJNIEnv(); in setObjectPropertyValue() local
561 stringValue = env->NewStringUTF((const char *)buffer); in setObjectPropertyValue()
566 result = env->CallIntMethod(mDatabase, method_setObjectProperty, in setObjectPropertyValue()
569 env->DeleteLocalRef(stringValue); in setObjectPropertyValue()
572 checkAndClearExceptionFromCallback(env, __FUNCTION__); in setObjectPropertyValue()
578 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getDevicePropertyValue() local
582 packet.putUInt8((uint8_t)env->GetIntField(mDatabase, field_batteryLevel)); in getDevicePropertyValue()
590 jint result = env->CallIntMethod(mDatabase, method_getDeviceProperty, in getDevicePropertyValue()
593 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getDevicePropertyValue()
597 jlong* longValues = env->GetLongArrayElements(mLongBuffer, 0); in getDevicePropertyValue()
599 env->ReleaseLongArrayElements(mLongBuffer, longValues, 0); in getDevicePropertyValue()
634 jchar* str = env->GetCharArrayElements(mStringBuffer, 0); in getDevicePropertyValue()
636 env->ReleaseCharArrayElements(mStringBuffer, str, 0); in getDevicePropertyValue()
644 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getDevicePropertyValue()
656 JNIEnv* env = AndroidRuntime::getJNIEnv(); in setDevicePropertyValue() local
664 stringValue = env->NewStringUTF((const char *)buffer); in setDevicePropertyValue()
669 result = env->CallIntMethod(mDatabase, method_setDeviceProperty, in setDevicePropertyValue()
672 env->DeleteLocalRef(stringValue); in setDevicePropertyValue()
675 checkAndClearExceptionFromCallback(env, __FUNCTION__); in setDevicePropertyValue()
689 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getObjectPropertyList() local
690 jobject list = env->CallObjectMethod( in getObjectPropertyList()
698 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getObjectPropertyList()
701 int count = env->GetIntField(list, field_mCount); in getObjectPropertyList()
702 MtpResponseCode result = env->GetIntField(list, field_mResult); in getObjectPropertyList()
706 jintArray objectHandlesArray = (jintArray)env->GetObjectField(list, field_mObjectHandles); in getObjectPropertyList()
707 jintArray propertyCodesArray = (jintArray)env->GetObjectField(list, field_mPropertyCodes); in getObjectPropertyList()
708 jintArray dataTypesArray = (jintArray)env->GetObjectField(list, field_mDataTypes); in getObjectPropertyList()
709 jlongArray longValuesArray = (jlongArray)env->GetObjectField(list, field_mLongValues); in getObjectPropertyList()
710 … jobjectArray stringValuesArray = (jobjectArray)env->GetObjectField(list, field_mStringValues); in getObjectPropertyList()
712 jint* objectHandles = env->GetIntArrayElements(objectHandlesArray, 0); in getObjectPropertyList()
713 jint* propertyCodes = env->GetIntArrayElements(propertyCodesArray, 0); in getObjectPropertyList()
714 jint* dataTypes = env->GetIntArrayElements(dataTypesArray, 0); in getObjectPropertyList()
715 … jlong* longValues = (longValuesArray ? env->GetLongArrayElements(longValuesArray, 0) : NULL); in getObjectPropertyList()
755 jstring value = (jstring)env->GetObjectArrayElement(stringValuesArray, i); in getObjectPropertyList()
756 const char *valueStr = (value ? env->GetStringUTFChars(value, NULL) : NULL); in getObjectPropertyList()
759 env->ReleaseStringUTFChars(value, valueStr); in getObjectPropertyList()
763 env->DeleteLocalRef(value); in getObjectPropertyList()
772 env->ReleaseIntArrayElements(objectHandlesArray, objectHandles, 0); in getObjectPropertyList()
773 env->ReleaseIntArrayElements(propertyCodesArray, propertyCodes, 0); in getObjectPropertyList()
774 env->ReleaseIntArrayElements(dataTypesArray, dataTypes, 0); in getObjectPropertyList()
776 env->ReleaseLongArrayElements(longValuesArray, longValues, 0); in getObjectPropertyList()
778 env->DeleteLocalRef(objectHandlesArray); in getObjectPropertyList()
779 env->DeleteLocalRef(propertyCodesArray); in getObjectPropertyList()
780 env->DeleteLocalRef(dataTypesArray); in getObjectPropertyList()
782 env->DeleteLocalRef(longValuesArray); in getObjectPropertyList()
784 env->DeleteLocalRef(stringValuesArray); in getObjectPropertyList()
787 env->DeleteLocalRef(list); in getObjectPropertyList()
788 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getObjectPropertyList()
820 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getObjectInfo() local
821 if (!env->CallBooleanMethod(mDatabase, method_getObjectInfo, in getObjectInfo()
826 jint* intValues = env->GetIntArrayElements(mIntBuffer, 0); in getObjectInfo()
830 env->ReleaseIntArrayElements(mIntBuffer, intValues, 0); in getObjectInfo()
832 jlong* longValues = env->GetLongArrayElements(mLongBuffer, 0); in getObjectInfo()
835 env->ReleaseLongArrayElements(mLongBuffer, longValues, 0); in getObjectInfo()
844 jchar* str = env->GetCharArrayElements(mStringBuffer, 0); in getObjectInfo()
847 env->ReleaseCharArrayElements(mStringBuffer, str, 0); in getObjectInfo()
896 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getObjectInfo()
969 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getObjectFilePath() local
970 jint result = env->CallIntMethod(mDatabase, method_getObjectFilePath, in getObjectFilePath()
973 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getObjectFilePath()
977 jchar* str = env->GetCharArrayElements(mStringBuffer, 0); in getObjectFilePath()
980 env->ReleaseCharArrayElements(mStringBuffer, str, 0); in getObjectFilePath()
982 jlong* longValues = env->GetLongArrayElements(mLongBuffer, 0); in getObjectFilePath()
985 env->ReleaseLongArrayElements(mLongBuffer, longValues, 0); in getObjectFilePath()
987 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getObjectFilePath()
992 JNIEnv* env = AndroidRuntime::getJNIEnv(); in deleteFile() local
993 MtpResponseCode result = env->CallIntMethod(mDatabase, method_deleteFile, (jint)handle); in deleteFile()
995 checkAndClearExceptionFromCallback(env, __FUNCTION__); in deleteFile()
1065 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getObjectReferences() local
1066 jintArray array = (jintArray)env->CallObjectMethod(mDatabase, method_getObjectReferences, in getObjectReferences()
1071 jint* handles = env->GetIntArrayElements(array, 0); in getObjectReferences()
1072 jsize length = env->GetArrayLength(array); in getObjectReferences()
1075 env->ReleaseIntArrayElements(array, handles, 0); in getObjectReferences()
1076 env->DeleteLocalRef(array); in getObjectReferences()
1078 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getObjectReferences()
1084 JNIEnv* env = AndroidRuntime::getJNIEnv(); in setObjectReferences() local
1086 jintArray array = env->NewIntArray(count); in setObjectReferences()
1091 jint* handles = env->GetIntArrayElements(array, 0); in setObjectReferences()
1094 env->ReleaseIntArrayElements(array, handles, 0); in setObjectReferences()
1095 MtpResponseCode result = env->CallIntMethod(mDatabase, method_setObjectReferences, in setObjectReferences()
1097 env->DeleteLocalRef(array); in setObjectReferences()
1099 checkAndClearExceptionFromCallback(env, __FUNCTION__); in setObjectReferences()
1185 JNIEnv* env = AndroidRuntime::getJNIEnv(); in getDevicePropertyDesc() local
1198 jint ret = env->CallIntMethod(mDatabase, method_getDeviceProperty, in getDevicePropertyDesc()
1201 jchar* str = env->GetCharArrayElements(mStringBuffer, 0); in getDevicePropertyDesc()
1206 env->ReleaseCharArrayElements(mStringBuffer, str, 0); in getDevicePropertyDesc()
1214 result->setFormRange(0, env->GetIntField(mDatabase, field_batteryScale), 1); in getDevicePropertyDesc()
1215 result->mCurrentValue.u.u8 = (uint8_t)env->GetIntField(mDatabase, field_batteryLevel); in getDevicePropertyDesc()
1219 result->mCurrentValue.u.u32 = (uint32_t)env->GetIntField(mDatabase, field_deviceType); in getDevicePropertyDesc()
1223 checkAndClearExceptionFromCallback(env, __FUNCTION__); in getDevicePropertyDesc()
1228 JNIEnv* env = AndroidRuntime::getJNIEnv(); in sessionStarted() local
1229 env->CallVoidMethod(mDatabase, method_sessionStarted); in sessionStarted()
1230 checkAndClearExceptionFromCallback(env, __FUNCTION__); in sessionStarted()
1234 JNIEnv* env = AndroidRuntime::getJNIEnv(); in sessionEnded() local
1235 env->CallVoidMethod(mDatabase, method_sessionEnded); in sessionEnded()
1236 checkAndClearExceptionFromCallback(env, __FUNCTION__); in sessionEnded()
1242 android_mtp_MtpDatabase_setup(JNIEnv *env, jobject thiz) in android_mtp_MtpDatabase_setup() argument
1244 MyMtpDatabase* database = new MyMtpDatabase(env, thiz); in android_mtp_MtpDatabase_setup()
1245 env->SetLongField(thiz, field_context, (jlong)database); in android_mtp_MtpDatabase_setup()
1246 checkAndClearExceptionFromCallback(env, __FUNCTION__); in android_mtp_MtpDatabase_setup()
1250 android_mtp_MtpDatabase_finalize(JNIEnv *env, jobject thiz) in android_mtp_MtpDatabase_finalize() argument
1252 MyMtpDatabase* database = (MyMtpDatabase *)env->GetLongField(thiz, field_context); in android_mtp_MtpDatabase_finalize()
1253 database->cleanup(env); in android_mtp_MtpDatabase_finalize()
1255 env->SetLongField(thiz, field_context, 0); in android_mtp_MtpDatabase_finalize()
1256 checkAndClearExceptionFromCallback(env, __FUNCTION__); in android_mtp_MtpDatabase_finalize()
1260 android_mtp_MtpPropertyGroup_format_date_time(JNIEnv *env, jobject /*thiz*/, jlong seconds) in android_mtp_MtpPropertyGroup_format_date_time() argument
1264 return env->NewStringUTF(date); in android_mtp_MtpPropertyGroup_format_date_time()
1279 int register_android_mtp_MtpDatabase(JNIEnv *env) in register_android_mtp_MtpDatabase() argument
1283 clazz = env->FindClass("android/mtp/MtpDatabase"); in register_android_mtp_MtpDatabase()
1288 … method_beginSendObject = env->GetMethodID(clazz, "beginSendObject", "(Ljava/lang/String;IIIJJ)I"); in register_android_mtp_MtpDatabase()
1293 method_endSendObject = env->GetMethodID(clazz, "endSendObject", "(Ljava/lang/String;IIZ)V"); in register_android_mtp_MtpDatabase()
1298 method_getObjectList = env->GetMethodID(clazz, "getObjectList", "(III)[I"); in register_android_mtp_MtpDatabase()
1303 method_getNumObjects = env->GetMethodID(clazz, "getNumObjects", "(III)I"); in register_android_mtp_MtpDatabase()
1308 …method_getSupportedPlaybackFormats = env->GetMethodID(clazz, "getSupportedPlaybackFormats", "()[I"… in register_android_mtp_MtpDatabase()
1313 … method_getSupportedCaptureFormats = env->GetMethodID(clazz, "getSupportedCaptureFormats", "()[I"); in register_android_mtp_MtpDatabase()
1318 …method_getSupportedObjectProperties = env->GetMethodID(clazz, "getSupportedObjectProperties", "(I)… in register_android_mtp_MtpDatabase()
1323 …method_getSupportedDeviceProperties = env->GetMethodID(clazz, "getSupportedDeviceProperties", "()[… in register_android_mtp_MtpDatabase()
1328 …method_setObjectProperty = env->GetMethodID(clazz, "setObjectProperty", "(IIJLjava/lang/String;)I"… in register_android_mtp_MtpDatabase()
1333 method_getDeviceProperty = env->GetMethodID(clazz, "getDeviceProperty", "(I[J[C)I"); in register_android_mtp_MtpDatabase()
1338 …method_setDeviceProperty = env->GetMethodID(clazz, "setDeviceProperty", "(IJLjava/lang/String;)I"); in register_android_mtp_MtpDatabase()
1343 method_getObjectPropertyList = env->GetMethodID(clazz, "getObjectPropertyList", in register_android_mtp_MtpDatabase()
1349 method_getObjectInfo = env->GetMethodID(clazz, "getObjectInfo", "(I[I[C[J)Z"); in register_android_mtp_MtpDatabase()
1354 method_getObjectFilePath = env->GetMethodID(clazz, "getObjectFilePath", "(I[C[J)I"); in register_android_mtp_MtpDatabase()
1359 method_deleteFile = env->GetMethodID(clazz, "deleteFile", "(I)I"); in register_android_mtp_MtpDatabase()
1364 method_getObjectReferences = env->GetMethodID(clazz, "getObjectReferences", "(I)[I"); in register_android_mtp_MtpDatabase()
1369 method_setObjectReferences = env->GetMethodID(clazz, "setObjectReferences", "(I[I)I"); in register_android_mtp_MtpDatabase()
1374 method_sessionStarted = env->GetMethodID(clazz, "sessionStarted", "()V"); in register_android_mtp_MtpDatabase()
1379 method_sessionEnded = env->GetMethodID(clazz, "sessionEnded", "()V"); in register_android_mtp_MtpDatabase()
1385 field_context = env->GetFieldID(clazz, "mNativeContext", "J"); in register_android_mtp_MtpDatabase()
1390 field_batteryLevel = env->GetFieldID(clazz, "mBatteryLevel", "I"); in register_android_mtp_MtpDatabase()
1395 field_batteryScale = env->GetFieldID(clazz, "mBatteryScale", "I"); in register_android_mtp_MtpDatabase()
1400 field_deviceType = env->GetFieldID(clazz, "mDeviceType", "I"); in register_android_mtp_MtpDatabase()
1407 clazz = env->FindClass("android/mtp/MtpPropertyList"); in register_android_mtp_MtpDatabase()
1412 field_mCount = env->GetFieldID(clazz, "mCount", "I"); in register_android_mtp_MtpDatabase()
1417 field_mResult = env->GetFieldID(clazz, "mResult", "I"); in register_android_mtp_MtpDatabase()
1422 field_mObjectHandles = env->GetFieldID(clazz, "mObjectHandles", "[I"); in register_android_mtp_MtpDatabase()
1427 field_mPropertyCodes = env->GetFieldID(clazz, "mPropertyCodes", "[I"); in register_android_mtp_MtpDatabase()
1432 field_mDataTypes = env->GetFieldID(clazz, "mDataTypes", "[I"); in register_android_mtp_MtpDatabase()
1437 field_mLongValues = env->GetFieldID(clazz, "mLongValues", "[J"); in register_android_mtp_MtpDatabase()
1442 field_mStringValues = env->GetFieldID(clazz, "mStringValues", "[Ljava/lang/String;"); in register_android_mtp_MtpDatabase()
1448 if (AndroidRuntime::registerNativeMethods(env, in register_android_mtp_MtpDatabase()
1452 return AndroidRuntime::registerNativeMethods(env, in register_android_mtp_MtpDatabase()