OSDN Git Service

Clean up and simplify the logic in dexopt
authorCalin Juravle <calin@google.com>
Sun, 15 Jan 2017 00:23:30 +0000 (16:23 -0800)
committerCalin Juravle <calin@google.com>
Wed, 18 Jan 2017 20:01:52 +0000 (12:01 -0800)
commit7a570e8a0091a93be7dfd98acbb693bbb6ace75a
tree4ef761e159588ff2505688f0808dcbb6a1de29ec
parenta693382d9452c3d5c1f3a37422653038b0c38253
Clean up and simplify the logic in dexopt

Make some order in dexopt logic by extracting independent parts in their
own helpers.

It will make further updates of dexopt simpler and easier to reason
about (e.g. for secondary dex files).

Test: device boots
      adb shell cmd package compile -m speed|speed-profile packageName
      install new packages

Bug: 32871170

(cherry picked from commit 4a391f80601d7f65d7e63353363e6d32868161d5)

Change-Id: If0c96174e904519a4332e54553690b691ff63149
cmds/installd/dexopt.cpp