/frameworks/base/core/jni/ |
D | android_content_res_ApkAssets.cpp | 43 std::unique_ptr<const ApkAssets> apk_assets; in NativeLoad() 45 apk_assets = ApkAssets::LoadOverlay(path.c_str(), system); in NativeLoad() 47 apk_assets = ApkAssets::LoadAsSharedLibrary(path.c_str(), system); in NativeLoad() 49 apk_assets = ApkAssets::Load(path.c_str(), system); in NativeLoad() 82 std::unique_ptr<const ApkAssets> apk_assets = ApkAssets::LoadFromFd(std::move(dup_fd), in NativeLoadFromFd() 95 delete reinterpret_cast<ApkAssets*>(ptr); in NativeDestroy() 99 const ApkAssets* apk_assets = reinterpret_cast<const ApkAssets*>(ptr); in NativeGetAssetPath() 104 const ApkAssets* apk_assets = reinterpret_cast<const ApkAssets*>(ptr); in NativeGetStringBlock() 109 const ApkAssets* apk_assets = reinterpret_cast<const ApkAssets*>(ptr); in NativeIsUpToDate() 119 const ApkAssets* apk_assets = reinterpret_cast<const ApkAssets*>(ptr); in NativeOpenXml()
|
/frameworks/base/core/java/android/content/res/ |
D | ApkAssets.java | 37 public final class ApkAssets { class 50 public static @NonNull ApkAssets loadFromPath(@NonNull String path) throws IOException { in loadFromPath() 51 return new ApkAssets(path, false /*system*/, false /*forceSharedLib*/, false /*overlay*/); in loadFromPath() 62 public static @NonNull ApkAssets loadFromPath(@NonNull String path, boolean system) in loadFromPath() 64 return new ApkAssets(path, system, false /*forceSharedLib*/, false /*overlay*/); in loadFromPath() 77 public static @NonNull ApkAssets loadFromPath(@NonNull String path, boolean system, in loadFromPath() 79 return new ApkAssets(path, system, forceSharedLibrary, false /*overlay*/); in loadFromPath() 96 public static @NonNull ApkAssets loadFromFd(@NonNull FileDescriptor fd, in loadFromFd() 99 return new ApkAssets(fd, friendlyName, system, forceSharedLibrary); in loadFromFd() 111 public static @NonNull ApkAssets loadOverlayFromPath(@NonNull String idmapPath, boolean system) in loadOverlayFromPath() [all …]
|
D | AssetManager.java | 69 private static final ApkAssets[] sEmptyApkAssets = new ApkAssets[0]; 75 @GuardedBy("sSync") private static ApkAssets[] sSystemApkAssets = new ApkAssets[0]; 76 @GuardedBy("sSync") private static ArraySet<ApkAssets> sSystemApkAssetsSet; 107 @GuardedBy("this") private ApkAssets[] mApkAssets; 123 private ArrayList<ApkAssets> mUserApkAssets = new ArrayList<>(); 125 public Builder addApkAssets(ApkAssets apkAssets) { in addApkAssets() 132 final ApkAssets[] systemApkAssets = getSystem().getApkAssets(); in build() 135 final ApkAssets[] apkAssets = new ApkAssets[totalApkAssetCount]; in build() 163 final ApkAssets[] assets; in AssetManager() 203 final ArrayList<ApkAssets> apkAssets = new ArrayList<>(); in createSystemAssetsInZygoteLocked() [all …]
|
/frameworks/base/libs/androidfw/ |
D | ApkAssets.cpp | 43 ApkAssets::ApkAssets(ZipArchiveHandle unmanaged_handle, in ApkAssets() function in android::ApkAssets 49 std::unique_ptr<const ApkAssets> ApkAssets::Load(const std::string& path, bool system) { in Load() 53 std::unique_ptr<const ApkAssets> ApkAssets::LoadAsSharedLibrary(const std::string& path, in LoadAsSharedLibrary() 58 std::unique_ptr<const ApkAssets> ApkAssets::LoadOverlay(const std::string& idmap_path, in LoadOverlay() 80 std::unique_ptr<const ApkAssets> ApkAssets::LoadFromFd(unique_fd fd, in LoadFromFd() 87 std::unique_ptr<Asset> ApkAssets::CreateAssetFromFile(const std::string& path) { in CreateAssetFromFile() 108 std::unique_ptr<const ApkAssets> ApkAssets::LoadImpl( in LoadImpl() 128 std::unique_ptr<ApkAssets> loaded_apk(new ApkAssets(unmanaged_handle, path, last_mod_time)); in LoadImpl() 167 std::unique_ptr<Asset> ApkAssets::Open(const std::string& path, Asset::AccessMode mode) const { in Open() 208 bool ApkAssets::ForEachFile(const std::string& root_path, in ForEachFile() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | ApkAssets_test.cpp | 38 std::unique_ptr<const ApkAssets> loaded_apk = in TEST() 39 ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST() 53 std::unique_ptr<const ApkAssets> loaded_apk = in TEST() 54 ApkAssets::LoadFromFd(std::move(fd), path, false /*system*/, false /*force_shared_lib*/); in TEST() 64 std::unique_ptr<const ApkAssets> loaded_apk = in TEST() 65 ApkAssets::Load(GetTestDataPath() + "/appaslib/appaslib.apk"); in TEST() 73 loaded_apk = ApkAssets::LoadAsSharedLibrary(GetTestDataPath() + "/appaslib/appaslib.apk"); in TEST() 112 ASSERT_THAT(ApkAssets::LoadOverlay(tf.path), NotNull()); in TEST() 116 std::unique_ptr<const ApkAssets> loaded_apk = in TEST() 117 ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in TEST() [all …]
|
D | AssetManager2_bench.cpp | 41 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); in BM_AssetManagerLoadAssets() 64 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); in BM_AssetManagerLoadFrameworkAssets() 132 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in BM_AssetManagerGetBag() 180 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_AssetManagerGetResourceLocales() 216 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_AssetManagerSetConfigurationFramework()
|
D | AttributeResolution_bench.cpp | 39 std::unique_ptr<const ApkAssets> styles_apk = in BM_ApplyStyle() 40 ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in BM_ApplyStyle() 83 std::unique_ptr<const ApkAssets> framework_apk = ApkAssets::Load(kFrameworkPath); in BM_ApplyStyleFramework() 89 std::unique_ptr<const ApkAssets> basic_apk = in BM_ApplyStyleFramework() 90 ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in BM_ApplyStyleFramework()
|
D | Theme_bench.cpp | 31 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_ThemeApplyStyleFramework() 65 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(kFrameworkPath); in BM_ThemeGetAttribute()
|
D | BenchmarkHelpers.cpp | 56 std::vector<std::unique_ptr<const ApkAssets>> apk_assets; in GetResourceBenchmark() 57 std::vector<const ApkAssets*> apk_assets_ptrs; in GetResourceBenchmark() 59 std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path); in GetResourceBenchmark()
|
D | AssetManager2_test.cpp | 48 basic_assets_ = ApkAssets::Load(GetTestDataPath() + "/basic/basic.apk"); in SetUp() 51 basic_de_fr_assets_ = ApkAssets::Load(GetTestDataPath() + "/basic/basic_de_fr.apk"); in SetUp() 54 style_assets_ = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in SetUp() 57 lib_one_assets_ = ApkAssets::Load(GetTestDataPath() + "/lib_one/lib_one.apk"); in SetUp() 60 lib_two_assets_ = ApkAssets::Load(GetTestDataPath() + "/lib_two/lib_two.apk"); in SetUp() 63 libclient_assets_ = ApkAssets::Load(GetTestDataPath() + "/libclient/libclient.apk"); in SetUp() 66 appaslib_assets_ = ApkAssets::LoadAsSharedLibrary(GetTestDataPath() + "/appaslib/appaslib.apk"); in SetUp() 69 system_assets_ = ApkAssets::Load(GetTestDataPath() + "/system/system.apk", true /*system*/); in SetUp() 72 app_assets_ = ApkAssets::Load(GetTestDataPath() + "/app/app.apk"); in SetUp() 75 overlayable_assets_ = ApkAssets::Load(GetTestDataPath() + "/overlayable/overlayable.apk"); in SetUp() [all …]
|
D | Theme_test.cpp | 39 system_assets_ = ApkAssets::Load(GetTestDataPath() + "/system/system.apk", true /*system*/); in SetUp() 42 style_assets_ = ApkAssets::Load(GetTestDataPath() + "/styles/styles.apk"); in SetUp() 45 libclient_assets_ = ApkAssets::Load(GetTestDataPath() + "/libclient/libclient.apk"); in SetUp() 48 lib_one_assets_ = ApkAssets::Load(GetTestDataPath() + "/lib_one/lib_one.apk"); in SetUp() 51 lib_two_assets_ = ApkAssets::Load(GetTestDataPath() + "/lib_two/lib_two.apk"); in SetUp() 56 std::unique_ptr<const ApkAssets> system_assets_; 57 std::unique_ptr<const ApkAssets> style_assets_; 58 std::unique_ptr<const ApkAssets> libclient_assets_; 59 std::unique_ptr<const ApkAssets> lib_one_assets_; 60 std::unique_ptr<const ApkAssets> lib_two_assets_;
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | ApkAssets.h | 38 class ApkAssets { 43 static std::unique_ptr<const ApkAssets> Load(const std::string& path, bool system = false); 48 static std::unique_ptr<const ApkAssets> LoadAsSharedLibrary(const std::string& path, 55 static std::unique_ptr<const ApkAssets> LoadOverlay(const std::string& idmap_path, 64 static std::unique_ptr<const ApkAssets> LoadFromFd(base::unique_fd fd, 90 DISALLOW_COPY_AND_ASSIGN(ApkAssets); 92 static std::unique_ptr<const ApkAssets> LoadImpl(base::unique_fd fd, const std::string& path, 100 ApkAssets(ZipArchiveHandle unmanaged_handle, const std::string& path, time_t last_mod_time);
|
/frameworks/base/core/java/android/content/pm/split/ |
D | SplitAssetDependencyLoader.java | 25 import android.content.res.ApkAssets; 45 private final ApkAssets[][] mCachedSplitApks; 58 mCachedSplitApks = new ApkAssets[mSplitPaths.length][]; in SplitAssetDependencyLoader() 67 private static ApkAssets loadApkAssets(String path, @ParseFlags int flags) in loadApkAssets() 75 return ApkAssets.loadFromPath(path); in loadApkAssets() 82 private static AssetManager createAssetManagerWithAssets(ApkAssets[] apkAssets) { in createAssetManagerWithAssets() 93 final ArrayList<ApkAssets> assets = new ArrayList<>(); in constructSplit() 109 mCachedSplitApks[splitIdx] = assets.toArray(new ApkAssets[assets.size()]); in constructSplit()
|
D | DefaultSplitAssetLoader.java | 24 import android.content.res.ApkAssets; 50 private static ApkAssets loadApkAssets(String path, @ParseFlags int flags) in loadApkAssets() 58 return ApkAssets.loadFromPath(path); in loadApkAssets() 71 ApkAssets[] apkAssets = new ApkAssets[(mSplitCodePaths != null in getBaseAssetManager()
|
/frameworks/base/cmds/idmap2/tests/ |
D | PrettyPrintVisitorTests.cpp | 32 using android::ApkAssets; 39 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in TEST() 43 std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path); in TEST()
|
D | RawPrintVisitorTests.cpp | 34 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in TEST() 38 std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path); in TEST()
|
D | ResourceUtilsTests.cpp | 36 apk_assets_ = ApkAssets::Load(GetTargetApkPath()); in SetUp() 48 std::unique_ptr<const ApkAssets> apk_assets_;
|
D | BinaryStreamVisitorTests.cpp | 71 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in TEST() 75 std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path); in TEST()
|
D | IdmapTests.cpp | 175 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path.to_string()); in CreateIdmap() 178 std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path.to_string()); in CreateIdmap() 476 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in TEST() 480 std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path); in TEST() 493 std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in TEST() 497 std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path); in TEST()
|
/frameworks/base/cmds/idmap2/idmap2/ |
D | Create.cpp | 34 using android::ApkAssets; 92 const std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in Create() 97 const std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path); in Create()
|
D | Lookup.cpp | 43 using android::ApkAssets; 185 std::vector<std::unique_ptr<const ApkAssets>> apk_assets; in Lookup() 199 auto target_apk = ApkAssets::Load(target_path); in Lookup() 217 auto overlay_apk = ApkAssets::LoadOverlay(idmap_path); in Lookup() 226 std::vector<const ApkAssets*> raw_pointer_apk_assets; in Lookup() 228 [](const auto& p) -> const ApkAssets* { return p.get(); }); in Lookup()
|
/frameworks/base/cmds/idmap2/idmap2d/ |
D | Idmap2Service.cpp | 130 const std::unique_ptr<const ApkAssets> target_apk = ApkAssets::Load(target_apk_path); in createIdmap() 135 const std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path); in createIdmap()
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | PrettyPrintVisitor.h | 28 class ApkAssets; variable 44 std::unique_ptr<const ApkAssets> target_apk_;
|
D | RawPrintVisitor.h | 29 class ApkAssets; variable 49 std::unique_ptr<const ApkAssets> target_apk_;
|
/frameworks/base/tools/aapt2/process/ |
D | SymbolTable.cpp | 36 using ::android::ApkAssets; 222 if (std::unique_ptr<const ApkAssets> apk = ApkAssets::Load(path.data())) { in AddAssetPath() 225 std::vector<const ApkAssets*> apk_assets; in AddAssetPath() 226 for (const std::unique_ptr<const ApkAssets>& apk_asset : apk_assets_) { in AddAssetPath() 253 for (const std::unique_ptr<const ApkAssets>& assets : apk_assets_) { in IsPackageDynamic()
|