Home
last modified time | relevance | path

Searched refs:LoadedApk (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/tools/aapt2/
DLoadedApk.h43 class LoadedApk {
45 virtual ~LoadedApk() = default;
48 static std::unique_ptr<LoadedApk> LoadApkFromPath(const ::android::StringPiece& path,
52 static std::unique_ptr<LoadedApk> LoadProtoApkFromFileCollection(
56 static std::unique_ptr<LoadedApk> LoadBinaryApkFromFileCollection(
59 LoadedApk(const Source& source, std::unique_ptr<io::IFileCollection> apk, in LoadedApk() function
117 DISALLOW_COPY_AND_ASSIGN(LoadedApk);
DLoadedApk.cpp75 std::unique_ptr<LoadedApk> LoadedApk::LoadApkFromPath(const StringPiece& path, IDiagnostics* diag) { in LoadApkFromPath()
96 std::unique_ptr<LoadedApk> LoadedApk::LoadProtoApkFromFileCollection( in LoadProtoApkFromFileCollection()
150 return util::make_unique<LoadedApk>(source, std::move(collection), std::move(table), in LoadProtoApkFromFileCollection()
154 std::unique_ptr<LoadedApk> LoadedApk::LoadBinaryApkFromFileCollection( in LoadBinaryApkFromFileCollection()
193 return util::make_unique<LoadedApk>(source, std::move(collection), std::move(table), in LoadBinaryApkFromFileCollection()
197 bool LoadedApk::WriteToArchive(IAaptContext* context, const TableFlattenerOptions& options, in WriteToArchive()
203 bool LoadedApk::WriteToArchive(IAaptContext* context, ResourceTable* split_table, in WriteToArchive()
310 std::unique_ptr<xml::XmlResource> LoadedApk::LoadXml(const std::string& file_path, in LoadXml()
/frameworks/base/tools/aapt2/cmd/
DDump.h49 std::optional<std::string> GetPackageName(LoadedApk* apk) { in GetPackageName()
65 virtual int Dump(LoadedApk* apk) = 0;
75 auto loaded_apk = LoadedApk::LoadApkFromPath(apk, diag_); in Action()
134 int Dump(LoadedApk* apk) override { in Dump()
149 int Dump(LoadedApk* apk) override;
159 int Dump(LoadedApk* apk) override;
169 int Dump(LoadedApk* apk) override { in Dump()
183 int Dump(LoadedApk* apk) override;
195 int Dump(LoadedApk* apk) override;
211 int Dump(LoadedApk* apk) override;
[all …]
DDiff.cpp99 IAaptContext* context, LoadedApk* apk_a, const ResourceTablePackageView& pkg_a, in EmitResourceConfigValueDiff()
101 const ResourceConfigValue* config_value_a, LoadedApk* apk_b, in EmitResourceConfigValueDiff()
119 static bool EmitResourceEntryDiff(IAaptContext* context, LoadedApk* apk_a, in EmitResourceEntryDiff()
122 const ResourceTableEntryView& entry_a, LoadedApk* apk_b, in EmitResourceEntryDiff()
155 static bool EmitResourceTypeDiff(IAaptContext* context, LoadedApk* apk_a, in EmitResourceTypeDiff()
157 const ResourceTableTypeView& type_a, LoadedApk* apk_b, in EmitResourceTypeDiff()
236 static bool EmitResourcePackageDiff(IAaptContext* context, LoadedApk* apk_a, in EmitResourcePackageDiff()
237 const ResourceTablePackageView& pkg_a, LoadedApk* apk_b, in EmitResourcePackageDiff()
305 static bool EmitResourceTableDiff(IAaptContext* context, LoadedApk* apk_a, LoadedApk* apk_b) { in EmitResourceTableDiff()
387 std::unique_ptr<LoadedApk> apk_a = LoadedApk::LoadApkFromPath(args[0], diag); in Action()
[all …]
DDump.cpp228 int DumpConfigsCommand::Dump(LoadedApk* apk) { in Dump()
259 int DumpPackageNameCommand::Dump(LoadedApk* apk) { in Dump()
268 int DumpStringsCommand::Dump(LoadedApk* apk) { in Dump()
284 int DumpStyleParentCommand::Dump(LoadedApk* apk) { in Dump()
309 int DumpTableCommand::Dump(LoadedApk* apk) { in Dump()
329 int DumpXmlStringsCommand::Dump(LoadedApk* apk) { in Dump()
385 int DumpXmlTreeCommand::Dump(LoadedApk* apk) { in Dump()
396 int DumpOverlayableCommand::Dump(LoadedApk* apk) { in Dump()
563 int DumpChunks::Dump(LoadedApk* apk) { in Dump()
DConvert_test.cpp56 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_convert_apk, &diag); in TEST_F()
94 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_convert_apk, &diag); in TEST_F()
DLink_test.cpp51 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F()
79 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F()
114 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F()
162 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F()
216 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F()
260 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F()
DOptimize.cpp131 int Run(std::unique_ptr<LoadedApk> apk) { in Run()
350 bool ExtractAppDataFromManifest(OptimizeContext* context, const LoadedApk* apk, in ExtractAppDataFromManifest()
422 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(apk_path, context.GetDiagnostics()); in Action()
DCompile_test.cpp215 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in AssertTranslations()
317 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(apk_path, &diag); in TEST_F()
DConvert.h61 int Convert(IAaptContext* context, LoadedApk* input, IArchiveWriter* output_writer,
DConvert.cpp263 int Convert(IAaptContext* context, LoadedApk* apk, IArchiveWriter* output_writer, in Convert()
364 unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(path, context.GetDiagnostics()); in Action()
/frameworks/base/core/java/android/app/
DLoadedApk.java107 public final class LoadedApk { class
156 …private final ArrayMap<Context, ArrayMap<BroadcastReceiver, LoadedApk.ReceiverDispatcher>> mUnregi…
159 …private final ArrayMap<Context, ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher>> mServices
161 …private final ArrayMap<Context, ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher>> mUnbound…
183 public LoadedApk(ActivityThread activityThread, ApplicationInfo aInfo, in LoadedApk() method in LoadedApk
229 LoadedApk(ActivityThread activityThread) { in LoadedApk() method in LoadedApk
1533 ArrayMap<BroadcastReceiver, LoadedApk.ReceiverDispatcher> rmap = in removeContextRegistrations()
1537 LoadedApk.ReceiverDispatcher rd = rmap.valueAt(i); in removeContextRegistrations()
1561 ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher> smap = in removeContextRegistrations()
1565 LoadedApk.ServiceDispatcher sd = smap.valueAt(i); in removeContextRegistrations()
[all …]
DActivityThread.java428 final ArrayMap<String, WeakReference<LoadedApk>> mPackages = new ArrayMap<>();
431 final ArrayMap<String, WeakReference<LoadedApk>> mResourcePackages = new ArrayMap<>();
583 public LoadedApk packageInfo;
870 LoadedApk info;
2465 String[] overlayPaths, String[] libDirs, LoadedApk pkgInfo, in getTopLevelResources()
2478 public final LoadedApk getPackageInfo(String packageName, CompatibilityInfo compatInfo, in getPackageInfo()
2483 public final LoadedApk getPackageInfo(String packageName, CompatibilityInfo compatInfo, in getPackageInfo()
2492 WeakReference<LoadedApk> ref; in getPackageInfo()
2502 LoadedApk packageInfo = ref != null ? ref.get() : null; in getPackageInfo()
2506 LoadedApk.makePaths(this, ai, oldPaths); in getPackageInfo()
[all …]
DContextImpl.java216 final @NonNull LoadedApk mPackageInfo;
1393 rd = new LoadedApk.ReceiverDispatcher( in sendOrderedBroadcast()
1500 rd = new LoadedApk.ReceiverDispatcher(resultReceiver, getOuterContext(), in sendOrderedBroadcastAsUser()
1619 rd = new LoadedApk.ReceiverDispatcher( in sendStickyOrderedBroadcast()
1702 rd = new LoadedApk.ReceiverDispatcher( in sendStickyOrderedBroadcastAsUser()
1805 rd = new LoadedApk.ReceiverDispatcher( in registerReceiverInternal()
2498 private static Resources createResources(IBinder activityToken, LoadedApk pi, String splitName, in createResources()
2525 LoadedApk pi = mMainThread.getPackageInfo(application, mResources.getCompatibilityInfo(), in createApplicationContext()
2567 LoadedApk pi = mMainThread.getPackageInfo(packageName, mResources.getCompatibilityInfo(), in createPackageContextAsUser()
2809 final LoadedApk packageInfo = windowContextBase.mPackageInfo; in createWindowContextResources()
[all …]
DOWNERS24 per-file LoadedApk.java = file:/services/core/java/com/android/server/am/OWNERS
61 per-file LoadedApk.java = file:/services/core/java/com/android/server/pm/OWNERS
/frameworks/base/core/java/com/android/internal/os/
DAppZygoteInit.java19 import android.app.LoadedApk;
76 LoadedApk loadedApk = new LoadedApk(null, appInfo, null, null, false, true, false); in handlePreloadApp()
DWebViewZygoteInit.java20 import android.app.LoadedApk;
77 LoadedApk loadedApk = new LoadedApk(null, appInfo, null, null, false, true, false); in handlePreloadApp()
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.h46 MultiApkGenerator(LoadedApk* apk, IAaptContext* context);
73 LoadedApk* apk_;
DMultiApkGenerator_test.cpp59 MultiApkGeneratorWrapper(LoadedApk* apk, IAaptContext* context) in MultiApkGeneratorWrapper()
109 LoadedApk apk = {{"test.apk"}, {}, std::move(table), {}, kBinary}; in TEST_F()
136 LoadedApk apk = {{"test.apk"}, {}, std::move(table), {}, kBinary}; in TEST_F()
161 LoadedApk apk = {{"test.apk"}, {}, std::move(table), {}, kBinary}; in TEST_F()
/frameworks/base/tools/aapt2/test/
DFixture.h90 std::unique_ptr<io::IData> OpenFileAsData(LoadedApk* apk,
94 void AssertLoadXml(LoadedApk* apk, const io::IData* data,
/frameworks/base/tools/aapt2/dump/
DDumpManifest.h34 int DumpManifest(LoadedApk* apk, DumpManifestOptions& options, text::Printer* printer,
/frameworks/base/core/java/android/window/
DWindowProviderService.java28 import android.app.LoadedApk;
195 LoadedApk packageInfo) { in createServiceBaseContext()
/frameworks/base/core/java/android/webkit/
DWebViewLibraryLoader.java22 import android.app.LoadedApk;
78 LoadedApk apk = ActivityThread.currentActivityThread().getPackageInfo( in main()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginInstance.java19 import android.app.LoadedApk;
188 LoadedApk.makePaths(null, true, appInfo, zipPaths, libPaths); in getClassLoader()
/frameworks/base/packages/CarrierDefaultApp/src/com/android/carrierdefaultapp/
DCaptivePortalLoginActivity.java20 import android.app.LoadedApk;
170 LoadedApk loadedApk = getApplication().mLoadedApk; in setWebViewProxy()
172 Field receiversField = LoadedApk.class.getDeclaredField("mReceivers"); in setWebViewProxy()

12