Lines Matching refs:loader

47  * loader} in order to load classes from more than one dex file. The primary
83 * Patches the application context class loader by appending extra dex files
127 /* The patched class loader is expected to be a descendant of
132 ClassLoader loader;
134 loader = context.getClassLoader();
140 Log.w(TAG, "Failure while trying to obtain Context class loader. " +
144 if (loader == null) {
145 // Note, the context class loader is null when running Robolectric tests.
147 "Context class loader is null. Must be running in test mode. "
162 installSecondaryDexes(loader, dexDir, files);
169 installSecondaryDexes(loader, dexDir, files);
238 private static void installSecondaryDexes(ClassLoader loader, File dexDir, List<File> files)
243 V19.install(loader, files, dexDir);
245 V14.install(loader, files, dexDir);
247 V4.install(loader, files);
408 private static void install(ClassLoader loader, List<File> additionalClassPathEntries,
412 /* The patched class loader is expected to be a descendant of
417 Field pathListField = findField(loader, "pathList");
418 Object dexPathList = pathListField.get(loader);
473 private static void install(ClassLoader loader, List<File> additionalClassPathEntries,
477 /* The patched class loader is expected to be a descendant of
482 Field pathListField = findField(loader, "pathList");
483 Object dexPathList = pathListField.get(loader);
507 private static void install(ClassLoader loader, List<File> additionalClassPathEntries)
510 /* The patched class loader is expected to be a descendant of
517 Field pathField = findField(loader, "path");
519 StringBuilder path = new StringBuilder((String) pathField.get(loader));
536 pathField.set(loader, path.toString());
537 expandFieldArray(loader, "mPaths", extraPaths);
538 expandFieldArray(loader, "mFiles", extraFiles);
539 expandFieldArray(loader, "mZips", extraZips);
540 expandFieldArray(loader, "mDexs", extraDexs);