Home
last modified time | relevance | path

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

123

/tools/test/connectivity/acts/framework/tests/controllers/monsoon_lib/sampling/engine/
Dassembly_line_test.py96 builder = AssemblyLineBuilder(mock.Mock(), mock.Mock())
99 builder.source(first_source)
102 builder.source(second_source)
108 builder = AssemblyLineBuilder(mock.Mock(), mock.Mock())
112 builder.source(dummy_source, input_stream=input_stream)
114 self.assertEqual(input_stream, builder.nodes[-1].input_stream)
118 builder = AssemblyLineBuilder(mock.Mock(), mock.Mock())
121 builder.source(dummy_source)
123 self.assertIsInstance(builder.nodes[-1].input_stream,
128 builder = AssemblyLineBuilder(mock.Mock(), mock.Mock())
[all …]
/tools/test/graphicsbenchmark/performance_tests/hostside/test/com/android/game/qualification/metric/
DLoopSummaryTest.java27 LoopSummary.Builder builder = new LoopSummary.Builder(TEST_REQUIREMENTS, 1); in testBasicLoop() local
28 builder.addFrameTime(1); in testBasicLoop()
29 LoopSummary summary = builder.build(); in testBasicLoop()
46 LoopSummary.Builder builder = new LoopSummary.Builder(TEST_REQUIREMENTS, 1); in testSimpleLoop() local
47 builder.addFrameTime(1); in testSimpleLoop()
48 builder.addFrameTime(2); in testSimpleLoop()
49 builder.addFrameTime(3); in testSimpleLoop()
50 LoopSummary summary = builder.build(); in testSimpleLoop()
67 LoopSummary.Builder builder = new LoopSummary.Builder(TEST_REQUIREMENTS, 1); in testLargeDataSetLoop() local
69 builder.addFrameTime(i + 1); in testLargeDataSetLoop()
[all …]
DMetricSummaryTest.java49 MetricSummary.Builder builder = new MetricSummary.Builder(TEST_REQUIREMENTS, 500_000_000); in testConversion() local
50 builder.beginLoop(); in testConversion()
51 builder.addFrameTime(PRESENT, 1); in testConversion()
52 builder.addFrameTime(PRESENT, 2); in testConversion()
53 builder.addFrameTime(PRESENT, 3); in testConversion()
54 builder.addFrameTime(READY, 10); in testConversion()
55 builder.addFrameTime(READY, 10); in testConversion()
56 builder.addFrameTime(READY, 10); in testConversion()
57 builder.endLoop(); in testConversion()
58 builder.beginLoop(); in testConversion()
[all …]
/tools/dexter/slicer/
Dinstrumentation.cc69 ir::Builder builder(code_ir->dex_ir); in BoxValue() local
73 auto boxed_type = builder.GetType(boxed_type_name); in BoxValue()
74 auto ir_proto = builder.GetProto(boxed_type, builder.GetTypeList(param_types)); in BoxValue()
76 auto ir_method_decl = builder.GetMethodDecl( in BoxValue()
77 builder.GetAsciiString("valueOf"), ir_proto, boxed_type); in BoxValue()
114 ir::Builder builder(code_ir->dex_ir); in Apply() local
123 this_argument_type = builder.GetType("Ljava/lang/Object;"); in Apply()
136 auto ir_proto = builder.GetProto(builder.GetType("V"), in Apply()
137 builder.GetTypeList(param_types)); in Apply()
139 auto ir_method_decl = builder.GetMethodDecl( in Apply()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DItem.kt290 val builder = StringBuilder() in describe() constant
292 builder.append(if (capitalize) "Constructor" else "constructor") in describe()
294 builder.append(if (capitalize) "Method" else "method") in describe()
296 builder.append(' ') in describe()
298 builder.append(item.returnType()?.toSimpleType()) in describe()
299 builder.append(' ') in describe()
301 appendMethodSignature(builder, item, includeParameterNames, includeParameterTypes) in describe()
302 return builder.toString() in describe()
311 val builder = StringBuilder() in describe() constant
312 builder.append(if (capitalize) "Parameter" else "parameter") in describe()
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_power_test_utils.py103 builder = icb.InstrumentationTestCommandBuilder.default()
104 builder.add_test_class(
106 builder.set_manifest_package("com.google.android.device.power")
107 builder.set_runner("androidx.test.runner.AndroidJUnitRunner")
108 builder.add_key_value_param("cool-off-duration", "0s")
109 builder.add_key_value_param("idle-duration", "0s")
110 builder.add_key_value_param(
112 builder.add_key_value_param("com.android.test.power.receiver.POWER_LEVEL",
114 builder.add_key_value_param(
117 adv_command = builder.build() + ' &'
[all …]
/tools/tradefederation/core/clearcut_client/com/android/tradefed/clearcut/
DClearcutEventHelper.java41 AtestLogEventInternal.Builder builder = in createStartEvent() local
45 builder.setAtestStartEvent(startEventBuilder.build()); in createStartEvent()
46 return builder.build().toByteString(); in createStartEvent()
49 AtestLogEventExternal.Builder builder = in createStartEvent() local
52 builder.setAtestStartEvent(startBuilder.build()); in createStartEvent()
53 return builder.build().toByteString(); in createStartEvent()
66 AtestLogEventInternal.Builder builder = in createRunStartEvent() local
70 builder.setRunnerFinishEvent(startRunEventBuilder.build()); in createRunStartEvent()
71 return builder.build().toByteString(); in createRunStartEvent()
74 AtestLogEventExternal.Builder builder = in createRunStartEvent() local
[all …]
/tools/dexter/dexter/
Dexperimental.cc56 ir::Builder builder(dex_ir); in StressWrapInvoke() local
97 auto ir_proto = builder.GetProto(orig_method->prototype->return_type, in StressWrapInvoke()
98 builder.GetTypeList(param_types)); in StressWrapInvoke()
100 auto ir_method_decl = builder.GetMethodDecl(builder.GetAsciiString("WrapInvoke"), in StressWrapInvoke()
102 builder.GetType("LTracer;")); in StressWrapInvoke()
146 ir::Builder builder(dex_ir); in StressEntryHook() local
158 auto ir_proto = builder.GetProto(builder.GetType("V"), in StressEntryHook()
159 builder.GetTypeList(param_types)); in StressEntryHook()
161 auto ir_method_decl = builder.GetMethodDecl(builder.GetAsciiString("OnEntry"), in StressEntryHook()
163 builder.GetType("LTracer;")); in StressEntryHook()
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandConfigBuilderTest.java76 private ClusterCommandConfigBuilder builder; field in ClusterCommandConfigBuilderTest
88 builder = in setUp()
95 builder.setWorkDir(mWorkDir) in setUp()
109 builder.build(); in testBuild_commandProperties()
130 builder.build(); in testBuild_targetPreparers()
156 builder.build(); in testBuild_resultReporters()
167 builder.build(); in testBuild_envVars()
180 builder.build(); in testBuild_javaOptions()
192 builder.build(); in testBuild_outputFiles()
205 builder.build(); in testBuild_testResources()
[all …]
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/mobly/
DMoblyYamlResultRecordHandler.java35 Record.Builder builder = Record.builder(); in handle() local
36 builder.setTestClass(String.valueOf(docMap.get(TEST_CLASS))); in handle()
37 builder.setTestName(String.valueOf(docMap.get(TEST_NAME))); in handle()
38 builder.setResult(RecordResult.valueOf((String) docMap.get(RESULT))); in handle()
39 builder.setBeginTime(String.valueOf(docMap.get(BEGIN_TIME))); in handle()
40 builder.setEndTime(String.valueOf(docMap.get(END_TIME))); in handle()
41 builder.setStackTrace(String.valueOf(docMap.get(STACKTRACE))); in handle()
42 return builder.build(); in handle()
97 public static Builder builder() { in builder() method in MoblyYamlResultRecordHandler.Record
DMoblyYamlResultSummaryHandler.java28 Summary.Builder builder = Summary.builder(); in handle() local
29 builder.setExecuted(String.valueOf(docMap.get(EXECUTED))); in handle()
30 return builder.build(); in handle()
49 public static Builder builder() { in builder() method in MoblyYamlResultSummaryHandler.Summary
DMoblyYamlResultUserDataHandler.java28 UserData.Builder builder = UserData.builder(); in handle() local
29 builder.setTimestamp(String.valueOf(docMap.get(TIME_STAMP))); in handle()
30 return builder.build(); in handle()
49 public static Builder builder() { in builder() method in MoblyYamlResultUserDataHandler.UserData
DMoblyYamlResultControllerInfoHandler.java29 ControllerInfo.Builder builder = ControllerInfo.builder(); in handle() local
30 builder.setTimestamp(String.valueOf(docMap.get(TIME_STAMP))); in handle()
31 return builder.build(); in handle()
50 public static Builder builder() { in builder() method in MoblyYamlResultControllerInfoHandler.ControllerInfo
DMoblyYamlResultTestNameListHandler.java26 TestNameList.Builder builder = TestNameList.builder(); in handle() local
27 return builder.build(); in handle()
39 public static Builder builder() { in builder() method in MoblyYamlResultTestNameListHandler.TestNameList
/tools/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/
DSliceGroupBuilder.kt28 val builder = MutableSliceGroup() in hasOpenSlices() constant
29 action(builder) in hasOpenSlices()
30 openSlices.add(builder) in hasOpenSlices()
36 val builder = openSlices.removeAt(openSlices.lastIndex) in endSlice() constant
37 action(builder) in endSlice()
38 builder.validate() in endSlice()
40 openSlices.last().add(builder) in endSlice()
42 slices.add(builder) in endSlice()
44 return builder in endSlice()
/tools/tradefederation/contrib/src/com/android/tradefed/targetprep/
DSetPackagesRecentlyUsed.java57 StringBuilder builder = new StringBuilder(); in setUp() local
58 builder.append("PACKAGE_USAGE__VERSION_1\n"); in setUp()
61 builder.append(p.substring(LINE_PREFIX.length())); in setUp()
62 builder.append(" "); in setUp()
63 builder.append(Long.toString(deviceRecentMillis)); in setUp()
64 builder.append(" 0 0 0 0 0 0 0\n"); in setUp()
67 testInfo.getDevice().pushString(builder.toString(), PACKAGE_USAGE_FILE); in setUp()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DVerityTreeBuilderTest.java70 VerityTreeBuilder builder = new VerityTreeBuilder(salt); in generateRootHash() local
71 return HexEncoding.encode(builder.generateVerityTreeRootHash( in generateRootHash()
92 VerityTreeBuilder builder = new VerityTreeBuilder(null); in generateVerityTreeRootHashFromDummyDataSource() local
93 byte[] rootHash = builder.generateVerityTreeRootHash( in generateVerityTreeRootHashFromDummyDataSource()
109 VerityTreeBuilder builder = new VerityTreeBuilder(null); in generateVerityTreeRootHashFromDummyDataSource() local
110 byte[] rootHash = builder.generateVerityTreeRootHash( in generateVerityTreeRootHashFromDummyDataSource()
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/
DAveragePostProcessorTest.java101 Metric.Builder builder = Metric.newBuilder(); in createDoubleListMetric() local
109 builder.setMeasurements(measureBuilder.build()); in createDoubleListMetric()
110 return builder.build(); in createDoubleListMetric()
114 Metric.Builder builder = Metric.newBuilder(); in createLongListMetric() local
122 builder.setMeasurements(measureBuilder.build()); in createLongListMetric()
123 return builder.build(); in createLongListMetric()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DRemoteFileUtil.java219 StringBuilder builder = new StringBuilder(); in internalScpExec() local
220 builder.append("Issue when "); in internalScpExec()
222 builder.append("pulling "); in internalScpExec()
224 builder.append("pushing "); in internalScpExec()
226 builder.append(String.format("file, status: %s", resScp.getStatus())); in internalScpExec()
227 CLog.e(builder.toString()); in internalScpExec()
/tools/platform-compat/java/android/processor/compat/changeid/
DChangeIdProcessor.java172 Change.Builder builder = new Change.Builder() in createChange() local
182 builder.disabled(); in createChange()
185 builder.loggingOnly(); in createChange()
189 builder.enabledAfter((Integer)(Objects.requireNonNull(value).getValue())); in createChange()
203 builder.description(comment.trim()); in createChange()
207 builder.javaClass(enclosingElementName) in createChange()
/tools/test/connectivity/acts/framework/acts/test_utils/instrumentation/device/command/
Dinstrumentation_command_builder.py144 builder = InstrumentationTestCommandBuilder()
145 builder.add_flag('-w')
146 builder.add_flag('-r')
147 builder.set_runner('androidx.test.runner.AndroidJUnitRunner')
148 return builder
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/
DTestInformation.java47 private TestInformation(Builder builder) { in TestInformation() argument
48 mContext = builder.mContext; in TestInformation()
49 mProperties = builder.mProperties; in TestInformation()
50 mDependenciesFolder = builder.mDependenciesFolder; in TestInformation()
51 mExecutionFiles = builder.mExecutionFiles; in TestInformation()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DInstrumentationPreparer.java145 final StringBuilder builder = new StringBuilder(); in getFailedTestNames() local
155 if (0 < builder.length()) { in getFailedTestNames()
156 builder.append(","); in getFailedTestNames()
158 builder.append(entry.getKey()); in getFailedTestNames()
161 return builder.toString(); in getFailedTestNames()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DStreamUtilTest.java192 StringBuilder builder = new StringBuilder(33 * 1024); in testCopyStreams_partialSuccess() local
194 while (builder.length() < 32 * 1024) { in testCopyStreams_partialSuccess()
195 builder.append(text); in testCopyStreams_partialSuccess()
197 ByteArrayInputStream bais = new ByteArrayInputStream(builder.toString().getBytes()); in testCopyStreams_partialSuccess()
203 assertEquals(builder.toString().substring(1024, 21 * 1024), baos.toString()); in testCopyStreams_partialSuccess()
/tools/tradefederation/core/tests/src/com/android/tradefed/command/
DCommandFileParserTest.java314 Set<CommandLine> expectedSet = ImmutableSet.<CommandLine>builder() in testCommandLineLocation()
321 Set<CommandLine> parsedSet = ImmutableSet.<CommandLine>builder() in testCommandLineLocation()
347 Set<CommandLine> expectedSet = ImmutableSet.<CommandLine>builder() in testCommandLineLocation_withInclude()
356 ImmutableMap.<File, String>builder() in testCommandLineLocation_withInclude()
361 Set<CommandLine> parsedSet = ImmutableSet.<CommandLine>builder() in testCommandLineLocation_withInclude()

123