Home
last modified time | relevance | path

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

12

/frameworks/base/cmds/idmap2/tests/
DFabricatedOverlayTests.cpp75 auto pairs = container->GetOverlayData(*info); in TEST() local
76 ASSERT_TRUE(pairs); in TEST()
77 ASSERT_EQ(5U, pairs->pairs.size()); in TEST()
78 auto string_pool = ResStringPool(pairs->string_pool_data->data.get(), in TEST()
79 pairs->string_pool_data->data_length, false); in TEST()
81 auto& it = pairs->pairs[0]; in TEST()
90 it = pairs->pairs[1]; in TEST()
98 it = pairs->pairs[2]; in TEST()
106 it = pairs->pairs[3]; in TEST()
114 it = pairs->pairs[4]; in TEST()
[all …]
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DRandomness.kt43 class RandomTable<T>(private vararg val pairs: Pair<Float, T>) { constant in RandomTable
44 private val total = pairs.map { it.first }.sum() in <lambda>()
49 for ((weight, result) in pairs) { in roll()
53 return pairs.last().second in roll()
/frameworks/wilhelm/src/ut/
DOpenSLESUT.c46 static Pair pairs[] = { variable
115 const Pair *end = &pairs[sizeof(pairs)/sizeof(pairs[0])]; in slesutPrintIID()
116 for (p = pairs; p != end; ++p) { in slesutPrintIID()
/frameworks/native/libs/ftl/
Dstatic_vector_test.cpp236 StaticVector<Pair, 5> pairs; in TEST() local
238 EXPECT_TRUE(pairs.empty()); in TEST()
239 EXPECT_EQ(pairs.max_size(), 5u); in TEST()
241 for (size_t i = 0; i < pairs.max_size(); ++i) { in TEST()
242 EXPECT_EQ(pairs.size(), i); in TEST()
245 const auto it = pairs.emplace_back(a, a + 1); in TEST()
246 ASSERT_NE(it, pairs.end()); in TEST()
250 EXPECT_TRUE(pairs.full()); in TEST()
251 EXPECT_EQ(pairs.size(), 5u); in TEST()
254 const auto it = pairs.emplace_back(10, 11); in TEST()
[all …]
Dsmall_vector_test.cpp291 SmallVector<Pair, 5> pairs; in TEST() local
293 EXPECT_TRUE(pairs.empty()); in TEST()
294 EXPECT_EQ(pairs.max_size(), 5u); in TEST()
296 for (size_t i = 0; i < pairs.max_size(); ++i) { in TEST()
297 EXPECT_EQ(pairs.size(), i); in TEST()
300 EXPECT_EQ(pairs.emplace_back(a, a + 1), Pair(a, a + 1)); in TEST()
303 EXPECT_EQ(pairs.size(), 5u); in TEST()
304 EXPECT_FALSE(pairs.dynamic()); in TEST()
307 EXPECT_EQ(pairs.emplace_back(10, 11), Pair(10, 11)); in TEST()
308 EXPECT_TRUE(pairs.dynamic()); in TEST()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/res/
DFontScaleConverterTest.kt88 private fun createTable(vararg pairs: Pair<Float, Float>) = in createTable()
90 pairs.map { it.first }.toFloatArray(), in createTable()
91 pairs.map { it.second }.toFloatArray() in <lambda>()
/frameworks/base/core/java/android/util/apk/
DApkSigningBlockUtils.java760 ByteBuffer pairs = sliceFromTo(apkSigningBlock, 8, apkSigningBlock.capacity() - 24); in findApkSignatureSchemeBlock() local
763 while (pairs.hasRemaining()) { in findApkSignatureSchemeBlock()
765 if (pairs.remaining() < 8) { in findApkSignatureSchemeBlock()
769 long lenLong = pairs.getLong(); in findApkSignatureSchemeBlock()
776 int nextEntryPos = pairs.position() + len; in findApkSignatureSchemeBlock()
777 if (len > pairs.remaining()) { in findApkSignatureSchemeBlock()
780 + ", available: " + pairs.remaining()); in findApkSignatureSchemeBlock()
782 int id = pairs.getInt(); in findApkSignatureSchemeBlock()
784 return getByteBuffer(pairs, len - 4); in findApkSignatureSchemeBlock()
786 pairs.position(nextEntryPos); in findApkSignatureSchemeBlock()
/frameworks/wilhelm/tests/sandbox/
Dreverb.c40 Pair pairs[] = { variable
132 for (j = 0; j < sizeof(pairs) / sizeof(pairs[0]); ++j) { in lookupEnvName()
133 if (!strcasecmp(name, pairs[j].mName)) { in lookupEnvName()
134 return &pairs[j].mSettings; in lookupEnvName()
148 for (j = 0; j < sizeof(pairs) / sizeof(pairs[0]); ++j) { in printEnvNames()
149 const char *name = pairs[j].mName; in printEnvNames()
/frameworks/av/media/audioaidlconversion/
DAidlConversionCppNdk.cpp249 static const detail::AudioChannelBitPairs pairs = { in getInAudioChannelBits() local
267 return pairs; in getInAudioChannelBits()
271 static const detail::AudioChannelPairs pairs = { in getInAudioChannelPairs() local
295 return pairs; in getInAudioChannelPairs()
299 static const detail::AudioChannelBitPairs pairs = { in getOutAudioChannelBits() local
333 return pairs; in getOutAudioChannelBits()
337 static const detail::AudioChannelPairs pairs = { in getOutAudioChannelPairs() local
376 return pairs; in getOutAudioChannelPairs()
380 static const detail::AudioChannelPairs pairs = { in getVoiceAudioChannelPairs() local
392 return pairs; in getVoiceAudioChannelPairs()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/domain/interactor/
DHeadsUpNotificationInteractor.kt54 combine(toCombine) { pairs -> in <lambda>() method
55 pairs.filter { (_, isPinned) -> isPinned }.map { (repo, _) -> repo }.toSet() in <lambda>()
/frameworks/base/core/java/android/view/textservice/
DSpellCheckerSubtype.java163 final String[] pairs = mSubtypeExtraValue.split(EXTRA_VALUE_PAIR_SEPARATOR); in getExtraValueHashMap() local
164 final int N = pairs.length; in getExtraValueHashMap()
166 final String[] pair = pairs[i].split(EXTRA_VALUE_KEY_VALUE_SEPARATOR); in getExtraValueHashMap()
/frameworks/libs/binary_translation/kernel_api/riscv64/
Dsyscall_emulation.cc123 auto pairs = bit_cast<Guest_riscv_hwprobe*>(arg_1); in RunGuestSyscall___NR_riscv_hwprobe() local
131 Hwprobe(pairs[i]); in RunGuestSyscall___NR_riscv_hwprobe()
/frameworks/base/cmds/idmap2/include/idmap2/
DResourceContainer.h79 std::vector<Value> pairs; member
/frameworks/av/media/codec2/tests/
DC2UtilTest.cpp77 std::vector<std::pair<C2String, Enum3>> pairs ( { { "value1", Enum3Value1 }, in TEST_F() local
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/include/
DParameterManagerWrapper.h140 status_t addCriterion(const std::string &name, bool isInclusive, ValuePairs pairs,
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayReferenceMapperTests.kt196 private fun assertMapping(vararg pairs: Pair<String, Set<AndroidPackage>>) { in <lambda>()
197 val expected = pairs.associate { it } in <lambda>()
/frameworks/base/cmds/idmap2/libidmap2/
DResourceContainer.cpp225 overlay_data.pairs.emplace_back(OverlayData::Value{ in CreateResourceMapping()
228 overlay_data.pairs.emplace_back( in CreateResourceMapping()
257 overlay_data.pairs.emplace_back(OverlayData::Value{ in CreateResourceMappingLegacy()
/frameworks/base/media/java/android/media/
DMediaHTTPConnection.java145 String[] pairs = headers.split("\r\n"); in convertHeaderStringToMap() local
146 for (String pair : pairs) { in convertHeaderStringToMap()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java316 Pair[] pairs = new Pair[s]; in toPairArray() local
321 pairs[i] = p; in toPairArray()
323 return pairs; in toPairArray()
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/
DParameterManagerWrapper.cpp122 ValuePairs pairs, const std::string &defaultValue) in addCriterion() argument
127 for (auto pair : pairs) { in addCriterion()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodSubtype.java694 final String[] pairs = mSubtypeExtraValue.split(EXTRA_VALUE_PAIR_SEPARATOR); in getExtraValueHashMap() local
695 for (int i = 0; i < pairs.length; ++i) { in getExtraValueHashMap()
696 final String[] pair = pairs[i].split(EXTRA_VALUE_KEY_VALUE_SEPARATOR); in getExtraValueHashMap()
/frameworks/base/core/java/android/service/autofill/augmented/
DAugmentedAutofillService.java486 public void autofill(@NonNull List<Pair<AutofillId, AutofillValue>> pairs) in autofill() argument
488 final int size = pairs.size(); in autofill()
492 final Pair<AutofillId, AutofillValue> pair = pairs.get(i); in autofill()
/frameworks/base/libs/WindowManager/Shell/aconfig/
Dmultitasking.aconfig9 description: "Enables the ability to create and save app pairs to the Home screen"
/frameworks/proto_logging/stats/enums/appsearch/
Denums.proto27 * It is used to tag the transition type between adjacent query pairs in the search intent sequence
/frameworks/base/services/core/java/com/android/server/cpu/
DCpuInfoReader.java600 String[] pairs = line.contains(",") ? line.split(",") in readCpuCores() local
602 for (int j = 0; j < pairs.length; j++) { in readCpuCores()
603 String[] minMaxPairs = pairs[j].split("-"); in readCpuCores()
616 Slogf.w(TAG, "Invalid CPU core range format %s", pairs[j]); in readCpuCores()

12