Home
last modified time | relevance | path

Searched refs:getPackage (Results 1 – 25 of 105) sorted by relevance

12345

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/
DRobolectricTestRunnerClassLoaderConfigTest.java24 assertThat(DummyClass.class.getPackage()).isNotNull(); in testGetPackage()
25 assertThat(DummyClass.class.getName()).startsWith(DummyClass.class.getPackage().getName()); in testGetPackage()
29 assertThat(Test.class.getPackage()).isNotNull(); in testPackagesFromParentClassLoaderAreMadeAvailableByName()
30 assertThat(Package.getPackage("org.junit")).isNotNull(); in testPackagesFromParentClassLoaderAreMadeAvailableByName()
31 assertThat(Package.getPackage("org.junit")).isEqualTo(Test.class.getPackage()); in testPackagesFromParentClassLoaderAreMadeAvailableByName()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/util/
DTypeUtils.java55 public static String getPackage(@Nonnull String type) { in getPackage() method in TypeUtils
70 return getPackage(accesseeClassDef.getType()).equals(getPackage(accessorType)); in canAccessClass()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/
DBigDecimalBeanConstructorTest.java32 String className = this.getClass().getPackage().getName(); in testRepresentor()
38 String className = "!!" + this.getClass().getPackage().getName() in testConstructor()
48 String className = "!!" + this.getClass().getPackage().getName()
DIncompleteBeanConstructorTest.java32 String className = this.getClass().getPackage().getName(); in testRepresentor()
37 String className = "!!" + this.getClass().getPackage().getName() in testConstructor()
47 String className = "!!" + this.getClass().getPackage().getName() in testConstructor2()
/external/guice/core/test/com/google/inject/matcher/
DMatcherTest.java116 Package matchersPackage = Matchers.class.getPackage(); in testInPackage()
121 assertFalse(inPackage(matchersPackage).equals(inPackage(Object.class.getPackage()))); in testInPackage()
125 String stringPackageName = String.class.getPackage().getName(); in testInSubpackage()
134 .equals(inSubpackage(Matchers.class.getPackage().getName()))); in testInSubpackage()
153 assertEqualWhenReserialized(inPackage(String.class.getPackage())); in testSerialization()
154 assertEqualWhenReserialized(inSubpackage(String.class.getPackage().getName())); in testSerialization()
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionEnumDeclaration.txt8 Line 85) clazz.getPackage() ==> java.lang.Class.getPackage()
9 Line 86) clazz.getPackage().getName() ==> java.lang.Package.getName()
10 Line 86) clazz.getPackage() ==> java.lang.Class.getPackage()
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionInterfaceDeclaration.txt3 Line 76) clazz.getPackage() ==> java.lang.Class.getPackage()
4 Line 77) clazz.getPackage().getName() ==> java.lang.Package.getName()
5 Line 77) clazz.getPackage() ==> java.lang.Class.getPackage()
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionClassDeclaration.txt13 Line 113) clazz.getPackage() ==> java.lang.Class.getPackage()
14 Line 114) clazz.getPackage().getName() ==> java.lang.Package.getName()
15 Line 114) clazz.getPackage() ==> java.lang.Class.getPackage()
/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DSubclassBytecodeGenerator.java152 …return type.getPackage() != null && "Java Runtime Environment".equalsIgnoreCase(type.getPackage().… in isComingFromJDK()
158 return type.getPackage() != null && type.getPackage().isSealed(); in isComingFromSealedPackage()
/external/guice/extensions/grapher/src/com/google/inject/grapher/
DDefaultRootKeySetCreator.java40 if (key.getTypeLiteral().getRawType().getPackage() != Guice.class.getPackage() in getRootKeys()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/verifier/tests/
DTestCreator.java29 protected static final String TEST_PACKAGE = TestCreator.class.getPackage().getName();
48 return getClass().getPackage().getName().replace('.', '/'); in getPackageName()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DAnalyzedMethodUtil.java47 String otherPackage = TypeUtils.getPackage(virtualMethod.getDefiningClass()); in canAccess()
48 String thisPackage = TypeUtils.getPackage(type.getType()); in canAccess()
/external/mockito/src/test/java/org/mockitoutil/
DClassLoadersTest.java93 .withPrivateCopyOf(ClassLoadersTest.class.getPackage().getName()) in isolated_class_loader_can_load_classes_isolated_classes_in_isolation()
110 .withPrivateCopyOf(ClassLoadersTest.class.getPackage().getName()) in isolated_class_loader_cannot_load_classes_if_prefix_excluded()
272 .withPrivateCopyOf(ClassLoadersTest.class.getPackage().getName()) in can_run_in_given_classloader()
313 .withPrivateCopyOf(ClassLoadersTest.class.getPackage().getName()) in cannot_load_runnable_in_given_classloader_if_some_type_cant_be_loaded()
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/
DPackageMatcher.java35 PackageDeclaration aPackage = cu.getPackage(); in matches()
60 PackageDeclaration packageDeclaration = compilationUnit.getPackage(); in getPackageName()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DSandboxClassLoader.java149 protected Package getPackage(String name) { in getPackage() method in SandboxClassLoader
150 Package aPackage = super.getPackage(name); in getPackage()
176 Package pckg = getPackage(pckgName); in ensurePackage()
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptors.java105 public String getPackage() { return proto.getPackage(); } in getPackage() method in Descriptors.FileDescriptor
172 if (getPackage().length() > 0) { in findMessageTypeByName()
173 name = getPackage() + '.' + name; in findMessageTypeByName()
196 if (getPackage().length() > 0) { in findEnumTypeByName()
197 name = getPackage() + '.' + name; in findEnumTypeByName()
220 if (getPackage().length() > 0) { in findServiceByName()
221 name = getPackage() + '.' + name; in findServiceByName()
243 if (getPackage().length() > 0) { in findExtensionByName()
244 name = getPackage() + '.' + name; in findExtensionByName()
481 pool.addPackage(getPackage(), this); in FileDescriptor()
[all …]
/external/guice/core/src/com/google/inject/matcher/
DMatchers.java307 return c.getPackage().equals(targetPackage); in matches()
326 return inPackage(Package.getPackage(packageName)); in readResolve()
351 String classPackageName = c.getPackage().getName(); in matches()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DClassName.java166 PackageElement packageElement = getPackage(current); in fromTypeElement()
181 return create(clazz.getPackage().getName(), enclosingNames, clazz.getSimpleName()); in fromClass()
184 private static PackageElement getPackage(Element type) { in getPackage() method in ClassName
/external/guava/guava-tests/test/com/google/common/reflect/
DClassPathTest.java93 if (!classInfo.getPackageName().equals(ClassPathTest.class.getPackage().getName())) { in testGetAllClasses()
110 assertThat(packageNames).has().exactly(ClassPath.class.getPackage().getName()); in testGetAllClasses()
122 : classpath.getTopLevelClasses(ClassPathTest.class.getPackage().getName())) { in testGetTopLevelClasses()
132 assertThat(packageNames).has().item(ClassPath.class.getPackage().getName()); in testGetTopLevelClasses()
141 : classpath.getTopLevelClassesRecursive(ClassPathTest.class.getPackage().getName())) { in testGetTopLevelClassesRecursive()
/external/conscrypt/android/src/main/java/org/conscrypt/
DNativeCryptoJni.java25 … if ("com.google.android.gms.org.conscrypt".equals(NativeCrypto.class.getPackage().getName())) { in init()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionEnumDeclaration.java87 if (clazz.getPackage() != null) { in getPackageName()
88 return clazz.getPackage().getName(); in getPackageName()
/external/setupdesign/main/src/com/google/android/setupdesign/items/
DItemInflater.java30 setDefaultPackage(Item.class.getPackage().getName() + "."); in ItemInflater()
/external/icu/icu4j/samples/src/com/ibm/icu/samples/iuc/
DSample30_ResHello.java24 … Sample30_ResHello.class.getPackage().getName().replace('.', '/')+"/data/reshello", in main()
/external/brotli/java/org/brotli/dec/
DDictionary.java29 Class.forName(Dictionary.class.getPackage().getName() + ".DictionaryData");
/external/jsilver/src/com/google/clearsilver/jsilver/resourceloader/
DClassResourceLoader.java58 this.basePath = "/" + cls.getPackage().getName().replace('.', '/'); in ClassResourceLoader()

12345