Home
last modified time | relevance | path

Searched refs:LoadedApk (Results 1 – 25 of 42) 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.h46 Maybe<std::string> GetPackageName(LoadedApk* apk) { in GetPackageName()
62 virtual int Dump(LoadedApk* apk) = 0;
72 auto loaded_apk = LoadedApk::LoadApkFromPath(apk, diag_); in Action()
131 int Dump(LoadedApk* apk) override { in Dump()
146 int Dump(LoadedApk* apk) override;
156 int Dump(LoadedApk* apk) override;
166 int Dump(LoadedApk* apk) override { in Dump()
180 int Dump(LoadedApk* apk) override;
192 int Dump(LoadedApk* apk) override;
208 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()
269 int DumpStringsCommand::Dump(LoadedApk* apk) { in Dump()
285 int DumpStyleParentCommand::Dump(LoadedApk* apk) { in Dump()
310 int DumpTableCommand::Dump(LoadedApk* apk) { in Dump()
330 int DumpXmlStringsCommand::Dump(LoadedApk* apk) { in Dump()
386 int DumpXmlTreeCommand::Dump(LoadedApk* apk) { in Dump()
397 int DumpOverlayableCommand::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.cpp219 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in AssertTranslations()
323 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(apk_path, &diag); in TEST_F()
DConvert.h59 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.java103 public final class LoadedApk { class
152 …private final ArrayMap<Context, ArrayMap<BroadcastReceiver, LoadedApk.ReceiverDispatcher>> mUnregi…
155 …private final ArrayMap<Context, ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher>> mServices
157 …private final ArrayMap<Context, ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher>> mUnbound…
172 public LoadedApk(ActivityThread activityThread, ApplicationInfo aInfo, in LoadedApk() method in LoadedApk
218 LoadedApk(ActivityThread activityThread) { in LoadedApk() method in LoadedApk
1426 ArrayMap<BroadcastReceiver, LoadedApk.ReceiverDispatcher> rmap = in removeContextRegistrations()
1430 LoadedApk.ReceiverDispatcher rd = rmap.valueAt(i); in removeContextRegistrations()
1454 ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher> smap = in removeContextRegistrations()
1458 LoadedApk.ServiceDispatcher sd = smap.valueAt(i); in removeContextRegistrations()
[all …]
DActivityThread.java416 final ArrayMap<String, WeakReference<LoadedApk>> mPackages = new ArrayMap<>();
419 final ArrayMap<String, WeakReference<LoadedApk>> mResourcePackages = new ArrayMap<>();
577 public LoadedApk packageInfo;
853 LoadedApk info;
2374 String[] overlayPaths, String[] libDirs, LoadedApk pkgInfo, in getTopLevelResources()
2387 public final LoadedApk getPackageInfo(String packageName, CompatibilityInfo compatInfo, in getPackageInfo()
2392 public final LoadedApk getPackageInfo(String packageName, CompatibilityInfo compatInfo, in getPackageInfo()
2401 WeakReference<LoadedApk> ref; in getPackageInfo()
2411 LoadedApk packageInfo = ref != null ? ref.get() : null; in getPackageInfo()
2415 LoadedApk.makePaths(this, ai, oldPaths); in getPackageInfo()
[all …]
DContextImpl.java214 final @NonNull LoadedApk mPackageInfo;
1367 rd = new LoadedApk.ReceiverDispatcher( in sendOrderedBroadcast()
1473 rd = new LoadedApk.ReceiverDispatcher(resultReceiver, getOuterContext(), in sendOrderedBroadcastAsUser()
1592 rd = new LoadedApk.ReceiverDispatcher( in sendStickyOrderedBroadcast()
1675 rd = new LoadedApk.ReceiverDispatcher( in sendStickyOrderedBroadcastAsUser()
1764 rd = new LoadedApk.ReceiverDispatcher( in registerReceiverInternal()
2436 private static Resources createResources(IBinder activityToken, LoadedApk pi, String splitName, in createResources()
2463 LoadedApk pi = mMainThread.getPackageInfo(application, mResources.getCompatibilityInfo(), in createApplicationContext()
2505 LoadedApk pi = mMainThread.getPackageInfo(packageName, mResources.getCompatibilityInfo(), in createPackageContextAsUser()
2742 final LoadedApk packageInfo = windowContextBase.mPackageInfo; in createWindowContextResources()
[all …]
DOWNERS23 per-file LoadedApk.java = file:/services/core/java/com/android/server/am/OWNERS
53 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/core/java/android/window/
DWindowProviderService.java28 import android.app.LoadedApk;
105 LoadedApk packageInfo) { in createServiceBaseContext()
/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/webkit/
DWebViewLibraryLoader.java22 import android.app.LoadedApk;
78 LoadedApk apk = ActivityThread.currentActivityThread().getPackageInfo( in main()
/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()
/frameworks/base/core/tests/mockingcoretests/src/android/app/activity/
DActivityThreadClientTest.java46 import android.app.LoadedApk;
289 LoadedApk packageInfo = mThread.peekPackageInfo(info.packageName, in stubActivityRecord()

12