/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/device/command/ |
D | instrumentation_command_builder_test.py | 28 builder = InstrumentationCommandBuilder() 29 builder.set_manifest_package('package') 30 builder.set_runner('runner') 31 call = builder.build() 35 builder = InstrumentationCommandBuilder() 38 builder.build() 41 builder = InstrumentationCommandBuilder() 44 builder.build() 47 builder = InstrumentationCommandBuilder() 48 builder.set_runner('runner') [all …]
|
D | intent_builder_test.py | 28 builder = IntentBuilder('am start') 29 builder.set_action('android.intent.action.SOME_ACTION') 30 self.assertEqual(builder.build(), 37 builder = IntentBuilder('am broadcast') 38 builder.set_component('android.package.name') 39 self.assertEqual(builder.build(), 46 builder = IntentBuilder('am start') 47 builder.set_component('android.package.name', '.AndroidComponent') 49 builder.build(), 54 builder = IntentBuilder() [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | bt_power_test_utils.py | 103 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/ |
D | ClearcutEventHelper.java | 41 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/test/connectivity/acts/framework/tests/controllers/monsoon_lib/sampling/engine/ |
D | assembly_line_test.py | 96 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/ |
D | LoopSummaryTest.java | 27 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 …]
|
D | MetricSummaryTest.java | 49 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/trebuchet/core/model/src/main/kotlin/trebuchet/model/fragments/ |
D | SliceGroupBuilder.kt | 28 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/core/test_framework/com/android/tradefed/testtype/mobly/ |
D | MoblyYamlResultRecordHandler.java | 35 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
|
D | MoblyYamlResultSummaryHandler.java | 28 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
|
D | MoblyYamlResultUserDataHandler.java | 28 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
|
D | MoblyYamlResultControllerInfoHandler.java | 29 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
|
D | MoblyYamlResultTestNameListHandler.java | 26 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/dexter/slicer/ |
D | instrumentation.cc | 69 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/dexter/dexter/ |
D | experimental.cc | 56 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/contrib/src/com/android/tradefed/targetprep/ |
D | SetPackagesRecentlyUsed.java | 57 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/carrier_settings/java/ |
D | GenDeviceSettings.java | 86 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/apksig/src/test/java/com/android/apksig/internal/util/ |
D | VerityTreeBuilderTest.java | 69 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 generateVerityTreeRootHashFromDummyDataSource() argument 91 byte[] rootHash = builder.generateVerityTreeRootHash( in generateVerityTreeRootHashFromDummyDataSource() 101 try (VerityTreeBuilder builder = new VerityTreeBuilder(null)) { in generateVerityTreeRootHashFromDummyDataSource() argument 107 byte[] rootHash = builder.generateVerityTreeRootHash( in generateVerityTreeRootHashFromDummyDataSource()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/ |
D | ClusterCommandConfigBuilderTest.java | 76 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/test/graphicsbenchmark/performance_tests/deviceside/src/com/android/game/qualification/device/ |
D | MetricsReporter.java | 29 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/tradefederation/core/tests/src/com/android/tradefed/util/proto/ |
D | TestRecordProtoUtilTest.java | 52 TestRecord.Builder builder = TestRecord.newBuilder(); in dumpTestRecord() local 53 builder.setAttemptId(5); in dumpTestRecord() 54 builder.setStatus(TestStatus.ASSUMPTION_FAILURE); in dumpTestRecord() 56 TestRecord record = builder.build(); in dumpTestRecord()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/postprocessor/ |
D | AveragePostProcessorTest.java | 101 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/tests/src/com/android/tradefed/util/ |
D | TableBuilderTest.java | 58 TableBuilder builder = new TableBuilder(5); in testBuildTable() local 59 builder.setOffset(4) in testBuildTable() 76 Assert.assertEquals(TABLE, builder.build()); in testBuildTable()
|
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/ |
D | RemoteFileUtil.java | 219 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/test/connectivity/acts/framework/acts/test_utils/instrumentation/device/command/ |
D | instrumentation_command_builder.py | 119 builder = InstrumentationTestCommandBuilder() 120 builder.add_flag('-w') 121 builder.add_flag('-r') 122 builder.add_flag('--no-isolated-storage') 123 builder.set_runner('androidx.test.runner.AndroidJUnitRunner') 124 return builder
|