/frameworks/base/services/core/jni/ |
D | com_android_server_tv_TvInputHal.cpp | 37 static int nativeAddOrUpdateStream(JNIEnv* env, jclass clazz, in nativeAddOrUpdateStream() argument 50 static int nativeRemoveStream(JNIEnv* env, jclass clazz, in nativeRemoveStream() argument 56 static jobjectArray nativeGetStreamConfigs(JNIEnv* env, jclass clazz, in nativeGetStreamConfigs() argument 61 jobjectArray result = env->NewObjectArray(configs.size(), gTvStreamConfigClassInfo.clazz, NULL); in nativeGetStreamConfigs() 64 gTvStreamConfigBuilderClassInfo.clazz, in nativeGetStreamConfigs() 88 static int nativeSetTvMessageEnabled(JNIEnv* env, jclass clazz, jlong ptr, jint deviceId, in nativeSetTvMessageEnabled() argument 94 static void nativeClose(JNIEnv* env, jclass clazz, jlong ptr) { in nativeClose() argument 114 #define GET_METHOD_ID(var, clazz, methodName, fieldDescriptor) \ argument 115 var = env->GetMethodID(clazz, methodName, fieldDescriptor); \ 124 jclass clazz; in register_android_server_tv_TvInputHal() local [all …]
|
/frameworks/base/core/jni/ |
D | android_content_res_Configuration.cpp | 49 JNIEnv* env, jobject clazz, struct AConfiguration* out) { in android_Configuration_getFromJava() argument 50 out->mcc = env->GetIntField(clazz, gConfigurationClassInfo.mcc); in android_Configuration_getFromJava() 51 out->mnc = env->GetIntField(clazz, gConfigurationClassInfo.mnc); in android_Configuration_getFromJava() 52 out->screenLayout = env->GetIntField(clazz, gConfigurationClassInfo.screenLayout); in android_Configuration_getFromJava() 53 out->touchscreen = env->GetIntField(clazz, gConfigurationClassInfo.touchscreen); in android_Configuration_getFromJava() 54 out->keyboard = env->GetIntField(clazz, gConfigurationClassInfo.keyboard); in android_Configuration_getFromJava() 55 out->navigation = env->GetIntField(clazz, gConfigurationClassInfo.navigation); in android_Configuration_getFromJava() 57 out->inputFlags = env->GetIntField(clazz, gConfigurationClassInfo.keyboardHidden); in android_Configuration_getFromJava() 58 int hardKeyboardHidden = env->GetIntField(clazz, gConfigurationClassInfo.hardKeyboardHidden); in android_Configuration_getFromJava() 63 out->inputFlags |= env->GetIntField(clazz, gConfigurationClassInfo.navigationHidden) in android_Configuration_getFromJava() [all …]
|
D | android_tracing_PerfettoDataSourceInstance.cpp | 39 jclass clazz; member 44 jclass clazz; member 49 jclass clazz; member 83 env->NewObject(gStartCallbackArgumentsClassInfo.clazz, in onStart() 94 env->NewObject(gFlushCallbackArgumentsClassInfo.clazz, in onFlush() 105 env->NewObject(gStopCallbackArgumentsClassInfo.clazz, in onStop() 119 jclass clazz = env->FindClass("android/tracing/perfetto/StartCallbackArguments"); in register_android_tracing_PerfettoDataSourceInstance() local 120 gStartCallbackArgumentsClassInfo.clazz = MakeGlobalRefOrDie(env, clazz); in register_android_tracing_PerfettoDataSourceInstance() 122 env->GetMethodID(gStartCallbackArgumentsClassInfo.clazz, "<init>", "()V"); in register_android_tracing_PerfettoDataSourceInstance() 124 clazz = env->FindClass("android/tracing/perfetto/FlushCallbackArguments"); in register_android_tracing_PerfettoDataSourceInstance() [all …]
|
D | android_util_Log.cpp | 49 static jboolean android_util_Log_isLoggable(JNIEnv* env, jobject clazz, jstring tag, jint level) in android_util_Log_isLoggable() argument 74 static jint android_util_Log_println_native(JNIEnv* env, jobject clazz, in android_util_Log_println_native() argument 108 jobject clazz ATTRIBUTE_UNUSED) in android_util_Log_logger_entry_max_payload_native() 125 jclass clazz = FindClassOrDie(env, "android/util/Log"); in register_android_util_Log() local 127 … levels.verbose = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "VERBOSE", "I")); in register_android_util_Log() 128 levels.debug = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "DEBUG", "I")); in register_android_util_Log() 129 levels.info = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "INFO", "I")); in register_android_util_Log() 130 levels.warn = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "WARN", "I")); in register_android_util_Log() 131 levels.error = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "ERROR", "I")); in register_android_util_Log() 132 levels.assert = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "ASSERT", "I")); in register_android_util_Log()
|
D | BindTest.cpp | 38 getString(Class *clazz, MethodBlock *mb, uintptr_t *ostack) in getString() argument 45 getNullString(Class *clazz, MethodBlock *mb, uintptr_t *ostack) in getNullString() argument 52 getBooleanTrue(Class *clazz, MethodBlock *mb, uintptr_t *ostack) in getBooleanTrue() argument 59 getBooleanFalse(Class *clazz, MethodBlock *mb, uintptr_t *ostack) in getBooleanFalse() argument 66 nonvoidThrowsException (Class *clazz, MethodBlock *mb, uintptr_t *ostack) in nonvoidThrowsException() argument 80 setInstanceString (Class *clazz, MethodBlock *mb, uintptr_t *ostack) in setInstanceString() argument 91 setClassString (Class *clazz, MethodBlock *mb, uintptr_t *ostack) in setClassString() argument 102 makeStringFromThreeChars (Class *clazz, MethodBlock *mb, uintptr_t *ostack) in makeStringFromThreeChars() argument 121 makeReturnedObject (Class *clazz, MethodBlock *mb, uintptr_t *ostack) in makeReturnedObject() argument 137 addDoubles (Class *clazz, MethodBlock *mb, uintptr_t *ostack) in addDoubles() argument [all …]
|
D | android_window_WindowInfosListener.cpp | 40 jclass clazz; member 45 jclass clazz; member 50 jclass clazz; member 62 return env->NewObject(gDisplayInfoClassInfo.clazz, gDisplayInfoClassInfo.ctor, in fromDisplayInfo() 82 env->NewObjectArray(displayInfos.size(), gDisplayInfoClassInfo.clazz, nullptr); in fromDisplayInfos() 131 jlong nativeCreate(JNIEnv* env, jclass clazz, jobject obj) { in nativeCreate() argument 143 jobject nativeRegister(JNIEnv* env, jclass clazz, jlong ptr) { in nativeRegister() argument 151 return env->NewObject(gPairClassInfo.clazz, gPairClassInfo.ctor, jWindowHandlesArray.get(), in nativeRegister() 155 void nativeUnregister(JNIEnv* env, jclass clazz, jlong ptr) { in nativeUnregister() argument 178 jclass clazz = env->FindClass("android/window/WindowInfosListener"); in register_android_window_WindowInfosListener() local [all …]
|
D | android_hardware_display_DisplayViewport.cpp | 34 jclass clazz; member 105 jclass clazz = FindClassOrDie(env, "android/hardware/display/DisplayViewport"); in register_android_hardware_display_DisplayViewport() local 106 gDisplayViewportClassInfo.clazz = MakeGlobalRefOrDie(env, clazz); in register_android_hardware_display_DisplayViewport() 109 gDisplayViewportClassInfo.clazz, "displayId", "I"); in register_android_hardware_display_DisplayViewport() 112 GetFieldIDOrDie(env, gDisplayViewportClassInfo.clazz, "isActive", "Z"); in register_android_hardware_display_DisplayViewport() 115 gDisplayViewportClassInfo.clazz, "orientation", "I"); in register_android_hardware_display_DisplayViewport() 118 gDisplayViewportClassInfo.clazz, "deviceWidth", "I"); in register_android_hardware_display_DisplayViewport() 121 gDisplayViewportClassInfo.clazz, "deviceHeight", "I"); in register_android_hardware_display_DisplayViewport() 124 gDisplayViewportClassInfo.clazz, "logicalFrame", "Landroid/graphics/Rect;"); in register_android_hardware_display_DisplayViewport() 127 gDisplayViewportClassInfo.clazz, "physicalFrame", "Landroid/graphics/Rect;"); in register_android_hardware_display_DisplayViewport() [all …]
|
D | android_hardware_input_InputWindowHandle.cpp | 52 jclass clazz; member 82 jclass clazz; member 264 env->NewObject(gInputWindowHandleClassInfo.clazz, gInputWindowHandleClassInfo.ctor, in android_view_InputWindowHandle_fromWindowInfo() 300 env->NewObject(gRegionClassInfo.clazz, gRegionClassInfo.ctor, in android_view_InputWindowHandle_fromWindowInfo() 362 #define GET_FIELD_ID(var, clazz, fieldName, fieldDescriptor) \ argument 363 var = env->GetFieldID(clazz, fieldName, fieldDescriptor); \ 366 #define GET_METHOD_ID(var, clazz, methodName, methodSignature) \ argument 367 var = env->GetMethodID(clazz, methodName, methodSignature); \ 376 jclass clazz; in register_android_view_InputWindowHandle() local 377 FIND_CLASS(clazz, "android/view/InputWindowHandle"); in register_android_view_InputWindowHandle() [all …]
|
D | android_view_KeyCharacterMap.cpp | 35 jclass clazz; member 40 jclass clazz; member 77 return env->NewObject(gKeyCharacterMapClassInfo.clazz, gKeyCharacterMapClassInfo.ctor, in android_view_KeyCharacterMap_create() 85 static jlong nativeReadFromParcel(JNIEnv *env, jobject clazz, jobject parcelObj) { in nativeReadFromParcel() argument 108 static void nativeWriteToParcel(JNIEnv* env, jobject clazz, jlong ptr, jobject parcelObj) { in nativeWriteToParcel() argument 123 static void nativeDispose(JNIEnv *env, jobject clazz, jlong ptr) { in nativeDispose() argument 129 static jchar nativeGetCharacter(JNIEnv *env, jobject clazz, jlong ptr, in nativeGetCharacter() argument 138 static jboolean nativeGetFallbackAction(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode, in nativeGetFallbackAction() argument 157 static jchar nativeGetNumber(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode) { in nativeGetNumber() argument 166 static jchar nativeGetMatch(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode, in nativeGetMatch() argument [all …]
|
D | android_view_KeyEvent.cpp | 74 jclass clazz; member 101 env->CallStaticObjectMethod(gKeyEventClassInfo.clazz, in android_view_KeyEvent_obtainAsCopy() 154 static jstring android_view_KeyEvent_nativeKeyCodeToString(JNIEnv* env, jobject clazz, in android_view_KeyEvent_nativeKeyCodeToString() argument 159 static jint android_view_KeyEvent_nativeKeyCodeFromString(JNIEnv* env, jobject clazz, in android_view_KeyEvent_nativeKeyCodeFromString() argument 180 jclass clazz = FindClassOrDie(env, "android/view/KeyEvent"); in register_android_view_KeyEvent() local 181 gKeyEventClassInfo.clazz = MakeGlobalRefOrDie(env, clazz); in register_android_view_KeyEvent() 184 GetStaticMethodIDOrDie(env, gKeyEventClassInfo.clazz, "obtain", in register_android_view_KeyEvent() 186 gKeyEventClassInfo.recycle = GetMethodIDOrDie(env, gKeyEventClassInfo.clazz, in register_android_view_KeyEvent() 189 gKeyEventClassInfo.mId = GetFieldIDOrDie(env, gKeyEventClassInfo.clazz, "mId", "I"); in register_android_view_KeyEvent() 190 gKeyEventClassInfo.mDeviceId = GetFieldIDOrDie(env, gKeyEventClassInfo.clazz, "mDeviceId", "I"); in register_android_view_KeyEvent() [all …]
|
D | jni_wrappers.h | 28 jclass clazz = env->FindClass(class_name); in FindClassOrDie() local 29 LOG_ALWAYS_FATAL_IF(clazz == NULL, "Unable to find class %s", class_name); in FindClassOrDie() 30 return clazz; in FindClassOrDie() 33 static inline jfieldID GetFieldIDOrDie(JNIEnv* env, jclass clazz, const char* field_name, in GetFieldIDOrDie() argument 35 jfieldID res = env->GetFieldID(clazz, field_name, field_signature); in GetFieldIDOrDie() 41 static inline jmethodID GetMethodIDOrDie(JNIEnv* env, jclass clazz, const char* method_name, in GetMethodIDOrDie() argument 43 jmethodID res = env->GetMethodID(clazz, method_name, method_signature); in GetMethodIDOrDie() 49 static inline jfieldID GetStaticFieldIDOrDie(JNIEnv* env, jclass clazz, const char* field_name, in GetStaticFieldIDOrDie() argument 51 jfieldID res = env->GetStaticFieldID(clazz, field_name, field_signature); in GetStaticFieldIDOrDie() 57 static inline jmethodID GetStaticMethodIDOrDie(JNIEnv* env, jclass clazz, const char* method_name, in GetStaticMethodIDOrDie() argument [all …]
|
D | android_view_SurfaceControl.cpp | 84 jclass clazz; member 89 return env->NewObject(gIntegerClassInfo.clazz, gIntegerClassInfo.ctor, i); in toInteger() 93 jclass clazz; member 98 jclass clazz; member 108 jclass clazz; member 122 jclass clazz; member 153 jclass clazz; member 158 jclass clazz; member 163 jclass clazz; member 168 jclass clazz; member [all …]
|
D | android_os_Parcel.cpp | 65 jclass clazz; member 85 return env->CallStaticObjectMethod(gParcelOffsets.clazz, gParcelOffsets.obtain); in createJavaParcelObject() 101 static void android_os_Parcel_markForBinder(JNIEnv* env, jclass clazz, jlong nativePtr, in android_os_Parcel_markForBinder() argument 148 static void android_os_Parcel_setDataSize(JNIEnv* env, jclass clazz, jlong nativePtr, jint size) in android_os_Parcel_setDataSize() argument 154 signalExceptionForError(env, clazz, err); in android_os_Parcel_setDataSize() 167 static void android_os_Parcel_setDataCapacity(JNIEnv* env, jclass clazz, jlong nativePtr, jint size) in android_os_Parcel_setDataCapacity() argument 173 signalExceptionForError(env, clazz, err); in android_os_Parcel_setDataCapacity() 196 static void android_os_Parcel_writeByteArray(JNIEnv* env, jclass clazz, jlong nativePtr, in android_os_Parcel_writeByteArray() argument 206 signalExceptionForError(env, clazz, err); in android_os_Parcel_writeByteArray() 212 signalExceptionForError(env, clazz, NO_MEMORY); in android_os_Parcel_writeByteArray() [all …]
|
D | android_hardware_input_InputApplicationHandle.cpp | 31 jclass clazz; member 110 return env->NewObject(gInputApplicationHandleClassInfo.clazz, in android_view_InputApplicationHandle_fromInputApplicationInfo() 141 #define GET_FIELD_ID(var, clazz, fieldName, fieldDescriptor) \ argument 142 var = env->GetFieldID(clazz, fieldName, fieldDescriptor); \ 145 #define GET_METHOD_ID(var, clazz, methodName, methodSignature) \ argument 146 var = env->GetMethodID(clazz, methodName, methodSignature); \ 155 jclass clazz; in register_android_view_InputApplicationHandle() local 156 FIND_CLASS(clazz, "android/view/InputApplicationHandle"); in register_android_view_InputApplicationHandle() 157 gInputApplicationHandleClassInfo.clazz = MakeGlobalRefOrDie(env, clazz); in register_android_view_InputApplicationHandle() 159 GET_METHOD_ID(gInputApplicationHandleClassInfo.ctor, clazz, "<init>", in register_android_view_InputApplicationHandle() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_SyncParams.cpp | 29 clazz = (jclass)env->NewGlobalRef(lclazz); in init() 30 if (clazz == NULL) { in init() 34 constructID = env->GetMethodID(clazz, "<init>", "()V"); in init() 36 sync_source = env->GetFieldID(clazz, "mSyncSource", "I"); in init() 37 audio_adjust_mode = env->GetFieldID(clazz, "mAudioAdjustMode", "I"); in init() 38 tolerance = env->GetFieldID(clazz, "mTolerance", "F"); in init() 39 frame_rate = env->GetFieldID(clazz, "mFrameRate", "F"); in init() 40 set = env->GetFieldID(clazz, "mSet", "I"); in init() 43 env->GetStaticIntField(clazz, env->GetStaticFieldID(clazz, "SET_SYNC_SOURCE", "I")); in init() 45 clazz, env->GetStaticFieldID(clazz, "SET_AUDIO_ADJUST_MODE", "I")); in init() [all …]
|
D | android_media_PlaybackParams.h | 33 jclass clazz; member 52 clazz = (jclass)env->NewGlobalRef(lclazz); in init() 53 if (clazz == NULL) { in init() 57 constructID = env->GetMethodID(clazz, "<init>", "()V"); in init() 59 speed = env->GetFieldID(clazz, "mSpeed", "F"); in init() 60 pitch = env->GetFieldID(clazz, "mPitch", "F"); in init() 61 audio_fallback_mode = env->GetFieldID(clazz, "mAudioFallbackMode", "I"); in init() 62 audio_stretch_mode = env->GetFieldID(clazz, "mAudioStretchMode", "I"); in init() 63 set = env->GetFieldID(clazz, "mSet", "I"); in init() 66 env->GetStaticIntField(clazz, env->GetStaticFieldID(clazz, "SET_SPEED", "I")); in init() [all …]
|
D | android_media_MediaDrm.cpp | 57 #define GET_FIELD_ID(var, clazz, fieldName, fieldDescriptor) \ argument 58 var = env->GetFieldID(clazz, fieldName, fieldDescriptor); \ 61 #define GET_METHOD_ID(var, clazz, fieldName, fieldDescriptor) \ argument 62 var = env->GetMethodID(clazz, fieldName, fieldDescriptor); \ 65 #define GET_STATIC_FIELD_ID(var, clazz, fieldName, fieldDescriptor) \ argument 66 var = env->GetStaticFieldID(clazz, fieldName, fieldDescriptor); \ 69 #define GET_STATIC_METHOD_ID(var, clazz, fieldName, fieldDescriptor) \ argument 70 var = env->GetStaticMethodID(clazz, fieldName, fieldDescriptor); \ 73 #define GET_STATIC_OBJECT_FIELD(var, clazz, fieldId) \ argument 74 var = env->GetStaticObjectField(clazz, fieldId); \ [all …]
|
D | android_media_BufferingParams.h | 29 jclass clazz; member 41 clazz = (jclass)env->NewGlobalRef(lclazz); in init() 42 if (clazz == NULL) { in init() 46 constructID = env->GetMethodID(clazz, "<init>", "()V"); in init() 48 initial_mark_ms = env->GetFieldID(clazz, "mInitialMarkMs", "I"); in init() 49 resume_playback_mark_ms = env->GetFieldID(clazz, "mResumePlaybackMarkMs", "I"); in init() 55 env->DeleteGlobalRef(clazz); in exit() 56 clazz = NULL; in exit() 68 jobject params = env->NewObject(fields.clazz, fields.constructID); in asJobject()
|
/frameworks/base/tools/apilint/ |
D | deprecated_at_birth.py | 58 def __init__(self, clazz, line, raw, blame): argument 59 self.clazz = clazz 87 def __init__(self, clazz, line, raw, blame): argument 88 self.clazz = clazz 181 clazz = None 198 clazz = Class(pkg, line, raw, blame) 199 api[clazz.fullname] = clazz 201 clazz.ctors.append(Method(clazz, line, raw, blame)) 203 clazz.methods.append(Method(clazz, line, raw, blame)) 205 clazz.fields.append(Field(clazz, line, raw, blame)) [all …]
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/ |
D | TestCaseCollector.java | 84 Class<?> clazz = mClassLoader.loadClass(className); in addTestClass() local 86 addSingleTestMethod(clazz, methodName); in addTestClass() 88 Method[] methods = clazz.getMethods(); in addTestClass() 91 addSingleTestMethod(clazz, method.getName()); in addTestClass() 105 protected void addSingleTestMethod(Class<?> clazz, String method) { in addSingleTestMethod() argument 106 if (!(mFilter.accept(clazz))) { in addSingleTestMethod() 110 TestCase testCase = (TestCase) clazz.newInstance(); in addSingleTestMethod() 114 mTestCases.add(error(clazz, "InstantiationException: could not instantiate " + in addSingleTestMethod() 115 "test class. Class: " + clazz.getName())); in addSingleTestMethod() 117 mTestCases.add(error(clazz, "IllegalAccessException: could not instantiate " + in addSingleTestMethod() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | NotificationVisitUrisTest.java | 300 private static Object generateObject(Class<?> clazz, Location where, in generateObject() argument 302 if (excludingClasses.contains(clazz)) { in generateObject() 305 clazz, excludingClasses)); in generateObject() 308 if (SpecialParameterGenerator.canGenerate(clazz)) { in generateObject() 309 return specialGenerator.generate(clazz, where); in generateObject() 311 if (clazz.isEnum()) { in generateObject() 312 return clazz.getEnumConstants()[0]; in generateObject() 314 if (clazz.isArray()) { in generateObject() 315 Object arrayValue = Array.newInstance(clazz.getComponentType(), NUM_ELEMENTS_IN_ARRAY); in generateObject() 318 generateObject(clazz.getComponentType(), where, excludingClasses, in generateObject() [all …]
|
/frameworks/base/tools/hoststubgen/hoststubgen/helper-runtime-src/com/android/hoststubgen/hosthelper/ |
D | HostTestSuite.java | 52 Class<?> clazz = asTestClass(classInfo); in suite() local 53 if (clazz != null) { in suite() 54 if (classNamePattern.matcher(clazz.getSimpleName()).find()) { in suite() 55 System.out.println("Test class found " + clazz.getName()); in suite() 58 + CLASS_NAME_REGEX_ENV + "): " + clazz.getName()); in suite() 60 suite.addTest(new JUnit4TestAdapter(clazz)); in suite() 75 final Class<?> clazz = classInfo.load(); in asTestClass() local 78 if (junit.framework.TestCase.class.isAssignableFrom(clazz)) { in asTestClass() 86 return clazz; in asTestClass() 89 for (var method : clazz.getMethods()) { in asTestClass() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | android_graphics_animation_RenderNodeAnimator.cpp | 28 jclass clazz; member 71 gRenderNodeAnimatorClassInfo.clazz, in onAnimationFinished() 101 static jlong createAnimator(JNIEnv* env, jobject clazz, in createAnimator() argument 109 static jlong createCanvasPropertyFloatAnimator(JNIEnv* env, jobject clazz, in createCanvasPropertyFloatAnimator() argument 117 static jlong createCanvasPropertyPaintAnimator(JNIEnv* env, jobject clazz, in createCanvasPropertyPaintAnimator() argument 128 static jlong createRevealAnimator(JNIEnv* env, jobject clazz, in createRevealAnimator() argument 135 static void setStartValue(JNIEnv* env, jobject clazz, jlong animatorPtr, jfloat startValue) { in setStartValue() argument 140 static void setDuration(JNIEnv* env, jobject clazz, jlong animatorPtr, jlong duration) { in setDuration() argument 146 static jlong getDuration(JNIEnv* env, jobject clazz, jlong animatorPtr) { in getDuration() argument 151 static void setStartDelay(JNIEnv* env, jobject clazz, jlong animatorPtr, jlong startDelay) { in setStartDelay() argument [all …]
|
D | graphics_jni_helpers.h | 43 jclass clazz = env->FindClass(class_name); in FindClassOrDie() local 44 LOG_ALWAYS_FATAL_IF(clazz == NULL, "Unable to find class %s", class_name); in FindClassOrDie() 45 return clazz; in FindClassOrDie() 48 static inline jfieldID GetFieldIDOrDie(JNIEnv* env, jclass clazz, const char* field_name, in GetFieldIDOrDie() argument 50 jfieldID res = env->GetFieldID(clazz, field_name, field_signature); in GetFieldIDOrDie() 55 static inline jmethodID GetMethodIDOrDie(JNIEnv* env, jclass clazz, const char* method_name, in GetMethodIDOrDie() argument 57 jmethodID res = env->GetMethodID(clazz, method_name, method_signature); in GetMethodIDOrDie() 62 static inline jfieldID GetStaticFieldIDOrDie(JNIEnv* env, jclass clazz, const char* field_name, in GetStaticFieldIDOrDie() argument 64 jfieldID res = env->GetStaticFieldID(clazz, field_name, field_signature); in GetStaticFieldIDOrDie() 69 static inline jmethodID GetStaticMethodIDOrDie(JNIEnv* env, jclass clazz, const char* method_name, in GetStaticMethodIDOrDie() argument [all …]
|
/frameworks/libs/binary_translation/tests/jni_tests/jni/ |
D | jni_tests.cc | 68 jclass clazz) { in Java_com_berberis_jnitests_JniTests_callRegisterNatives() argument 70 return env->RegisterNatives(clazz, methods, sizeof(methods) / sizeof(methods[1])) == JNI_OK; in Java_com_berberis_jnitests_JniTests_callRegisterNatives() 74 jclass clazz, in Java_com_berberis_jnitests_JniTests_callAdd() argument 77 jmethodID method_id = env->GetStaticMethodID(clazz, "add", "(II)I"); in Java_com_berberis_jnitests_JniTests_callAdd() 79 return env->CallStaticIntMethod(clazz, method_id, x, y); in Java_com_berberis_jnitests_JniTests_callAdd() 83 jclass clazz, in Java_com_berberis_jnitests_JniTests_callAddA() argument 86 jmethodID method_id = env->GetStaticMethodID(clazz, "add", "(II)I"); in Java_com_berberis_jnitests_JniTests_callAddA() 90 return env->CallStaticIntMethodA(clazz, method_id, args); in Java_com_berberis_jnitests_JniTests_callAddA() 94 jclass clazz) { in Java_com_berberis_jnitests_JniTests_callCallIntFromJNI() argument 95 jmethodID method_id = env->GetStaticMethodID(clazz, "callIntFromJNI", "()I"); in Java_com_berberis_jnitests_JniTests_callCallIntFromJNI() [all …]
|