Home
last modified time | relevance | path

Searched refs:message (Results 1 – 25 of 36) sorted by relevance

12

/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/exceptions/
DTestHelperException.java24 public TestHelperException(String message) { in TestHelperException() argument
25 super(message); in TestHelperException()
32 public TestHelperException(String message, Throwable cause) { in TestHelperException() argument
33 super(message, cause); in TestHelperException()
DMappedMultiException.java33 public MappedMultiException(String message, Map<Object, Throwable> throwables) { in MappedMultiException() argument
34 super(message); in MappedMultiException()
36 mMessage = message; in MappedMultiException()
/platform_testing/libraries/tradefed-python-lib/tradefed_py/
Dandroid_device.py48 def _printHostLog(self, message): argument
49 self._logging.write('%s \n' % message)
55 def __init__(self, cmd, message): argument
57 self.message = message
61 ) % (self.cmd, self.message)
/platform_testing/libraries/metrics-helper/tests/src/android/support/test/metricshelper/
DMetricsAssertsTest.java90 final String message = "foo"; in testHasActionLogFalse() local
92 MetricsAsserts.assertHasActionLog(message, mReader, mOpenView); in testHasActionLogFalse()
94 assertEquals(message, e.getMessage()); in testHasActionLogFalse()
106 final String message = "foo"; in testHasVisibleLogFalse() local
108 MetricsAsserts.assertHasVisibilityLog(message, mReader, mActionView, true); in testHasVisibleLogFalse()
110 assertEquals(message, e.getMessage()); in testHasVisibleLogFalse()
122 final String message = "foo"; in testHasHiddenLogFalse() local
124 MetricsAsserts.assertHasVisibilityLog(message, mReader, mOpenView, false); in testHasHiddenLogFalse()
126 assertEquals(message, e.getMessage()); in testHasHiddenLogFalse()
154 final String message = "foo"; in testDoesNotHaveTemplateLog() local
[all …]
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DReportLog.java64 Metric(String source, String message, double value, ResultType type, ResultUnit unit) { in Metric() argument
65 this(source, message, new double[] { value }, type, unit); in Metric()
79 Metric(String source, String message, double[] values, ResultType type, ResultUnit unit) { in Metric() argument
87 int messageLength = message.length(); in Metric()
90 mMessage = message.substring(0, MAX_MESSAGE_LENGTH); in Metric()
92 mMessage = message; in Metric()
144 String message = parser.getAttributeValue(null, MESSAGE_ATTR); in parse() local
161 return new Metric(source, message, values, type, unit); in parse()
177 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument
184 public void addValues(String source, String message, double[] values, ResultType type, in addValues() argument
[all …]
DCommonTestUtils.java30 String message, long timeoutSeconds, BooleanSupplierWithThrow<E> predicate) in waitUntil() argument
40 fail(message); in waitUntil()
DITestResult.java56 void setMessage(String message); in setMessage() argument
DTestResult.java91 public void setMessage(String message) { in setMessage() argument
92 mMessage = message; in setMessage()
/platform_testing/libraries/metrics-helper/src/android/support/test/metricshelper/
DMetricsAsserts.java38 public static void assertHasActionLog(String message, MetricsReader reader, int view) { in assertHasActionLog() argument
40 assertHasActionLog(message, new ReaderQueue(reader), view); in assertHasActionLog()
45 public static void assertHasActionLog(String message, Queue<LogMaker> queue, int view) { in assertHasActionLog() argument
49 assertTrue(message, !logs.isEmpty()); in assertHasActionLog()
55 public static void assertHasVisibilityLog(String message, MetricsReader reader, in assertHasVisibilityLog() argument
58 assertHasVisibilityLog(message, new ReaderQueue(reader), view, visible); in assertHasVisibilityLog()
64 public static void assertHasVisibilityLog(String message, Queue<LogMaker> queue, in assertHasVisibilityLog() argument
69 assertTrue(message, !logs.isEmpty()); in assertHasVisibilityLog()
100 public static void assertHasLog(String message, MetricsReader reader, LogMaker expected) { in assertHasLog() argument
102 assertHasLog(message, new ReaderQueue(reader), expected); in assertHasLog()
[all …]
/platform_testing/libraries/device-collectors/src/main/java/android/device/loggers/
DTestCaseLogger.java32 String message = in testStarted() local
36 Log.d(getTag(), message); in testStarted() local
41 String message = in testFinished() local
45 Log.d(getTag(), message); in testFinished() local
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DLandscapeOrientationRule.java46 String message = "RemoteException when forcing landscape rotation on the device"; in starting()
47 throw new RuntimeException(message, e); in starting()
59 String message = "RemoteException when restoring natural rotation of the device"; in finished()
60 throw new RuntimeException(message, e); in finished()
/platform_testing/libraries/health/runners/longevity/host/src/android/host/test/longevity/listener/
DRunTerminator.java43 protected void print(String message) { in print() argument
44 System.err.println(message); in print()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/assertions/
DFlickerAssertionError.kt34 override val message: String constant
57 cause.cause?.message?.let { append(it) } in <lambda>()
59 cause?.message?.let { append(it) } in <lambda>()
DFlickerSubject.kt97 fun verify(message: String): StandardSubjectBuilder = check(message)
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/parser/
DCondition.kt54 private var message: String = "", variable in com.android.server.wm.traces.parser.Condition
146 message: String, in waitFor()
151 val condition = Condition<T>(message, satisfier, retryLimit, retryIntervalMs) in waitFor()
196 fun <T> waitForResult(message: String, setup: (Condition<T>) -> Any): T? { in waitForResult()
197 val condition = Condition<T>(message) in waitForResult()
/platform_testing/libraries/junitxml/src/com/android/junitxml/
DXmlRunListener.java197 final String message = failure.getMessage(); in formatError() local
198 if (message != null && message.length() > 0) { in formatError()
199 failureOrError.setAttribute(ATTR_FAILURE_MESSAGE, message); in formatError()
262 private void formatSkip(Description description, String message) throws Exception { in formatSkip() argument
266 if (message != null) { in formatSkip()
267 skippedElement.setAttribute(ATTR_SKIPPED_MESSAGE, message); in formatSkip()
/platform_testing/libraries/health/runners/longevity/platform/src/android/platform/test/longevity/
Dprofile.proto22 message Configuration {
32 message Scenario {
40 message ExtraArg {
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/sample/
DSampleTest.java122 String message = String.format("Failed %s", location); in failIfRequested() local
123 Log.d(LOG_TAG, message); in failIfRequested()
124 throw new RuntimeException(message); in failIfRequested()
/platform_testing/libraries/automotive-helpers/utility-helper/src/android/platform/helpers/
DAutoJsonUtility.java442 String message = in throwJsonArrayException() local
447 throw new RuntimeException(message); in throwJsonArrayException()
452 String message = in throwJsonStringException() local
456 throw new RuntimeException(message); in throwJsonStringException()
461 String message = in throwJsonObjectException() local
466 throw new RuntimeException(message); in throwJsonObjectException()
471 String message = in throwUnknownObjectException() local
474 throw new RuntimeException(message); in throwUnknownObjectException()
/platform_testing/libraries/flicker/test/src/com/android/server/wm/flicker/
DFlickerDSLTest.kt176 .that(e.cause?.message) in preventInvalidTagNames()
208 .that(e.message) in detectEmptyResults()
224 .that(e.message) in detectCrashedTransition()
227 .that(e.cause?.message) in detectCrashedTransition()
/platform_testing/libraries/audio-test-harness/proto/
Daudio_test_harness_service.proto37 message CaptureRequest {}
40 message CaptureChunk {
Daudio_device.proto24 message AudioDevice {
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/
DFlickerResult.kt49 Truth.assertWithMessage(error?.message).that(error).isNull() in <lambda>()
/platform_testing/libraries/audio-test-harness/server/src/test/java/com/android/media/audiotestharness/server/service/
DCaptureChunkStreamObserverOutputStreamTests.java286 String message, List<byte[]> expected, List<byte[]> actual) { in assertListsContainSameByteArrays() argument
288 String.format("Failure, Written Data Size does not match Expected: %s", message), in assertListsContainSameByteArrays()
297 "Failure, Payload at Index %d does not match Expected: %s", i, message), in assertListsContainSameByteArrays()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/parser/windowmanager/
DWindowManagerStateHelper.kt305 message: String in waitWindowingModeTopFocus()
306 ): Boolean = waitFor(message) { in waitWindowingModeTopFocus()
313 message: String = "", in waitFor()
315 ): Boolean = Condition.waitFor<Dump>(message, retryLimit = numRetries, in waitFor()

12