Home
last modified time | relevance | path

Searched refs:LoadedApk (Results 1 – 25 of 34) 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()
304 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.cpp92 static bool EmitResourceConfigValueDiff(IAaptContext* context, LoadedApk* apk_a, in EmitResourceConfigValueDiff()
95 LoadedApk* apk_b, ResourceTablePackage* pkg_b, in EmitResourceConfigValueDiff()
113 static bool EmitResourceEntryDiff(IAaptContext* context, LoadedApk* apk_a, in EmitResourceEntryDiff()
115 ResourceEntry* entry_a, LoadedApk* apk_b, in EmitResourceEntryDiff()
148 static bool EmitResourceTypeDiff(IAaptContext* context, LoadedApk* apk_a, in EmitResourceTypeDiff()
150 LoadedApk* apk_b, ResourceTablePackage* pkg_b, in EmitResourceTypeDiff()
217 static bool EmitResourcePackageDiff(IAaptContext* context, LoadedApk* apk_a, in EmitResourcePackageDiff()
218 ResourceTablePackage* pkg_a, LoadedApk* apk_b, in EmitResourcePackageDiff()
282 static bool EmitResourceTableDiff(IAaptContext* context, LoadedApk* apk_a, LoadedApk* apk_b) { in EmitResourceTableDiff()
358 std::unique_ptr<LoadedApk> apk_a = LoadedApk::LoadApkFromPath(args[0], diag); in Action()
[all …]
DLink_test.cpp45 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F()
73 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in TEST_F()
DDump.cpp222 int DumpConfigsCommand::Dump(LoadedApk* apk) { in Dump()
253 int DumpPackageNameCommand::Dump(LoadedApk* apk) { in Dump()
263 int DumpStringsCommand::Dump(LoadedApk* apk) { in Dump()
279 int DumpStyleParentCommand::Dump(LoadedApk* apk) { in Dump()
304 int DumpTableCommand::Dump(LoadedApk* apk) { in Dump()
324 int DumpXmlStringsCommand::Dump(LoadedApk* apk) { in Dump()
380 int DumpXmlTreeCommand::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()
DOptimize.cpp125 int Run(std::unique_ptr<LoadedApk> apk) { in Run()
357 bool ExtractAppDataFromManifest(OptimizeContext* context, const LoadedApk* apk, in ExtractAppDataFromManifest()
429 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(apk_path, context.GetDiagnostics()); in Action()
DConvert.h59 int Convert(IAaptContext* context, LoadedApk* input, IArchiveWriter* output_writer,
DConvert.cpp257 int Convert(IAaptContext* context, LoadedApk* apk, IArchiveWriter* output_writer, in Convert()
358 unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(path, context.GetDiagnostics()); in Action()
DCompile_test.cpp218 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(out_apk, &diag); in AssertTranslations()
DLink.cpp830 std::unique_ptr<LoadedApk> static_apk = LoadedApk::LoadProtoApkFromFileCollection( in LoadSymbolsFromIncludePaths()
1297 std::unique_ptr<LoadedApk> apk = LoadedApk::LoadApkFromPath(input, context_->GetDiagnostics()); in MergeStaticLibrary()
2049 std::vector<std::unique_ptr<LoadedApk>> merged_apks_;
2052 std::vector<std::unique_ptr<LoadedApk>> static_library_includes_;
/frameworks/base/core/java/android/app/
DLoadedApk.java99 public final class LoadedApk { class
148 …private final ArrayMap<Context, ArrayMap<BroadcastReceiver, LoadedApk.ReceiverDispatcher>> mUnregi…
151 …private final ArrayMap<Context, ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher>> mServices
153 …private final ArrayMap<Context, ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher>> mUnbound…
167 public LoadedApk(ActivityThread activityThread, ApplicationInfo aInfo, in LoadedApk() method in LoadedApk
213 LoadedApk(ActivityThread activityThread) { in LoadedApk() method in LoadedApk
1300 ArrayMap<BroadcastReceiver, LoadedApk.ReceiverDispatcher> rmap = in removeContextRegistrations()
1304 LoadedApk.ReceiverDispatcher rd = rmap.valueAt(i); in removeContextRegistrations()
1328 ArrayMap<ServiceConnection, LoadedApk.ServiceDispatcher> smap = in removeContextRegistrations()
1332 LoadedApk.ServiceDispatcher sd = smap.valueAt(i); in removeContextRegistrations()
[all …]
DContextImpl.java190 final @NonNull LoadedApk mPackageInfo;
1201 rd = new LoadedApk.ReceiverDispatcher( in sendOrderedBroadcast()
1305 rd = new LoadedApk.ReceiverDispatcher(resultReceiver, getOuterContext(), in sendOrderedBroadcastAsUser()
1359 rd = new LoadedApk.ReceiverDispatcher( in sendStickyOrderedBroadcast()
1441 rd = new LoadedApk.ReceiverDispatcher( in sendStickyOrderedBroadcastAsUser()
1522 rd = new LoadedApk.ReceiverDispatcher( in registerReceiverInternal()
2124 private static Resources createResources(IBinder activityToken, LoadedApk pi, String splitName, in createResources()
2148 LoadedApk pi = mMainThread.getPackageInfo(application, mResources.getCompatibilityInfo(), in createApplicationContext()
2183 LoadedApk pi = mMainThread.getPackageInfo(packageName, mResources.getCompatibilityInfo(), in createPackageContextAsUser()
2418 LoadedApk packageInfo = new LoadedApk(mainThread); in createSystemContext()
[all …]
DActivityThread.java379 final ArrayMap<String, WeakReference<LoadedApk>> mPackages = new ArrayMap<>();
382 final ArrayMap<String, WeakReference<LoadedApk>> mResourcePackages = new ArrayMap<>();
509 public LoadedApk packageInfo;
757 LoadedApk info;
2164 String[] libDirs, int displayId, LoadedApk pkgInfo) { in getTopLevelResources()
2175 public final LoadedApk getPackageInfo(String packageName, CompatibilityInfo compatInfo, in getPackageInfo()
2180 public final LoadedApk getPackageInfo(String packageName, CompatibilityInfo compatInfo, in getPackageInfo()
2194 WeakReference<LoadedApk> ref; in getPackageInfo()
2204 LoadedApk packageInfo = ref != null ? ref.get() : null; in getPackageInfo()
2230 public final LoadedApk getPackageInfo(ApplicationInfo ai, CompatibilityInfo compatInfo, in getPackageInfo()
[all …]
DClientTransactionHandler.java173 public abstract LoadedApk getPackageInfoNoCheck(ApplicationInfo ai, in getPackageInfoNoCheck()
/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.h87 std::unique_ptr<io::IData> OpenFileAsData(LoadedApk* apk,
91 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;
172 LoadedApk loadedApk = getApplication().mLoadedApk; in setWebViewProxy()
174 Field receiversField = LoadedApk.class.getDeclaredField("mReceivers"); in setWebViewProxy()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/plugins/
DPluginManagerImpl.java17 import android.app.LoadedApk;
302 LoadedApk.makePaths(null, true, appInfo, zipPaths, libPaths); in getClassLoader()

12