Home
last modified time | relevance | path

Searched refs:methodName (Results 1 – 25 of 50) sorted by relevance

12

/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java779 String methodName; in pairOrAcceptPair() local
781 methodName = String.format("pair(device=%s)", device); in pairOrAcceptPair()
783 methodName = String.format("acceptPair(device=%s)", device); in pairOrAcceptPair()
787 fail(String.format("%s bluetooth not enabled", methodName)); in pairOrAcceptPair()
809 fail(String.format("%s invalid state: state=%d", methodName, state)); in pairOrAcceptPair()
819 writeOutput(String.format("%s completed in %d ms", methodName, in pairOrAcceptPair()
822 writeOutput(String.format("%s completed", methodName)); in pairOrAcceptPair()
833 methodName, state, BluetoothDevice.BOND_BONDED, firedFlags, mask)); in pairOrAcceptPair()
846 String methodName = String.format("unpair(device=%s)", device); in unpair() local
849 fail(String.format("%s bluetooth not enabled", methodName)); in unpair()
[all …]
/frameworks/base/core/jni/
Dandroid_animation_PropertyValuesHolder.cpp33 JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName) in android_animation_PropertyValuesHolder_getIntMethod() argument
35 const char *nativeString = env->GetStringUTFChars(methodName, 0); in android_animation_PropertyValuesHolder_getIntMethod()
37 env->ReleaseStringUTFChars(methodName, nativeString); in android_animation_PropertyValuesHolder_getIntMethod()
42 JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName) in android_animation_PropertyValuesHolder_getFloatMethod() argument
44 const char *nativeString = env->GetStringUTFChars(methodName, 0); in android_animation_PropertyValuesHolder_getFloatMethod()
46 env->ReleaseStringUTFChars(methodName, nativeString); in android_animation_PropertyValuesHolder_getFloatMethod()
50 static jlong getMultiparameterMethod(JNIEnv* env, jclass targetClass, jstring methodName, in getMultiparameterMethod() argument
53 const char *nativeString = env->GetStringUTFChars(methodName, 0); in getMultiparameterMethod()
60 env->ReleaseStringUTFChars(methodName, nativeString); in getMultiparameterMethod()
65 JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName, jint parameterCount) in android_animation_PropertyValuesHolder_getMultipleFloatMethod() argument
[all …]
Dandroid_media_RemoteDisplay.cpp101 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { in checkAndClearExceptionFromCallback() argument
103 ALOGE("An exception was thrown by callback '%s'.", methodName); in checkAndClearExceptionFromCallback()
/frameworks/base/tools/layoutlib/bridge/src/android/animation/
DPropertyValuesHolder_Delegate.java64 private static long registerMethod(Class<?> targetClass, String methodName, Class[] types, in registerMethod() argument
68 methodName, nArgs); in registerMethod()
84 method = targetClass.getDeclaredMethod(methodName, args); in registerMethod()
117 /*package*/ static long nGetIntMethod(Class<?> targetClass, String methodName) { in nGetIntMethod() argument
118 return nGetMultipleIntMethod(targetClass, methodName, 1); in nGetIntMethod()
122 /*package*/ static long nGetFloatMethod(Class<?> targetClass, String methodName) { in nGetFloatMethod() argument
123 return nGetMultipleFloatMethod(targetClass, methodName, 1); in nGetFloatMethod()
127 /*package*/ static long nGetMultipleIntMethod(Class<?> targetClass, String methodName, in nGetMultipleIntMethod() argument
129 return registerMethod(targetClass, methodName, INTEGER_VARIANTS, numParams); in nGetMultipleIntMethod()
133 /*package*/ static long nGetMultipleFloatMethod(Class<?> targetClass, String methodName, in nGetMultipleFloatMethod() argument
[all …]
/frameworks/base/core/java/android/hardware/camera2/dispatch/
DMethodNameInvoker.java66 public <K> K invoke(String methodName, Object... params) { in invoke() argument
67 checkNotNull(methodName, "methodName must not be null"); in invoke()
69 Method targetMethod = mMethods.get(methodName); in invoke()
73 if (method.getName().equals(methodName) && in invoke()
76 mMethods.put(methodName, targetMethod); in invoke()
83 "Method " + methodName + " does not exist on class " + mTargetClass); in invoke()
/frameworks/base/core/java/android/os/
DTrace.java210 public static void traceBegin(long traceTag, String methodName) { in traceBegin() argument
212 nativeTraceBegin(traceTag, methodName); in traceBegin()
243 public static void asyncTraceBegin(long traceTag, String methodName, int cookie) { in asyncTraceBegin() argument
245 nativeAsyncTraceBegin(traceTag, methodName, cookie); in asyncTraceBegin()
260 public static void asyncTraceEnd(long traceTag, String methodName, int cookie) { in asyncTraceEnd() argument
262 nativeAsyncTraceEnd(traceTag, methodName, cookie); in asyncTraceEnd()
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
DTestCaseCollector.java67 String methodName = null; in addTestClass() local
69 methodName = className.substring(hashPos + 1); in addTestClass()
72 addTestClass(className, methodName); in addTestClass()
83 public void addTestClass(String className, String methodName) throws ClassNotFoundException { in addTestClass() argument
85 if (methodName != null) { in addTestClass()
86 addSingleTestMethod(clazz, methodName); in addTestClass()
/frameworks/ex/camera2/public/src/com/android/ex/camera2/utils/
DSysTrace.java102 public static void beginSectionAsync(String methodName, int cookie) { in beginSectionAsync() argument
104 Log.v(TAG, "beginSectionAsync " + methodName + " " + cookie); in beginSectionAsync()
116 public static void endSectionAsync(String methodName, int cookie) { in endSectionAsync() argument
118 Log.v(TAG, "endSectionAsync " + methodName + " " + cookie); in endSectionAsync()
/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
DStubMethodAdapterTest.java46 final String methodName = "returnTrue"; in testBoolean() local
48 testBoolean((name, type) -> false, Assert::assertTrue, methodName); in testBoolean() local
50 testBoolean((name, type) -> methodName.equals(name) && in testBoolean()
51 Type.BOOLEAN_TYPE.equals(type.getReturnType()), Assert::assertFalse, methodName); in testBoolean() local
58 String methodName) throws Exception { in testBoolean() argument
68 Method method = aClass.getMethod(methodName); in testBoolean()
DClassHasNativeVisitorTest.java70 protected void setHasNativeMethods(boolean hasNativeMethods, String methodName) { in setHasNativeMethods() argument
72 mMethodsFound.add(methodName); in setHasNativeMethods()
74 super.setHasNativeMethods(hasNativeMethods, methodName); in setHasNativeMethods()
/frameworks/base/core/java/android/widget/
DRemoteViews.java827 private Method getMethod(View view, String methodName, Class<?> paramType) { in getMethod() argument
838 mPair.first = methodName; in getMethod()
845 method = klass.getMethod(methodName); in getMethod()
847 method = klass.getMethod(methodName, paramType); in getMethod()
851 + methodName + getParameters(paramType)); in getMethod()
857 + methodName + getParameters(paramType)); in getMethod()
860 methods.put(new MutablePair<String, Class<?>>(methodName, paramType), method); in getMethod()
1002 final String methodName; field in RemoteViews.ReflectionActionWithoutParams
1006 ReflectionActionWithoutParams(int viewId, String methodName) { in ReflectionActionWithoutParams() argument
1008 this.methodName = methodName; in ReflectionActionWithoutParams()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp60 static bool checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { in checkAndClearExceptionFromCallback() argument
62 ALOGE("An exception was thrown by callback '%s'.", methodName); in checkAndClearExceptionFromCallback()
191 #define GET_METHOD_ID(var, clazz, methodName, methodDescriptor) \ argument
192 var = env->GetMethodID(clazz, methodName, methodDescriptor); \
193 LOG_FATAL_IF(! var, "Unable to find method " methodName);
Dcom_android_server_AssetAtlasService.cpp201 #define GET_METHOD_ID(var, clazz, methodName, methodDescriptor) \ argument
202 var = env->GetMethodID(clazz, methodName, methodDescriptor); \
203 LOG_FATAL_IF(!var, "Unable to find method " methodName);
Dcom_android_server_hdmi_HdmiCecController.cpp174 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { in checkAndClearExceptionFromCallback() argument
176 ALOGE("An exception was thrown by callback '%s'.", methodName); in checkAndClearExceptionFromCallback()
285 #define GET_METHOD_ID(var, clazz, methodName, methodDescriptor) \ argument
286 var = env->GetMethodID(clazz, methodName, methodDescriptor); \
287 LOG_FATAL_IF(! var, "Unable to find method " methodName);
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/annotation/
DHasMethodAnnotationTest.java39 String methodName, in methodHasAnnotation() argument
42 Method method = aClass.getMethod(methodName); in methodHasAnnotation()
DHasAnnotationTest.java44 private boolean hasExampleAnnotation(Class<? extends TestCase> aClass, String methodName) in hasExampleAnnotation() argument
46 Method method = aClass.getMethod(methodName); in hasExampleAnnotation()
/frameworks/base/core/java/android/animation/
DPropertyValuesHolder.java698 String methodName = getMethodName(prefix, mPropertyName); in getPropertyFunction() local
702 returnVal = targetClass.getMethod(methodName, args); in getPropertyFunction()
722 returnVal = targetClass.getMethod(methodName, args); in getPropertyFunction()
1255 String methodName = getMethodName("set", mPropertyName); in setupSetter() local
1257 mJniSetter = nGetIntMethod(targetClass, methodName); in setupSetter()
1393 String methodName = getMethodName("set", mPropertyName); in setupSetter() local
1395 mJniSetter = nGetFloatMethod(targetClass, methodName); in setupSetter()
1498 String methodName = getMethodName("set", mPropertyName); in setupSetter() local
1503 mJniSetter = nGetMultipleFloatMethod(targetClass, methodName, numParams); in setupSetter()
1605 String methodName = getMethodName("set", mPropertyName); in setupSetter() local
[all …]
/frameworks/base/tools/aapt2/java/
DProguardRules.h38 inline void addMethod(const Source& source, const std::u16string& methodName) { in addMethod() argument
39 mKeepMethodSet[methodName].insert(source); in addMethod()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/
DModelClass.java396 for (String methodName : methodNames) { in findGetterOrField()
397 ModelMethod[] methods = getMethods(methodName, new ArrayList<ModelClass>(), staticOnly); in findGetterOrField()
418 final Callable result = new Callable(Callable.Type.METHOD, methodName, in findGetterOrField()
464 for (String methodName : methodNames) { in findInstanceGetter()
465 ModelMethod[] methods = getMethods(methodName, new ArrayList<ModelClass>(), false); in findInstanceGetter()
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/
DTestDelegates.java59 for (String methodName : methods) { in testMethodDelegates()
61 String className = methodName.substring(0, methodName.indexOf('#')); in testMethodDelegates()
/frameworks/base/tests/HierarchyViewerTest/src/com/android/test/hierarchyviewer/
DMainActivityTest.java41 … private Object invokeMethod(Class targetClass, Object target, String methodName, Object... params) in invokeMethod() argument
47 Method method = targetClass.getDeclaredMethod(methodName, paramClasses); in invokeMethod()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/annotation/
DAnnotationTypeUtil.java87 final String methodName = executableType.toString().substring(0, argStart); in getDescription() local
90 return methodName + "(" + args + ")" + getDescription( in getDescription()
/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestMethod.java40 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod() argument
43 this.testMethodName = methodName; in TestMethod()
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/testapp/
DBaseDataBinderTest.java115 protected void assertMethod(Class<?> klass, String methodName) throws NoSuchMethodException { in assertMethod() argument
116 assertEquals(klass, mBinder.getClass().getDeclaredMethod(methodName).getReturnType()); in assertMethod()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/pps/
DCredential.java227 String methodName;
229 methodName = WifiEnterpriseConfig.Eap.strings[eapMethod];
231 methodName = Integer.toString(eapMethod);
233 … throw new IOException("EAP method id " + methodName + " is not valid for Passpoint");

12