/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/ |
D | BluetoothTestUtils.java | 779 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/ |
D | android_animation_PropertyValuesHolder.cpp | 33 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 …]
|
D | android_media_RemoteDisplay.cpp | 101 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/ |
D | PropertyValuesHolder_Delegate.java | 64 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/ |
D | MethodNameInvoker.java | 66 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/ |
D | Trace.java | 210 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/ |
D | TestCaseCollector.java | 67 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/ |
D | SysTrace.java | 102 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/ |
D | StubMethodAdapterTest.java | 46 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()
|
D | ClassHasNativeVisitorTest.java | 70 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/ |
D | RemoteViews.java | 827 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/ |
D | com_android_server_power_PowerManagerService.cpp | 60 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);
|
D | com_android_server_AssetAtlasService.cpp | 201 #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);
|
D | com_android_server_hdmi_HdmiCecController.cpp | 174 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/ |
D | HasMethodAnnotationTest.java | 39 String methodName, in methodHasAnnotation() argument 42 Method method = aClass.getMethod(methodName); in methodHasAnnotation()
|
D | HasAnnotationTest.java | 44 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/ |
D | PropertyValuesHolder.java | 698 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/ |
D | ProguardRules.h | 38 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/ |
D | ModelClass.java | 396 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/ |
D | TestDelegates.java | 59 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/ |
D | MainActivityTest.java | 41 … 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/ |
D | AnnotationTypeUtil.java | 87 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/ |
D | TestMethod.java | 40 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/ |
D | BaseDataBinderTest.java | 115 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/ |
D | Credential.java | 227 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");
|