/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/type/ |
D | TestTypeFactoryWithClassLoader.java | 31 classLoader = AClass.class.getClassLoader(); in beforeClass() 53 verify(spySut).getClassLoader(); in testUsesCorrectClassLoaderWhenThreadClassLoaderIsNull() 56 Assert.assertEquals(classLoader, spySut.getClassLoader()); in testUsesCorrectClassLoaderWhenThreadClassLoaderIsNull() 65 verify(spySut).getClassLoader(); in testUsesCorrectClassLoaderWhenThreadClassLoaderIsNotNull() 68 Assert.assertEquals(classLoader, spySut.getClassLoader()); in testUsesCorrectClassLoaderWhenThreadClassLoaderIsNotNull() 75 Assert.assertNull(sut.getClassLoader()); in testCallingOnlyWithModifierGivesExpectedResults() 82 Assert.assertNotNull(sut.getClassLoader()); in testCallingOnlyWithClassLoaderGivesExpectedResults() 89 Assert.assertEquals(classLoader, sut.getClassLoader()); in testDefaultTypeFactoryNotAffectedByWithConstructors() 91 Assert.assertNull(mapper.getTypeFactory().getClassLoader()); in testDefaultTypeFactoryNotAffectedByWithConstructors() 98 Assert.assertNotNull(sut.getClassLoader()); in testSetsTheCorrectClassLoderIfUsingWithModifierFollowedByWithClassLoader() [all …]
|
/external/opencensus-java/api/src/test/java/io/opencensus/internal/ |
D | ProviderTest.java | 55 ProviderTest.class.getClassLoader()), in createInstance_ThrowsErrorWhenClassIsPrivate() 66 ProviderTest.class.getClassLoader()), in createInstance_ThrowsErrorWhenClassHasPrivateConstructor() 77 ProviderTest.class.getClassLoader()), in createInstance_ThrowsErrorWhenClassDoesNotHaveDefaultConstructor() 87 ProviderTest.class.getClassLoader()), in createInstance_ThrowsErrorWhenClassIsNotASubclass() 98 ProviderTest.class.getClassLoader()), in createInstance_GoodClass() 110 ProviderTest.class.getClassLoader()), in createInstance_GoodSubclass()
|
/external/cronet/base/android/java/src/org/chromium/base/ |
D | BundleUtils.java | 166 ClassLoader parent = context.getClassLoader().getParent(); in createIsolatedSplitContext() 175 && !parent.equals(BundleUtils.class.getClassLoader()) && appContext != null in createIsolatedSplitContext() 176 && !parent.equals(appContext.getClassLoader()); in createIsolatedSplitContext() 183 splitName, new PathClassLoader(apkPath, appContext.getClassLoader())); in createIsolatedSplitContext() 189 if (!cachedClassLoader.equals(context.getClassLoader())) { in createIsolatedSplitContext() 195 sCachedClassLoaders.put(splitName, context.getClassLoader()); in createIsolatedSplitContext() 231 String path = ((BaseDexClassLoader) BundleUtils.class.getClassLoader()) in getNativeLibraryPath() 239 ClassLoader classLoader = ContextUtils.getApplicationContext().getClassLoader(); in getNativeLibraryPath() 255 ClassLoader activityClassLoader = activity.getClass().getClassLoader(); in checkContextClassLoader() 256 ClassLoader contextClassLoader = baseContext.getClassLoader(); in checkContextClassLoader() [all …]
|
/external/emma/core/java12/com/vladium/util/ |
D | ClassLoaderResolver.java | 45 public static synchronized ClassLoader getClassLoader (final Class caller) in getClassLoader() method in ClassLoaderResolver 49 return s_strategy.getClassLoader (ctx); in getClassLoader() 67 public static synchronized ClassLoader getClassLoader () in getClassLoader() method in ClassLoaderResolver 72 return s_strategy.getClassLoader (ctx); in getClassLoader() 144 public ClassLoader getClassLoader (final ClassLoadContext ctx) in getClassLoader() method in ClassLoaderResolver.DefaultClassLoadStrategy 157 final ClassLoader callerLoader = caller.getClassLoader (); in getClassLoader()
|
D | ResourceLoader.java | 37 final ClassLoader loader = ClassLoaderResolver.getClassLoader (caller); in loadClass() 48 final ClassLoader loader = ClassLoaderResolver.getClassLoader (caller); in getResource() 62 final ClassLoader loader = ClassLoaderResolver.getClassLoader (caller); in getResourceAsStream() 77 final ClassLoader loader = ClassLoaderResolver.getClassLoader (caller); in getResources()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ClassLoaderUtil.java | 37 super(Object.class.getClassLoader()); in BootstrapClassLoader() 78 public static ClassLoader getClassLoader(Class<?> cls) { in getClassLoader() method in ClassLoaderUtil 79 ClassLoader cl = cls.getClassLoader(); in getClassLoader() 81 cl = getClassLoader(); in getClassLoader() 90 public static ClassLoader getClassLoader() { in getClassLoader() method in ClassLoaderUtil
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | ClassLoaderUtil.java | 39 super(Object.class.getClassLoader()); in BootstrapClassLoader() 80 public static ClassLoader getClassLoader(Class<?> cls) { in getClassLoader() method in ClassLoaderUtil 81 ClassLoader cl = cls.getClassLoader(); in getClassLoader() 83 cl = getClassLoader(); in getClassLoader() 92 public static ClassLoader getClassLoader() { in getClassLoader() method in ClassLoaderUtil
|
/external/grpc-grpc-java/core/src/test/java/io/grpc/ |
D | ServiceProvidersTest.java | 60 getClass().getClassLoader(), in contextClassLoaderProvider() 66 getClass().getClassLoader(), in contextClassLoaderProvider() 84 getClass().getClassLoader(), in noProvider() 97 ClassLoader cl = new ReplacingClassLoader(getClass().getClassLoader(), serviceFile, in multipleProvider() 115 ClassLoader cl = new ReplacingClassLoader(getClass().getClassLoader(), serviceFile, in unavailableProvider() 125 ClassLoader cl = new ReplacingClassLoader(getClass().getClassLoader(), serviceFile, in unknownClassProvider() 138 ClassLoader cl = new ReplacingClassLoader(getClass().getClassLoader(), serviceFile, in exceptionSurfacedToCaller_failAtInit() 153 ClassLoader cl = new ReplacingClassLoader(getClass().getClassLoader(), serviceFile, in exceptionSurfacedToCaller_failAtPriority() 167 ClassLoader cl = new ReplacingClassLoader(getClass().getClassLoader(), serviceFile, in exceptionSurfacedToCaller_failAtAvailable()
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | ClassPathTest.java | 67 .addEqualityGroup(classInfo(Test.class), classInfo(Test.class, getClass().getClassLoader())) in testEquals() 69 new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()), in testEquals() 70 new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader())) in testEquals() 71 .addEqualityGroup(new ResourceInfo(FILE, "x.txt", getClass().getClassLoader())) in testEquals() 193 new ClassPath.LocationInfo(jarFile, ClassPathTest.class.getClassLoader()) in testScan_classPathCycle() 204 ClassLoader loader = ClassPathTest.class.getClassLoader(); in testScanDirectory_symlinkCycle() 236 ClassLoader loader = ClassPathTest.class.getClassLoader(); in testScanDirectory_symlinkToRootCycle() 256 ClassLoader classLoader = ClassPathTest.class.getClassLoader(); in testScanFromFile_fileNotExists() 265 ClassLoader classLoader = ClassPathTest.class.getClassLoader(); in testScanFromFile_notJarFile() 394 ClassLoader classLoader = getClass().getClassLoader(); in testGetSimpleName() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/reflect/ |
D | ClassPathTest.java | 61 .addEqualityGroup(classInfo(Test.class), classInfo(Test.class, getClass().getClassLoader())) in testEquals() 63 new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader()), in testEquals() 64 new ResourceInfo(FILE, "a/b/c.txt", getClass().getClassLoader())) in testEquals() 65 .addEqualityGroup(new ResourceInfo(FILE, "x.txt", getClass().getClassLoader())) in testEquals() 187 new ClassPath.LocationInfo(jarFile, ClassPathTest.class.getClassLoader()) in testScan_classPathCycle() 197 ClassLoader classLoader = ClassPathTest.class.getClassLoader(); in testScanFromFile_fileNotExists() 206 ClassLoader classLoader = ClassPathTest.class.getClassLoader(); in testScanFromFile_notJarFile() 335 ClassLoader classLoader = getClass().getClassLoader(); in testGetSimpleName() 347 "", new ClassInfo(FILE, "Foo.class", getClass().getClassLoader()).getPackageName()); in testGetPackageName() 349 "a.b", new ClassInfo(FILE, "a/b/Foo.class", getClass().getClassLoader()).getPackageName()); in testGetPackageName() [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | BytecodeGen.java | 69 static final ClassLoader GUICE_CLASS_LOADER = canonicalize(BytecodeGen.class.getClassLoader()); 162 public static ClassLoader getClassLoader(Class<?> type) { in getClassLoader() method in BytecodeGen 163 return getClassLoader(type, type.getClassLoader()); in getClassLoader() 166 private static ClassLoader getClassLoader(Class<?> type, ClassLoader delegate) { in getClassLoader() method in BytecodeGen 242 if (!publiclyCallable && !hasSameVersionOfCglib(type.getClassLoader())) { in newFastClassForMember() 251 generator.setClassLoader(getClassLoader(type)); in newFastClassForMember() 256 logger.fine("Loading " + type + " FastClass with " + generator.getClassLoader()); in newFastClassForMember() 306 enhancer.setClassLoader(getClassLoader(type)); in newEnhancer() 309 logger.fine("Loading " + type + " Enhancer with " + enhancer.getClassLoader()); in newEnhancer()
|
/external/mockito/src/test/java/org/mockitoutil/ |
D | ClassLoadersTest.java | 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() 102 assertThat(aClass.getClassLoader()).isEqualTo(cl); in isolated_class_loader_can_load_classes_isolated_classes_in_isolation() 214 assertThat(aClass.getClassLoader()).isEqualTo(cl); in can_load_a_class_in_memory_from_bytes() 254 assertThat(jdkClassLoader()).isNotEqualTo(Mockito.class.getClassLoader()); in return_bootstrap_classloader() 255 assertThat(jdkClassLoader()).isNotEqualTo(ClassLoaders.class.getClassLoader()); in return_bootstrap_classloader() 256 assertThat(jdkClassLoader()).isEqualTo(Number.class.getClassLoader()); in return_bootstrap_classloader() 262 assertThat(currentClassLoader()).isEqualTo(this.getClass().getClassLoader()); in return_current_classloader() 282 …assertThat(this.getClass().getClassLoader()).describedAs("runnable is reloaded in given classloade… in can_run_in_given_classloader()
|
/external/apache-commons-io/src/test/java/org/apache/commons/io/input/ |
D | ClassLoaderObjectInputStreamTest.java | 86 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testExpected() 96 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testLong() 106 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testObject1() 116 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testObject2() 130 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testPrimitiveLong() 139 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testResolveProxyClass() 149 …derObjectInputStream clois = new ClassLoaderObjectInputStream(getClass().getClassLoader(), bais)) { in testResolveProxyClassWithMultipleInterfaces()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/constructor/ |
D | CustomClassLoaderConstructorTest.java | 35 CustomClassLoaderConstructorTest.class.getClassLoader()); in testGetClassForName() 44 CustomClassLoaderConstructorTest.class.getClassLoader()); in testGetClassForNameWithRoot() 46 CustomClassLoaderConstructorTest.class.getClassLoader()); in testGetClassForNameWithRoot() 55 CustomClassLoaderConstructorTest.class.getClassLoader()); in testGetClassForNameBean()
|
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/ |
D | AbstractFutureFallbackAtomicHelperTest.java | 57 getClassLoader(ImmutableSet.of(sun.misc.Unsafe.class.getName())); 64 getClassLoader( 85 checkHelperVersion(getClass().getClassLoader(), "UnsafeAtomicHelper"); in runTest() 122 private static ClassLoader getClassLoader(final Set<String> disallowedClassNames) { in getClassLoader() method in AbstractFutureFallbackAtomicHelperTest 124 ClassLoader classLoader = AbstractFutureFallbackAtomicHelperTest.class.getClassLoader(); in getClassLoader()
|
D | AggregateFutureStateFallbackAtomicHelperTest.java | 58 getClassLoader( 81 checkHelperVersion(getClass().getClassLoader(), "SafeAtomicHelper"); in runTest() 113 private static ClassLoader getClassLoader(final Set<String> blocklist) { in getClassLoader() method in AggregateFutureStateFallbackAtomicHelperTest 115 ClassLoader classLoader = AggregateFutureStateFallbackAtomicHelperTest.class.getClassLoader(); in getClassLoader()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | AbstractFutureFallbackAtomicHelperTest.java | 57 getClassLoader(ImmutableSet.of(sun.misc.Unsafe.class.getName())); 64 getClassLoader( 85 checkHelperVersion(getClass().getClassLoader(), "UnsafeAtomicHelper"); in runTest() 122 private static ClassLoader getClassLoader(final Set<String> disallowedClassNames) { in getClassLoader() method in AbstractFutureFallbackAtomicHelperTest 124 ClassLoader classLoader = AbstractFutureFallbackAtomicHelperTest.class.getClassLoader(); in getClassLoader()
|
D | AggregateFutureStateFallbackAtomicHelperTest.java | 58 getClassLoader( 81 checkHelperVersion(getClass().getClassLoader(), "SafeAtomicHelper"); in runTest() 113 private static ClassLoader getClassLoader(final Set<String> blocklist) { in getClassLoader() method in AggregateFutureStateFallbackAtomicHelperTest 115 ClassLoader classLoader = AggregateFutureStateFallbackAtomicHelperTest.class.getClassLoader(); in getClassLoader()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowLoadedApk.java | 13 public ClassLoader getClassLoader() { in getClassLoader() method in ShadowLoadedApk 14 return this.getClass().getClassLoader(); in getClassLoader() 19 return this.getClass().getClassLoader(); in getSplitClassLoader()
|
/external/objenesis/main/src/test/java/org/objenesis/instantiator/basic/ |
D | ClassDefinitionUtilsTest.java | 32 Class<?> c = ClassDefinitionUtils.defineClass(className, b, getClass().getClassLoader()); in testDefineClass() 50 Class<?> actual = ClassDefinitionUtils.getExistingClass(getClass().getClassLoader(), in testGetExistingClass_existing() 57 …Class<?> actual = ClassDefinitionUtils.getExistingClass(getClass().getClassLoader(), getClass().ge… in testGetExistingClass_notExisting()
|
/external/dagger2/javatests/dagger/android/ |
D | AndroidProguardTest.java | 38 .getClassLoader() in checkLegacyProguardRules() 48 .getClassLoader() in checkProguardRules() 57 .getClassLoader() in checkR8Rules()
|
/external/guice/core/test/com/googlecode/guice/ |
D | BytecodeGenTest.java | 106 this(TestVisibilityClassLoader.class.getClassLoader(), hideInternals); in TestVisibilityClassLoader() 227 if (ProxyTest.class.getClassLoader() == systemClassLoader) { in testSystemClassLoaderIsUsedIfProxiedClassUsesIt() 228 assertSame(testProxy.getClass().getClassLoader(), systemClassLoader); in testSystemClassLoaderIsUsedIfProxiedClassUsesIt() 230 assertNotSame(testProxy.getClass().getClassLoader(), systemClassLoader); in testSystemClassLoaderIsUsedIfProxiedClassUsesIt() 237 assertNotNull(testObject.getClass().getClassLoader()); in testProxyClassUnloading() 238 assertNotSame(testObject.getClass().getClassLoader(), systemClassLoader); in testProxyClassUnloading() 353 this(MultipleVersionsOfGuiceClassLoader.class.getClassLoader()); in MultipleVersionsOfGuiceClassLoader()
|
/external/turbine/javatests/com/google/turbine/processing/ |
D | ProcessingIntegrationTest.java | 108 getClass().getClassLoader(), in crash() 168 getClass().getClassLoader(), in warnings() 234 getClass().getClassLoader(), in resources() 270 getClass().getClassLoader(), in getAllAnnotations() 411 getClass().getClassLoader(), in errorsAndFinalRound() 464 getClass().getClassLoader(), in superType() 518 getClass().getClassLoader(), in generatedAnnotationDefinition() 559 getClass().getClassLoader(), in qualifiedErrorType() 610 getClass().getClassLoader(), in badElementValue() 666 getClass().getClassLoader(), in recordProcessing() [all …]
|
/external/easymock/src/org/easymock/internal/ |
D | EasyMockProperties.java | 58 InputStream in = getClassLoader().getResourceAsStream( in EasyMockProperties() 132 private ClassLoader getClassLoader() { in getClassLoader() method in EasyMockProperties 142 cl = getClass().getClassLoader(); in getClassLoader()
|
/external/webrtc/sdk/android/src/java/org/webrtc/ |
D | WebRtcClassLoader.java | 20 static Object getClassLoader() { in getClassLoader() method in WebRtcClassLoader 21 Object loader = WebRtcClassLoader.class.getClassLoader(); in getClassLoader()
|