Home
last modified time | relevance | path

Searched refs:Guarded (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/libs/androidfw/include/androidfw/
DMutexGuard.h47 class Guarded {
51 Guarded() : guarded_(std::in_place) { in Guarded() function
54 explicit Guarded(const T& guarded) : guarded_(std::in_place, guarded) { in Guarded() function
57 explicit Guarded(T&& guarded) : guarded_(std::in_place, std::move(guarded)) { in Guarded() function
72 DISALLOW_COPY_AND_ASSIGN(Guarded);
81 explicit ScopedLock(Guarded<T>& guarded) : lock_(guarded.lock_), guarded_(*guarded.guarded_) { in ScopedLock()
/frameworks/base/core/jni/include/android_runtime/
Dandroid_util_AssetManager.h28 extern Guarded<AssetManager2>* AssetManagerForJavaObject(JNIEnv* env, jobject jassetmanager);
29 extern Guarded<AssetManager2>* AssetManagerForNdkAssetManager(AAssetManager* assetmanager);
/frameworks/base/core/jni/
Dandroid_content_res_ApkAssets.h27 Guarded<AssetManager2::ApkAssetsPtr>& ApkAssetsFromLong(jlong ptr);
Dandroid_content_res_ApkAssets.cpp77 Guarded<AssetManager2::ApkAssetsPtr>& ApkAssetsFromLong(jlong ptr) { in ApkAssetsFromLong()
78 return *reinterpret_cast<Guarded<AssetManager2::ApkAssetsPtr>*>(ptr); in ApkAssetsFromLong()
82 auto guarded_assets = new Guarded<AssetManager2::ApkAssetsPtr>(std::move(assets)); in CreateGuardedApkAssets()
86 static void DeleteGuardedApkAssets(Guarded<AssetManager2::ApkAssetsPtr>& apk_assets) { in DeleteGuardedApkAssets()
Dandroid_util_AssetManager.cpp137 Guarded<AssetManager2> guarded_assetmanager;
150 Guarded<AssetManager2>* AssetManagerForNdkAssetManager(::AAssetManager* assetmanager) { in AssetManagerForNdkAssetManager()
157 Guarded<AssetManager2>* AssetManagerForJavaObject(JNIEnv* env, jobject jassetmanager) { in AssetManagerForJavaObject()
161 static Guarded<AssetManager2>& AssetManagerFromLong(jlong ptr) { in AssetManagerFromLong()
166 ScopedLockedAssetsOperation(Guarded<AssetManager2>& guarded_am) in ScopedLockedAssetsOperation()
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp1663 Guarded<AssetManager2>* mgr = AssetManagerForJavaObject(_env, _assetMgr); in nFileA3DCreateFromAsset()
1755 Guarded<AssetManager2>* mgr = AssetManagerForJavaObject(_env, _assetMgr); in nFontCreateFromAsset()