Home
last modified time | relevance | path

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

12

/platform_testing/host_runners/utils/src/com/android/runner/utils/
DNohupCommandHelper.java54 StringBuilder builder = new StringBuilder(); in executeAdbNohupCommand() local
56 builder.append("nohup"); in executeAdbNohupCommand()
57 builder.append(" "); in executeAdbNohupCommand()
58 builder.append(cmd); in executeAdbNohupCommand()
59 builder.append(" "); in executeAdbNohupCommand()
62 builder.append(String.format(">> %s", logPath)); in executeAdbNohupCommand()
63 builder.append(" "); in executeAdbNohupCommand()
66 builder.append("2>&1"); in executeAdbNohupCommand()
68 String finalCommand = builder.toString(); in executeAdbNohupCommand()
/platform_testing/libraries/audio-test-harness/client-lib/src/test/java/com/android/media/audiotestharness/client/grpc/
DGrpcAudioTestHarnessClientTests.java58 GrpcAudioTestHarnessClient.builder().setAddress(/* hostname= */ null, /* port= */ 8080); in setAddress_throwsNullPointerException_nullHostname()
63 GrpcAudioTestHarnessClient.builder().setAddress("localhost", /* port= */ -123); in setAddress_throwsIllegalArgumentException_badPort()
69 GrpcAudioTestHarnessClient.Builder builder) throws Exception { in build_returnsNonNullInstance_validParameters() argument
70 assertNotNull(builder.build()); in build_returnsNonNullInstance_validParameters()
75 {GrpcAudioTestHarnessClient.builder().setAddress("localhost", /* port= */ 8080)}, in getBuildParameters()
77 GrpcAudioTestHarnessClient.builder() in getBuildParameters()
82 GrpcAudioTestHarnessClient.builder() in getBuildParameters()
133 return GrpcAudioTestHarnessClient.builder() in initMocksAndClient()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DStacktrace.java62 StringBuilder builder = new StringBuilder(); in buildClassMethodName() local
63 builder.append(elements[depth].getClassName()).append("#") in buildClassMethodName()
66 builder.append(":").append(elements[depth].getLineNumber()); in buildClassMethodName()
68 return builder.toString(); in buildClassMethodName()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/
DWaitForValidActivityState.kt41 builder: Builder
43 activityMatcher = builder.activityName,
44 windowIdentifier = builder.windowIdentifier,
45 stackId = builder.stackId,
46 windowingMode = builder.windowingMode,
47 activityType = builder.activityType
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/
DScreenRecordCollector.java178 StringBuilder builder = new StringBuilder(description.getClassName()); in getOutputFile() local
180 builder.append("."); in getOutputFile()
181 builder.append(description.getMethodName()); in getOutputFile()
186 builder.append("-"); in getOutputFile()
187 builder.append(iteration); in getOutputFile()
189 builder.append("-video"); in getOutputFile()
192 builder.append(part); in getOutputFile()
194 builder.append(".mp4"); in getOutputFile()
195 return Paths.get(mDestDir.getAbsolutePath(), builder.toString()).toFile(); in getOutputFile()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DProfileSuite.java51 public ProfileSuite(Class<?> klass, RunnerBuilder builder) throws InitializationError { in ProfileSuite() argument
52 this(klass, builder, InstrumentationRegistry.getInstrumentation(), in ProfileSuite()
61 public ProfileSuite(Class<?> klass, RunnerBuilder builder, in ProfileSuite() argument
64 super(klass, constructClassRunners(klass, builder, arguments), arguments); in ProfileSuite()
72 Class<?> suite, RunnerBuilder builder, Bundle args) in constructClassRunners() argument
86 runner = builder.runnerForClass(scenario); in constructClassRunners()
110 return profile.getRunnerSequence(builder.runners(suite, annotation.value())); in constructClassRunners()
114 suite, new ArrayList<Runner>(), builder, args); in constructClassRunners()
DLongevitySuite.java90 public LongevitySuite(Class<?> klass, RunnerBuilder builder) in LongevitySuite() argument
94 builder, in LongevitySuite()
102 public LongevitySuite(Class<?> klass, RunnerBuilder builder, List<Runner> additional) in LongevitySuite() argument
106 builder, in LongevitySuite()
130 RunnerBuilder builder, in LongevitySuite() argument
136 this(klass, constructClassRunners(klass, additional, builder, arguments), arguments); in LongevitySuite()
143 Class<?> suite, List<Runner> additional, RunnerBuilder builder, Bundle args) in constructClassRunners() argument
157 runner = builder.runnerForClass(scenario); in constructClassRunners()
175 List<Runner> runners = builder.runners(suite, annotation.value()); in constructClassRunners()
/platform_testing/libraries/automotive-helpers/notifications-app-helper/src/android/platform/helpers/
DAutoNotificationMockingHelperImpl.java136 Notification.Builder builder = getBuilder(pkg); in postNotifications() local
139 builder.setStyle( in postNotifications()
149 builder.setContentText(String.format(NOTIFICATION_CONTENT_TEXT_FORMAT, i)); in postNotifications()
152 builder.setGroup(String.format("GROUP_KEY_%d", i)); in postNotifications()
153 mNotificationManager.notify(i, builder.build()); in postNotifications()
200 Notification.Builder builder = in getBuilder() local
206 builder.setContentIntent( in getBuilder()
214 return builder; in getBuilder()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayerTraceEntryBuilderTest.kt43 val builder = in createsEntryWithCorrectClockTime() constant
50 val entry = builder.build() in createsEntryWithCorrectClockTime()
61 val builder = in supportsMissingRealToElapsedTimeOffsetNs() constant
67 val entry = builder.build() in supportsMissingRealToElapsedTimeOffsetNs()
125 val builder = in removesLayersFromOffDisplays() constant
131 val entry = builder.build() in removesLayersFromOffDisplays()
/platform_testing/libraries/health/runners/longevity/host/src/android/host/test/longevity/
DLongevitySuite.java54 public LongevitySuite(Class<?> klass, RunnerBuilder builder) in LongevitySuite() argument
58 builder, in LongevitySuite()
71 public LongevitySuite(Class<?> klass, RunnerBuilder builder, Map<String, String> args) in LongevitySuite() argument
73 this(klass, constructClassRunners(klass, builder, args), args); in LongevitySuite()
89 Class<?> suite, RunnerBuilder builder, Map<String, String> args) in constructClassRunners() argument
101 return modifier.apply(args, builder.runners(suite, annotation.value())); in constructClassRunners()
/platform_testing/utils/esimutility/src/com/android/test/util/esimutility/
DESimUtilityInstrumentation.java62 StringBuilder builder = new StringBuilder(); in updateWithException() local
64 builder.append(System.lineSeparator()); in updateWithException()
65 builder.append(" ").append(element.toString()); in updateWithException()
67 result.putString("sim_utility_exception_stack_trace", builder.toString()); in updateWithException()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/events/
DEventLogSubject.kt46 val builder = in <lambda>() constant
52 val errorMsgBuilder = builder.setMessage("Focus did not change") in <lambda>()
57 builder.setActual(actual) in <lambda>()
66 val errorMsgBuilder = builder.setMessage("Incorrect focus change") in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/io/
DArtifactBuilderTest.kt81 val builder = createDefaultArtifactBuilder(RunStatus.RUN_FAILED) in buildArtifactAvoidDuplicate() constant
82 val artifact1 = builder.build() in buildArtifactAvoidDuplicate()
83 val artifact2 = builder.build() in buildArtifactAvoidDuplicate()
95 val builder = createDefaultArtifactBuilder(RunStatus.RUN_FAILED) in buildTwoArtifactsThatAreDifferentWithSameStatus() constant
96 val artifact1 = builder.build() in buildTwoArtifactsThatAreDifferentWithSameStatus()
97 val artifact2 = builder.build() in buildTwoArtifactsThatAreDifferentWithSameStatus()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/res/testApp/MyApplication/src/main/myapplication.widgets/
DDialogView.java44 Builder builder = new Builder(context); in init() local
45 dialog = builder.setMessage("My message") in init()
/platform_testing/libraries/sts-common-util/sts-sdk/package/sts-test/src/main/java/android/security/sts/
DStsHostSideTestCase.java69 NativePoc.builder() in testWithNativePoc()
105 NativePoc.builder() in testWithMallocDebug()
139 NativePoc.builder() in testWithVulnerableLibrary()
160 NativePoc.builder() in testWithLogMessage()
/platform_testing/libraries/sts-common-util/host-side/tests/src/com/android/sts/common/
DNativePocTest.java130 NativePoc.builder().pocName(POC_NAME).build().run(testCase); in testBasicPocExecution()
148 NativePoc.builder() in testPocExecutionWithArgsAndEnvVarsAndTimeout()
177 NativePoc.builder().pocName(POC_NAME).timeoutSeconds(100).build().run(testCase); in testPocTimeout()
185 NativePoc.builder() in testPocExecutionWithResourceAndAfter()
213 NativePoc.builder().pocName(POC_NAME).build().run(testCase); in test64bit()
223 NativePoc.builder().pocName(POC_NAME).only64().build().run(testCase); in testBadBitness()
234 NativePoc.builder() in testAsserter()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/
DCheckSubject.kt35 val builder = constant
38 builder.setReader(reader)
40 return builder
/platform_testing/libraries/media-helper/src/android/test/mediahelper/
DMediaStoreHelper.java101 ImmutableList.Builder builder = new ImmutableList.Builder(); in getListOfIdsFromMediaStore() local
118 builder.add(cursor.getLong(cursor.getColumnIndex(MediaStore.MediaColumns._ID))); in getListOfIdsFromMediaStore()
125 return builder.build(); in getListOfIdsFromMediaStore()
/platform_testing/tests/codecoverage/hosttest/src/android/platform/test/
DCoverageSmokeTest.java72 CoverageBuilder builder = new CoverageBuilder(); in instrumentationTest_generatesJavaCoverage() local
73 Analyzer analyzer = new Analyzer(execFileLoader.getExecutionDataStore(), builder); in instrumentationTest_generatesJavaCoverage()
96 IBundleCoverage coverage = builder.getBundle("JaCoCo Coverage Report"); in instrumentationTest_generatesJavaCoverage()
/platform_testing/libraries/flag-helpers/junit/src_host/android/platform/test/flag/junit/host/
DDeviceFlags.java147 parsed_flags.Builder builder = parsed_flags.newBuilder(); in getAconfigParsedFlags() local
164 builder.addAllParsedFlag(parsedFlags.getParsedFlagList()); in getAconfigParsedFlags()
169 return builder.build(); in getAconfigParsedFlags()
/platform_testing/libraries/collectors-helper/utilities/src/com/android/helpers/
DMetricUtility.java153 StringBuilder builder = new StringBuilder(); in readStringFromFile() local
155 builder.append(new String(buffer)); in readStringFromFile()
160 return builder.toString(); in readStringFromFile()
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DSystemUiJankTests.java213 Builder builder = new Builder(getInstrumentation().getContext()) in postNotifications() local
215 postNotifications(builder, groupMode, sleepBetweenDuration, maxCount); in postNotifications()
218 private void postNotifications(Builder builder, int groupMode, int sleepBetweenDuration, in postNotifications() argument
222 builder.setGroup("key"); in postNotifications()
231 builder.setGroupSummary(true); in postNotifications()
233 builder.setGroupSummary(false); in postNotifications()
236 builder.setGroup(Integer.toString(icon)); in postNotifications()
238 builder.setContentText(Integer.toHexString(icon)) in postNotifications()
240 builder.setContentIntent( in postNotifications()
246 mNotificationManager.notify(icon, builder.build()); in postNotifications()
[all …]
/platform_testing/libraries/device-collectors/src/main/java/android/device/stressmodes/
DBackgroundTranscodingStressTestMode.java91 VideoTranscodingRequest.Builder builder = in testStarted() local
96 TranscodingRequest request = builder.build(); in testStarted()
/platform_testing/libraries/health/runners/longevity/platform/tests/src/android/platform/test/longevity/
DLongevitySuiteTest.java235 RunnerBuilder builder = mock(RunnerBuilder.class); in testThrowingErrorReportingRunnerCauses() local
240 when(builder.runnerForClass(IterationSuite.TestOne.class)) in testThrowingErrorReportingRunnerCauses()
242 when(builder.runnerForClass(IterationSuite.TestTwo.class)) in testThrowingErrorReportingRunnerCauses()
248 builder, in testThrowingErrorReportingRunnerCauses()
/platform_testing/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/
DStandardAppHelper.kt179 val builder = waitConditionsBuilder.withWindowSurfaceAppeared(expectedWindow) in doWaitShown() constant
180 builder.waitForAndVerify() in doWaitShown()

12