Home
last modified time | relevance | path

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

123

/tools/test/connectivity/acts_tests/acts_contrib/test_utils_tests/instrumentation/device/command/
Dinstrumentation_command_builder_test.py26 builder = InstrumentationCommandBuilder()
27 builder.set_manifest_package('package')
28 builder.set_runner('runner')
29 call = builder.build()
33 builder = InstrumentationCommandBuilder()
36 builder.build()
39 builder = InstrumentationCommandBuilder()
42 builder.build()
45 builder = InstrumentationCommandBuilder()
46 builder.set_runner('runner')
[all …]
/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/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
Dbt_power_test_utils.py105 builder = icb.InstrumentationTestCommandBuilder.default()
106 builder.add_test_class(
108 builder.set_manifest_package("com.google.android.device.power")
109 builder.set_runner("androidx.test.runner.AndroidJUnitRunner")
110 builder.add_key_value_param("cool-off-duration", "0s")
111 builder.add_key_value_param("idle-duration", "0s")
112 builder.add_key_value_param(
114 builder.add_key_value_param("com.android.test.power.receiver.POWER_LEVEL",
116 builder.add_key_value_param(
119 adv_command = builder.build() + ' &'
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DItem.kt294 val builder = StringBuilder() in describe() constant
296 builder.append(if (capitalize) "Constructor" else "constructor") in describe()
298 builder.append(if (capitalize) "Method" else "method") in describe()
300 builder.append(' ') in describe()
302 builder.append(item.returnType().toSimpleType()) in describe()
303 builder.append(' ') in describe()
305 appendMethodSignature(builder, item, includeParameterNames, includeParameterTypes) in describe()
306 return builder.toString() in describe()
315 val builder = StringBuilder() in describe() constant
316 builder.append(if (capitalize) "Parameter" else "parameter") in describe()
[all …]
DTypeItem.kt165 var builder = StringBuilder() in <lambda>() variable
172 typeArguments.add(builder.toString()) in <lambda>()
173 builder = StringBuilder() in <lambda>()
175 builder.append(s) in <lambda>()
180 builder.append(s) in <lambda>()
184 builder.append(s) in <lambda>()
186 else -> builder.append(s) in <lambda>()
190 typeArguments.add(builder.toString()) in <lambda>()
/tools/dexter/slicer/
Dinstrumentation.cc73 ir::Builder builder(code_ir->dex_ir); in BoxValue() local
77 auto boxed_type = builder.GetType(boxed_type_name); in BoxValue()
78 auto ir_proto = builder.GetProto(boxed_type, builder.GetTypeList(param_types)); in BoxValue()
80 auto ir_method_decl = builder.GetMethodDecl( in BoxValue()
81 builder.GetAsciiString("valueOf"), ir_proto, boxed_type); in BoxValue()
123 ir::Builder builder(code_ir->dex_ir); in Apply() local
132 this_argument_type = builder.GetType("Ljava/lang/Object;"); in Apply()
145 auto ir_proto = builder.GetProto(builder.GetType("V"), in Apply()
146 builder.GetTypeList(param_types)); in Apply()
148 auto ir_method_decl = builder.GetMethodDecl( in Apply()
[all …]
/tools/dexter/dexter/
Dexperimental.cc57 ir::Builder builder(dex_ir); in StressWrapInvoke() local
98 auto ir_proto = builder.GetProto(orig_method->prototype->return_type, in StressWrapInvoke()
99 builder.GetTypeList(param_types)); in StressWrapInvoke()
101 auto ir_method_decl = builder.GetMethodDecl(builder.GetAsciiString("WrapInvoke"), in StressWrapInvoke()
103 builder.GetType("LTracer;")); in StressWrapInvoke()
147 ir::Builder builder(dex_ir); in StressEntryHook() local
159 auto ir_proto = builder.GetProto(builder.GetType("V"), in StressEntryHook()
160 builder.GetTypeList(param_types)); in StressEntryHook()
162 auto ir_method_decl = builder.GetMethodDecl(builder.GetAsciiString("OnEntry"), in StressEntryHook()
164 builder.GetType("LTracer;")); in StressEntryHook()
[all …]
/tools/asuite/atest/bazel/runner/src/com/android/tradefed/testtype/bazel/
DBazelTest.java294 ProcessBuilder builder = new ProcessBuilder(command); in createBazelCommand() local
296 builder.directory(workspaceDirectory.toFile()); in createBazelCommand()
298 return builder; in createBazelCommand()
347 ProcessBuilder builder = createBazelCommand(workspaceDirectory, QUERY_ALL_TARGETS); in queryAllTestTargets() local
349 builder.command().add("query"); in queryAllTestTargets()
350 builder.command().add("tests(...)"); in queryAllTestTargets()
351 builder.redirectError(Redirect.appendTo(logFile.toFile())); in queryAllTestTargets()
353 Process queryProcess = startProcess(QUERY_ALL_TARGETS, builder, BAZEL_QUERY_TIMEOUT); in queryAllTestTargets()
375 ProcessBuilder builder = in queryModulesToTestTargets() local
378 builder.command().add("cquery"); in queryModulesToTestTargets()
[all …]
/tools/asuite/atest/bazel/runner/tests/src/com/android/tradefed/testtype/bazel/
DBazelTestTest.java169 builder -> { in malformedProtoResults_runFails()
170 return new FakeBazelTestProcess(builder, mBazelTempPath) { in malformedProtoResults_runFails()
194 builder -> { in malformedBepFile_runFails()
195 return new FakeBazelTestProcess(builder, mBazelTempPath) { in malformedBepFile_runFails()
216 builder -> { in bepFileMissingLastMessage_runFails()
217 return new FakeBazelTestProcess(builder, mBazelTempPath) { in bepFileMissingLastMessage_runFails()
243 builder -> { in targetsNotSet_testsAllTargets()
244 command.addAll(builder.command()); in targetsNotSet_testsAllTargets()
245 return new FakeBazelTestProcess(builder, mBazelTempPath); in targetsNotSet_testsAllTargets()
303 builder -> { in testTimeout_causesTestFailure()
[all …]
/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/carrier_settings/java/
DGenDeviceSettings.java86 MultiCarrierSettings.Builder builder = MultiCarrierSettings.newBuilder(); in generate() local
87 TextFormat.getParser().merge(br, registry, builder); in generate()
88 deviceOverlay = builder.build(); in generate()
112 MultiCarrierSettings.Builder builder = MultiCarrierSettings.newBuilder(); in generate() local
113 TextFormat.getParser().merge(br, registry, builder); in generate()
114 othersSetting = builder; in generate()
138 CarrierSettings.Builder builder = CarrierSettings.newBuilder(); in generate() local
139 TextFormat.getParser().merge(br, registry, builder); in generate()
140 carrierSetting = builder; in generate()
/tools/ndkports/buildSrc/src/main/kotlin/com/android/ndkports/
DAdHocPortTask.kt48 abstract val builder: Property<AdHocBuilder.() -> Unit> constant in com.android.ndkports.AdHocPortTask
50 fun builder(block: AdHocBuilder.() -> Unit) = builder.set(block) in builder() method in com.android.ndkports.AdHocPortTask
60 val builderBlock = builder.get() in builder()
61 val builder = AdHocBuilder( in builder() constant
69 builder.builderBlock() in builder()
71 for (run in builder.runs) { in builder()
DAutoconfPortTask.kt41 val builder = AutoconfBuilder( in autoconf() constant
45 builder.autoconfBlock() in autoconf()
51 ) + builder.cmd, in autoconf()
60 ).apply { putAll(builder.env) }) in autoconf()
DCMakePortTask.kt47 val builder = CMakeBuilder( in configure() constant
51 builder.cmakeBlock() in configure()
67 ) + builder.cmd, buildDirectory, builder.env in configure()
/tools/platform-compat/java/android/processor/compat/changeid/
DChangeIdProcessor.java174 Change.Builder builder = new Change.Builder() in createChange() local
187 builder.disabled(); in createChange()
190 builder.loggingOnly(); in createChange()
193 builder.enabledAfter((Integer)(Objects.requireNonNull(sdkValue).getValue())); in createChange()
196 builder.enabledSince((Integer)(Objects.requireNonNull(sdkValue).getValue())); in createChange()
199 builder.overridable(); in createChange()
213 builder.description(comment.trim()); in createChange()
217 builder.javaClass(enclosingElementName) in createChange()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DVerityTreeBuilderTest.java69 try (VerityTreeBuilder builder = new VerityTreeBuilder(salt)) { in generateRootHash() argument
70 return HexEncoding.encode(builder.generateVerityTreeRootHash( in generateRootHash()
90 try (VerityTreeBuilder builder = new VerityTreeBuilder(null)) { in generateVerityTreeRootHashFromPlaceholderDataSource() argument
91 byte[] rootHash = builder.generateVerityTreeRootHash( in generateVerityTreeRootHashFromPlaceholderDataSource()
101 try (VerityTreeBuilder builder = new VerityTreeBuilder(null)) { in generateVerityTreeRootHashFromPlaceholderDataSource() argument
107 byte[] rootHash = builder.generateVerityTreeRootHash( in generateVerityTreeRootHashFromPlaceholderDataSource()
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/
DAuthorizationList.java129 .<Integer, String> builder()
139 .<Integer, String> builder()
151 .<Integer, String> builder()
396 ImmutableSet.Builder<String> builder = ImmutableSet.builder(); in getPaddingModesAsStrings() local
400 builder.add(KeyProperties.ENCRYPTION_PADDING_NONE); in getPaddingModesAsStrings()
403 builder.add(KeyProperties.ENCRYPTION_PADDING_RSA_OAEP); in getPaddingModesAsStrings()
406 builder.add(KeyProperties.ENCRYPTION_PADDING_RSA_PKCS1); in getPaddingModesAsStrings()
409 builder.add(KeyProperties.SIGNATURE_PADDING_RSA_PKCS1); in getPaddingModesAsStrings()
412 builder.add(KeyProperties.SIGNATURE_PADDING_RSA_PSS); in getPaddingModesAsStrings()
418 return builder.build(); in getPaddingModesAsStrings()
DAsn1Utils.java116 ImmutableSet.Builder<Integer> builder = ImmutableSet.builder(); in getIntegersFromAsn1Set() local
118 builder.add(getIntegerFromAsn1((ASN1Integer) e.nextElement())); in getIntegersFromAsn1Set()
120 return builder.build(); in getIntegersFromAsn1Set()
/tools/netsim/src/core/
Dserver.cc48 grpc::ServerBuilder builder; in RunGrpcServer() local
50 builder.AddListeningPort("0.0.0.0:" + std::to_string(netsim_grpc_port), in RunGrpcServer()
53 builder.RegisterService(frontend_service.get()); in RunGrpcServer()
56 builder.RegisterService(backend_service.get()); in RunGrpcServer()
58 std::unique_ptr<grpc::Server> server(builder.BuildAndStart()); in RunGrpcServer()
/tools/test/connectivity/acts_tests/acts_contrib/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/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/
DMetricsReporter.java29 private ResultDataProto.Result.Builder builder = ResultDataProto.Result.newBuilder(); field in MetricsReporter
36 builder.addEvents(ResultDataProto.Event.newBuilder() in appLaunched()
42 builder.addEvents(ResultDataProto.Event.newBuilder() in startLoop()
52 builder.build().writeTo(outputStream); in end()
/tools/platform-compat/java/com/android/class2nonsdklist/
DClass2NonSdkList.java197 Builder<String, AnnotationHandler> builder = ImmutableMap.builder(); in createAnnotationHandlers() local
203 builder, in createAnnotationHandlers()
211 return addRepeatedAnnotationHandlers(builder, CovariantReturnTypeHandler.ANNOTATION_NAME, in createAnnotationHandlers()
230 Builder<String, AnnotationHandler> builder, in addRepeatedAnnotationHandlers() argument
233 return builder in addRepeatedAnnotationHandlers()
/tools/security/fuzzing/orphans/android_logger/
Dandroid_logger_fuzzer.rs87 let mut builder = FilterBuilder::new(); in get_filter() localVariable
89 builder.filter(name.as_deref(), level.into()); in get_filter()
91 builder.build() in get_filter()
126 &Record::builder()

123