/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | BaseDexClassLoaderTest.java | 64 private ClassLoader pcl; 121 ClassLoader.getSystemClassLoader()); in testReporting() 137 ClassLoader unknownLoader = new ClassLoader(ClassLoader.getSystemClassLoader()) {}; in testReportingUnknownLoader() 149 ClassLoader.getSystemClassLoader()); in testNoReportingAfterResetting() 177 ClassLoader.getSystemClassLoader()); in testReporting_multipleJars() 214 final ClassLoader parent = ClassLoader.getSystemClassLoader(); in testReporting_withSharedLibraries() 215 final ClassLoader sharedLoaders[] = new ClassLoader[] { in testReporting_withSharedLibraries() 238 final ClassLoader parent = ClassLoader.getSystemClassLoader(); in testReporting_multipleJars_withSharedLibraries() 240 final ClassLoader sharedLoaders[] = new ClassLoader[] { in testReporting_multipleJars_withSharedLibraries() 281 BaseDexClassLoader cl1 = new PathClassLoader("", ClassLoader.getSystemClassLoader()); in testReporting_emptyPath() [all …]
|
D | DelegateLastClassLoaderTest.java | 96 private ClassLoader createClassLoader(String parentName, String thisName) { in createClassLoader() 100 private ClassLoader createClassLoader(String parentName, String thisName, in createClassLoader() 107 ClassLoader parent = new PathClassLoader(parentPath.getAbsolutePath(), in createClassLoader() 114 private static String callMethod(ClassLoader cl, String name) throws Exception { in callMethod() 123 private static String readResource(ClassLoader cl, String resourceName) throws Exception { in readResource() 127 private static List<String> readResources(ClassLoader cl, String resourceName) in readResources() 133 ClassLoader delegate = createClassLoader("parent.jar", "child.jar"); in testLookupOrder_loadClass() 142 ClassLoader delegate = createClassLoader("parent.jar", "child.jar"); in testLookupOrder_foundInParent() 152 ClassLoader delegate = createClassLoader("parent.jar", "child.jar"); in testLoadClass_exceptionMessages() 162 ClassLoader pathClassLoader = new PathClassLoader( in testLoadClass_exceptionMessages() [all …]
|
D | DexClassLoaderTest.java | 71 private ClassLoader createLoader(File... files) { in createLoader() 79 ClassLoader.getSystemClassLoader()); in createLoader() 94 ClassLoader cl = createLoader(files); in createLoaderAndCallMethod() 109 ClassLoader cl = createLoader(files); in createLoaderAndGetResource() 128 ClassLoader cl = createLoader(jar1); in test_oneJar_init() 168 ClassLoader cl = createLoader(dex1); in test_oneDex_init() 199 ClassLoader cl = createLoader(jar1, jar2); in test_twoJar_init() 250 ClassLoader cl = createLoader(dex1, dex2); in test_twoDex_init()
|
D | InMemoryDexClassLoaderTest.java | 82 ClassLoader loader = InMemoryDexClassLoaderTest.class.getClassLoader(); in copyResource() 172 private ClassLoader createLoaderDirect(File... files) throws IOException { in createLoaderDirect() 175 ClassLoader result = ClassLoader.getSystemClassLoader(); in createLoaderDirect() 191 private ClassLoader createLoaderIndirect(File... files) throws IOException { in createLoaderIndirect() 194 ClassLoader result = ClassLoader.getSystemClassLoader(); in createLoaderIndirect() 213 ClassLoader cl = createLoaderDirect(files); in createLoaderDirectAndCallMethod() 231 ClassLoader cl = createLoaderIndirect(files); in createLoaderIndirectAndCallMethod()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_ClassLoader.java | 29 public abstract ClassLoader getClassLoader(URL url, ClassLoader parent); in getClassLoader() 31 public static ClassLoader getInstance(URL url, ClassLoader parent) { in getInstance() 56 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader()
|
D | Support_ClassLoaderDalvik.java | 40 public ClassLoader getClassLoader(URL url, ClassLoader parent) { in getClassLoader()
|
/libcore/support/src/test/java/tests/util/ |
D | ClassLoaderBuilder.java | 35 private ClassLoader parent = ClassLoaderBuilder.class.getClassLoader(); 39 public ClassLoaderBuilder parent(ClassLoader parent) { in parent() 63 public ClassLoader build() { in build() 82 ClassLoader bridge = new ClassLoader(parent) { in build() 106 return (ClassLoader) Class.forName("dalvik.system.PathClassLoader") in build() 107 .getConstructor(String.class, ClassLoader.class) in build() 127 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in getApplicationClassPath()
|
/libcore/ojluni/src/main/java/java/lang/ |
D | ClassLoader.java | 180 public abstract class ClassLoader { class 183 public static ClassLoader loader = ClassLoader.createSystemClassLoader(); 201 private final ClassLoader parent; 206 private static ClassLoader createSystemClassLoader() { in createSystemClassLoader() 247 private ClassLoader(Void unused, ClassLoader parent) { in ClassLoader() method in ClassLoader 270 protected ClassLoader(ClassLoader parent) { in ClassLoader() method in ClassLoader 289 protected ClassLoader() { in ClassLoader() method in ClassLoader 733 ClassLoader loader; in findLoadedClass() 917 ClassLoader system = getSystemClassLoader(); in getSystemResource() 947 ClassLoader system = getSystemClassLoader(); in getSystemResources() [all …]
|
D | Runtime.java | 915 void load(String absolutePath, ClassLoader loader) { in load() 1007 ClassLoader classLoader = ClassLoader.getClassLoader(fromClass); in loadLibrary0() 1021 public void loadLibrary(String libname, ClassLoader classLoader) { in loadLibrary() 1031 void loadLibrary0(ClassLoader loader, String libname) { in loadLibrary0() 1051 … private synchronized void loadLibrary0(ClassLoader loader, Class<?> callerClass, String libname) { in loadLibrary0() 1130 private static String nativeLoad(String filename, ClassLoader loader) { in nativeLoad() 1134 private static native String nativeLoad(String filename, ClassLoader loader, Class<?> caller); in nativeLoad()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | PathClassLoader.java | 37 public PathClassLoader(String dexPath, ClassLoader parent) { in PathClassLoader() 63 public PathClassLoader(String dexPath, String librarySearchPath, ClassLoader parent) { in PathClassLoader() 72 String dexPath, String librarySearchPath, ClassLoader parent, in PathClassLoader() 73 ClassLoader[] sharedLibraryLoaders) { in PathClassLoader()
|
D | DexFile.java | 79 DexFile(File file, ClassLoader loader, DexPathList.Element[] elements) in DexFile() 106 DexFile(String fileName, ClassLoader loader, DexPathList.Element[] elements) in DexFile() 114 DexFile(ByteBuffer[] bufs, ClassLoader loader, DexPathList.Element[] elements) in DexFile() 136 private DexFile(String sourceName, String outputName, int flags, ClassLoader loader, in DexFile() 202 int flags, ClassLoader loader, DexPathList.Element[] elements) throws IOException { in loadDex() 272 public Class loadClass(String name, ClassLoader loader) { in loadClass() 285 public Class loadClassBinaryName(String name, ClassLoader loader, List<Throwable> suppressed) { in loadClassBinaryName() 289 private static Class defineClass(String name, ClassLoader loader, Object cookie, in defineClass() 364 ClassLoader loader, DexPathList.Element[] elements) throws IOException { in openDexFile() 375 private static Object openInMemoryDexFiles(ByteBuffer[] bufs, ClassLoader loader, in openInMemoryDexFiles() [all …]
|
D | BaseDexClassLoader.java | 38 public class BaseDexClassLoader extends ClassLoader { 68 protected final ClassLoader[] sharedLibraryLoaders; 86 String librarySearchPath, ClassLoader parent) { in BaseDexClassLoader() 95 String librarySearchPath, ClassLoader parent, boolean isTrusted) { in BaseDexClassLoader() 103 String librarySearchPath, ClassLoader parent, ClassLoader[] libraries) { in BaseDexClassLoader() 121 String librarySearchPath, ClassLoader parent, ClassLoader[] sharedLibraryLoaders, in BaseDexClassLoader() 184 public BaseDexClassLoader(ByteBuffer[] dexFiles, String librarySearchPath, ClassLoader parent) { in BaseDexClassLoader() 195 for (ClassLoader loader : sharedLibraryLoaders) { in findClass() 247 for (ClassLoader loader : sharedLibraryLoaders) { in findResource()
|
D | DelegateLastClassLoader.java | 51 public DelegateLastClassLoader(String dexPath, ClassLoader parent) { in DelegateLastClassLoader() 59 public DelegateLastClassLoader(String dexPath, String librarySearchPath, ClassLoader parent) { in DelegateLastClassLoader() 101 @Nullable ClassLoader parent, boolean delegateResourceLoading) { in DelegateLastClassLoader() 111 String dexPath, String librarySearchPath, ClassLoader parent, in DelegateLastClassLoader() 112 ClassLoader[] sharedLibraryLoaders) { in DelegateLastClassLoader() 169 final ClassLoader cl = getParent(); in getResource()
|
D | InMemoryDexClassLoader.java | 39 @Nullable String librarySearchPath, @Nullable ClassLoader parent) { in InMemoryDexClassLoader() 51 @Nullable ClassLoader parent) { in InMemoryDexClassLoader() 62 public InMemoryDexClassLoader(@NonNull ByteBuffer dexBuffer, @Nullable ClassLoader parent) { in InMemoryDexClassLoader()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | ClassLoader.java | 32 public abstract class ClassLoader { class 34 private ClassLoader(java.lang.Void unused, java.lang.ClassLoader parent) { in ClassLoader() method in ClassLoader 38 protected ClassLoader(java.lang.ClassLoader parent) { in ClassLoader() method in ClassLoader 42 protected ClassLoader() { in ClassLoader() method in ClassLoader 46 private static java.lang.ClassLoader createSystemClassLoader() { in createSystemClassLoader() 167 public final java.lang.ClassLoader getParent() { in getParent() 171 public static java.lang.ClassLoader getSystemClassLoader() { in getSystemClassLoader() 175 static java.lang.ClassLoader getClassLoader(java.lang.Class<?> caller) { in getClassLoader() 231 private final java.lang.ClassLoader parent; 250 public static java.lang.ClassLoader loader;
|
/libcore/ojluni/src/main/java/java/util/ |
D | ServiceLoader.java | 193 private final ClassLoader loader; 221 private ServiceLoader(Class<S> svc, ClassLoader cl) { in ServiceLoader() 223 loader = (cl == null) ? ClassLoader.getSystemClassLoader() : cl; in ServiceLoader() 329 ClassLoader loader; 334 private LazyIterator(Class<S> service, ClassLoader loader) { in LazyIterator() 347 configs = ClassLoader.getSystemResources(fullName); in hasNextService() 522 ClassLoader loader) in load() 551 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in load() 582 ClassLoader cl = ClassLoader.getSystemClassLoader(); in loadInstalled() 583 ClassLoader prev = null; in loadInstalled() [all …]
|
/libcore/ojluni/src/main/java/sun/reflect/misc/ |
D | ReflectUtil.java | 169 private static boolean isAncestor(ClassLoader p, ClassLoader cl) { in isAncestor() 170 ClassLoader acl = cl; in isAncestor() 191 public static boolean needsPackageAccessCheck(ClassLoader from, ClassLoader to) { in needsPackageAccessCheck() 227 public static void checkProxyPackageAccess(ClassLoader ccl, in checkProxyPackageAccess() 233 ClassLoader cl = intf.getClassLoader(); in checkProxyPackageAccess()
|
/libcore/ojluni/annotations/hiddenapi/sun/reflect/misc/ |
D | ReflectUtil.java | 76 private static boolean isAncestor(java.lang.ClassLoader p, java.lang.ClassLoader cl) { in isAncestor() 81 java.lang.ClassLoader from, java.lang.ClassLoader to) { in needsPackageAccessCheck() 90 java.lang.ClassLoader ccl, java.lang.Class<?>... interfaces) { in checkProxyPackageAccess()
|
/libcore/luni/src/main/java/libcore/util/ |
D | NativeAllocationRegistry.java | 47 private final ClassLoader classLoader; 80 ClassLoader classLoader, long freeFunction, long size) { in createNonmalloced() 107 ClassLoader classLoader, long freeFunction, long size) { in createMalloced() 124 ClassLoader classLoader, long freeFunction) { in createMalloced() 156 private NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size, in NativeAllocationRegistry() 195 public NativeAllocationRegistry(ClassLoader classLoader, long freeFunction, long size) { in NativeAllocationRegistry()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassLoaderTest.java | 38 private ClassLoader testClassLoader; 52 ClassLoader cl = ClassLoader.getSystemClassLoader(); in test_getSystemClassLoader() 89 ClassLoader parentClassLoader = testClassLoader.getParent(); in test_testClassLoader_getResourceLjava_lang_String() 107 ClassLoader parentClassLoader = testClassLoader.getParent(); in test_testClassLoader_getResourceAsStreamLjava_lang_String() 121 ClassLoader parentClassLoader = testClassLoader.getParent(); in test_testClassLoader_loadClass() 203 private static void assertGetResourceAsStreamNotNull(ClassLoader classLoader, in assertGetResourceAsStreamNotNull() 216 private static void assertGetResourceIsValid(ClassLoader classLoader, String resourceName) { in assertGetResourceIsValid()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/ |
D | Proxy.java | 43 java.lang.ClassLoader loader, java.lang.Class<?>... interfaces) in getProxyClass() 49 java.lang.ClassLoader loader, java.lang.Class<?>... interfaces) { in getProxyClass0() 80 java.lang.ClassLoader loader, in generateProxy() 85 java.lang.ClassLoader loader, in newProxyInstance() 130 java.lang.ClassLoader, java.lang.Class<?>[], java.lang.Class<?>> 194 java.lang.ClassLoader, java.lang.Class<?>[], java.lang.Object> { 201 java.lang.ClassLoader classLoader, java.lang.Class<?>[] interfaces) { in apply() 243 java.lang.ClassLoader, java.lang.Class<?>[], java.lang.Class<?>> { 250 java.lang.ClassLoader loader, java.lang.Class<?>[] interfaces) { in apply()
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | FactoryFinder.java | 115 private static ClassLoader findClassLoader() throws ConfigurationError { in findClassLoader() 119 ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); in findClassLoader() 149 ClassLoader classLoader) in newInstance() 188 ClassLoader classLoader = findClassLoader(); in find() 236 ClassLoader cl = Thread.currentThread().getContextClassLoader(); in findJarServiceProvider() 325 ClassLoader loader = clazz.getClassLoader(); in which() 332 it = ClassLoader.getSystemResource(classnameAsResource); in which()
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | NewInstance.java | 41 static Object newInstance (ClassLoader classLoader, String className) in newInstance() 58 static ClassLoader getClassLoader () in getClassLoader() 70 return (ClassLoader) m.invoke(Thread.currentThread()); in getClassLoader()
|
/libcore/ojluni/src/main/java/java/security/ |
D | ProtectionDomain.java | 42 ClassLoader classloader, in ProtectionDomain() 47 public final ClassLoader getClassLoader() { return null; } in getClassLoader()
|
D | SecureClassLoader.java | 42 public class SecureClassLoader extends ClassLoader { 58 ClassLoader.registerAsParallelCapable(); in ClassLoader.registerAsParallelCapable() 75 protected SecureClassLoader(ClassLoader parent) { in SecureClassLoader()
|