Home
last modified time | relevance | path

Searched refs:splits (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/tools/split-select/
DGrouper_test.cpp32 Vector<SplitDescription> splits; in SetUp() local
33 addSplit(splits, "en-rUS-sw600dp-hdpi"); in SetUp()
34 addSplit(splits, "fr-rFR-sw600dp-hdpi"); in SetUp()
35 addSplit(splits, "fr-rFR-sw600dp-xhdpi"); in SetUp()
36 addSplit(splits, ":armeabi"); in SetUp()
37 addSplit(splits, "en-rUS-sw300dp-xhdpi"); in SetUp()
38 addSplit(splits, "large"); in SetUp()
39 addSplit(splits, "pl-rPL"); in SetUp()
40 addSplit(splits, "fr-rCA"); in SetUp()
41 addSplit(splits, "fr"); in SetUp()
[all …]
DSplitSelector.cpp33 SplitSelector::SplitSelector(const Vector<SplitDescription>& splits) in SplitSelector() argument
34 : mGroups(groupByMutualExclusivity(splits)) { in SplitSelector()
37 static void selectBestFromGroup(const SortedVector<SplitDescription>& splits, in selectBestFromGroup() argument
41 const size_t splitCount = splits.size(); in selectBestFromGroup()
43 const SplitDescription& thisSplit = splits[j]; in selectBestFromGroup()
73 const SortedVector<SplitDescription>& splits = mGroups[i]; in getRules() local
74 const size_t splitCount = splits.size(); in getRules()
76 sp<Rule> rule = Rule::simplify(RuleGenerator::generate(splits, j)); in getRules()
78 rules.add(splits[j], rule); in getRules()
DMain.cpp66 …<SplitDescription> select(const SplitDescription& target, const Vector<SplitDescription>& splits) { in select() argument
67 const SplitSelector selector(splits); in select()
71 void generate(const KeyedVector<String8, Vector<SplitDescription> >& splits, const String8& base) { in generate() argument
73 const size_t apkSplitCount = splits.size(); in generate()
75 allSplits.appendVector(splits[i]); in generate()
83 if (splits.keyAt(i) == base) { in generate()
95 const Vector<SplitDescription>& splitDescriptions = splits[i]; in generate()
102 splits.keyAt(i).string(), in generate()
211 Vector<SplitDescription> splits; in extractSplitDescriptionsFromApk() local
214 return splits; in extractSplitDescriptionsFromApk()
[all …]
DSplitSelector_test.cpp29 static ::testing::AssertionResult addSplit(Vector<SplitDescription>& splits, const char* str) { in addSplit() argument
34 splits.add(split); in addSplit()
39 Vector<SplitDescription> splits; in TEST() local
40 ASSERT_TRUE(addSplit(splits, "hdpi")); in TEST()
41 ASSERT_TRUE(addSplit(splits, "xhdpi")); in TEST()
42 ASSERT_TRUE(addSplit(splits, "xxhdpi")); in TEST()
43 ASSERT_TRUE(addSplit(splits, "mdpi")); in TEST()
48 SplitSelector selector(splits); in TEST()
DGrouper.cpp31 groupByMutualExclusivity(const Vector<SplitDescription>& splits) { in groupByMutualExclusivity() argument
37 const size_t splitCount = splits.size(); in groupByMutualExclusivity()
39 const SplitDescription& split = splits[i]; in groupByMutualExclusivity()
DGrouper.h28 groupByMutualExclusivity(const android::Vector<SplitDescription>& splits);
DSplitSelector.h32 explicit SplitSelector(const android::Vector<SplitDescription>& splits);
/frameworks/base/services/core/java/com/android/server/pm/
DPerPackageReadTimeouts.java63 String[] splits = timeouts.split(":", 3); in parse() local
64 if (splits.length != 3) { in parse()
67 final long minTimeUs = tryParseLong(splits[0], DEFAULT.minTimeUs); in parse()
68 final long minPendingTimeUs = tryParseLong(splits[1], DEFAULT.minPendingTimeUs); in parse()
69 final long maxPendingTimeUs = tryParseLong(splits[2], DEFAULT.maxPendingTimeUs); in parse()
95 String[] splits = codes.split("-", 2); in parse() local
96 switch (splits.length) { in parse()
100 final long versionCode = Long.parseLong(splits[0]); in parse()
107 final long minVersionCode = tryParseLong(splits[0], in parse()
109 final long maxVersionCode = tryParseLong(splits[1], in parse()
[all …]
DInitAppsHelper.java123 final List<File> splits = new ArrayList<>(); in getFrameworkResApkSplitFiles() local
132 splits.add(file); in getFrameworkResApkSplitFiles()
137 return splits; in getFrameworkResApkSplitFiles()
/frameworks/base/services/core/java/com/android/server/vibrator/
DStepToRampAdapter.java91 int splits = ((int) ramp.getDuration() + maxDuration - 1) / maxDuration; in splitLongRampSegments() local
92 if (splits <= 1) { in splitLongRampSegments()
96 segments.addAll(i, splitRampSegment(info, ramp, splits)); in splitLongRampSegments()
97 int addedSegments = splits - 1; in splitLongRampSegments()
115 int splits) { in splitRampSegment() argument
116 List<RampSegment> ramps = new ArrayList<>(splits); in splitRampSegment()
119 long splitDuration = ramp.getDuration() / splits; in splitRampSegment()
124 for (int i = 1; i < splits; i++) { in splitRampSegment()
/frameworks/base/tools/aapt2/split/
DTableSplitter.h52 TableSplitter(const std::vector<SplitConstraints>& splits, in TableSplitter() argument
54 : split_constraints_(splits), options_(options) { in TableSplitter()
64 std::vector<std::unique_ptr<ResourceTable>>& splits() { return splits_; } in splits() function
DTableSplitter_test.cpp131 ASSERT_EQ(3u, splitter.splits().size()); in TEST()
133 ResourceTable* split_one = splitter.splits()[0].get(); in TEST()
134 ResourceTable* split_two = splitter.splits()[1].get(); in TEST()
135 ResourceTable* split_three = splitter.splits()[2].get(); in TEST()
223 ASSERT_EQ(2u, splitter.splits().size()); in TEST()
225 ResourceTable* split_one = splitter.splits()[0].get(); in TEST()
226 ResourceTable* split_two = splitter.splits()[1].get(); in TEST()
/frameworks/base/services/core/java/com/android/server/am/
DMemoryStatUtil.java143 final String[] splits = procStatContents.split(" "); in parseMemoryStatFromProcfs() local
144 if (splits.length < 24) { in parseMemoryStatFromProcfs()
149 memoryStat.pgfault = Long.parseLong(splits[PGFAULT_INDEX]); in parseMemoryStatFromProcfs()
150 memoryStat.pgmajfault = Long.parseLong(splits[PGMAJFAULT_INDEX]); in parseMemoryStatFromProcfs()
151 memoryStat.rssInBytes = Long.parseLong(splits[RSS_IN_PAGES_INDEX]) * PAGE_SIZE; in parseMemoryStatFromProcfs()
/frameworks/base/tests/NativeProcessesMemoryTest/src/com/android/tests/nativeprocesses/
DNativeProcessesMemoryTest.java150 String[] splits = line.split(SEPARATOR); in collectNativeProcesses() local
152 if (splits.length < 4 || !splits[0].equals("proc") || !splits[1].equals("native")) { in collectNativeProcesses()
156 String processName = splits[2]; in collectNativeProcesses()
157 String pid = splits[3]; in collectNativeProcesses()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DCutoutSpecificationBenchmark.java104 String[] splits = spec.split(BOTTOM_MARKER, 2); in oldMethodParsingSpec() local
105 spec = splits[0].trim(); in oldMethodParsingSpec()
106 bottomSpec = splits[1].trim(); in oldMethodParsingSpec()
/frameworks/base/tools/aapt2/optimize/
DMultiApkGenerator.cpp223 TableSplitterOptions splits; in FilterTable() local
234 splits.preferred_densities.push_back(density_config.density); in FilterTable()
242 splits.config_filter = &axis_filter; in FilterTable()
257 TableSplitter splitter{{}, splits}; in FilterTable()
/frameworks/base/graphics/java/android/graphics/
DRect.java718 public void splitVertically(@NonNull Rect ...splits) { in splitVertically() argument
719 final int count = splits.length; in splitVertically()
722 final Rect split = splits[i]; in splitVertically()
/frameworks/base/core/proto/android/service/
Dpackage.proto159 repeated SplitProto splits = 8; field
/frameworks/base/tools/aapt2/cmd/
DOptimize.cpp184 for (std::unique_ptr<ResourceTable>& split_table : splitter.splits()) { in Run()
DLink.cpp2097 for (std::unique_ptr<ResourceTable>& split_table : table_splitter.splits()) { in Run()
/frameworks/base/tools/aapt/
DCommand.cpp2835 const Vector<sp<ApkSplit> >& splits = builder->getSplits(); in doPackage() local
2836 const size_t numSplits = splits.size(); in doPackage()
2838 const sp<ApkSplit>& split = splits[i]; in doPackage()
DResource.cpp1797 Vector<sp<ApkSplit> >& splits = builder->getSplits(); in buildResources() local
1798 const size_t numSplits = splits.size(); in buildResources()
1800 sp<ApkSplit>& split = splits.editItemAt(i); in buildResources()
/frameworks/base/tools/aapt2/
DResources.proto77 // - IDs > 0x7f are reserved for the application as well and are treated as feature splits.