OSDN Git Service

Package Manager: Sort list of packages to dexopt
authorAndreas Gampe <agampe@google.com>
Wed, 7 Sep 2016 01:22:19 +0000 (18:22 -0700)
committerAndreas Gampe <agampe@google.com>
Wed, 7 Sep 2016 22:06:46 +0000 (15:06 -0700)
commitd3e07d46d41e8411def67c2150a0bae064e900dc
tree7bce5d41ea938ae98508d859adc5257940ce1329
parent85d18cce6d023afcdcb5de482a384c593a58a578
Package Manager: Sort list of packages to dexopt

Sort the list by last-use-time, if available. Interleave the
dependencies with the packages.

Clean up the code a bit for better code reuse and ease of writing
filters.

This should help with prioritization under space constraints.

Bug: 31347757
Change-Id: Ia0ec62faf013a379dc4c80b18fd6b2bfbfa470c4
services/core/java/com/android/server/pm/PackageManagerServiceUtils.java