Home
last modified time | relevance | path

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

123

/tools/tradefederation/core/src/com/android/tradefed/util/
DPair.java25 public final B second; field in Pair
27 public Pair(A first, B second) { in Pair() argument
29 this.second = second; in Pair()
53 if (this.second == null) { in equals()
54 if (pair.second != null) { in equals()
57 } else if (!this.second.equals(pair.second)) { in equals()
68 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode()); in hashCode()
/tools/metalava/metalava-model-text/src/test/java/com/android/tools/metalava/model/text/
DTextTypeParserCacheTest.kt122 val second = parser.obtainTypeFromString("int", emptyScope) in <lambda>() constant
124 assertThat(first).isSameInstanceAs(second) in <lambda>()
132 val second = parser.obtainTypeFromString("int", nonEmptyScope) in <lambda>() constant
134 assertThat(first).isSameInstanceAs(second) in <lambda>()
142 val second = parser.obtainTypeFromString("T", nonEmptyScope) in <lambda>() constant
144 assertThat(first).isSameInstanceAs(second) in <lambda>()
248 val second = parser.obtainTypeFromString("String[]", emptyScope) as ArrayTypeItem in <lambda>() constant
252 .that(second.componentType) in <lambda>()
259 .isNotSameInstanceAs(second) in <lambda>()
318 val second = parser.obtainTypeFromString("List<Number>", emptyScope) as ClassTypeItem in <lambda>() constant
[all …]
/tools/asuite/atest/
Dunittest_utils.py23 def assert_strict_equal(test_class, first, second): argument
30 if isinstance(first, list) and isinstance(second, list):
32 second.sort()
33 test_class.assertEqual(first, second)
35 if not (isinstance(first, str) and isinstance(second, str)):
36 test_class.assertIsInstance(first, type(second))
37 test_class.assertIsInstance(second, type(first))
42 assert_strict_equal(test_class, getattr(first, f), getattr(second, f))
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DPair.java26 private Pair(A first, B second) { in Pair() argument
28 mSecond = second; in Pair()
31 public static <A, B> Pair<A, B> of(A first, B second) { in of() argument
32 return new Pair<A, B>(first, second); in of()
/tools/test/connectivity/acts/framework/acts/
Dasserts.py33 second, argument
53 first, second, msg=msg, delta=delta)
56 first, second, places=places, msg=msg)
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/apilevels/
DExtensionSdkJarReader.kt54 it.second <= skipVersionsGreaterThan in <lambda>()
59 .sortedBy { it.second } in <lambda>()
62 .add(VersionAndPath(it.second, it.third)) in <lambda>()
/tools/security/remote_provisioning/hwtrust/src/
Dpublickey.rs258 let second = PKeyPublicWrapper(load_public_pkey(testkeys::ED25519_KEY_PEM[0])); in verify_pkey_equality() localVariable
260 assert_eq!(&first, &second); in verify_pkey_equality()
261 assert_eq!(&second, &first); in verify_pkey_equality()
275 let second = PKeyPublicWrapper(load_public_pkey(testkeys::P256_KEY_PEM[1])); in verify_key_bits_inequality() localVariable
276 assert_ne!(&first, &second); in verify_key_bits_inequality()
277 assert_ne!(&second, &first); in verify_key_bits_inequality()
/tools/netsim/rust/common/src/util/
Dtime_display.rs56 current_datetime.second() in utc_display()
74 current_datetime.second() in utc_display_hms()
90 current_datetime.second(), in utc_display_log()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
DGattConnectedBaseTest.py210 def assertEqual(self, first, second, msg=None): argument
211 if not first == second:
213 raise AssertionError('%r != %r' % (first, second))
215 raise AssertionError(msg + ' %r != %r' % (first, second))
/tools/netsim/src/backend/
Dpacket_streamer_client.cc111 for (int second : {1, 2, 4, 8}) { in GetChannel()
123 BtsLogInfo("Retry connecting to netsim in %d second.", second); in GetChannel()
124 std::this_thread::sleep_for(std::chrono::seconds(second)); in GetChannel()
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackImageAnalyzer.java153 final int durationRight = durationBounds.second.intValue(); in analyzeImage()
155 final int amplitudeBottom = amplitudeBounds.second.intValue(); in analyzeImage()
415 final int max = horizontalMinMax.second.intValue(); in projectPixelsToYAxis()
476 && low <= bounds.second.intValue() in boundsWithinRange()
477 && bounds.second.intValue() < high; in boundsWithinRange()
/tools/tradefederation/contrib/src/com/android/regression/tests/
DMetrics.java126 id.first, id.second, mNumRuns, mTestMetrics.get(id).size())); in validate()
163 id.first, id.second)); in crossValidate()
172 id.first, id.second)); in crossValidate()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtilsLite.java385 byte[] second = element.getSecond(); in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()
386 result.putInt(8 + second.length); in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()
388 result.putInt(second.length); in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()
389 result.put(second); in encodeAsSequenceOfLengthPrefixedPairsOfIntAndLengthPrefixedBytes()
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/
DTextTypeParser.kt235 allAnnotations.add(annotationsResult.second) in <lambda>()
241 var componentNullability = nullabilityResult.second in <lambda>()
252 allAnnotations.add(annotationsResult.second) in <lambda>()
258 componentNullability = nullabilityResult.second in <lambda>()
552 (first, second) -> in <lambda>() method
554 annotations = second in <lambda>()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/
DCommonModelTest.kt191 runCodebaseTest(*pairs.map { it.second }.toTypedArray()) { in test findCorrespondingItemIn does not find super methods()
213 runCodebaseTest(*pairs.map { it.second }.toTypedArray()) { in test findCorrespondingItemIn does find super methods()
241 runCodebaseTest(*pairs.map { it.second }.toTypedArray()) { in test findCorrespondingItemIn does duplicate super methods()
/tools/netsim/src/util/
Dini_file.cc67 outFile << pair.first << "=" << pair.second << std::endl; in Write()
79 : std::optional(citer->second); in Get()
/tools/test/connectivity/acts_tests/tests/google/power/tel/
DPowerTelTraffic_Preset_Test.py185 second=self.n_second_to_omitted)
190 second=self.n_second_to_omitted)
209 second=self.n_second_to_omitted)
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/typeitem/
DCommonTypeParameterItemTest.kt130 val (first, second) = typeBounds in Test typeBounds multiple() constant
133 assertThat(second).isInstanceOf(ClassTypeItem::class.java) in Test typeBounds multiple()
134 assertThat((second as ClassTypeItem).qualifiedName).isEqualTo("java.lang.Comparable") in Test typeBounds multiple()
/tools/dexter/slicer/
Dcode_ir.cc280 FixupPackedSwitch(fixup.second.instr, fixup.second.base_offset, in FixupSwitches()
286 FixupSparseSwitch(fixup.second.instr, fixup.second.base_offset, in FixupSwitches()
346 label.second->id = nextLabelId++; in Disassemble()
347 tmp_labels.push_back(label.second); in Disassemble()
/tools/tradefederation/core/javatests/com/android/tradefed/util/
DFileIdleMonitorTest.java69 long second = System.currentTimeMillis() - 3_000L; in testSchedulesCheckIfTimeoutNotReached() local
70 FileIdleMonitor monitor = createMonitor(first, second); in testSchedulesCheckIfTimeoutNotReached()
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DCodePrinter.kt526 val second = value.second in constantToSource() constant
532 return if (second is Name) { in constantToSource()
533 qualifiedName + "." + second.asString() in constantToSource()
/tools/tradefederation/core/javatests/com/android/tradefed/testtype/binary/
DKUnitModuleTestTest.java220 if (!testResult.second) { in test_module_load_fail()
257 if (!testResult.second) { in test_ktap_parse_fail()
297 if (!testResult.second) { in test_missing_ktap_results_file()
/tools/dexter/dexter/
Dexperimental.cc462 max_count = std::max(max_count, kv.second); in PrintHistogram()
466 printf("%6d [ %3d ] ", kv.second, kv.first); in PrintHistogram()
467 int hist_len = static_cast<int>(static_cast<double>(kv.second) / max_count * kHistogramWidth); in PrintHistogram()
570 (*it->second)(dex_ir); in Run()
/tools/loganalysis/src/com/android/loganalysis/parser/
DBatteryStatsSummaryInfoParser.java79 final int second = Integer.parseInt(resetTimeMatcher.group(6)); in parse() local
81 mResetTime.set(year, (month - 1), day, hour, minute, second); in parse()
/tools/tradefederation/core/javatests/com/android/tradefed/cluster/
DClusterLogSaverTest.java309 File second = createMockFile("android-gts/results/second", "foo.txt"); in testInvocationEnded_duplicateUpload() local
322 Mockito.verify(mMockTestOutputUploader).uploadFile(second, ""); in testInvocationEnded_duplicateUpload()
333 File second = createMockFile("extra", "2.txt"); in testAppendFilesToContext() local

123