Searched refs:SplitDescription (Results 1 – 12 of 12) sorted by relevance
/frameworks/base/tools/split-select/ |
D | SplitDescription.h | 28 struct SplitDescription { struct 29 SplitDescription(); 34 int compare(const SplitDescription& rhs) const; argument 35 inline bool operator<(const SplitDescription& rhs) const; 36 inline bool operator==(const SplitDescription& rhs) const; 37 inline bool operator!=(const SplitDescription& rhs) const; 39 bool match(const SplitDescription& o) const; 40 bool isBetterThan(const SplitDescription& o, const SplitDescription& target) const; 44 static bool parse(const android::String8& str, SplitDescription* outSplit); 48 SplitDescription* outSplit); [all …]
|
D | SplitSelector.cpp | 33 SplitSelector::SplitSelector(const Vector<SplitDescription>& splits) in SplitSelector() 37 static void selectBestFromGroup(const SortedVector<SplitDescription>& splits, in selectBestFromGroup() 38 const SplitDescription& target, Vector<SplitDescription>& splitsOut) { in selectBestFromGroup() 39 SplitDescription bestSplit; in selectBestFromGroup() 43 const SplitDescription& thisSplit = splits[j]; in selectBestFromGroup() 59 Vector<SplitDescription> SplitSelector::getBestSplits(const SplitDescription& target) const { in getBestSplits() 60 Vector<SplitDescription> bestSplits; in getBestSplits() 68 KeyedVector<SplitDescription, sp<Rule> > SplitSelector::getRules() const { in getRules() 69 KeyedVector<SplitDescription, sp<Rule> > rules; in getRules() 73 const SortedVector<SplitDescription>& splits = mGroups[i]; in getRules()
|
D | Grouper.cpp | 30 Vector<SortedVector<SplitDescription> > 31 groupByMutualExclusivity(const Vector<SplitDescription>& splits) { in groupByMutualExclusivity() 32 Vector<SortedVector<SplitDescription> > groups; in groupByMutualExclusivity() 35 KeyedVector<SplitDescription, SortedVector<SplitDescription> > densityGroups; in groupByMutualExclusivity() 36 KeyedVector<SplitDescription, SortedVector<SplitDescription> > abiGroups; in groupByMutualExclusivity() 39 const SplitDescription& split = splits[i]; in groupByMutualExclusivity() 41 SplitDescription key(split); in groupByMutualExclusivity() 46 SplitDescription key(split); in groupByMutualExclusivity()
|
D | SplitSelector_test.cpp | 29 static ::testing::AssertionResult addSplit(Vector<SplitDescription>& splits, const char* str) { in addSplit() 30 SplitDescription split; in addSplit() 31 if (!SplitDescription::parse(String8(str), &split)) { in addSplit() 39 Vector<SplitDescription> splits; in TEST() 45 SplitDescription targetSplit; in TEST() 46 ASSERT_TRUE(SplitDescription::parse(String8("hdpi"), &targetSplit)); in TEST() 49 SortedVector<SplitDescription> bestSplits; in TEST() 52 SplitDescription expected; in TEST() 53 ASSERT_TRUE(SplitDescription::parse(String8("hdpi"), &expected)); in TEST() 56 KeyedVector<SplitDescription, sp<Rule> > rules = selector.getRules(); in TEST()
|
D | SplitDescription.cpp | 29 SplitDescription::SplitDescription() in SplitDescription() function in split::SplitDescription 33 int SplitDescription::compare(const SplitDescription& rhs) const { in compare() 40 bool SplitDescription::isBetterThan(const SplitDescription& o, const SplitDescription& target) cons… in isBetterThan() 55 bool SplitDescription::match(const SplitDescription& o) const { in match() 70 String8 SplitDescription::toString() const { in toString() 86 SplitDescription* outSplit) { in parseAbi() 131 bool SplitDescription::parse(const String8& str, SplitDescription* outSplit) { in parse() 143 SplitDescription split; in parse()
|
D | SplitSelector.h | 32 explicit SplitSelector(const android::Vector<SplitDescription>& splits); 34 android::Vector<SplitDescription> getBestSplits(const SplitDescription& target) const; 36 android::KeyedVector<SplitDescription, android::sp<Rule> > getRules() const; 39 android::Vector<android::SortedVector<SplitDescription> > mGroups;
|
D | Main.cpp | 66 Vector<SplitDescription> select(const SplitDescription& target, const Vector<SplitDescription>& spl… in select() 71 void generate(const KeyedVector<String8, Vector<SplitDescription> >& splits, const String8& base) { in generate() 72 Vector<SplitDescription> allSplits; in generate() 78 KeyedVector<SplitDescription, sp<Rule> > rules(selector.getRules()); in generate() 95 const Vector<SplitDescription>& splitDescriptions = splits[i]; in generate() 206 static Vector<SplitDescription> extractSplitDescriptionsFromApk(const String8& path) { in extractSplitDescriptionsFromApk() 208 Vector<SplitDescription> splits; in extractSplitDescriptionsFromApk() 317 SplitDescription targetSplit; in main() 319 if (!SplitDescription::parse(targetConfigStr, &targetSplit)) { in main() 332 KeyedVector<String8, Vector<SplitDescription> > apkPathSplitMap; in main() [all …]
|
D | Grouper_test.cpp | 32 Vector<SplitDescription> splits; in SetUp() 58 void addSplit(Vector<SplitDescription>& splits, const char* str); 65 Vector<SortedVector<SplitDescription> > mGroups; 134 Vector<SplitDescription> splits; in expectHasGroupWithSplits() 138 if (!SplitDescription::parse(String8(expectedStrs[i]), &splits.editTop())) { in expectHasGroupWithSplits() 147 const SortedVector<SplitDescription>& group = mGroups[i]; in expectHasGroupWithSplits() 175 const SortedVector<SplitDescription>& group = mGroups[i]; in expectHasGroupWithSplits() 185 void GrouperTest::addSplit(Vector<SplitDescription>& splits, const char* str) { in addSplit() 187 EXPECT_TRUE(SplitDescription::parse(String8(str), &splits.editTop())); in addSplit()
|
D | Grouper.h | 27 android::Vector<android::SortedVector<SplitDescription> > 28 groupByMutualExclusivity(const android::Vector<SplitDescription>& splits);
|
D | RuleGenerator.h | 31 …static android::sp<Rule> generate(const android::SortedVector<SplitDescription>& group, size_t ind…
|
D | Android.bp | 78 "SplitDescription.cpp",
|
D | RuleGenerator.cpp | 98 sp<Rule> RuleGenerator::generate(const SortedVector<SplitDescription>& group, size_t index) { in generate()
|