Home
last modified time | relevance | path

Searched refs:aClass (Results 1 – 25 of 103) sorted by relevance

12345

/external/bcc/src/lua/bcc/vendor/
Dmiddleclass.lua31 local function _createIndexWrapper(aClass, f)
33 return aClass.__instanceDict
36 local value = aClass.__instanceDict[name]
49 local function _propagateInstanceMethod(aClass, name, f)
50 f = name == "__index" and _createIndexWrapper(aClass, f) or f
51 aClass.__instanceDict[name] = f
53 for subclass in pairs(aClass.subclasses) do
60 local function _declareInstanceMethod(aClass, name, f)
61 aClass.__declaredMethods[name] = f
63 if f == nil and aClass.super then
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserAnonymousClassDeclarationTest.java23 ClassOrInterfaceDeclaration aClass = Navigator.demandClass(cu, "AnonymousClassDeclarations"); in anonymousClassAsMethodArgument() local
24 MethodDeclaration method = Navigator.demandMethod(aClass, "fooBar1"); in anonymousClassAsMethodArgument()
39 ClassOrInterfaceDeclaration aClass = Navigator.demandClass(cu, "AnonymousClassDeclarations"); in callingSuperClassInnerClassMethod() local
40 MethodDeclaration method = Navigator.demandMethod(aClass, "fooBar2"); in callingSuperClassInnerClassMethod()
55 ClassOrInterfaceDeclaration aClass = Navigator.demandClass(cu, "AnonymousClassDeclarations"); in callingAnonymousClassInnerMethod() local
56 MethodDeclaration method = Navigator.demandMethod(aClass, "fooBar3"); in callingAnonymousClassInnerMethod()
72 ClassOrInterfaceDeclaration aClass = Navigator.demandClass(cu, "AnonymousClassDeclarations"); in usingAnonymousSuperClassInnerType() local
73 MethodDeclaration method = Navigator.demandMethod(aClass, "fooBar4"); in usingAnonymousSuperClassInnerType()
87 ClassOrInterfaceDeclaration aClass = Navigator.demandClass(cu, "AnonymousClassDeclarations"); in usingAnonymousClassInnerType() local
88 MethodDeclaration method = Navigator.demandMethod(aClass, "fooBar5"); in usingAnonymousClassInnerType()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DClassNameResolver.java6 Class<T> aClass; in resolve() local
8 aClass = safeClassForName(className); in resolve()
11 aClass = safeClassForName(packageName + className); in resolve()
13 aClass = safeClassForName(packageName + "." + className); in resolve()
17 if (aClass == null) { in resolve()
21 return aClass; in resolve()
/external/mockito/src/test/java/org/mockitoutil/
DClassLoadersTest.java80 Class<?> aClass = cl.loadClass(CLASS_NAME_DEPENDING_ON_INTERFACE); in isolated_class_loader_can_load_classes_when_dependent_classes_are_matching_the_prefixes() local
83 assertThat(aClass).isNotNull(); in isolated_class_loader_can_load_classes_when_dependent_classes_are_matching_the_prefixes()
84 assertThat(aClass.getClassLoader()).isEqualTo(cl); in isolated_class_loader_can_load_classes_when_dependent_classes_are_matching_the_prefixes()
85 assertThat(aClass.getInterfaces()[0].getClassLoader()).isEqualTo(cl); in isolated_class_loader_can_load_classes_when_dependent_classes_are_matching_the_prefixes()
97 Class<?> aClass = cl.loadClass(AClass.class.getName()); in isolated_class_loader_can_load_classes_isolated_classes_in_isolation() local
100 assertThat(aClass).isNotNull(); in isolated_class_loader_can_load_classes_isolated_classes_in_isolation()
101 assertThat(aClass).isNotSameAs(AClass.class); in isolated_class_loader_can_load_classes_isolated_classes_in_isolation()
102 assertThat(aClass.getClassLoader()).isEqualTo(cl); in isolated_class_loader_can_load_classes_isolated_classes_in_isolation()
210 Class<?> aClass = cl.loadClass("yop.Dude"); in can_load_a_class_in_memory_from_bytes() local
213 assertThat(aClass).isNotNull(); in can_load_a_class_in_memory_from_bytes()
[all …]
/external/smali/smalidea/src/main/java/org/jf/smalidea/psi/impl/
DSmaliCompositeElement.java70 protected <T> T[] findChildrenByClass(Class<T> aClass) { in findChildrenByClass() argument
73 if (aClass.isInstance(cur)) result.add((T)cur); in findChildrenByClass()
75 return result.toArray((T[]) Array.newInstance(aClass, result.size())); in findChildrenByClass()
80 protected <T> T findChildByClass(Class<T> aClass) { in findChildByClass() argument
82 if (aClass.isInstance(cur)) return (T)cur; in findChildByClass()
89 protected <T> T findAncestorByClass(Class<T> aClass) { in findAncestorByClass() argument
92 if (aClass.isInstance(parent)) { in findAncestorByClass()
DSmaliStubBasedPsiElement.java55 protected <E extends PsiElement> E findStubOrPsiAncestorOfType(@NotNull Class<E> aClass) { in findStubOrPsiAncestorOfType() argument
61 if (aClass.isInstance(parentPsi)) { in findStubOrPsiAncestorOfType()
71 if (aClass.isInstance(parent)) { in findStubOrPsiAncestorOfType()
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/mp4/objectdescriptors/
DObjectDescriptorFactory.java165 Class<? extends BaseDescriptor> aClass = tagMap.get(tag); in createFrom() local
174 if (aClass == null || aClass.isInterface() || Modifier.isAbstract(aClass.getModifiers())) { in createFrom()
176 " and tag " + Integer.toHexString(tag) + " found: " + aClass); in createFrom()
180 baseDescriptor = aClass.newInstance(); in createFrom()
182 …log.log(Level.SEVERE, "Couldn't instantiate BaseDescriptor class " + aClass + " for objectTypeIndi… in createFrom()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DEnumLiteralsInAnnotatedClassTest.java28 File aClass = new File(src.getPath() + File.separator + "foo" + File.separator + "bar" in resolveFieldOfEnumAsInternalClassOfClassUnqualifiedSamePackage() local
37 StreamProvider classProvider = new StreamProvider(new FileInputStream(aClass)); in resolveFieldOfEnumAsInternalClassOfClassUnqualifiedSamePackage()
51 File aClass = new File(src.getPath() + File.separator + "foo" + File.separator + "bar" in resolveFieldOfEnumAsInternalClassOfClassQualifiedSamePackage() local
60 StreamProvider classProvider = new StreamProvider(new FileInputStream(aClass)); in resolveFieldOfEnumAsInternalClassOfClassQualifiedSamePackage()
74 File aClass = new File(src.getPath() + File.separator + "foo" + File.separator + "bar" in resolveFieldOfEnumAsInternalClassOfClassUnqualifiedDifferentPackage() local
83 StreamProvider classProvider = new StreamProvider(new FileInputStream(aClass)); in resolveFieldOfEnumAsInternalClassOfClassUnqualifiedDifferentPackage()
97 File aClass = new File(src.getPath() + File.separator + "foo" + File.separator + "bar" in resolveFieldOfEnumAsInternalClassOfClassQualifiedDifferentPackage() local
106 StreamProvider classProvider = new StreamProvider(new FileInputStream(aClass)); in resolveFieldOfEnumAsInternalClassOfClassQualifiedDifferentPackage()
DInternalClassInInterfaceTest.java28 File aClass = new File(src.getPath() + File.separator + "foo" + File.separator + "bar" in resolveFieldOfEnumAsInternalClassOfInterfaceUnqualifiedSamePackage() local
37 StreamProvider classProvider = new StreamProvider(new FileInputStream(aClass)); in resolveFieldOfEnumAsInternalClassOfInterfaceUnqualifiedSamePackage()
51 File aClass = new File(src.getPath() + File.separator + "foo" + File.separator + "bar" in resolveFieldOfEnumAsInternalClassOfInterfaceQualifiedSamePackage() local
60 StreamProvider classProvider = new StreamProvider(new FileInputStream(aClass)); in resolveFieldOfEnumAsInternalClassOfInterfaceQualifiedSamePackage()
74 File aClass = new File(src.getPath() + File.separator + "foo" + File.separator + "bar" in resolveFieldOfEnumAsInternalClassOfInterfaceUnqualifiedDifferentPackage() local
83 StreamProvider classProvider = new StreamProvider(new FileInputStream(aClass)); in resolveFieldOfEnumAsInternalClassOfInterfaceUnqualifiedDifferentPackage()
97 File aClass = new File(src.getPath() + File.separator + "foo" + File.separator + "bar" in resolveFieldOfEnumAsInternalClassOfInterfaceQualifiedDifferentPackage() local
106 StreamProvider classProvider = new StreamProvider(new FileInputStream(aClass)); in resolveFieldOfEnumAsInternalClassOfInterfaceQualifiedDifferentPackage()
/external/conscrypt/common/src/main/java/org/conscrypt/
DGCMParameters.java110 protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> aClass) in engineGetParameterSpec() argument
112 if ((aClass != null) && aClass.getName().equals("javax.crypto.spec.GCMParameterSpec")) { in engineGetParameterSpec()
113 return aClass.cast(Platform.toGCMParameterSpec(tLen, iv)); in engineGetParameterSpec()
115 throw new InvalidParameterSpecException("Unsupported class: " + aClass); in engineGetParameterSpec()
DDESEDESecretKeyFactory.java63 @SuppressWarnings("rawtypes") Class aClass) throws InvalidKeySpecException { in engineGetKeySpec() argument
67 if (aClass == SecretKeySpec.class) { in engineGetKeySpec()
80 } else if (aClass == DESedeKeySpec.class) { in engineGetKeySpec()
87 throw new InvalidKeySpecException("Unsupported KeySpec class: " + aClass); in engineGetKeySpec()
DECParameters.java85 protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> aClass) in engineGetParameterSpec() argument
87 if (aClass == ECParameterSpec.class) { in engineGetParameterSpec()
89 } else if (aClass == ECGenParameterSpec.class) { in engineGetParameterSpec()
92 throw new InvalidParameterSpecException("Unsupported class: " + aClass); in engineGetParameterSpec()
DPSSParameters.java104 protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> aClass) in engineGetParameterSpec() argument
106 if ((aClass != null) && aClass == PSSParameterSpec.class) { in engineGetParameterSpec()
109 throw new InvalidParameterSpecException("Unsupported class: " + aClass); in engineGetParameterSpec()
DIvParameters.java70 protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> aClass) in engineGetParameterSpec() argument
72 if (aClass != IvParameterSpec.class) { in engineGetParameterSpec()
74 "Incompatible AlgorithmParametersSpec class: " + aClass); in engineGetParameterSpec()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DGCMParameters.java112 protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> aClass) in engineGetParameterSpec() argument
114 if ((aClass != null) && aClass.getName().equals("javax.crypto.spec.GCMParameterSpec")) { in engineGetParameterSpec()
115 return aClass.cast(Platform.toGCMParameterSpec(tLen, iv)); in engineGetParameterSpec()
117 throw new InvalidParameterSpecException("Unsupported class: " + aClass); in engineGetParameterSpec()
DDESEDESecretKeyFactory.java65 @SuppressWarnings("rawtypes") Class aClass) throws InvalidKeySpecException { in engineGetKeySpec() argument
69 if (aClass == SecretKeySpec.class) { in engineGetKeySpec()
82 } else if (aClass == DESedeKeySpec.class) { in engineGetKeySpec()
89 throw new InvalidKeySpecException("Unsupported KeySpec class: " + aClass); in engineGetKeySpec()
DECParameters.java87 protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> aClass) in engineGetParameterSpec() argument
89 if (aClass == ECParameterSpec.class) { in engineGetParameterSpec()
91 } else if (aClass == ECGenParameterSpec.class) { in engineGetParameterSpec()
94 throw new InvalidParameterSpecException("Unsupported class: " + aClass); in engineGetParameterSpec()
DPSSParameters.java106 protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> aClass) in engineGetParameterSpec() argument
108 if ((aClass != null) && aClass == PSSParameterSpec.class) { in engineGetParameterSpec()
111 throw new InvalidParameterSpecException("Unsupported class: " + aClass); in engineGetParameterSpec()
DIvParameters.java74 protected <T extends AlgorithmParameterSpec> T engineGetParameterSpec(Class<T> aClass) in engineGetParameterSpec() argument
76 if (aClass != IvParameterSpec.class) { in engineGetParameterSpec()
78 "Incompatible AlgorithmParametersSpec class: " + aClass); in engineGetParameterSpec()
/external/cldr/tools/java/org/unicode/cldr/util/
DBoilerplateUtilities.java37 Class<?> aClass = a.getClass(); in compareToHelper() local
39 if (aClass != bClass) { in compareToHelper()
40 return aClass.getName().compareTo(bClass.getName()); in compareToHelper()
50 Field[] fields = aClass.getDeclaredFields(); in compareToHelper()
/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/
DSandboxClassLoaderTest.java323 Class<?> aClass = loadClass(AnInstrumentedChild.class); in shouldRetainSuperCallInConstructor() local
324 Object o = aClass.getDeclaredConstructor(String.class).newInstance("hortense"); in shouldRetainSuperCallInConstructor()
325 assertEquals("HORTENSE's child", aClass.getSuperclass().getDeclaredField("parentName").get(o)); in shouldRetainSuperCallInConstructor()
326 assertNull(aClass.getDeclaredField("childName").get(o)); in shouldRetainSuperCallInConstructor()
331 Class<?> aClass = loadClass(AClassWithFunnyConstructors.class); in shouldCorrectlySplitStaticPrepFromConstructorChaining() local
332 Object o = aClass.getDeclaredConstructor(String.class).newInstance("hortense"); in shouldCorrectlySplitStaticPrepFromConstructorChaining()
338 assertEquals(null, getDeclaredFieldValue(aClass, o, "name")); in shouldCorrectlySplitStaticPrepFromConstructorChaining()
339 assertEquals(null, getDeclaredFieldValue(aClass, o, "uninstrumentedParent")); in shouldCorrectlySplitStaticPrepFromConstructorChaining()
344 Class<?> aClass = loadClass(AClassWithFunnyConstructors.class); in shouldGenerateClassSpecificDirectAccessMethodForConstructorWhichDoesNotCallSuper() local
345 Object instance = aClass.getConstructor(String.class).newInstance("horace"); in shouldGenerateClassSpecificDirectAccessMethodForConstructorWhichDoesNotCallSuper()
[all …]
/external/mp4parser/isoparser/src/main/java/com/googlecode/mp4parser/boxes/piff/
DProtectionSpecificHeader.java39 final Class<? extends ProtectionSpecificHeader> aClass = uuidRegistry.get(systemId); in createFor() local
42 if (aClass != null) { in createFor()
44 protectionSpecificHeader = aClass.newInstance(); in createFor()
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/
DTestBoilerplate.java132 Class aClass = a.getClass(); in _clone() local
134 Method cloner = aClass.getMethod("clone", (Class[])null); in _clone()
137 Constructor constructor = aClass.getConstructor(new Class[] {aClass}); in _clone()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/
DTestBoilerplate.java133 Class aClass = a.getClass(); in _clone() local
135 Method cloner = aClass.getMethod("clone", (Class[])null); in _clone()
138 Constructor constructor = aClass.getConstructor(new Class[] {aClass}); in _clone()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/
DResourceRemapper.java58 for (Class<?> aClass : rClass.getClasses()) { in remapRClass()
59 if (aClass.getSimpleName().equals("attr")) { in remapRClass()
60 for (Field field : aClass.getFields()) { in remapRClass()

12345