Home
last modified time | relevance | path

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

123

/tools/tradefederation/core/src/com/android/tradefed/util/
DPair.java24 public final A first; field in Pair
27 public Pair(A first, B second) { in Pair() argument
28 this.first = first; in Pair()
46 if (this.first == null) { in equals()
47 if (pair.first != null) { in equals()
50 } else if (!this.first.equals(pair.first)) { in equals()
68 return (first == null ? 0 : first.hashCode()) ^ (second == null ? 0 : second.hashCode()); in hashCode()
/tools/asuite/atest/
Dunittest_utils.py24 def assert_strict_equal(test_class, first, second): argument
31 if isinstance(first, list) and isinstance(second, list):
32 first.sort()
34 test_class.assertEqual(first, second)
36 if not (isinstance(first, str) and
38 test_class.assertIsInstance(first, type(second))
39 test_class.assertIsInstance(second, type(first))
41 if isinstance(first, tuple) and hasattr(first, '_fields'):
43 for f in first._fields:
44 assert_strict_equal(test_class, getattr(first, f),
/tools/tradefederation/core/atest/
Dunittest_utils.py24 def assert_strict_equal(test_class, first, second): argument
30 test_class.assertEqual(first, second)
32 if not (isinstance(first, basestring) and
34 test_class.assertIsInstance(first, type(second))
35 test_class.assertIsInstance(second, type(first))
37 if isinstance(first, tuple) and hasattr(first, '_fields'):
39 for f in first._fields:
40 assert_strict_equal(test_class, getattr(first, f),
/tools/dexter/dexter/
Ddissasembler.cc30 bool first = true; in MethodDeclaration() local
32 ss << (first ? "" : ", ") << type->Decl(); in MethodDeclaration()
33 first = false; in MethodDeclaration()
46 if (instr == current_block.region.first) { in StartInstruction()
65 bool first = true; in Visit() local
67 printf(first ? " " : ", "); in Visit()
69 first = false; in Visit()
144 bool first = true; in Visit() local
147 printf("%sv%d", (first ? "" : ","), reg); in Visit()
148 first = false; in Visit()
[all …]
Dexperimental.cc399 block.region.first->offset, in CodeCoverage()
404 for (auto instr = block.region.first; instr != nullptr; instr = instr->next) { in CodeCoverage()
465 printf("%6d [ %3d ] ", kv.second, kv.first); in PrintHistogram()
544 printf(" %s\n", e.first.c_str()); in ListExperiments()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DPair.java26 private Pair(A first, B second) { in Pair() argument
27 mFirst = first; 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.py32 def assert_almost_equal(first, argument
53 first, second, msg=msg, delta=delta)
56 first, second, places=places, msg=msg)
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/extractors/
DZlibExtractorTest.kt59 val first = it.next() in testExtractInitial() constant
60 assertNotNull(first) in testExtractInitial()
61 assertTrue(first.length > expected.length) in testExtractInitial()
62 assertEquals(expected, first.slice(0, expected.length).toString()) in testExtractInitial()
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/model/
DSliceGroupBuilderTest.kt37 assertEquals(slice, group.slices.first()) in testSimpleBuild()
64 assertEquals(slice, group.slices.first()) in testNestedBuild()
66 assertEquals(child, slice.children.first()) in testNestedBuild()
/tools/trebuchet/trebuchet/analyzer/src/
DAnalyzer.kt39 val rtThread = process.threads.first { it.name == "RenderThread" } in measureStartup()
40 val start = uiThread.slices.first { in measureStartup()
43 val end = rtThread.slices.first { in measureStartup()
/tools/tradefederation/contrib/src/com/android/media/tests/
DAudioLoopbackImageAnalyzer.java152 final int durationLeft = durationBounds.first.intValue(); in analyzeImage()
154 final int amplitudeTop = amplitudeBounds.first.intValue(); in analyzeImage()
171 if (amplResult.first != Result.PASS) { in analyzeImage()
185 if (amplResult.first != Result.PASS) { in analyzeImage()
414 final int min = horizontalMinMax.first.intValue(); in projectPixelsToYAxis()
474 return low <= bounds.first.intValue() in boundsWithinRange()
475 && bounds.first.intValue() < high in boundsWithinRange()
/tools/tradefederation/contrib/src/com/android/regression/tests/
DMetrics.java125 id.first, id.second, mNumRuns, mTestMetrics.get(id).size())); in validate()
162 id.first, id.second)); in crossValidate()
171 id.first, id.second)); in crossValidate()
/tools/dexter/slicer/
Dcontrol_flow_graph.cc112 current_block_.region.first = instr; in StartBlock()
121 assert(current_block_.region.first != nullptr); in EndBlock()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DFileIdleMonitorTest.java68 long first = System.currentTimeMillis() - 20_000L; // will be ignored in testSchedulesCheckIfTimeoutNotReached() local
70 FileIdleMonitor monitor = createMonitor(first, second); in testSchedulesCheckIfTimeoutNotReached()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiItem.kt247 val first = element.sourcePsiElement?.firstChild in javadoc() constant
248 if (first is KDoc) { in javadoc()
249 return first.text in javadoc()
/tools/ndkports/src/main/kotlin/com/android/ndkports/
DNdk.kt34 files.first() in <lambda>()
/tools/test/connectivity/acts/tests/google/bt/pts/instructions/
DGAP_PTS_INSTRUCTIONS189 Note: Run the test a first time and it will fail. Change the address to
207 Note: Run the test a first time and it will fail. Change the address to
250 Note: Run the test a first time and it will fail. Change the address to
267 Note: Run the test a first time and it will fail. Change the address to
296 Note: Run the test a first time and it will fail. Change the address to
317 Note: Run the test a first time and it will fail. Change the address to
347 Note: Run the test a first time and it will fail. Change the address to
548 Note: Run the first 4 commands before executing the testcase on PTS Side
562 Note: Run the first 4 commands before executing the testcase on PTS Side
/tools/trebuchet/trebuchet/startup-common/src/
DStartupCommon.kt117 map { it.first().startTime }. in findProcess()
148 newProc.threads.first().schedSlices.forEach schedLoop@ { schedSlice -> in Model()
168 newProc.threads.first().traverseSlices(object : SliceTraverser { in Model()
/tools/tradefederation/core/
Dtradefed_win.bat39 :: first try to find TF jars in same dir as this script
68 :: delete the first =
/tools/tradefederation/core/atest/docs/
Ddeveloper_workflow.md16 this division, your first step should be to identify the code
73 first add atest to your PYTHONPATH via entering in your terminal:
105 to build TradeFed first. See the
109 first run the test file your code change affected individually. The
/tools/asuite/atest/docs/
Ddeveloper_workflow.md16 this division, your first step should be to identify the code
73 first add atest to your PYTHONPATH via entering in your terminal:
105 to build TradeFed first. See the
109 first run the test file your code change affected individually. The
/tools/dexter/slicer/export/slicer/
Dcontrol_flow_graph.h28 Instruction* first = nullptr; member
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterLogSaverTest.java305 File first = createMockFile("first", "foo.txt"); in testInvocationEnded_duplicateUpload() local
329 File first = createMockFile("extra", "1.txt"); in testAppendFilesToContext() local
334 contextFile, Arrays.asList(first.getAbsolutePath(), "extra/2.txt", "unknown.txt")); in testAppendFilesToContext()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DTestsPoolPollerTest.java122 StubTest first = new StubTest(); in testPollingRun() local
123 OptionSetter setterFirst = new OptionSetter(first); in testPollingRun()
127 testsList.add(first); in testPollingRun()
146 assertEquals(mConfiguration, first.getConfiguration()); in testPollingRun()
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/aware/
Daware_test_utils.py232 def assert_equal_strings(first, second, msg=None, extras=None): argument
245 if first == None:
246 first = ''
249 asserts.assert_equal(first, second, msg, extras)

123