Home
last modified time | relevance | path

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

12345

/frameworks/libs/binary_translation/guest_loader/
Dguest_loader_test.cc37 GuestLoader* loader = GuestLoader::StartAppProcessInNewThread(&error_msg); in TEST() local
38 ASSERT_NE(nullptr, loader) << error_msg; in TEST()
41 loader->DlError(); in TEST()
42 ASSERT_EQ(nullptr, loader->DlError()); in TEST()
45 ASSERT_EQ(0, loader->DlAddr(loader, &info)); in TEST()
46 ASSERT_EQ(nullptr, loader->DlError()); // dladdr doesn't set dlerror. in TEST()
48 void* handle = loader->DlOpen("libc.so", RTLD_NOW); in TEST()
49 ASSERT_NE(nullptr, handle) << loader->DlError(); // dlerror called only if assertion fails. in TEST()
50 ASSERT_EQ(nullptr, loader->DlError()); in TEST()
52 android_namespace_t* ns = loader->CreateNamespace("classloader-namespace", in TEST()
[all …]
/frameworks/base/core/tests/fuzzers/ParcelFuzzer/
DReadUtils.java274 TestClassLoader loader = new TestClassLoader();
275 parcel.readParcelable(loader, SingleDataParcelable.class);
278 TestClassLoader loader = new TestClassLoader();
279 parcel.readParcelableArray(loader, SingleDataParcelable.class);
294 TestClassLoader loader = new TestClassLoader();
295 parcel.readParcelable(loader, EmptyParcelable.class);
298 TestClassLoader loader = new TestClassLoader();
299 parcel.readParcelableArray(loader, EmptyParcelable.class);
314 TestClassLoader loader = new TestClassLoader();
315 parcel.readParcelable(loader, GenericDataParcelable.class);
[all …]
/frameworks/multidex/library/src/androidx/multidex/
DMultiDex.java231 ClassLoader loader = getDexClassloader(mainContext); in doInstallation() local
232 if (loader == null) { in doInstallation()
253 installSecondaryDexes(loader, dexDir, files); in doInstallation()
262 installSecondaryDexes(loader, dexDir, files); in doInstallation()
285 ClassLoader loader; in getDexClassloader() local
287 loader = context.getClassLoader(); in getDexClassloader()
299 if (loader instanceof dalvik.system.BaseDexClassLoader) { in getDexClassloader()
300 return loader; in getDexClassloader()
302 } else if (loader instanceof dalvik.system.DexClassLoader in getDexClassloader()
303 || 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/libs/binary_translation/jni/
Dguest_jni_trampolines.cc35 void* DlOpenLibicuNoLoad(const char* libname, GuestLoader* loader) { in DlOpenLibicuNoLoad() argument
38 extinfo.library_namespace = loader->GetExportedNamespace("com_android_i18n"); in DlOpenLibicuNoLoad()
39 return loader->DlOpenExt(libname, RTLD_NOLOAD, &extinfo); in DlOpenLibicuNoLoad()
153 auto* loader = GuestLoader::GetInstance(); in JNIEnv_CallStaticVoidMethodV_ForGuest() local
154 void* libicu = DlOpenLibicuNoLoad("libicu.so", loader); in JNIEnv_CallStaticVoidMethodV_ForGuest()
166 loader->DlSym(libicu, "uloc_canonicalize"), in JNIEnv_CallStaticVoidMethodV_ForGuest()
181 GuestCall_u_getVersion(loader->DlSym(libicu, "u_getVersion"), version_info); in JNIEnv_CallStaticVoidMethodV_ForGuest()
183 void* libicuuc = DlOpenLibicuNoLoad("libicuuc.so", loader); in JNIEnv_CallStaticVoidMethodV_ForGuest()
190 GuestCall_uloc_setDefault(loader->DlSym(libicuuc, uloc_setDefault_versioned_name.c_str()), in JNIEnv_CallStaticVoidMethodV_ForGuest()
/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.java3430 public final void readMap(@NonNull Map outVal, @Nullable ClassLoader loader) { in readMap() argument
3431 readMapInternal(outVal, loader, /* clazzKey */ null, /* clazzValue */ null); in readMap()
3442 @Nullable ClassLoader loader, @NonNull Class<K> clazzKey, in readMap() argument
3446 readMapInternal(outVal, loader, clazzKey, clazzValue); in readMap()
3461 public final void readList(@NonNull List outVal, @Nullable ClassLoader loader) { in readList() argument
3463 readListInternal(outVal, N, loader, /* clazz */ null); in readList()
3482 @Nullable ClassLoader loader, @NonNull Class<T> clazz) { in readList() argument
3485 readListInternal(outVal, n, loader, clazz); in readList()
3501 public HashMap readHashMap(@Nullable ClassLoader loader) { in readHashMap() argument
3502 return readHashMapInternal(loader, /* clazzKey */ null, /* clazzValue */ null); in readHashMap()
[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.java72 BaseParceledListSlice(Parcel p, ClassLoader loader) { in BaseParceledListSlice() argument
80 Parcelable.Creator<?> creator = readParcelableCreator(p, loader); in BaseParceledListSlice()
88 listElementClass = readVerifyAndAddElement(creator, p, loader, listElementClass); in BaseParceledListSlice()
105 listElementClass = readVerifyAndAddElement(creator, reply, loader, in BaseParceledListSlice()
121 ClassLoader loader, Class<?> listElementClass) { in readVerifyAndAddElement() argument
122 final T parcelable = readCreator(creator, p, loader); in readVerifyAndAddElement()
132 private T readCreator(Parcelable.Creator<?> creator, Parcel p, ClassLoader loader) { in readCreator() argument
136 return (T) classLoaderCreator.createFromParcel(p, loader); in readCreator()
266 protected 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.java77 ClassLoader loader = getCachedNonBootclasspathSystemLib(zip, parent, classLoaderName, in getSharedLibraryClassLoaderWithSharedLibraries() local
79 if (loader != null) { in getSharedLibraryClassLoaderWithSharedLibraries()
80 return loader; in getSharedLibraryClassLoaderWithSharedLibraries()
119 ClassLoader loader = mLoaders.get(cacheKey); in getClassLoader() local
120 if (loader != null) { in getClassLoader()
121 return loader; in getClassLoader()
145 ClassLoader loader = ClassLoaderFactory.createClassLoader( in getClassLoader() local
149 return loader; in getClassLoader()
195 sharedLibraries.add(cached.loader); in createAndCacheNonBootclasspathSystemClassLoader()
211 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.cpp98 FPDF_FILEACCESS loader; in nativeOpen() local
99 loader.m_FileLen = size; in nativeOpen()
100 loader.m_Param = reinterpret_cast<void*>(intptr_t(fd)); in nativeOpen()
101 loader.m_GetBlock = &getBlock; in nativeOpen()
103 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/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/data/
DActivityTaskManagerThumbnailLoaderTest.kt35 private val loader = ActivityTaskManagerThumbnailLoader(dispatcher, activityManager) constant in com.android.systemui.mediaprojection.appselector.data.ActivityTaskManagerThumbnailLoaderTest
46 assertThat(loader.loadThumbnail(taskId)).isNull() in loadThumbnail_emptyThumbnail_returnsNull()
59 assertThat(loader.loadThumbnail(taskId)).isEqualTo(thumbnailData) in loadThumbnail_thumbnailAvailable_returnsThumbnailData()
70 assertThat(loader.captureThumbnail(taskId)).isNull() in captureThumbnail_emptyThumbnail_returnsNull()
81 assertThat(loader.captureThumbnail(taskId)).isEqualTo(thumbnailData) in captureThumbnail_thumbnailAvailable_returnsThumbnailData()
/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()

12345