Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java810 String methodName; in pairOrAcceptPair() local
812 methodName = String.format("pair(device=%s)", device); in pairOrAcceptPair()
814 methodName = String.format("acceptPair(device=%s)", device); in pairOrAcceptPair()
818 fail(String.format("%s bluetooth not enabled", methodName)); in pairOrAcceptPair()
840 fail(String.format("%s invalid state: state=%d", methodName, state)); in pairOrAcceptPair()
850 writeOutput(String.format("%s completed in %d ms", methodName, in pairOrAcceptPair()
853 writeOutput(String.format("%s completed", methodName)); in pairOrAcceptPair()
864 methodName, state, BluetoothDevice.BOND_BONDED, firedFlags, mask)); in pairOrAcceptPair()
877 String methodName = String.format("unpair(device=%s)", device); in unpair() local
880 fail(String.format("%s bluetooth not enabled", methodName)); in unpair()
[all …]
/frameworks/base/core/java/android/os/
DTrace.java197 public static void traceBegin(long traceTag, String methodName) { in traceBegin() argument
199 nativeTraceBegin(traceTag, methodName); in traceBegin()
232 public static void asyncTraceBegin(long traceTag, String methodName, int cookie) { in asyncTraceBegin() argument
234 nativeAsyncTraceBegin(traceTag, methodName, cookie); in asyncTraceBegin()
250 public static void asyncTraceEnd(long traceTag, String methodName, int cookie) { in asyncTraceEnd() argument
252 nativeAsyncTraceEnd(traceTag, methodName, cookie); in asyncTraceEnd()
312 public static void beginAsyncSection(@NonNull String methodName, int cookie) { in beginAsyncSection() argument
313 asyncTraceBegin(TRACE_TAG_APP, methodName, cookie); in beginAsyncSection()
324 public static void endAsyncSection(@NonNull String methodName, int cookie) { in endAsyncSection() argument
325 asyncTraceEnd(TRACE_TAG_APP, methodName, cookie); in endAsyncSection()
/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/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()
115 /*package*/ static long nGetIntMethod(Class<?> targetClass, String methodName) { in nGetIntMethod() argument
116 return nGetMultipleIntMethod(targetClass, methodName, 1); in nGetIntMethod()
120 /*package*/ static long nGetFloatMethod(Class<?> targetClass, String methodName) { in nGetFloatMethod() argument
121 return nGetMultipleFloatMethod(targetClass, methodName, 1); in nGetFloatMethod()
125 /*package*/ static long nGetMultipleIntMethod(Class<?> targetClass, String methodName, in nGetMultipleIntMethod() argument
127 return registerMethod(targetClass, methodName, INTEGER_VARIANTS, numParams); in nGetMultipleIntMethod()
131 /*package*/ static long nGetMultipleFloatMethod(Class<?> targetClass, String methodName, in nGetMultipleFloatMethod() argument
[all …]
/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/tests/utils/testutils/java/com/android/test/filters/
DSelectTest.java238 boolean accept(String className, @Nullable String methodName) { in accept() argument
244 return classSet == null || classSet.accept(className, methodName); in accept()
274 final String methodName = getMethodName(selectTestArg); in add() local
276 if (methodName == null) { in add()
297 methodSet.add(methodName); in add()
303 boolean accept(String className, @Nullable String methodName) { in accept() argument
308 return methodName == null || methodSet == null || methodSet.contains(methodName); in accept()
325 for (String methodName : methodSet) { in toString()
326 joiner.add(className + METHOD_SEPARATOR + methodName); in toString()
/frameworks/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.java340 public String methodName; field in RemoteViews.MethodKey
350 && Objects.equals(p.methodName, methodName); in equals()
356 ^ Objects.hashCode(methodName); in hashCode()
359 public void set(Class targetClass, Class paramClass, String methodName) { in set() argument
362 this.methodName = methodName; in set()
920 private MethodHandle getMethod(View view, String methodName, Class<?> paramType, in getMethod() argument
927 sLookupKey.set(klass, paramType, methodName); in getMethod()
934 method = klass.getMethod(methodName); in getMethod()
936 method = klass.getMethod(methodName, paramType); in getMethod()
941 + methodName + getParameters(paramType)); in getMethod()
[all …]
/frameworks/base/telecomm/java/android/telecom/Logging/
DSession.java82 String methodName = source.readString();
83 return new Info(id, methodName);
427 StringBuilder methodName = new StringBuilder(); in toString() local
428 methodName.append(getFullMethodPath(false /*truncatePath*/)); in toString()
430 methodName.append("(InCall package: "); in toString()
431 methodName.append(mOwnerInfo); in toString()
432 methodName.append(")"); in toString()
434 return methodName.toString() + "@" + getFullSessionId(); in toString()
/frameworks/base/tools/stats_log_api_gen/
Dnative_writer_q.h36 void write_native_stats_write_methods_q(FILE* out, const string& methodName, const Atoms& atoms,
42 void write_native_stats_write_non_chained_methods_q(FILE* out, const string& methodName,
Dutils.h61 void write_native_method_signature(FILE* out, const string& methodName,
65 void write_native_method_call(FILE* out, const string& methodName,
Dnative_writer_q.cpp189 void write_native_stats_write_methods_q(FILE* out, const string& methodName, const Atoms& atoms, in write_native_stats_write_methods_q() argument
199 write_native_method_signature(out, methodName, signature, attributionDecl, " {"); in write_native_stats_write_methods_q()
206 void write_native_stats_write_non_chained_methods_q(FILE* out, const string& methodName, in write_native_stats_write_non_chained_methods_q() argument
216 write_native_method_signature(out, methodName, signature, attributionDecl, " {"); in write_native_stats_write_non_chained_methods_q()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DConcurrentInterpreter.kt105 callSite.className, callSite.methodName, callSite.fileName, e) in <lambda>()
133 .filter { method -> method.name == element.methodName } in <lambda>()
172 methodName: String,
179 "$methodName:thread$threadIndex",
/frameworks/base/services/core/jni/
Dcom_android_server_power_PowerManagerService.cpp81 static bool checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { in checkAndClearExceptionFromCallback() argument
83 ALOGE("An exception was thrown by callback '%s'.", methodName); in checkAndClearExceptionFromCallback()
328 #define GET_METHOD_ID(var, clazz, methodName, methodDescriptor) \ argument
329 var = env->GetMethodID(clazz, methodName, methodDescriptor); \
330 LOG_FATAL_IF(! (var), "Unable to find method " methodName);
Dcom_android_server_UsbHostManager.cpp48 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { in checkAndClearExceptionFromCallback() argument
50 ALOGE("An exception was thrown by callback '%s'.", methodName); in checkAndClearExceptionFromCallback()
/frameworks/base/core/java/com/android/internal/os/
DBinderCallsStats.java327 final String methodName; in getExportedCallStats() local
331 methodName = resolvedCode == null in getExportedCallStats()
335 methodName = previousMethodName; in getExportedCallStats()
337 previousMethodName = methodName; in getExportedCallStats()
338 exported.methodName = methodName; in getExportedCallStats()
361 callStat.methodName = DEBUG_ENTRY_PREFIX + variableName; in createDebugEntry()
412 if (e.methodName.startsWith(DEBUG_ENTRY_PREFIX)) { in dumpLocked()
422 .append('#').append(e.methodName) in dumpLocked()
578 public String methodName; field in BinderCallsStats.ExportedCallStat
/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()
1274 String methodName = getMethodName("set", mPropertyName); in setupSetter() local
1276 mJniSetter = nGetIntMethod(targetClass, methodName); in setupSetter()
1421 String methodName = getMethodName("set", mPropertyName); in setupSetter() local
1423 mJniSetter = nGetFloatMethod(targetClass, methodName); in setupSetter()
1526 String methodName = getMethodName("set", mPropertyName); in setupSetter() local
1531 mJniSetter = nGetMultipleFloatMethod(targetClass, methodName, numParams); in setupSetter()
1633 String methodName = getMethodName("set", mPropertyName); in setupSetter() local
[all …]
/frameworks/base/test-runner/tests/src/android/test/suitebuilder/
DTestPredicatesTest.java44 private boolean hasExampleAnnotation(Class<? extends TestCase> aClass, String methodName) in hasExampleAnnotation() argument
46 Method method = aClass.getMethod(methodName); in hasExampleAnnotation()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBinderCallsStatsTest.java257 assertEquals("resolved", callStatsList.get(0).methodName); in testTransactionCodeResolved()
281 assertEquals("foo1", callStatsList.get(0).methodName); in testMultipleTransactionCodeResolved()
284 assertEquals("foo2", callStatsList.get(1).methodName); in testMultipleTransactionCodeResolved()
287 assertEquals("resolved", callStatsList.get(2).methodName); in testMultipleTransactionCodeResolved()
303 assertEquals("1", callStatsList.get(0).methodName); in testResolvingCodeDoesNotThrowWhenMethodNotPresent()
519 assertEquals("1", stat.methodName); in testGetExportedStatsWhenDetailedTrackingEnabled()
593 assertEquals("1", callStats.methodName); in testOverflow_overflowEntry()
599 assertEquals("-1", callStats.methodName); in testOverflow_overflowEntry()
650 assertEquals("__DEBUG_start_time_millis", debugEntry1.methodName); in testAddsDebugEntries()
654 assertEquals("__DEBUG_end_time_millis", debugEntry2.methodName); in testAddsDebugEntries()
[all …]
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/
DTestDelegates.java60 for (String methodName : methods) { in testMethodDelegates()
62 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/base/test-runner/src/android/test/suitebuilder/
DTestMethod.java44 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod() argument
47 this.testMethodName = methodName; in TestMethod()

123