Home
last modified time | relevance | path

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

12

/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()
68 GrpcAudioTestHarnessClient.builder().build(); in build_throwsIllegalStateException_hostNotSet()
74 GrpcAudioTestHarnessClient.Builder builder) throws Exception { in build_returnsNonNullInstance_validParameters() argument
75 assertNotNull(builder.build()); in build_returnsNonNullInstance_validParameters()
80 {GrpcAudioTestHarnessClient.builder().setAddress("localhost", /* port= */ 8080)}, in getBuildParameters()
82 GrpcAudioTestHarnessClient.builder() in getBuildParameters()
87 GrpcAudioTestHarnessClient.builder() in getBuildParameters()
138 return GrpcAudioTestHarnessClient.builder() in initMocksAndClient()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/monitor/
DTransitionMonitor.kt34 protected abstract fun getTracePath(builder: FlickerRunResult.Builder): Path? in <lambda>()
53 val builder = FlickerRunResult.Builder() in <lambda>() constant
54 this.save("withTracing", builder) in <lambda>()
55 val path = this.getTracePath(builder) in <lambda>()
DWindowManagerTraceMonitor.kt58 override fun getTracePath(builder: FlickerRunResult.Builder) = builder.wmTraceFile
DLayersTraceMonitor.kt64 override fun getTracePath(builder: FlickerRunResult.Builder) = builder.layersTraceFile in getTracePath()
/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()
DBusinessLogicFactory.java276 StringBuilder builder = new StringBuilder(); in readStream() local
279 builder.append((char) irChar); in readStream()
282 return builder.toString(); in readStream()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DFlickerDSLTest.kt50 val builder = FlickerBuilder(instrumentation) in runFlicker() constant
51 builder.transitions { in runFlicker()
56 val flicker = builder.build() in runFlicker()
147 val builder = FlickerBuilder(instrumentation).apply { in supportDuplicatedTag() constant
155 val flicker = builder.build().execute() in supportDuplicatedTag()
167 val builder = FlickerBuilder(instrumentation).apply { in preventInvalidTagNames() constant
172 builder.build().execute() in preventInvalidTagNames()
183 val builder = FlickerBuilder(instrumentation).apply { in assertCreatedTags() constant
189 val flicker = builder.build() in assertCreatedTags()
216 val builder = FlickerBuilder(instrumentation) in detectCrashedTransition() constant
[all …]
DEventLogSubjectTest.kt30 val builder = FlickerRunResult.Builder() in canDetectFocusChanges() constant
31 builder.eventLog = in canDetectFocusChanges()
36 val result = builder.buildEventLogResult().eventLogSubject in canDetectFocusChanges()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/parser/windowmanager/
DWaitForValidActivityState.kt45 private constructor(builder: Builder) : this(
46 activityName = builder.activityName,
47 windowName = builder.windowName,
48 stackId = builder.stackId,
49 windowingMode = builder.windowingMode,
50 activityType = builder.activityType
/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/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/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
DProfileSuite.java49 public ProfileSuite(Class<?> klass, RunnerBuilder builder) throws InitializationError { in ProfileSuite() argument
50 this(klass, builder, InstrumentationRegistry.getInstrumentation(), in ProfileSuite()
59 public ProfileSuite(Class<?> klass, RunnerBuilder builder, in ProfileSuite() argument
62 super(klass, constructClassRunners(klass, builder, arguments), arguments); in ProfileSuite()
70 Class<?> suite, RunnerBuilder builder, Bundle args) in constructClassRunners() argument
84 runner = builder.runnerForClass(scenario); in constructClassRunners()
105 return new Profile(args).getRunnerSequence(builder.runners(suite, annotation.value())); in constructClassRunners()
DLongevitySuite.java88 public LongevitySuite(Class<?> klass, RunnerBuilder builder) in LongevitySuite() argument
92 builder, in LongevitySuite()
100 public LongevitySuite(Class<?> klass, RunnerBuilder builder, List<Runner> additional) in LongevitySuite() argument
104 builder, in LongevitySuite()
128 RunnerBuilder builder, in LongevitySuite() argument
134 this(klass, constructClassRunners(klass, additional, builder, arguments), arguments); in LongevitySuite()
141 Class<?> suite, List<Runner> additional, RunnerBuilder builder, Bundle args) in constructClassRunners() argument
155 runner = builder.runnerForClass(scenario); in constructClassRunners()
173 List<Runner> runners = builder.runners(suite, annotation.value()); in constructClassRunners()
/platform_testing/libraries/automotive-helpers/notifications-app-helper/src/android/platform/helpers/
DAutoNotificationMockingHelperImpl.java106 Notification.Builder builder = getBuilder(pkg); in postNotifications() local
109 builder.setStyle( in postNotifications()
119 builder.setContentText(String.format(NOTIFICATION_CONTENT_TEXT_FORMAT, i)); in postNotifications()
120 mNotificationManager.notify(i, builder.build()); in postNotifications()
152 Notification.Builder builder = in getBuilder() local
158 builder.setContentIntent( in getBuilder()
165 return builder; in getBuilder()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/monitor/
DScreenRecorderTest.kt68 val builder = FlickerRunResult.Builder() in <lambda>() constant
69 mScreenRecorder.save("test", builder) in <lambda>()
70 val traces = builder.buildAll().mapNotNull { result -> in <lambda>()
DTraceMonitorTest.kt76 val builder = FlickerRunResult.Builder() in captureLayersTrace() constant
77 traceMonitor.save("capturedTrace", builder) in captureLayersTrace()
78 val results = builder.buildAll() in captureLayersTrace()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DTransitionRunner.kt173 val builder = FlickerRunResult.Builder(iteration) in getTaggedFilePath() constant
174 builder.wmTraceFile = wmTraceFile in getTaggedFilePath()
175 builder.layersTraceFile = layersTraceFile in getTaggedFilePath()
177 val result = builder.buildStateResult( in getTaggedFilePath()
DFlickerBlockJUnit4ClassRunner.kt105 val builder = flickerMethod.invokeExplosively(test) as FlickerBuilder in injectFlickerOnTestParams() constant
107 val flicker = builder.apply { in injectFlickerOnTestParams()
/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/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/src/com/android/server/wm/traces/parser/layers/
DLayersTraceParser.kt143 val builder = LayerTraceEntryBuilder(timestamp, layers, hwcBlob, where) in newEntry() constant
144 builder.setOrphanLayerCallback(orphanLayerCallback) in newEntry()
145 return builder.build() in newEntry()
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DINotificationHelper.java171 default void postNotification(Notification.Builder builder) { in postNotification() argument
/platform_testing/libraries/audio-test-harness/client-lib/src/main/java/com/android/media/audiotestharness/client/grpc/
DGrpcAudioTestHarnessClient.java54 public static GrpcAudioTestHarnessClient.Builder builder() { in builder() method in GrpcAudioTestHarnessClient

12