Home
last modified time | relevance | path

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

12345678910>>...93

/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.java119 JDiffClassDescription.JDiffMethod method = method("staticMethod", in testStaticMethod() local
121 clz.addMethod(method); in testStaticMethod()
123 assertEquals(method.toSignatureString(), "public static void staticMethod()"); in testStaticMethod()
129 JDiffClassDescription.JDiffMethod method = method("syncMethod", in testSyncMethod() local
131 clz.addMethod(method); in testSyncMethod()
133 assertEquals(method.toSignatureString(), "public synchronized void syncMethod()"); in testSyncMethod()
139 JDiffClassDescription.JDiffMethod method = method("packageProtectedMethod", 0, "boolean"); in testPackageProtectMethod() local
140 clz.addMethod(method); in testPackageProtectMethod()
142 assertEquals(method.toSignatureString(), "boolean packageProtectedMethod()"); in testPackageProtectMethod()
148 JDiffClassDescription.JDiffMethod method = method("privateMethod", Modifier.PRIVATE, in testPrivateMethod() local
[all …]
/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 …]
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 …]
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;
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()
/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_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_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/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 …]
DApiClass.java110 public void addMethod(ApiMethod method) { in addMethod() argument
111 mApiMethods.add(method); in addMethod()
139 apiMethod.ifPresent(method -> method.setCovered(coveredbyApk)); in markMethodCovered()
153 for (ApiMethod method : mApiMethods) { in getNumCoveredMethods()
154 if (method.isCovered()) { in getNumCoveredMethods()
180 for (ApiMethod method : mApiMethods) { in getMethod()
181 boolean methodNameMatch = name.equals(method.getName()); in getMethod()
183 compareParameterTypes(method.getParameterTypes(), parameterTypes); in getMethod()
185 return Optional.of(method); in getMethod()
/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/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/tools/selinux/
DSELinuxNeverallowTestGen.py79 method = SELinuxNeverallowTestFrame.src_method
80 method = method.replace("testNeverallowRules()",
82 method = method.replace("$NEVERALLOW_RULE_HERE$", squashed_neverallow)
84 method = method.replace(
87 return method
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DTestJournalProvider.java89 public Bundle call(String method, String arg, Bundle extras) { in call() argument
90 switch (method) { in call()
92 ensureExtras(method, extras); in call()
94 extras.getString(EXTRA_KEY_OWNER), extras.getParcelable(method)); in call()
98 ensureExtras(method, extras); in call()
100 extras.getString(EXTRA_KEY_OWNER), extras.getParcelable(method)); in call()
104 ensureExtras(method, extras); in call()
112 private static void ensureExtras(String method, Bundle extras) { in ensureExtras() argument
115 "The calling method=" + method + " does not allow null bundle"); in ensureExtras()
120 Log.i(TAG, method + " extras=" + extras); in ensureExtras()
[all …]
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_static/d/
DT_invoke_static_10.smali21 .method static constructor <clinit>()V
24 .end method
27 .method public constructor <init>()V
31 .end method
33 .method public run()V
38 .end method
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/return_object/d/
DT_return_object_1.smali20 .method public constructor <init>()V
25 .end method
27 .method public run()Ljava/lang/String;
32 .end method
34 .method public run2()Ljava/lang/Object;
37 .end method

12345678910>>...93