/cts/tests/tests/jni/libjnitest/ |
D | macroized_tests.c | 192 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/tests/text/src/android/text/method/cts/ |
D | ReplacementTransformationMethodTest.java | 17 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 …]
|
D | KeyListenerCtsActivity.java | 17 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;
|
D | LinkMovementMethodTest.java | 17 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 …]
|
D | ScrollingMovementMethodTest.java | 17 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 …]
|
D | SingleLineTransformationMethodTest.java | 17 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()
|
D | HideReturnsTransformationMethodTest.java | 17 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()
|
D | CtsActivity.java | 17 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/signature/tests/src/android/signature/cts/tests/ |
D | ApiComplianceCheckerTest.java | 118 JDiffClassDescription.JDiffMethod method = method("staticMethod", in testStaticMethod() local 120 clz.addMethod(method); in testStaticMethod() 122 assertEquals(method.toSignatureString(), "public static void staticMethod()"); in testStaticMethod() 128 JDiffClassDescription.JDiffMethod method = method("syncMethod", in testSyncMethod() local 130 clz.addMethod(method); in testSyncMethod() 132 assertEquals(method.toSignatureString(), "public synchronized void syncMethod()"); in testSyncMethod() 138 JDiffClassDescription.JDiffMethod method = method("packageProtectedMethod", 0, "boolean"); in testPackageProtectMethod() local 139 clz.addMethod(method); in testPackageProtectMethod() 141 assertEquals(method.toSignatureString(), "boolean packageProtectedMethod()"); in testPackageProtectMethod() 147 JDiffClassDescription.JDiffMethod method = method("privateMethod", Modifier.PRIVATE, in testPrivateMethod() local [all …]
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super_range/d/ |
D | TSuper.smali | 21 .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/ |
D | TSuper.smali | 21 .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/ |
D | TSuper.smali | 21 .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/ |
D | TSuper.smali | 21 .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/ |
D | XmlReport.java | 108 for (ApiMethod method : apiClass.getMethods()) { in printXmlReport() 110 … method.getCoveredWith().stream().collect(Collectors.joining(",")); in printXmlReport() 111 out.println("<method name=\"" + method.getName() in printXmlReport() 112 + "\" returnType=\"" + method.getReturnType() in printXmlReport() 113 + "\" deprecated=\"" + method.isDeprecated() in printXmlReport() 114 + "\" static=\"" + method.isStaticMethod() in printXmlReport() 115 + "\" final=\"" + method.isFinalMethod() in printXmlReport() 116 + "\" visibility=\"" + method.getVisibility() in printXmlReport() 117 + "\" abstract=\"" + method.isAbstractMethod() in printXmlReport() 118 + "\" covered=\"" + method.isCovered() in printXmlReport() [all …]
|
D | TextReport.java | 66 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 …]
|
D | ApiClass.java | 110 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/ |
D | T_rsub_int_1.smali | 20 .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 …]
|
D | T_rsub_int_2.smali | 20 .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/ |
D | T_rsub_int_lit8_1.smali | 20 .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 …]
|
D | T_rsub_int_lit8_2.smali | 20 .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/ |
D | RemoteControllerTest.java | 138 for (Method method : listener.getClass().getDeclaredMethods()) { 139 if (!methodMap.containsKey(method.getName())) { 140 methodMap.put(method.getName(), new ArrayList<Method>()); 142 methodMap.get(method.getName()).add(method); 145 for (Method method : OnClientUpdateListener.class.getDeclaredMethods()) { 146 assertTrue("Method not found: " + method.getName(), 147 methodMap.containsKey(method.getName())); 148 List<Method> implementedMethodList = methodMap.get(method.getName()); 149 assertTrue("Method signature changed: " + method, 150 matchMethod(method, implementedMethodList)); [all …]
|
/cts/tools/selinux/ |
D | SELinuxNeverallowTestGen.py | 84 method = SELinuxNeverallowTestFrame.src_method 85 method = method.replace("testNeverallowRules()", 87 method = method.replace("$NEVERALLOW_RULE_HERE$", squashed_neverallow) 88 method = method.replace( 91 method = method.replace( 94 return method
|
/cts/tests/signature/lib/android/src/android/signature/cts/ |
D | DexMemberChecker.java | 34 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/vm-tests-tf/src/dot/junit/opcodes/invoke_static/d/ |
D | T_invoke_static_10.smali | 21 .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
|
D | T_invoke_static_7.smali | 20 .method public constructor <init>()V 25 .end method 27 .method public static test()V 30 .end method 32 .method public run()V 37 .end method
|