Home
last modified time | relevance | path

Searched refs:clazz (Results 1 – 25 of 301) sorted by relevance

12345678910>>...13

/frameworks/base/core/jni/
Dandroid_content_res_Configuration.cpp49 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 …]
Dandroid_util_Log.cpp50 static jboolean android_util_Log_isLoggable(JNIEnv* env, jobject clazz, jstring tag, jint level) in android_util_Log_isLoggable() argument
75 static jint android_util_Log_println_native(JNIEnv* env, jobject clazz, in android_util_Log_println_native() argument
109 jobject clazz ATTRIBUTE_UNUSED) in android_util_Log_logger_entry_max_payload_native()
126 jclass clazz = FindClassOrDie(env, "android/util/Log"); in register_android_util_Log() local
128 … levels.verbose = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "VERBOSE", "I")); in register_android_util_Log()
129 levels.debug = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "DEBUG", "I")); in register_android_util_Log()
130 levels.info = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "INFO", "I")); in register_android_util_Log()
131 levels.warn = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "WARN", "I")); in register_android_util_Log()
132 levels.error = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "ERROR", "I")); in register_android_util_Log()
133 levels.assert = env->GetStaticIntField(clazz, GetStaticFieldIDOrDie(env, clazz, "ASSERT", "I")); in register_android_util_Log()
Dandroid_hardware_input_InputWindowHandle.cpp252 #define GET_FIELD_ID(var, clazz, fieldName, fieldDescriptor) \ argument
253 var = env->GetFieldID(clazz, fieldName, fieldDescriptor); \
256 #define GET_METHOD_ID(var, clazz, methodName, methodSignature) \ argument
257 var = env->GetMethodID(clazz, methodName, methodSignature); \
266 jclass clazz; in register_android_view_InputWindowHandle() local
267 FIND_CLASS(clazz, "android/view/InputWindowHandle"); in register_android_view_InputWindowHandle()
269 GET_FIELD_ID(gInputWindowHandleClassInfo.ptr, clazz, in register_android_view_InputWindowHandle()
272 GET_FIELD_ID(gInputWindowHandleClassInfo.inputApplicationHandle, clazz, in register_android_view_InputWindowHandle()
275 GET_FIELD_ID(gInputWindowHandleClassInfo.token, clazz, in register_android_view_InputWindowHandle()
278 GET_FIELD_ID(gInputWindowHandleClassInfo.name, clazz, in register_android_view_InputWindowHandle()
[all …]
Dandroid_view_KeyEvent.cpp35 jclass clazz; member
57 jobject eventObj = env->CallStaticObjectMethod(gKeyEventClassInfo.clazz, in android_view_KeyEvent_fromNative()
112 static jstring android_view_KeyEvent_nativeKeyCodeToString(JNIEnv* env, jobject clazz, in android_view_KeyEvent_nativeKeyCodeToString() argument
117 static jint android_view_KeyEvent_nativeKeyCodeFromString(JNIEnv* env, jobject clazz, in android_view_KeyEvent_nativeKeyCodeFromString() argument
134 jclass clazz = FindClassOrDie(env, "android/view/KeyEvent"); in register_android_view_KeyEvent() local
135 gKeyEventClassInfo.clazz = MakeGlobalRefOrDie(env, clazz); in register_android_view_KeyEvent()
137 gKeyEventClassInfo.obtain = GetStaticMethodIDOrDie(env, gKeyEventClassInfo.clazz, in register_android_view_KeyEvent()
139 gKeyEventClassInfo.recycle = GetMethodIDOrDie(env, gKeyEventClassInfo.clazz, in register_android_view_KeyEvent()
142 gKeyEventClassInfo.mDeviceId = GetFieldIDOrDie(env, gKeyEventClassInfo.clazz, "mDeviceId", "I"); in register_android_view_KeyEvent()
143 gKeyEventClassInfo.mSource = GetFieldIDOrDie(env, gKeyEventClassInfo.clazz, "mSource", "I"); in register_android_view_KeyEvent()
[all …]
DBindTest.cpp38 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 …]
Dandroid_view_KeyCharacterMap.cpp34 jclass clazz; member
39 jclass clazz; member
79 return env->NewObject(gKeyCharacterMapClassInfo.clazz, gKeyCharacterMapClassInfo.ctor, in android_view_KeyCharacterMap_create()
83 static jlong nativeReadFromParcel(JNIEnv *env, jobject clazz, jobject parcelObj) { in nativeReadFromParcel() argument
103 static void nativeWriteToParcel(JNIEnv* env, jobject clazz, jlong ptr, jobject parcelObj) { in nativeWriteToParcel() argument
112 static void nativeDispose(JNIEnv *env, jobject clazz, jlong ptr) { in nativeDispose() argument
117 static jchar nativeGetCharacter(JNIEnv *env, jobject clazz, jlong ptr, in nativeGetCharacter() argument
123 static jboolean nativeGetFallbackAction(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode, in nativeGetFallbackAction() argument
138 static jchar nativeGetNumber(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode) { in nativeGetNumber() argument
143 static jchar nativeGetMatch(JNIEnv *env, jobject clazz, jlong ptr, jint keyCode, in nativeGetMatch() argument
[all …]
Dandroid_hardware_display_DisplayViewport.cpp34 jclass clazz; member
101 jclass clazz = FindClassOrDie(env, "android/hardware/display/DisplayViewport"); in register_android_hardware_display_DisplayViewport() local
102 gDisplayViewportClassInfo.clazz = MakeGlobalRefOrDie(env, clazz); in register_android_hardware_display_DisplayViewport()
105 gDisplayViewportClassInfo.clazz, "displayId", "I"); in register_android_hardware_display_DisplayViewport()
108 gDisplayViewportClassInfo.clazz, "orientation", "I"); in register_android_hardware_display_DisplayViewport()
111 gDisplayViewportClassInfo.clazz, "deviceWidth", "I"); in register_android_hardware_display_DisplayViewport()
114 gDisplayViewportClassInfo.clazz, "deviceHeight", "I"); in register_android_hardware_display_DisplayViewport()
117 gDisplayViewportClassInfo.clazz, "logicalFrame", "Landroid/graphics/Rect;"); in register_android_hardware_display_DisplayViewport()
120 gDisplayViewportClassInfo.clazz, "physicalFrame", "Landroid/graphics/Rect;"); in register_android_hardware_display_DisplayViewport()
123 gDisplayViewportClassInfo.clazz, "uniqueId", "Ljava/lang/String;"); in register_android_hardware_display_DisplayViewport()
[all …]
Dandroid_os_Parcel.cpp65 jclass clazz; member
85 return env->CallStaticObjectMethod(gParcelOffsets.clazz, gParcelOffsets.obtain); in createJavaParcelObject()
117 static jlong android_os_Parcel_setDataSize(JNIEnv* env, jclass clazz, jlong nativePtr, jint size) in android_os_Parcel_setDataSize() argument
123 signalExceptionForError(env, clazz, err); in android_os_Parcel_setDataSize()
138 static void android_os_Parcel_setDataCapacity(JNIEnv* env, jclass clazz, jlong nativePtr, jint size) in android_os_Parcel_setDataCapacity() argument
144 signalExceptionForError(env, clazz, err); in android_os_Parcel_setDataCapacity()
167 static void android_os_Parcel_writeByteArray(JNIEnv* env, jclass clazz, jlong nativePtr, in android_os_Parcel_writeByteArray() argument
177 signalExceptionForError(env, clazz, err); in android_os_Parcel_writeByteArray()
183 signalExceptionForError(env, clazz, NO_MEMORY); in android_os_Parcel_writeByteArray()
194 static void android_os_Parcel_writeBlob(JNIEnv* env, jclass clazz, jlong nativePtr, jobject data, in android_os_Parcel_writeBlob() argument
[all …]
Dandroid_view_RenderNodeAnimator.cpp35 jclass clazz; member
78 gRenderNodeAnimatorClassInfo.clazz, in onAnimationFinished()
108 static jlong createAnimator(JNIEnv* env, jobject clazz, in createAnimator() argument
116 static jlong createCanvasPropertyFloatAnimator(JNIEnv* env, jobject clazz, in createCanvasPropertyFloatAnimator() argument
124 static jlong createCanvasPropertyPaintAnimator(JNIEnv* env, jobject clazz, in createCanvasPropertyPaintAnimator() argument
135 static jlong createRevealAnimator(JNIEnv* env, jobject clazz, in createRevealAnimator() argument
142 static void setStartValue(JNIEnv* env, jobject clazz, jlong animatorPtr, jfloat startValue) { in setStartValue() argument
147 static void setDuration(JNIEnv* env, jobject clazz, jlong animatorPtr, jlong duration) { in setDuration() argument
153 static jlong getDuration(JNIEnv* env, jobject clazz, jlong animatorPtr) { in getDuration() argument
158 static void setStartDelay(JNIEnv* env, jobject clazz, jlong animatorPtr, jlong startDelay) { in setStartDelay() argument
[all …]
Dandroid_hardware_HardwareBuffer.cpp56 jclass clazz; member
73 static jlong android_hardware_HardwareBuffer_create(JNIEnv* env, jobject clazz, in android_hardware_HardwareBuffer_create() argument
100 static jlong android_hardware_HardwareBuffer_createFromGraphicBuffer(JNIEnv* env, jobject clazz, jo… in android_hardware_HardwareBuffer_createFromGraphicBuffer() argument
110 static jlong android_hardware_HardwareBuffer_getNativeFinalizer(JNIEnv* env, jobject clazz) { in android_hardware_HardwareBuffer_getNativeFinalizer() argument
114 static jboolean android_hardware_HardwareBuffer_isSupported(JNIEnv* env, jobject clazz, in android_hardware_HardwareBuffer_isSupported() argument
138 static jint android_hardware_HardwareBuffer_getWidth(JNIEnv* env, jobject clazz, in android_hardware_HardwareBuffer_getWidth() argument
145 jobject clazz, jlong nativeObject) { in android_hardware_HardwareBuffer_getHeight() argument
151 jobject clazz, jlong nativeObject) { in android_hardware_HardwareBuffer_getFormat() argument
158 jobject clazz, jlong nativeObject) { in android_hardware_HardwareBuffer_getLayers() argument
164 jobject clazz, jlong nativeObject) { in android_hardware_HardwareBuffer_getUsage() argument
[all …]
Dandroid_view_SurfaceControl.cpp57 jclass clazz; member
93 jclass clazz; member
98 jclass clazz; member
103 jclass clazz; member
108 jclass clazz; member
113 jclass clazz; member
121 jclass clazz; member
130 jclass clazz; member
166 static jlong nativeCreateTransaction(JNIEnv* env, jclass clazz) { in nativeCreateTransaction() argument
174 static jlong nativeGetNativeTransactionFinalizer(JNIEnv* env, jclass clazz) { in nativeGetNativeTransactionFinalizer() argument
[all …]
Dcore_jni_helpers.h42 jclass clazz = env->FindClass(class_name); in FindClassOrDie() local
43 LOG_ALWAYS_FATAL_IF(clazz == NULL, "Unable to find class %s", class_name); in FindClassOrDie()
44 return clazz; in FindClassOrDie()
47 static inline jfieldID GetFieldIDOrDie(JNIEnv* env, jclass clazz, const char* field_name, in GetFieldIDOrDie() argument
49 jfieldID res = env->GetFieldID(clazz, field_name, field_signature); in GetFieldIDOrDie()
54 static inline jmethodID GetMethodIDOrDie(JNIEnv* env, jclass clazz, const char* method_name, in GetMethodIDOrDie() argument
56 jmethodID res = env->GetMethodID(clazz, method_name, method_signature); in GetMethodIDOrDie()
61 static inline jfieldID GetStaticFieldIDOrDie(JNIEnv* env, jclass clazz, const char* field_name, in GetStaticFieldIDOrDie() argument
63 jfieldID res = env->GetStaticFieldID(clazz, field_name, field_signature); in GetStaticFieldIDOrDie()
68 static inline jmethodID GetStaticMethodIDOrDie(JNIEnv* env, jclass clazz, const char* method_name, in GetStaticMethodIDOrDie() argument
[all …]
Dandroid_view_Surface.cpp65 jclass clazz; member
102 return env->IsInstanceOf(obj, gSurfaceClassInfo.clazz); in android_view_Surface_isInstanceOf()
123 jobject surfaceObj = env->NewObject(gSurfaceClassInfo.clazz, in android_view_Surface_createFromSurface()
168 static jlong nativeCreateFromSurfaceTexture(JNIEnv* env, jclass clazz, in nativeCreateFromSurfaceTexture() argument
187 static void nativeRelease(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeRelease() argument
192 static jboolean nativeIsValid(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeIsValid() argument
197 static jboolean nativeIsConsumerRunningBehind(JNIEnv* env, jclass clazz, jlong nativeObject) { in nativeIsConsumerRunningBehind() argument
224 static jlong nativeLockCanvas(JNIEnv* env, jclass clazz, in nativeLockCanvas() argument
296 static void nativeUnlockCanvasAndPost(JNIEnv* env, jclass clazz, in nativeUnlockCanvasAndPost() argument
326 static jlong nativeCreateFromSurfaceControl(JNIEnv* env, jclass clazz, in nativeCreateFromSurfaceControl() argument
[all …]
Dcom_android_internal_view_animation_NativeInterpolatorFactoryHelper.cpp30 static jlong createAccelerateDecelerateInterpolator(JNIEnv* env, jobject clazz) { in createAccelerateDecelerateInterpolator() argument
34 static jlong createAccelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createAccelerateInterpolator() argument
38 static jlong createAnticipateInterpolator(JNIEnv* env, jobject clazz, jfloat tension) { in createAnticipateInterpolator() argument
42 static jlong createAnticipateOvershootInterpolator(JNIEnv* env, jobject clazz, jfloat tension) { in createAnticipateOvershootInterpolator() argument
46 static jlong createBounceInterpolator(JNIEnv* env, jobject clazz) { in createBounceInterpolator() argument
50 static jlong createCycleInterpolator(JNIEnv* env, jobject clazz, jfloat cycles) { in createCycleInterpolator() argument
54 static jlong createDecelerateInterpolator(JNIEnv* env, jobject clazz, jfloat factor) { in createDecelerateInterpolator() argument
58 static jlong createLinearInterpolator(JNIEnv* env, jobject clazz) { in createLinearInterpolator() argument
62 static jlong createOvershootInterpolator(JNIEnv* env, jobject clazz, jfloat tension) { in createOvershootInterpolator() argument
66 static jlong createPathInterpolator(JNIEnv* env, jobject clazz, jfloatArray jX, jfloatArray jY) { in createPathInterpolator() argument
[all …]
/frameworks/base/startop/view_compiler/dex_builder_test/src/android/startop/test/
DDexBuilderTest.java47 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in return5() local
48 Method method = clazz.getMethod("return5"); in return5()
55 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnInteger5() local
56 Method method = clazz.getMethod("returnInteger5"); in returnInteger5()
63 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnParam() local
64 Method method = clazz.getMethod("returnParam", int.class); in returnParam()
72 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnStringLength() local
73 Method method = clazz.getMethod("returnStringLength", String.class); in returnStringLength()
80 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnIfZero() local
81 Method method = clazz.getMethod("returnIfZero", int.class); in returnIfZero()
[all …]
/frameworks/base/core/java/android/view/inputmethod/
DInputConnectionInspector.java111 public static int getMissingMethodFlagsInternal(@NonNull final Class clazz) { in getMissingMethodFlagsInternal() argument
112 final Integer cachedFlags = sMissingMethodsMap.get(clazz); in getMissingMethodFlagsInternal()
117 if (!hasGetSelectedText(clazz)) { in getMissingMethodFlagsInternal()
120 if (!hasSetComposingRegion(clazz)) { in getMissingMethodFlagsInternal()
123 if (!hasCommitCorrection(clazz)) { in getMissingMethodFlagsInternal()
126 if (!hasRequestCursorUpdate(clazz)) { in getMissingMethodFlagsInternal()
129 if (!hasDeleteSurroundingTextInCodePoints(clazz)) { in getMissingMethodFlagsInternal()
132 if (!hasGetHandler(clazz)) { in getMissingMethodFlagsInternal()
135 if (!hasCloseConnection(clazz)) { in getMissingMethodFlagsInternal()
138 if (!hasCommitContent(clazz)) { in getMissingMethodFlagsInternal()
[all …]
/frameworks/base/media/jni/
Dandroid_media_SyncParams.cpp29 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 …]
Dandroid_media_PlaybackParams.h33 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 …]
Dandroid_media_MediaDrm.cpp48 #define GET_FIELD_ID(var, clazz, fieldName, fieldDescriptor) \ argument
49 var = env->GetFieldID(clazz, fieldName, fieldDescriptor); \
52 #define GET_METHOD_ID(var, clazz, fieldName, fieldDescriptor) \ argument
53 var = env->GetMethodID(clazz, fieldName, fieldDescriptor); \
56 #define GET_STATIC_FIELD_ID(var, clazz, fieldName, fieldDescriptor) \ argument
57 var = env->GetStaticFieldID(clazz, fieldName, fieldDescriptor); \
60 #define GET_STATIC_METHOD_ID(var, clazz, fieldName, fieldDescriptor) \ argument
61 var = env->GetStaticMethodID(clazz, fieldName, fieldDescriptor); \
64 #define GET_STATIC_OBJECT_FIELD(var, clazz, fieldId) \ argument
65 var = env->GetStaticObjectField(clazz, fieldId); \
[all …]
Dandroid_mtp_MtpDevice.cpp784 jclass clazz; in register_android_mtp_MtpDevice() local
788 clazz = env->FindClass("android/mtp/MtpDeviceInfo"); in register_android_mtp_MtpDevice()
789 if (clazz == NULL) { in register_android_mtp_MtpDevice()
793 constructor_deviceInfo = env->GetMethodID(clazz, "<init>", "()V"); in register_android_mtp_MtpDevice()
798 field_deviceInfo_manufacturer = env->GetFieldID(clazz, "mManufacturer", "Ljava/lang/String;"); in register_android_mtp_MtpDevice()
803 field_deviceInfo_model = env->GetFieldID(clazz, "mModel", "Ljava/lang/String;"); in register_android_mtp_MtpDevice()
808 field_deviceInfo_version = env->GetFieldID(clazz, "mVersion", "Ljava/lang/String;"); in register_android_mtp_MtpDevice()
813 field_deviceInfo_serialNumber = env->GetFieldID(clazz, "mSerialNumber", "Ljava/lang/String;"); in register_android_mtp_MtpDevice()
818 field_deviceInfo_operationsSupported = env->GetFieldID(clazz, "mOperationsSupported", "[I"); in register_android_mtp_MtpDevice()
823 field_deviceInfo_eventsSupported = env->GetFieldID(clazz, "mEventsSupported", "[I"); in register_android_mtp_MtpDevice()
[all …]
Dandroid_media_BufferingParams.h29 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/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
DTestCaseCollector.java84 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/ex/framesequence/jni/
DFrameSequenceJNI.cpp27 jclass clazz; member
39 return env->NewObject(gFrameSequenceClassInfo.clazz, gFrameSequenceClassInfo.ctor, in createJavaFrameSequence()
48 static jobject nativeDecodeByteArray(JNIEnv* env, jobject clazz, in nativeDecodeByteArray() argument
62 static jobject nativeDecodeByteBuffer(JNIEnv* env, jobject clazz, in nativeDecodeByteBuffer() argument
77 static jobject nativeDecodeStream(JNIEnv* env, jobject clazz, in nativeDecodeStream() argument
84 static void nativeDestroyFrameSequence(JNIEnv* env, jobject clazz, in nativeDestroyFrameSequence() argument
94 static jlong nativeCreateState(JNIEnv* env, jobject clazz, jlong frameSequenceLong) { in nativeCreateState() argument
105 JNIEnv* env, jobject clazz, jlong frameSequenceStateLong) { in nativeDestroyState() argument
118 JNIEnv* env, jobject clazz, jlong frameSequenceStateLong, jint frameNr, in nativeGetFrame() argument
178 gFrameSequenceClassInfo.clazz = env->FindClass(JNI_PACKAGE "/FrameSequence"); in FrameSequence_OnLoad()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/format/
DObjectFormat.java29 public static MutableFrameFormat fromClass(Class clazz, int count, int target) { in fromClass() argument
32 result.setObjectClass(getBoxedClass(clazz)); in fromClass()
36 result.setBytesPerSample(bytesPerSampleForClass(clazz, target)); in fromClass()
40 public static MutableFrameFormat fromClass(Class clazz, int target) { in fromClass() argument
41 return fromClass(clazz, FrameFormat.SIZE_UNSPECIFIED, target); in fromClass()
56 private static int bytesPerSampleForClass(Class clazz, int target) { in bytesPerSampleForClass() argument
60 if (!NativeBuffer.class.isAssignableFrom(clazz)) { in bytesPerSampleForClass()
62 "NativeBuffer subclass! (Received class: " + clazz + ")."); in bytesPerSampleForClass()
65 return ((NativeBuffer)clazz.newInstance()).getElementSize(); in bytesPerSampleForClass()
68 + "native object-based frame of type " + clazz + "! Perhaps it is missing a " in bytesPerSampleForClass()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameType.java137 public static FrameType single(Class<?> clazz) { in single() argument
138 return FrameType.fetchType(clazz, 0); in single()
154 public static FrameType array(Class<?> clazz) { in array() argument
155 return FrameType.fetchType(clazz, 1); in array()
360 private static String keyValueForType(int elemId, int dims, int hints, Class<?> clazz) { in keyValueForType() argument
361 return elemId + ":" + dims + ":" + hints + ":" + (clazz != null ? clazz.getName() : "0"); in keyValueForType()
364 private static String elementToString(int elemId, Class<?> clazz) { in elementToString() argument
381 return "<" + (clazz == null ? "*" : clazz.getSimpleName()) + ">"; in elementToString()
408 private static FrameType fetchType(Class<?> clazz, int dimensions) { in fetchType() argument
409 return fetchType(ELEMENT_OBJECT, dimensions, ACCESS_UNKNOWN, clazz); in fetchType()
[all …]

12345678910>>...13