Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 2227) sorted by relevance

12345678910>>...90

/cts/tests/tests/text/src/android/text/method/cts/
DReplacementTransformationMethodTest.java17 package android.text.method.cts;
22 import android.text.method.ReplacementTransformationMethod;
63 MyReplacementTransformationMethod method = in testGetTransformation() local
65 CharSequence result = method.getTransformation("010101", null); in testGetTransformation()
68 mEditText.setTransformationMethod(method); in testGetTransformation()
75 ReplacementTransformationMethod method = new MyReplacementTransformationMethod(ORIGINAL, in testGetTransformationWithAbnormalCharSequence() local
79 method.getTransformation(null, null); in testGetTransformationWithAbnormalCharSequence()
85 assertEquals("", method.getTransformation("", null).toString()); in testGetTransformationWithAbnormalCharSequence()
91 ReplacementTransformationMethod method = in testGetTransformationWithAbmornalReplacement() local
93 assertEquals("333333", method.getTransformation("010101", null).toString()); in testGetTransformationWithAbmornalReplacement()
[all …]
DKeyListenerCtsActivity.java17 package android.text.method.cts;
22 import android.text.method.BaseKeyListener;
23 import android.text.method.DateKeyListener;
24 import android.text.method.DateTimeKeyListener;
25 import android.text.method.DigitsKeyListener;
26 import android.text.method.MultiTapKeyListener;
27 import android.text.method.NumberKeyListener;
28 import android.text.method.QwertyKeyListener;
29 import android.text.method.TextKeyListener;
30 import android.text.method.TimeKeyListener;
DLinkMovementMethodTest.java17 package android.text.method.cts;
37 import android.text.method.LinkMovementMethod;
38 import android.text.method.MovementMethod;
118 LinkMovementMethod method = new LinkMovementMethod(); in testOnTakeFocus() local
125 method.onTakeFocus(null, spannable, View.FOCUS_UP); in testOnTakeFocus()
138 method.onTakeFocus(null, spannable, View.FOCUS_RIGHT); in testOnTakeFocus()
143 method.onTakeFocus(null, spannable, View.FOCUS_UP); in testOnTakeFocus()
149 method.onTakeFocus(null, spannable, 0); in testOnTakeFocus()
157 LinkMovementMethod method = new LinkMovementMethod(); in testOnTakeFocusNullSpannable() local
158 method.onTakeFocus(new TextViewNoIme(mActivity), null, View.FOCUS_RIGHT); in testOnTakeFocusNullSpannable()
[all …]
DScrollingMovementMethodTest.java17 package android.text.method.cts;
32 import android.text.method.MovementMethod;
33 import android.text.method.ScrollingMovementMethod;
109 final ScrollingMovementMethod method = new ScrollingMovementMethod(); in testOnTouchEventHorizontalMotion() local
128 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
138 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
147 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
155 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
165 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
177 mResult = method.onTouchEvent(mTextView, mSpannable, in testOnTouchEventHorizontalMotion()
[all …]
DSingleLineTransformationMethodTest.java17 package android.text.method.cts;
27 import android.text.method.SingleLineTransformationMethod;
62 MySingleLineTranformationMethod method = new MySingleLineTranformationMethod(); in testGetReplacement() local
63 assertArrayEquals(new char[] { ' ', '\uFEFF' }, method.getReplacement()); in testGetReplacement()
64 assertArrayEquals(new char[] { '\n', '\r' }, method.getOriginal()); in testGetReplacement()
70 SingleLineTransformationMethod method = SingleLineTransformationMethod.getInstance(); in testGetTransformation() local
71 CharSequence result = method.getTransformation("hello\nworld\r", null); in testGetTransformation()
82 final SingleLineTransformationMethod method = SingleLineTransformationMethod.getInstance(); in testSubsequence_doesNotThrowExceptionWithParagraphSpans() local
88 final CharSequence transformed = method.getTransformation(original, null); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
DHideReturnsTransformationMethodTest.java17 package android.text.method.cts;
23 import android.text.method.HideReturnsTransformationMethod;
44 MyHideReturnsTranformationMethod method = new MyHideReturnsTranformationMethod(); in testGetOriginal() local
45 assertArrayEquals(new char[] { '\r' }, method.getOriginal()); in testGetOriginal()
59 MyHideReturnsTranformationMethod method = new MyHideReturnsTranformationMethod(); in testGetReplacement() local
60 assertArrayEquals(new char[] { '\uFEFF' }, method.getReplacement()); in testGetReplacement()
DCtsActivity.java17 package android.text.method.cts;
20 import android.text.method.ArrowKeyMovementMethod;
21 import android.text.method.LinkMovementMethod;
22 import android.text.method.ScrollingMovementMethod;
/cts/tests/tests/jni/libjnitest/
Dmacroized_tests.c192 jmethodID method = findAppropriateMethod(env, &msg, (callType)ct, in help_CallBooleanMethod() local
195 if (method == NULL) { in help_CallBooleanMethod()
204 result = CALL(CallBooleanMethod, o, method); in help_CallBooleanMethod()
208 result = CALL(CallBooleanMethodA, o, method, NULL); in help_CallBooleanMethod()
212 result = CALL(CallBooleanMethodV, o, method, args); in help_CallBooleanMethod()
217 method); in help_CallBooleanMethod()
222 method, NULL); in help_CallBooleanMethod()
227 method, args); in help_CallBooleanMethod()
231 result = CALL(CallStaticBooleanMethod, StaticFromNative, method); in help_CallBooleanMethod()
235 result = CALL(CallStaticBooleanMethodA, StaticFromNative, method, in help_CallBooleanMethod()
[all …]
/cts/tests/signature/tests/src/android/signature/cts/tests/
DApiComplianceCheckerTest.java132 JDiffClassDescription.JDiffMethod method = method("staticMethod", in testStaticMethod() local
134 clz.addMethod(method); in testStaticMethod()
136 assertEquals(method.toSignatureString(), "public static void staticMethod()"); in testStaticMethod()
142 JDiffClassDescription.JDiffMethod method = method("syncMethod", in testSyncMethod() local
144 clz.addMethod(method); in testSyncMethod()
146 assertEquals(method.toSignatureString(), "public synchronized void syncMethod()"); in testSyncMethod()
152 JDiffClassDescription.JDiffMethod method = method("packageProtectedMethod", 0, "boolean"); in testPackageProtectMethod() local
153 clz.addMethod(method); in testPackageProtectMethod()
155 assertEquals(method.toSignatureString(), "boolean packageProtectedMethod()"); in testPackageProtectMethod()
161 JDiffClassDescription.JDiffMethod method = method("privateMethod", Modifier.PRIVATE, in testPrivateMethod() local
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super/d/
DTSuper.smali21 .method public constructor <init>()V
27 .end method
29 .method private toIntPvt()I
35 .end method
37 .method public static toIntStatic()I
43 .end method
47 .method public testArgsOrder(II)I
57 .end method
59 .method public testString(Ljava/lang/String;)V
63 .end method
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super_range/d/
DTSuper.smali21 .method public constructor <init>()V
27 .end method
29 .method private toIntPvt()I
35 .end method
37 .method public static toIntStatic()I
43 .end method
47 .method public testArgsOrder(II)I
57 .end method
59 .method public testString(Ljava/lang/String;)V
63 .end method
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_virtual_range/d/
DTSuper.smali21 .method public constructor <init>()V
27 .end method
29 .method private toIntPvt()I
35 .end method
37 .method public static toIntStatic()I
43 .end method
47 .method public testArgsOrder(II)I
57 .end method
59 .method public toInt()I
65 .end method
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_virtual/d/
DTSuper.smali21 .method public constructor <init>()V
27 .end method
29 .method private toIntPvt()I
35 .end method
37 .method public static toIntStatic()I
43 .end method
47 .method public testArgsOrder(II)I
57 .end method
59 .method public toInt()I
65 .end method
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int/d/
DT_rsub_int_1.smali20 .method public constructor <init>()V
25 .end method
27 .method public run(I)I
32 .end method
34 .method public run1(I)I
39 .end method
41 .method public run2(I)I
46 .end method
48 .method public run3(I)I
53 .end method
[all …]
DT_rsub_int_2.smali20 .method public constructor <init>()V
25 .end method
27 .method public run(I)I
32 .end method
34 .method public run1(I)I
39 .end method
41 .method public run2(I)I
46 .end method
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/rsub_int_lit8/d/
DT_rsub_int_lit8_1.smali20 .method public constructor <init>()V
25 .end method
27 .method public run(I)I
32 .end method
34 .method public run1(I)I
39 .end method
41 .method public run2(I)I
46 .end method
48 .method public run3(I)I
53 .end method
[all …]
DT_rsub_int_lit8_2.smali20 .method public constructor <init>()V
25 .end method
27 .method public run(I)I
32 .end method
34 .method public run1(I)I
39 .end method
41 .method public run2(I)I
46 .end method
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
DXmlReport.java110 for (ApiMethod method : apiClass.getMethods()) { in printXmlReport()
111 … List<String> coveredWithList = new ArrayList<String>(method.getCoveredWith()); in printXmlReport()
114 out.println("<method name=\"" + method.getName() in printXmlReport()
115 + "\" returnType=\"" + method.getReturnType() in printXmlReport()
116 + "\" deprecated=\"" + method.isDeprecated() in printXmlReport()
117 + "\" static=\"" + method.isStaticMethod() in printXmlReport()
118 + "\" final=\"" + method.isFinalMethod() in printXmlReport()
119 + "\" visibility=\"" + method.getVisibility() in printXmlReport()
120 + "\" abstract=\"" + method.isAbstractMethod() in printXmlReport()
121 + "\" covered=\"" + method.isCovered() in printXmlReport()
[all …]
DTextReport.java66 for (ApiMethod method : methods) { in printTextReport()
67 printMethod(method, out); in printTextReport()
103 private static void printMethod(ApiMethod method, PrintStream out) { in printMethod() argument
105 .append(method.isCovered() ? "X" : " ") in printMethod()
107 .append(method.getVisibility()).append(" "); in printMethod()
108 if (method.isAbstractMethod()) { in printMethod()
111 if (method.isStaticMethod()) { in printMethod()
114 if (method.isFinalMethod()) { in printMethod()
117 builder.append(method.getReturnType()).append(" ") in printMethod()
118 .append(method.getName()).append("("); in printMethod()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DRemoteControllerTest.java139 for (Method method : listener.getClass().getDeclaredMethods()) {
140 if (!methodMap.containsKey(method.getName())) {
141 methodMap.put(method.getName(), new ArrayList<Method>());
143 methodMap.get(method.getName()).add(method);
146 for (Method method : OnClientUpdateListener.class.getDeclaredMethods()) {
147 assertTrue("Method not found: " + method.getName(),
148 methodMap.containsKey(method.getName()));
149 List<Method> implementedMethodList = methodMap.get(method.getName());
150 assertTrue("Method signature changed: " + method,
151 matchMethod(method, implementedMethodList));
[all …]
/cts/tests/signature/lib/android/src/android/signature/cts/
DDexMemberChecker.java34 void methodAccessibleViaReflection(boolean accessible, DexMethod method); in methodAccessibleViaReflection() argument
35 void methodAccessibleViaJni(boolean accessible, DexMethod method); in methodAccessibleViaJni() argument
43 Method method = null; in call_VMDebug_allowHiddenApiReflectionFrom() local
47 method = vmdebug.getDeclaredMethod("allowHiddenApiReflectionFrom", Class.class); in call_VMDebug_allowHiddenApiReflectionFrom()
54 method.invoke(null, klass); in call_VMDebug_allowHiddenApiReflectionFrom()
113 DexMethod method = (DexMethod) dexMember; in checkSingleMember() local
115 observer.methodAccessibleViaReflection(hasMatchingMethod_Reflection(klass, method), in checkSingleMember()
116 method); in checkSingleMember() local
120 observer.methodAccessibleViaJni(hasMatchingMethod_JNI(klass, method), method); in checkSingleMember() local
203 for (Method method : klass.getDeclaredMethods()) { in hasMatchingMethod_Reflection()
[all …]
/cts/common/device-side/bedstead/testapp/src/processor/main/java/com/android/bedstead/testapp/processor/
DProcessor.java152 for (ExecutableElement method : getMethods(neneActivityInterface)) { in generateTargetedRemoteActivityImpl()
154 MethodSpec.methodBuilder(method.getSimpleName().toString()) in generateTargetedRemoteActivityImpl()
155 .returns(ClassName.get(method.getReturnType())) in generateTargetedRemoteActivityImpl()
164 for (VariableElement param : method.getParameters()) { in generateTargetedRemoteActivityImpl()
174 if (method.getReturnType().getKind().equals(TypeKind.VOID)) { in generateTargetedRemoteActivityImpl()
177 method.getSimpleName(), String.join(", ", paramNames)); in generateTargetedRemoteActivityImpl()
181 method.getSimpleName(), String.join(", ", paramNames)); in generateTargetedRemoteActivityImpl()
215 for (ExecutableElement method : getMethods(neneActivityInterface)) { in generateTargetedRemoteActivityWrapper()
217 MethodSpec.methodBuilder(method.getSimpleName().toString()) in generateTargetedRemoteActivityWrapper()
218 .returns(ClassName.get(method.getReturnType())) in generateTargetedRemoteActivityWrapper()
[all …]
/cts/tools/selinux/
DSELinuxNeverallowTestGen.py84 method = SELinuxNeverallowTestFrame.src_method
85 method = method.replace("testNeverallowRules()",
87 method = method.replace("$NEVERALLOW_RULE_HERE$", squashed_neverallow)
89 method = method.replace(
92 return method
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDeviceOwnerHelper.java101 Method method = findMethod(managerClass, methodName, parameterTypes); in runManagerMethod() local
102 if (method == null) { in runManagerMethod()
109 Object result = callOnHandlerThread(() -> method.invoke(manager, args)); in runManagerMethod()
182 Method method = findMethodWithNullParameterCall(clazz, methodName, parameterTypes); in findMethod() local
183 if (method != null) return method; in findMethod()
210 for (Method method : clazz.getDeclaredMethods()) { in findMethodWithNullParameterCall()
211 if (method.getName().equals(methodName) in findMethodWithNullParameterCall()
212 && method.getParameterCount() == parameterTypes.length) { in findMethodWithNullParameterCall()
213 methods.add(method); in findMethodWithNullParameterCall()
235 _methods: for (Method method : methods) { in findBestMethod()
[all …]
/cts/common/device-side/bedstead/remotedpc/src/processor/main/java/com/android/bedstead/remotedpc/processor/
DProcessor.java145 for (ExecutableElement method : getMethods(interfaceClass)) { in generateImplClass()
147 method.getSimpleName().toString()) in generateImplClass()
148 .returns(ClassName.get(method.getReturnType())) in generateImplClass()
152 for (VariableElement param : method.getParameters()) { in generateImplClass()
160 String parametersString = method.getParameters().stream() in generateImplClass()
165 if (method.getAnnotation(RemoteDpcAutomaticAdmin.class) != null) { in generateImplClass()
169 method.getSimpleName(), CONFIGURATION_CLASSNAME); in generateImplClass()
172 method.getSimpleName(), CONFIGURATION_CLASSNAME, parametersString); in generateImplClass()
177 method.getSimpleName(), parametersString); in generateImplClass()
180 if (!method.getReturnType().getKind().equals(TypeKind.VOID)) { in generateImplClass()
[all …]

12345678910>>...90