Home
last modified time | relevance | path

Searched refs:enclosingClass (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/test-runner/src/android/test/suitebuilder/
DTestMethod.java38 private final Class<? extends TestCase> enclosingClass; field in TestMethod
40 public TestMethod(Method method, Class<? extends TestCase> enclosingClass) { in TestMethod() argument
41 this(method.getName(), enclosingClass); in TestMethod()
44 public TestMethod(String methodName, Class<? extends TestCase> enclosingClass) { in TestMethod() argument
45 this.enclosingClass = enclosingClass; in TestMethod()
46 this.enclosingClassname = enclosingClass.getName(); in TestMethod()
72 return enclosingClass; in getEnclosingClass()
77 return instantiateTest(enclosingClass, testMethodName); in createTest()
/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/
DBluetoothPermissionChecker.java24 import static com.google.errorprone.matchers.Matchers.enclosingClass;
72 not(enclosingClass(isInsideParcelable())),
73 not(enclosingClass(simpleNameMatches(Pattern.compile(".+Callback$")))),
74 not(enclosingClass(isSubtypeOf("android.bluetooth.BluetoothProfileConnector"))),
75 not(enclosingClass(isSubtypeOf("android.app.PropertyInvalidatedCache"))));
79 private static final Matcher<MethodTree> BINDER_METHOD = enclosingClass(
83 enclosingClass(isSubtypeOf("android.os.IInterface")),
87 enclosingClass(simpleNameMatches(Pattern.compile("^(Stub|Default|Proxy)$")))));
180 return isCallbackOrWrapper(ASTHelpers.enclosingClass(symbol)) in isCallbackOrWrapper()
187 return isSuppressed(ASTHelpers.enclosingClass(symbol)) in isSuppressed()
DRequiresPermissionChecker.java23 import static com.google.errorprone.matchers.Matchers.enclosingClass;
98 enclosingClass(isSubtypeOf("android.os.IInterface")),
102 enclosingClass(simpleNameMatches(Pattern.compile("^(Stub|Default|Proxy)$")))));
106 enclosingClass(isSubtypeOf("android.content.BroadcastReceiver")),
109 enclosingClass(isSubtypeOf("android.database.ContentObserver")),
112 enclosingClass(isSubtypeOf("android.os.Handler")),
115 enclosingClass(isSubtypeOf("android.os.IBinder.DeathRecipient")),
454 final ClassSymbol clazz = ASTHelpers.enclosingClass(method); in isSuppressedRecursively()
DClientSidePermissionCheckChecker.java22 import static com.google.errorprone.matchers.Matchers.enclosingClass;
51 enclosingClass(hasAnnotation("android.annotation.SystemService"));
DContextUserIdChecker.java23 import static com.google.errorprone.matchers.Matchers.enclosingClass;
62 enclosingClass(hasAnnotation("android.annotation.SystemService"));
DEfficientParcelableChecker.java22 import static com.google.errorprone.matchers.Matchers.enclosingClass;
54 enclosingClass(isSubtypeOf("android.os.Parcelable")),
DRethrowFromSystemChecker.java23 import static com.google.errorprone.matchers.Matchers.enclosingClass;
68 enclosingClass(hasAnnotation("android.annotation.SystemService"));