Home
last modified time | relevance | path

Searched refs:sorted (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/native/libs/ftl/
Dsmall_vector_test.cpp315 auto sorted = std::move(strings); in TEST() local
318 EXPECT_TRUE(sorted.dynamic()); in TEST()
321 std::sort(sorted.begin(), sorted.end()); in TEST()
322 EXPECT_EQ(sorted, (SmallVector{"cake"s, "pie"s, "quince"s, "red"s, "tart"s, "velvet"s})); in TEST()
331 EXPECT_GT(sorted, strings); in TEST()
332 swap(sorted, strings); in TEST()
333 EXPECT_LT(sorted, strings); in TEST()
335 EXPECT_FALSE(sorted.dynamic()); in TEST()
340 sorted.emplace_back(str); in TEST()
342 EXPECT_TRUE(sorted.dynamic()); in TEST()
[all …]
Dstatic_vector_test.cpp285 auto sorted = std::move(strings); in TEST() local
288 std::sort(sorted.begin(), sorted.end()); in TEST()
289 EXPECT_EQ(sorted, (StaticVector{"cake"s, "pie"s, "quince"s, "red"s, "tart"s, "velvet"s})); in TEST()
297 EXPECT_GT(sorted, strings); in TEST()
298 swap(sorted, strings); in TEST()
299 EXPECT_LT(sorted, strings); in TEST()
303 sorted.emplace_back(str); in TEST()
306 EXPECT_NE(sorted, strings); in TEST()
309 const auto it = sorted.begin() + 1; in TEST()
310 EXPECT_EQ(sorted.replace(it, 'p' + it->substr(1)), "pie"); in TEST()
[all …]
/frameworks/libs/net/common/testutils/hostdevice/com/android/testutils/
DMiscAsserts.kt73 assertEquals(actual.sorted(), expected.sorted(), in assertContainsExactly()
78 assertEquals(actual.sorted(), expected.sorted(), in assertContainsStringsExactly()
/frameworks/base/tests/JankBench/scripts/external/
Dstatistics.py172 total = sum(Fraction(n, d) for d, n in sorted(partials.items()))
350 data = sorted(data)
373 data = sorted(data)
395 data = sorted(data)
428 data = sorted(data)
/frameworks/base/core/java/android/os/
DBinderProxy.java313 Map.Entry<String, Integer>[] sorted = counts.entrySet().toArray( in getSortedInterfaceCounts() local
316 Arrays.sort(sorted, (Map.Entry<String, Integer> a, Map.Entry<String, Integer> b) in getSortedInterfaceCounts()
319 int returnCount = Math.min(maxToReturn, sorted.length); in getSortedInterfaceCounts()
322 ifaceCounts[i] = new InterfaceCount(sorted[i].getKey(), sorted[i].getValue()); in getSortedInterfaceCounts()
333 final InterfaceCount[] sorted = getSortedInterfaceCounts(MAX_NUM_INTERFACES_TO_DUMP); in dumpProxyInterfaceCounts() local
337 for (int i = 0; i < sorted.length; i++) { in dumpProxyInterfaceCounts()
338 Log.v(Binder.TAG, " #" + (i + 1) + ": " + sorted[i]); in dumpProxyInterfaceCounts()
/frameworks/base/tools/localedata/
Dextract_icu_data.py133 for locale in sorted(likely_script_dict.keys()):
157 for locale in sorted(representative_locales):
222 sorted_scripts = sorted(script_organized_dict.keys())
228 for locale in sorted(parent_dict.keys()):
/frameworks/rs/tests/java_api/RSUnitTests/
DRSUnitTests.py219 tests = sorted(tests)
566 for build_tool_version_name in sorted(BUILD_TOOL_VERSIONS.values()):
573 for build_tool_version in sorted(BUILD_TOOL_VERSIONS.keys()):
642 for version in sorted(UNIT_TEST_PLATFORM_VERSIONS.keys()):
644 tests = sorted(UNIT_TEST_PLATFORM_VERSIONS[version])
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DMediaDataFilter.kt126 val sorted = userEntries.toSortedMap(compareBy { in <lambda>() constant
129 val timeSinceActive = timeSinceActiveForMostRecentMedia(sorted) in <lambda>()
139 val lastActiveKey = sorted.lastKey() // most recently active in <lambda>()
146 val mediaData = sorted.get(lastActiveKey)!!.copy(active = true) in <lambda>()
/frameworks/native/opengl/tools/glgen/
Dconvert_to_java.py30 for define in sorted(allDefines, key=lambda define: define[1]):
/frameworks/base/services/core/java/com/android/server/vcn/
DUnderlyingNetworkTracker.java416 TreeSet<UnderlyingNetworkRecord> sorted = in reevaluateNetworks() local
418 UnderlyingNetworkRecord candidate = sorted.isEmpty() ? null : sorted.first(); in reevaluateNetworks()
468 TreeSet<UnderlyingNetworkRecord> sorted = in getSortedUnderlyingNetworks() local
479 sorted.add(builder.build()); in getSortedUnderlyingNetworks()
483 return sorted; in getSortedUnderlyingNetworks()
/frameworks/av/services/audiopolicy/engineconfigurable/tools/
DbuildCommonTypesStructureFile.py81 ordered_values = OrderedDict(sorted(values_dict.items(), key=lambda x: x[1]))
92 ordered_values = OrderedDict(sorted(values_dict.items(), key=lambda x: x[1]))
/frameworks/native/cmds/installd/
Dmatchgen.py76 for k in sorted(target.keys()):
/frameworks/base/core/tests/coretests/src/android/database/
Dprocess_newdb_perf_test_logs.py65 for k in sorted(timings):
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DPrivacyChipBuilder.kt32 types = itemsList.map { it.privacyType }.distinct().sorted() in <lambda>()
/frameworks/base/cmds/am/src/com/android/commands/am/
DInstrument.java137 private static Collection<String> sorted(Collection<String> list) { in sorted() method in Instrument
172 for (String key : sorted(results.keySet())) { in onInstrumentationStatusLocked()
193 for (String key : sorted(results.keySet())) { in onInstrumentationFinishedLocked()
309 for (final String key: sorted(bundle.keySet())) { in writeBundle()
/frameworks/native/vulkan/scripts/
Dapi_generator.py173 sorted_command_list = sorted(gencom.command_list)
217 sorted_command_list = sorted(gencom.command_list)
Dnull_generator.py124 sorted_command_list = sorted(gencom.command_list)
Ddriver_generator.py509 sorted_command_list = sorted(gencom.command_list)
603 for key, value in sorted(gencom.promoted_inst_ext_dict.items()):
/frameworks/base/tools/aapt2/tools/
Dextract_unicode_properties.py58 for char_prop in sorted(chars.values(), key=CharacterProperty.key):
/frameworks/minikin/tools/
Dmk_hyb_file.py202 succ = sorted([ch_map[c] + edge_start for c in node.succ.keys()])
240 for i in sorted(mapped.keys()):
259 for c in sorted(node.succ.keys()):
337 for c, val in sorted(ch_map.items()):
/frameworks/rs/tests/lldb/tests/testcases/
Dtest_reduction.py263 for x, _, __ in sorted(coords_range_3d(X_TESTS, Y_TESTS, Z_TESTS)):
/frameworks/base/core/tests/benchmarks/src/android/util/
DStreamsBenchmark.java86 getOpenSessionCallsList(calls).stream().sorted( in timeStreams()
/frameworks/base/cmds/incident_helper/java/com/android/commands/incident/sections/
DPersistLogSection.java109 .sorted(Comparator.comparingLong(File::lastModified).reversed())) { in run()
123 .sorted(Comparator.comparingLong(File::lastModified)) in run()
/frameworks/base/tools/aapt2/tools/consumers/
Dduplicates.py33 duplicates = sorted(duplicates, key=lambda x: x.start)
/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/
DAsmGeneratorTest.java322 .sorted() in findClassNames()
329 .sorted() in findFileNames()

123