Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9268506a authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "installd: Replace Dex2oatFileWrapper with UniqueFile" am: c8fd7faf...

Merge "installd: Replace Dex2oatFileWrapper with UniqueFile" am: c8fd7faf am: c822bc7b am: 52362953

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1401259

Change-Id: I9ccbebb6127f6cf5ba9abeee2f07a74cf657705e
parents ec64c1de 52362953
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ cc_defaults {
        "execv_helper.cpp",
        "globals.cpp",
        "run_dex2oat.cpp",
        "unique_file.cpp",
        "utils.cpp",
        "utils_default.cpp",
        "view_compiler.cpp",
@@ -112,6 +113,7 @@ cc_test_host {
    srcs: [
        "run_dex2oat_test.cpp",
        "run_dex2oat.cpp",
        "unique_file.cpp",
        "execv_helper.cpp",
    ],
    cflags: ["-Wall", "-Werror"],
@@ -119,9 +121,6 @@ cc_test_host {
        "libbase",
        "server_configurable_flags",
    ],
    static_libs: [
        //"libinstalld",
    ],
    test_config: "run_dex2oat_test.xml",
}

@@ -233,6 +232,7 @@ cc_binary {
        "otapreopt.cpp",
        "otapreopt_utils.cpp",
        "run_dex2oat.cpp",
        "unique_file.cpp",
        "utils.cpp",
        "utils_default.cpp",
        "view_compiler.cpp",
+104 −193

File changed.

Preview size limit exceeded, changes collapsed.

+41 −43

File changed.

Preview size limit exceeded, changes collapsed.

+20 −22
Original line number Diff line number Diff line
@@ -25,31 +25,31 @@
namespace android {
namespace installd {

class UniqueFile;

class RunDex2Oat {
  public:
    explicit RunDex2Oat(const char* dex2oat_bin, ExecVHelper* execv_helper);
    virtual ~RunDex2Oat();

    void Initialize(int zip_fd,
                    int oat_fd,
                    int input_vdex_fd,
                    int output_vdex_fd,
                    int image_fd,
                    const char* input_file_name,
                    const char* output_file_name,
    void Initialize(const UniqueFile& output_oat,
                    const UniqueFile& output_vdex,
                    const UniqueFile& output_image,
                    const UniqueFile& input_dex,
                    const UniqueFile& input_vdex,
                    const UniqueFile& dex_metadata,
                    const UniqueFile& profile,
                    const char* class_loader_context,
                    const std::string& class_loader_context_fds,
                    int swap_fd,
                    const char* instruction_set,
                    const char* compiler_filter,
                    bool debuggable,
                    bool post_bootcomplete,
                    bool for_restore,
                    int profile_fd,
                    const char* class_loader_context,
                    const std::string& class_loader_context_fds,
                    int target_sdk_version,
                    bool enable_hidden_api_checks,
                    bool generate_compact_dex,
                    int dex_metadata_fd,
                    bool use_jitzygote_image,
                    const char* compilation_reason);

@@ -57,20 +57,18 @@ class RunDex2Oat {

  protected:
    void PrepareBootImageAndBootClasspathFlags(bool use_jitzygote_image);
    void PrepareInputFileFlags(int zip_fd,
                               int oat_fd,
                               int input_vdex_fd,
                               int output_vdex_fd,
                               int image_fd,
                               const char* input_file_name,
                               const char* output_file_name,
                               int profile_fd,
                               int dex_metadata_fd,
    void PrepareInputFileFlags(const UniqueFile& output_oat,
                               const UniqueFile& output_vdex,
                               const UniqueFile& output_image,
                               const UniqueFile& input_dex,
                               const UniqueFile& input_vdex,
                               const UniqueFile& dex_metadata,
                               const UniqueFile& profile,
                               int swap_fd,
                               const char* class_loader_context,
                               const std::string& class_loader_context_fds);
    void PrepareCompilerConfigFlags(int input_vdex_fd,
                                    int output_vdex_fd,
    void PrepareCompilerConfigFlags(const UniqueFile& input_vdex,
                                    const UniqueFile& output_vdex,
                                    const char* instruction_set,
                                    const char* compiler_filter,
                                    bool debuggable,
+37 −40

File changed.

Preview size limit exceeded, changes collapsed.

Loading