Home
last modified time | relevance | path

Searched refs:loader (Results 1 – 25 of 97) sorted by relevance

1234

/frameworks/base/startop/view_compiler/dex_builder_test/src/android/startop/test/
DDexBuilderTest.java40 ClassLoader loader = loadDexFile("trivial.dex"); in loadTrivialDex() local
41 loader.loadClass("android.startop.test.testcases.Trivial"); in loadTrivialDex()
46 ClassLoader loader = loadDexFile("simple.dex"); in return5() local
47 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in return5()
54 ClassLoader loader = loadDexFile("simple.dex"); in returnInteger5() local
55 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnInteger5()
62 ClassLoader loader = loadDexFile("simple.dex"); in returnParam() local
63 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnParam()
71 ClassLoader loader = loadDexFile("simple.dex"); in returnStringLength() local
72 Class clazz = loader.loadClass("android.startop.test.testcases.SimpleTests"); in returnStringLength()
[all …]
/frameworks/multidex/library/src/androidx/multidex/
DMultiDex.java225 ClassLoader loader = getDexClassloader(mainContext); in doInstallation() local
226 if (loader == null) { in doInstallation()
247 installSecondaryDexes(loader, dexDir, files); in doInstallation()
256 installSecondaryDexes(loader, dexDir, files); in doInstallation()
279 ClassLoader loader; in getDexClassloader() local
281 loader = context.getClassLoader(); in getDexClassloader()
293 if (loader instanceof dalvik.system.BaseDexClassLoader) { in getDexClassloader()
294 return loader; in getDexClassloader()
296 } else if (loader instanceof dalvik.system.DexClassLoader in getDexClassloader()
297 || loader instanceof dalvik.system.PathClassLoader) { in getDexClassloader()
[all …]
/frameworks/libs/modules-utils/java/com/android/modules/utils/
DParceledListSlice.java37 private ParceledListSlice(Parcel in, ClassLoader loader) { in ParceledListSlice() argument
38 super(in, loader); in ParceledListSlice()
66 protected Parcelable.Creator<?> readParcelableCreator(Parcel from, ClassLoader loader) { in readParcelableCreator() argument
67 return from.readParcelableCreator(loader); in readParcelableCreator()
78 public ParceledListSlice createFromParcel(Parcel in, ClassLoader loader) {
79 return new ParceledListSlice(in, loader);
DStringParceledListSlice.java36 private StringParceledListSlice(Parcel in, ClassLoader loader) { in StringParceledListSlice() argument
37 super(in, loader); in StringParceledListSlice()
60 protected Parcelable.Creator<?> readParcelableCreator(Parcel from, ClassLoader loader) { in readParcelableCreator() argument
72 public StringParceledListSlice createFromParcel(Parcel in, ClassLoader loader) {
73 return new StringParceledListSlice(in, loader);
DBaseParceledListSlice.java59 BaseParceledListSlice(Parcel p, ClassLoader loader) { in BaseParceledListSlice() argument
67 Parcelable.Creator<?> creator = readParcelableCreator(p, loader); in BaseParceledListSlice()
76 final T parcelable = readCreator(creator, p, loader); in BaseParceledListSlice()
104 final T parcelable = readCreator(creator, reply, loader); in BaseParceledListSlice()
117 private T readCreator(Parcelable.Creator<?> creator, Parcel p, ClassLoader loader) { in readCreator() argument
121 return (T) classLoaderCreator.createFromParcel(p, loader); in readCreator()
209 protected abstract Parcelable.Creator<?> readParcelableCreator(Parcel from, ClassLoader loader); in readParcelableCreator() argument
/frameworks/base/core/java/android/os/
DParcelableParcel.java31 public ParcelableParcel(ClassLoader loader) { in ParcelableParcel() argument
33 mClassLoader = loader; in ParcelableParcel()
36 public ParcelableParcel(Parcel src, ClassLoader loader) { in ParcelableParcel() argument
38 mClassLoader = loader; in ParcelableParcel()
78 public ParcelableParcel createFromParcel(Parcel in, ClassLoader loader) {
79 return new ParcelableParcel(in, loader);
DParcel.java2599 public final void readMap(@NonNull Map outVal, @Nullable ClassLoader loader) { in readMap() argument
2601 readMapInternal(outVal, N, loader); in readMap()
2609 public final void readList(@NonNull List outVal, @Nullable ClassLoader loader) { in readList() argument
2611 readListInternal(outVal, N, loader); in readList()
2622 public final HashMap readHashMap(@Nullable ClassLoader loader) in readHashMap() argument
2629 readMapInternal(m, N, loader); in readHashMap()
2650 public final Bundle readBundle(@Nullable ClassLoader loader) { in readBundle() argument
2658 if (loader != null) { in readBundle()
2659 bundle.setClassLoader(loader); in readBundle()
2681 public final PersistableBundle readPersistableBundle(@Nullable ClassLoader loader) { in readPersistableBundle() argument
[all …]
/frameworks/base/tools/preload-check/device/src/com/android/preload/check/
DIntegrityCheck.java24 ClassLoader loader = IntegrityCheck.class.getClassLoader(); in main() local
26 Util.assertNotInitialized("com.android.preload.check.IntegrityCheck$StatusHelper", loader); in main()
29 /* initialize */ true, loader); in main()
31 Util.assertInitialized("com.android.preload.check.IntegrityCheck$StatusHelper", loader); in main()
DUtil.java107 ClassLoader loader) { in assertInitializedState() argument
110 Class<?> klass = Class.forName(className, /* initialize */ false, loader); in assertInitializedState()
118 public static void assertNotInitialized(String className, ClassLoader loader) { in assertNotInitialized() argument
119 assertInitializedState(className, false, loader); in assertNotInitialized()
122 public static void assertInitialized(String className, ClassLoader loader) { in assertInitialized() argument
123 assertInitializedState(className, true, loader); in assertInitialized()
/frameworks/base/core/java/android/content/pm/
DParceledListSlice.java41 private ParceledListSlice(Parcel in, ClassLoader loader) { in ParceledListSlice() argument
42 super(in, loader); in ParceledListSlice()
71 protected Parcelable.Creator<?> readParcelableCreator(Parcel from, ClassLoader loader) { in readParcelableCreator() argument
72 return from.readParcelableCreator(loader); in readParcelableCreator()
84 public ParceledListSlice createFromParcel(Parcel in, ClassLoader loader) {
85 return new ParceledListSlice(in, loader);
DStringParceledListSlice.java38 private StringParceledListSlice(Parcel in, ClassLoader loader) { in StringParceledListSlice() argument
39 super(in, loader); in StringParceledListSlice()
62 protected Parcelable.Creator<?> readParcelableCreator(Parcel from, ClassLoader loader) { in readParcelableCreator() argument
74 public StringParceledListSlice createFromParcel(Parcel in, ClassLoader loader) {
75 return new StringParceledListSlice(in, loader);
DBaseParceledListSlice.java62 BaseParceledListSlice(Parcel p, ClassLoader loader) { in BaseParceledListSlice() argument
70 Parcelable.Creator<?> creator = readParcelableCreator(p, loader); in BaseParceledListSlice()
78 listElementClass = readVerifyAndAddElement(creator, p, loader, listElementClass); in BaseParceledListSlice()
98 listElementClass = readVerifyAndAddElement(creator, reply, loader, in BaseParceledListSlice()
109 ClassLoader loader, Class<?> listElementClass) { in readVerifyAndAddElement() argument
110 final T parcelable = readCreator(creator, p, loader); in readVerifyAndAddElement()
120 private T readCreator(Parcelable.Creator<?> creator, Parcel p, ClassLoader loader) { in readCreator() argument
124 return (T) classLoaderCreator.createFromParcel(p, loader); in readCreator()
214 protected abstract Parcelable.Creator<?> readParcelableCreator(Parcel from, ClassLoader loader); in readParcelableCreator() argument
/frameworks/base/apex/media/framework/java/android/media/
DMediaParceledListSlice.java51 private MediaParceledListSlice(Parcel in, ClassLoader loader) { in MediaParceledListSlice() argument
52 super(in, loader); in MediaParceledListSlice()
81 Parcelable.Creator<?> readParcelableCreator(Parcel from, ClassLoader loader) { in readParcelableCreator() argument
82 return from.readParcelableCreator(loader); in readParcelableCreator()
94 public MediaParceledListSlice createFromParcel(Parcel in, ClassLoader loader) {
95 return new MediaParceledListSlice(in, loader);
DBaseMediaParceledListSlice.java64 BaseMediaParceledListSlice(Parcel p, ClassLoader loader) { in BaseMediaParceledListSlice() argument
72 Parcelable.Creator<?> creator = readParcelableCreator(p, loader); in BaseMediaParceledListSlice()
81 final T parcelable = readCreator(creator, p, loader); in BaseMediaParceledListSlice()
109 final T parcelable = readCreator(creator, reply, loader); in BaseMediaParceledListSlice()
122 private T readCreator(Parcelable.Creator<?> creator, Parcel p, ClassLoader loader) { in readCreator() argument
126 return (T) classLoaderCreator.createFromParcel(p, loader); in readCreator()
214 abstract Parcelable.Creator<?> readParcelableCreator(Parcel from, ClassLoader loader); in readParcelableCreator() argument
/frameworks/base/core/java/com/android/internal/os/
DWebViewZygoteInit.java78 ClassLoader loader = loadedApk.getClassLoader(); in handlePreloadApp() local
79 doPreload(loader, WebViewFactory.getWebViewLibrary(appInfo)); in handlePreloadApp()
94 ClassLoader loader = ApplicationLoaders.getDefault().createAndCacheWebViewClassLoader( in handlePreloadPackage() local
103 doPreload(loader, libFileName); in handlePreloadPackage()
108 private void doPreload(ClassLoader loader, String libFileName) { in doPreload() argument
111 WebViewLibraryLoader.loadNativeLibrary(loader, libFileName); in doPreload()
119 WebViewFactory.getWebViewProviderClass(loader); in doPreload()
/frameworks/base/core/java/android/app/
DApplicationLoaders.java75 ClassLoader loader = getCachedNonBootclasspathSystemLib(zip, parent, classLoaderName, in getSharedLibraryClassLoaderWithSharedLibraries() local
77 if (loader != null) { in getSharedLibraryClassLoaderWithSharedLibraries()
78 return loader; in getSharedLibraryClassLoaderWithSharedLibraries()
116 ClassLoader loader = mLoaders.get(cacheKey); in getClassLoader() local
117 if (loader != null) { in getClassLoader()
118 return loader; in getClassLoader()
142 ClassLoader loader = ClassLoaderFactory.createClassLoader( in getClassLoader() local
145 return loader; in getClassLoader()
191 sharedLibraries.add(cached.loader); in createAndCacheNonBootclasspathSystemClassLoader()
207 cached.loader = classLoader; in createAndCacheNonBootclasspathSystemClassLoader()
[all …]
/frameworks/base/tests/AppResourcesLoaders/src/com/android/example/loaders/
DLoadersApplication.java21 import android.content.res.loader.ResourcesLoader;
22 import android.content.res.loader.ResourcesProvider;
39 final ResourcesLoader loader = new ResourcesLoader(); in onCreate() local
40 loader.addProvider(ResourcesProvider.loadFromApk(copyResource(LOADER_RESOURCES_APK))); in onCreate()
41 resources.addLoaders(loader); in onCreate()
/frameworks/base/libs/hwui/jni/pdf/
DPdfUtils.cpp101 FPDF_FILEACCESS loader; in nativeOpen() local
102 loader.m_FileLen = size; in nativeOpen()
103 loader.m_Param = reinterpret_cast<void*>(intptr_t(fd)); in nativeOpen()
104 loader.m_GetBlock = &getBlock; in nativeOpen()
106 FPDF_DOCUMENT document = FPDF_LoadCustomDocument(&loader, NULL); in nativeOpen()
/frameworks/base/core/java/android/view/
DAbsSavedState.java66 protected AbsSavedState(Parcel source, ClassLoader loader) { in AbsSavedState() argument
67 Parcelable superState = source.readParcelable(loader); in AbsSavedState()
92 public AbsSavedState createFromParcel(Parcel in, ClassLoader loader) {
93 Parcelable superState = in.readParcelable(loader);
/frameworks/base/libs/androidfw/tests/data/loader/
Dbuild24 aapt2 link -I $FRAMEWORK_RES_APK --manifest AndroidManifest.xml -o loader.apk compiled.flata
25 unzip loader.apk resources.arsc
26 rm loader.apk
/frameworks/opt/photoviewer/src/com/android/ex/photo/fragments/
DPhotoViewFragment.java30 import androidx.loader.app.LoaderManager;
31 import androidx.loader.content.Loader;
340 public void onLoadFinished(Loader<BitmapResult> loader, BitmapResult result) { in onLoadFinished() argument
350 final int id = loader.getId(); in onLoadFinished()
438 public void onLoaderReset(Loader<BitmapResult> loader) { in onLoaderReset() argument
543 … final PhotoBitmapLoaderInterface loader = (PhotoBitmapLoaderInterface) fakePhotoLoader; in onCursorChanged() local
545 loader.setPhotoUri(mResolvedPhotoUri); in onCursorChanged()
546 loader.forceLoad(); in onCursorChanged()
553 … final PhotoBitmapLoaderInterface loader = (PhotoBitmapLoaderInterface) fakeThumbnailLoader; in onCursorChanged() local
555 loader.setPhotoUri(mThumbnailUri); in onCursorChanged()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
DSuggestionControllerMixinCompat.java28 import androidx.loader.app.LoaderManager;
29 import androidx.loader.content.Loader;
122 public void onLoadFinished(Loader<List<Suggestion>> loader, List<Suggestion> data) { in onLoadFinished() argument
128 public void onLoaderReset(Loader<List<Suggestion>> loader) { in onLoaderReset() argument
/frameworks/base/test-runner/src/android/test/
DLoaderTestCase.java55 public <T> T getLoaderResultSynchronously(final Loader<T> loader) { in getLoaderResultSynchronously() argument
80 loader.registerListener(0, listener); in getLoaderResultSynchronously()
81 loader.startLoading(); in getLoaderResultSynchronously()
/frameworks/base/core/java/android/content/res/
DResourcesKey.java24 import android.content.res.loader.ResourcesLoader;
75 @Nullable ResourcesLoader[] loader) { in ResourcesKey() argument
80 mLoaders = (loader != null && loader.length == 0) ? null : loader; in ResourcesKey()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPrinterRegistry.java114 Loader<?> loader = mActivity.getLoaderManager().getLoader(mLoaderId); in getPrinterProvider() local
115 return (FusedPrintersProvider) loader; in getPrinterProvider()
121 public void onLoaderReset(Loader<List<PrinterInfo>> loader) {
132 public void onLoadFinished(Loader<List<PrinterInfo>> loader, List<PrinterInfo> printers) {

1234