Searched defs:method (Results 26 - 50 of 137) sorted by relevance

123456

/frameworks/base/core/tests/coretests/src/android/text/method/
H A DWordIteratorTest.java17 package android.text.method;
/frameworks/base/tests/testables/src/android/testing/
H A DTestableSettingsProvider.java69 public Bundle call(String method, String arg, Bundle extras) { argument
72 final String[] commands = method.split("_", 2);
89 if (DEBUG) Log.d(TAG, "Falling through to real settings " + method);
91 Bundle call = mSettings.call(method, arg, extras);
104 throw new UnsupportedOperationException("Unknown command " + method);
H A DAndroidTestingRunner.java52 protected Statement methodInvoker(FrameworkMethod method, Object test) { argument
53 method = looperWrap(method, test, method);
54 final Statement statement = super.methodInvoker(method, test);
55 return shouldRunOnUiThread(method) ? new UiThreadStatement(statement, true) : statement;
58 protected Statement withBefores(FrameworkMethod method, Object target, Statement statement) { argument
59 List befores = looperWrap(method, target,
61 return befores.isEmpty() ? statement : new RunBefores(method, statement,
65 protected Statement withAfters(FrameworkMethod method, Objec argument
72 withPotentialTimeout(FrameworkMethod method, Object test, Statement next) argument
85 looperWrap(FrameworkMethod method, Object test, List<FrameworkMethod> methods) argument
99 looperWrap(FrameworkMethod method, Object test, FrameworkMethod base) argument
109 shouldRunOnUiThread(FrameworkMethod method) argument
[all...]
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
H A DFakeSettingsProvider.java93 public Bundle call(String method, String arg, Bundle extras) { argument
95 String[] commands = method.split("_", 2);
125 throw new UnsupportedOperationException("Unknown command " + method);
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/
H A DTestDelegates.java36 * {@link LayoutlibDelegate}, and look for a matching method in the delegate (named the same
38 * If the original native method is not static, then we make sure the delegate method also
88 // with @LayoutlibDelegate, look for a matching method in the delegate class.
89 // The annotation is automatically added by layoutlib_create when it replace a method
101 // if the method is not static, then the class is added as the first parameter
122 // try to load the method with the given parameter types.
129 String.format("Delegate method %1$s.%2$s does not match the " +
130 "corresponding framework method which returns %3$s",
136 // check that the method ha
186 getMethodName(Method method) argument
190 getMethodName(Method method, Class<?>[] parameters) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
H A DPerformanceRunner.java53 protected Statement methodInvoker(FrameworkMethod method, Object test) { argument
57 Configuration methodConfig = method.getAnnotation(Configuration.class);
64 return new TimedStatement(super.methodInvoker(method, test), warmUpIterations, runs,
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
H A DMethodBaseExpr.java80 // Look for a signature matching the abstract method
85 for (ModelMethod method : methods) {
86 if (acceptsParameters(method, listenerParameters) &&
87 method.getReturnType(null).equals(listenerMethod.getReturnType(null))) {
111 "Listener class %s with method %s did not match signature of any method %s",
115 private boolean acceptsParameters(ModelMethod method, ModelClass[] listenerParameters) { argument
116 ModelClass[] parameters = method.getParameterTypes();
H A DListenerExpr.java41 ListenerExpr(Expr expr, String name, ModelClass listenerType, ModelMethod method) { argument
45 mMethod = method;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DTelephonyTestUtils.java65 public static Object invokeStaticMethod(Class<?> clazz, String method, Object... params) { argument
72 Method methodReflection = clazz.getDeclaredMethod(method, paramType);
82 * This is needed when the test expects the method in source being called to throw an exception.
88 public static Object invokeStaticMethodThrowsException(Class<?> clazz, String method, argument
96 Method methodReflection = clazz.getDeclaredMethod(method, paramType);
112 public static Object invokeNonStaticMethod(Class<?> clazz, Object caller, String method, argument
120 Method methodReflection = clazz.getDeclaredMethod(method, paramType);
130 * This is needed when the test expects the method in source being called to throw an exception.
137 String method, Object... params)
145 Method methodReflection = clazz.getDeclaredMethod(method, paramTyp
136 invokeNonStaticMethodThrowsException(Class<?> clazz, Object caller, String method, Object... params) argument
[all...]
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/testrunner/
H A DTestCaseCollector.java46 * The class name may be in "<class name>#<method name>" format
60 * The class name may be in "<class name>#<method name>" format
76 * Adds class to test by providing class name and method name in separate strings
89 for (Method method : methods) {
90 if (mFilter.accept(method)) {
91 addSingleTestMethod(clazz, method.getName());
105 protected void addSingleTestMethod(Class<?> clazz, String method) { argument
111 testCase.setName(method);
134 * Determine if a class and its method should be accepted into test suite
140 * Determine that based on the method signatur
143 accept(Method method) argument
[all...]
/frameworks/base/core/java/android/text/method/
H A DAllCapsTransformationMethod.java16 package android.text.method;
H A DScrollingMovementMethod.java17 package android.text.method;
26 * A movement method that interprets movement keys by scrolling the text buffer.
H A DTouch.java17 package android.text.method;
H A DArrowKeyMovementMethod.java17 package android.text.method;
29 * A movement method that provides cursor movement and selection.
H A DBaseKeyListener.java17 package android.text.method;
29 import android.text.method.TextKeyListener.Capitalize;
/frameworks/base/core/java/com/android/internal/view/
H A DInputBindResult.java24 * Bundle of information returned by input method manager about a successful
25 * binding to an input method.
31 * The input method service.
33 public final IInputMethodSession method; field in class:InputBindResult
41 * The ID for this input method, as found in InputMethodInfo; null if
42 * no input method will be bound.
58 method = _method;
66 method = IInputMethodSession.Stub.asInterface(source.readStrongBinder());
79 return "InputBindResult{" + method + " " + id
93 dest.writeStrongInterface(method);
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_util.cpp137 jmethodID method = env->GetMethodID(env->GetObjectClass(object), "booleanValue", "()Z"); local
138 result = MakeIntValue(env->CallBooleanMethod(object, method) == JNI_TRUE ? 1 : 0);
140 jmethodID method = env->GetMethodID(env->GetObjectClass(object), "intValue", "()I"); local
141 result = MakeIntValue(env->CallIntMethod(object, method));
143 jmethodID method = env->GetMethodID(env->GetObjectClass(object), "floatValue", "()F"); local
144 result = MakeFloatValue(env->CallFloatMethod(object, method));
/frameworks/base/test-runner/src/android/test/suitebuilder/
H A DTestMethod.java40 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { argument
41 this(method.getName(), enclosingClass);
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/
H A DSingleUserProvider.java61 public Bundle call(String method, String arg, Bundle extras) { argument
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
H A DReflectionUtils.java43 Method method = getMethod(clazz, name, params);
44 method.setAccessible(true);
46 return method;
50 public static Object invoke(@NonNull Method method, @Nullable Object object, argument
54 return method.invoke(object, args);
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
H A DCallbackWrapper.java35 public final ModelMethod method; field in class:CallbackWrapper
43 public CallbackWrapper(ModelClass klass, ModelMethod method) { argument
45 this.method = method;
46 this.key = uniqueKey(klass, method);
76 public static String uniqueKey(ModelClass klass, ModelMethod method) { argument
77 String base = klass.getCanonicalName() + "#" + method.getName();
78 for (ModelClass param : method.getParameterTypes()) {
97 return Math.min(method.getMinApi(), klass.getMinApi());
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/
H A DCallable.java39 public final ModelMethod method; field in class:Callable
46 int parameterCount, int flags, ModelMethod method) {
53 this.method = method;
89 ", method=" + method +
45 Callable(Type type, String name, String setterName, ModelClass resolvedType, int parameterCount, int flags, ModelMethod method) argument
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/reflection/java/
H A DJavaMethod.java30 public JavaMethod(Method method) { argument
31 mMethod = method;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DANQPMatcher.java96 * Match the NAI realm in the ANQP element against the realm and authentication method of
147 * Match the given NAI Realm data against the realm and authentication method of a provider.
170 // Check for EAP method match.
186 * Match the given EAPMethod against the authentication method of a provider.
188 * @param method The EAP Method
193 private static int matchEAPMethod(EAPMethod method, int eapMethodID, AuthParam authParam) { argument
194 if (method.getEAPMethodID() != eapMethodID) {
199 Map<Integer, Set<AuthParam>> authParams = method.getAuthParams();
H A DWnmData.java33 public WnmData(long bssid, String url, int method) { argument
36 mMethod = method;

Completed in 377 milliseconds

123456