Searched refs:Guarded (Results 1 – 6 of 6) sorted by relevance
47 class Guarded {51 Guarded() : guarded_(std::in_place) { in Guarded() function54 explicit Guarded(const T& guarded) : guarded_(std::in_place, guarded) { in Guarded() function57 explicit Guarded(T&& guarded) : guarded_(std::in_place, std::move(guarded)) { in Guarded() function72 DISALLOW_COPY_AND_ASSIGN(Guarded);81 explicit ScopedLock(Guarded<T>& guarded) : lock_(guarded.lock_), guarded_(*guarded.guarded_) { in ScopedLock()
28 extern Guarded<AssetManager2>* AssetManagerForJavaObject(JNIEnv* env, jobject jassetmanager);29 extern Guarded<AssetManager2>* AssetManagerForNdkAssetManager(AAssetManager* assetmanager);
27 Guarded<AssetManager2::ApkAssetsPtr>& ApkAssetsFromLong(jlong ptr);
77 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()
137 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()
1663 Guarded<AssetManager2>* mgr = AssetManagerForJavaObject(_env, _assetMgr); in nFileA3DCreateFromAsset()1755 Guarded<AssetManager2>* mgr = AssetManagerForJavaObject(_env, _assetMgr); in nFontCreateFromAsset()