Home | History | Annotate | Download | only in jni

Lines Matching full:clazz

42 #define GET_FIELD_ID(var, clazz, fieldName, fieldDescriptor) \
43 var = env->GetFieldID(clazz, fieldName, fieldDescriptor); \
46 #define GET_METHOD_ID(var, clazz, fieldName, fieldDescriptor) \
47 var = env->GetMethodID(clazz, fieldName, fieldDescriptor); \
50 #define GET_STATIC_FIELD_ID(var, clazz, fieldName, fieldDescriptor) \
51 var = env->GetStaticFieldID(clazz, fieldName, fieldDescriptor); \
54 #define GET_STATIC_METHOD_ID(var, clazz, fieldName, fieldDescriptor) \
55 var = env->GetStaticMethodID(clazz, fieldName, fieldDescriptor); \
135 jclass clazz = env->GetObjectClass(thiz);
136 if (clazz == NULL) {
142 mClass = (jclass)env->NewGlobalRef(clazz);
408 jclass clazz;
409 FIND_CLASS(clazz, "java/lang/String");
421 if (!env->IsInstanceOf(obj, clazz)) {
428 if (!env->IsInstanceOf(obj, clazz)) {
452 jclass clazz;
453 FIND_CLASS(clazz, "java/util/HashMap");
454 jobject hashMap = env->NewObject(clazz, gFields.hashmap.init);
467 jclass clazz;
468 FIND_CLASS(clazz, "java/util/ArrayList");
469 jobject arrayList = env->NewObject(clazz, gFields.arraylist.init);
521 jclass clazz;
522 FIND_CLASS(clazz, "android/media/MediaDrm");
523 GET_FIELD_ID(gFields.context, clazz, "mNativeContext", "I");
524 GET_STATIC_METHOD_ID(gFields.post_event, clazz, "postEventFromNative",
528 GET_STATIC_FIELD_ID(field, clazz, "EVENT_PROVISION_REQUIRED", "I");
529 gEventTypes.kEventProvisionRequired = env->GetStaticIntField(clazz, field);
530 GET_STATIC_FIELD_ID(field, clazz, "EVENT_KEY_REQUIRED", "I");
531 gEventTypes.kEventKeyRequired = env->GetStaticIntField(clazz, field);
532 GET_STATIC_FIELD_ID(field, clazz, "EVENT_KEY_EXPIRED", "I");
533 gEventTypes.kEventKeyExpired = env->GetStaticIntField(clazz, field);
534 GET_STATIC_FIELD_ID(field, clazz, "EVENT_VENDOR_DEFINED", "I");
535 gEventTypes.kEventVendorDefined = env->GetStaticIntField(clazz, field);
537 GET_STATIC_FIELD_ID(field, clazz
538 gKeyTypes.kKeyTypeStreaming = env->GetStaticIntField(clazz, field);
539 GET_STATIC_FIELD_ID(field, clazz, "KEY_TYPE_OFFLINE", "I");
540 gKeyTypes.kKeyTypeOffline = env->GetStaticIntField(clazz, field);
541 GET_STATIC_FIELD_ID(field, clazz, "KEY_TYPE_RELEASE", "I");
542 gKeyTypes.kKeyTypeRelease = env->GetStaticIntField(clazz, field);
544 FIND_CLASS(clazz, "android/media/MediaDrm$KeyRequest");
545 GET_FIELD_ID(gFields.keyRequest.data, clazz, "mData", "[B");
546 GET_FIELD_ID(gFields.keyRequest.defaultUrl, clazz, "mDefaultUrl", "Ljava/lang/String;");
548 FIND_CLASS(clazz, "android/media/MediaDrm$ProvisionRequest");
549 GET_FIELD_ID(gFields.provisionRequest.data, clazz, "mData", "[B");
550 GET_FIELD_ID(gFields.provisionRequest.defaultUrl, clazz, "mDefaultUrl", "Ljava/lang/String;");
552 FIND_CLASS(clazz, "java/util/ArrayList");
553 GET_METHOD_ID(gFields.arraylist.init, clazz, "<init>", "()V");
554 GET_METHOD_ID(gFields.arraylist.add, clazz, "add", "(Ljava/lang/Object;)Z");
556 FIND_CLASS(clazz, "java/util/HashMap");
557 GET_METHOD_ID(gFields.hashmap.init, clazz, "<init>", "()V");
558 GET_METHOD_ID(gFields.hashmap.get, clazz, "get", "(Ljava/lang/Object;)Ljava/lang/Object;");
559 GET_METHOD_ID(gFields.hashmap.put, clazz, "put",
561 GET_METHOD_ID(gFields.hashmap.entrySet, clazz, "entrySet", "()Ljava/util/Set;");
563 FIND_CLASS(clazz, "java/util/Set");
564 GET_METHOD_ID(gFields.set.iterator, clazz, "iterator", "()Ljava/util/Iterator;");
566 FIND_CLASS(clazz, "java/util/Iterator");
567 GET_METHOD_ID(gFields.iterator.next, clazz, "next", "()Ljava/lang/Object;");
568 GET_METHOD_ID(gFields.iterator.hasNext, clazz, "hasNext", "()Z");
570 FIND_CLASS(clazz, "java/util/Map$Entry");
571 GET_METHOD_ID(gFields.entry.getKey, clazz, "getKey", "()Ljava/lang/Object;");
572 GET_METHOD_ID(gFields.entry.getValue, clazz, "getValue", "()Ljava/lang/Object;");
725 jclass clazz;
726 FIND_CLASS(clazz, "android/media/MediaDrm$KeyRequest");
730 if (clazz) {
731 keyObj = env->AllocObject(clazz);
848 jclass clazz;
849 FIND_CLASS(clazz, "android/media/MediaDrm$ProvisionRequest");
853 if (clazz) {
854 provisionObj = env->AllocObject(clazz);