Searched defs:methodName (Results 1 - 25 of 44) sorted by relevance

12

/frameworks/base/core/java/android/hardware/camera2/dispatch/
H A DMethodNameInvoker.java54 * @param methodName
59 * The same kind of value that would normally be returned by calling {@code methodName}
62 * @throws IllegalArgumentException if {@code methodName} does not exist on the target class
66 public <K> K invoke(String methodName, Object... params) { argument
67 checkNotNull(methodName, "methodName must not be null");
69 Method targetMethod = mMethods.get(methodName);
73 if (method.getName().equals(methodName) &&
76 mMethods.put(methodName, targetMethod);
83 "Method " + methodName
[all...]
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/
H A DHasAnnotationTest.java44 private boolean hasExampleAnnotation(Class<? extends TestCase> aClass, String methodName) argument
46 Method method = aClass.getMethod(methodName);
H A DHasMethodAnnotationTest.java39 String methodName,
42 Method method = aClass.getMethod(methodName);
38 methodHasAnnotation(Class<? extends TestCase> aClass, String methodName, Class<? extends Annotation> expectedClassification ) argument
/frameworks/base/tools/aapt2/java/
H A DProguardRules.h38 inline void addMethod(const Source& source, const std::u16string& methodName) { argument
39 mKeepMethodSet[methodName].insert(source);
H A DProguardRules.cpp65 void addMethod(size_t lineNumber, const std::u16string& methodName) { argument
66 mKeepSet->addMethod(Source(mSource.path, lineNumber), methodName); local
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
H A DMainActivityTest.java41 private Object invokeMethod(Class targetClass, Object target, String methodName, Object... params) argument
47 Method method = targetClass.getDeclaredMethod(methodName, paramClasses);
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
H A DClassHasNativeVisitorTest.java70 protected void setHasNativeMethods(boolean hasNativeMethods, String methodName) { argument
72 mMethodsFound.add(methodName);
74 super.setHasNativeMethods(hasNativeMethods, methodName);
H A DStubMethodAdapterTest.java46 final String methodName = "returnTrue";
48 testBoolean((name, type) -> false, Assert::assertTrue, methodName);
50 testBoolean((name, type) -> methodName.equals(name) &&
51 Type.BOOLEAN_TYPE.equals(type.getReturnType()), Assert::assertFalse, methodName);
58 String methodName) throws Exception {
68 Method method = aClass.getMethod(methodName);
57 testBoolean(BiPredicate<String, Type> methodPredicate, Consumer<Boolean> assertion, String methodName) argument
H A DDelegateClassAdapterTest.java442 public <T> T callMethod(Object instance, String methodName, boolean makePublic) throws Exception { argument
443 Method m = instance.getClass().getDeclaredMethod(methodName, (Class<?>[])null);
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
H A DSysTrace.java99 * @param methodName The method name to appear in the trace.
102 public static void beginSectionAsync(String methodName, int cookie) { argument
104 Log.v(TAG, "beginSectionAsync " + methodName + " " + cookie);
113 * @param methodName The method name to appear in the trace.
116 public static void endSectionAsync(String methodName, int cookie) { argument
118 Log.v(TAG, "endSectionAsync " + methodName + " " + cookie);
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
H A DTestCaseCollector.java67 String methodName = null;
69 methodName = className.substring(hashPos + 1);
72 addTestClass(className, methodName);
79 * @param methodName may be null, in which case all "public void testNNN(void)" functions
83 public void addTestClass(String className, String methodName) throws ClassNotFoundException { argument
85 if (methodName != null) {
86 addSingleTestMethod(clazz, methodName);
/frameworks/base/test-runner/src/android/test/suitebuilder/
H A DTestMethod.java40 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { argument
43 this.testMethodName = methodName;
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/testapp/
H A DBaseDataBinderTest.java115 protected void assertMethod(Class<?> klass, String methodName) throws NoSuchMethodException { argument
116 assertEquals(klass, mBinder.getClass().getDeclaredMethod(methodName).getReturnType());
/frameworks/base/core/jni/
H A Dandroid_animation_PropertyValuesHolder.cpp33 JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName)
35 const char *nativeString = env->GetStringUTFChars(methodName, 0);
37 env->ReleaseStringUTFChars(methodName, nativeString);
42 JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName)
44 const char *nativeString = env->GetStringUTFChars(methodName, 0);
46 env->ReleaseStringUTFChars(methodName, nativeString);
50 static jlong getMultiparameterMethod(JNIEnv* env, jclass targetClass, jstring methodName, argument
53 const char *nativeString = env->GetStringUTFChars(methodName, 0);
60 env->ReleaseStringUTFChars(methodName, nativeString);
65 JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName, jin
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
[all...]
H A Dandroid_media_RemoteDisplay.cpp101 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
103 ALOGE("An exception was thrown by callback '%s'.", methodName);
/frameworks/base/services/core/jni/
H A Dcom_android_server_power_PowerManagerService.cpp60 static bool checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
62 ALOGE("An exception was thrown by callback '%s'.", methodName);
191 #define GET_METHOD_ID(var, clazz, methodName, methodDescriptor) \
192 var = env->GetMethodID(clazz, methodName, methodDescriptor); \
193 LOG_FATAL_IF(! var, "Unable to find method " methodName);
H A Dcom_android_server_UsbHostManager.cpp50 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
52 ALOGE("An exception was thrown by callback '%s'.", methodName);
/frameworks/base/tools/layoutlib/bridge/src/android/animation/
H A DPropertyValuesHolder_Delegate.java64 private static long registerMethod(Class<?> targetClass, String methodName, Class[] types, argument
68 methodName, nArgs);
84 method = targetClass.getDeclaredMethod(methodName, args);
117 /*package*/ static long nGetIntMethod(Class<?> targetClass, String methodName) { argument
118 return nGetMultipleIntMethod(targetClass, methodName, 1);
122 /*package*/ static long nGetFloatMethod(Class<?> targetClass, String methodName) { argument
123 return nGetMultipleFloatMethod(targetClass, methodName, 1);
127 /*package*/ static long nGetMultipleIntMethod(Class<?> targetClass, String methodName, argument
129 return registerMethod(targetClass, methodName, INTEGER_VARIANTS, numParams);
133 /*package*/ static long nGetMultipleFloatMethod(Class<?> targetClass, String methodName, argument
[all...]
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DClassHasNativeVisitor.java44 protected void setHasNativeMethods(boolean hasNativeMethods, String methodName) { argument
H A DDelegateMethodAdapter.java114 * @param methodName The simple name of the method.
123 String methodName,
132 mMethodName = methodName;
119 DelegateMethodAdapter(Log log, MethodVisitor mvOriginal, MethodVisitor mvDelegate, String className, String methodName, String desc, boolean isStatic, boolean isStaticClass) argument
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DAppCompatViewInflater.java276 public DeclaredOnClickListener(@NonNull View hostView, @NonNull String methodName) { argument
278 mMethodName = methodName;
/frameworks/base/cmds/hid/jni/
H A Dcom_android_commands_hid_Device.cpp57 static void checkAndClearException(JNIEnv* env, const char* methodName) { argument
59 ALOGE("An exception was thrown by callback '%s'.", methodName);
/frameworks/base/core/java/android/os/
H A DTrace.java208 * @param methodName The method name to appear in the trace.
212 public static void traceBegin(long traceTag, String methodName) { argument
214 nativeTraceBegin(traceTag, methodName);
240 * @param methodName The method name to appear in the trace.
245 public static void asyncTraceBegin(long traceTag, String methodName, int cookie) { argument
247 nativeAsyncTraceBegin(traceTag, methodName, cookie);
257 * @param methodName The method name to appear in the trace.
262 public static void asyncTraceEnd(long traceTag, String methodName, int cookie) { argument
264 nativeAsyncTraceEnd(traceTag, methodName, cookie);
/frameworks/base/core/java/android/view/
H A DMenuInflater.java236 public InflatedOnMenuItemClickListener(Object realOwner, String methodName) { argument
240 mMethod = c.getMethod(methodName, PARAM_TYPES);
243 "Couldn't resolve menu item onClick handler " + methodName +
/frameworks/base/media/jni/
H A Dandroid_media_MediaScanner.cpp51 static status_t checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
53 ALOGE("An exception was thrown by callback '%s'.", methodName);

Completed in 226 milliseconds

12