/cts/tests/tests/os/src/android/os/cts/ |
D | MessageTest.java | 80 Message message = Message.obtain(); in testObtain() local 81 assertNotNull(message); in testObtain() 82 assertEquals(0, message.what); in testObtain() 83 assertEquals(0, message.arg1); in testObtain() 84 assertEquals(0, message.arg2); in testObtain() 85 assertNull(message.obj); in testObtain() 86 assertNull(message.replyTo); in testObtain() 87 assertNull(message.getTarget()); in testObtain() 88 assertNull(message.getCallback()); in testObtain() 89 assertNull(message.peekData()); in testObtain() [all …]
|
D | BuildTest.java | 47 String message = "CPU is ARM v7 compatible, so " in assertArmCpuAbiConstants() local 50 assertEquals(message, CpuFeatures.ARMEABI_V7, Build.CPU_ABI); in assertArmCpuAbiConstants() 52 assertEquals(message, cpuAbi2, Build.CPU_ABI2); in assertArmCpuAbiConstants() 54 assertNoPropertySet(message, RO_PRODUCT_CPU_ABI2); in assertArmCpuAbiConstants() 55 assertEquals(message, Build.UNKNOWN, Build.CPU_ABI2); in assertArmCpuAbiConstants() 60 String message = "CPU is x86 but ARM v7 compatible, so " in assertArmCpuAbiConstants() local 64 assertEquals(message, CpuFeatures.X86ABI, Build.CPU_ABI); in assertArmCpuAbiConstants() 66 assertEquals(message, cpuAbi2, Build.CPU_ABI2); in assertArmCpuAbiConstants() 68 assertNoPropertySet(message, RO_PRODUCT_CPU_ABI2); in assertArmCpuAbiConstants() 69 assertEquals(message, Build.UNKNOWN, Build.CPU_ABI2); in assertArmCpuAbiConstants() [all …]
|
D | HandlerTest.java | 83 assertNull(mHandler1.message); in testSendMessageAtTime() 85 assertSame(msg, mHandler1.message); in testSendMessageAtTime() 122 assertNull(mHandler1.message); in testRemoveCallbacksAndMessages() 133 assertNull(mHandler1.message); in testRemoveCallbacksAndMessages() 226 assertNull(mHandler1.message); in testRemoveMessages() 249 assertNull(mHandler1.message); in testRemoveMessagesWithObject() 271 assertSame(msg, mHandler1.message); in testSendMessage() 343 assertSame(msg, mHandler1.message); in testSendMessageAtFrontOfQueue() 370 assertNull(mHandler1.message); in testSendMessageDelayed() 372 assertSame(msg, mHandler1.message); in testSendMessageDelayed() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
D | BaseSensorSemiAutomatedTestActivity.java | 81 String message = ""; in run() local 88 message = e.getMessage(); in run() 91 message = e.getMessage(); in run() 93 setTestResult(testResult, message); in run() 163 private void setTestResult(SensorTestResult testResult, String message) { in setTestResult() argument 168 TestResult.setPassedResult(this, this.getTestId(), message); in setTestResult() 172 TestResult.setPassedResult(this, this.getTestId(), message); in setTestResult() 176 TestResult.setFailedResult(this, this.getTestId(), message); in setTestResult() 181 appendText(message, textColor); in setTestResult() 194 public TextAppender(TextView textView, String message, int textColor) { in TextAppender() argument [all …]
|
D | AccelerometerMeasurementTestActivity.java | 89 String message, in delayedVerifyMeasurements() argument 91 appendText(String.format("\n%s.", message)); in delayedVerifyMeasurements() 103 private void verifyMeasurements(String message, double ... expectations) throws Throwable { in verifyMeasurements() argument 104 appendText(String.format("\n%s.", message)); in verifyMeasurements()
|
/cts/libs/vogar-expect/src/vogar/util/ |
D | Log.java | 35 public static void warn(String message) { in warn() argument 37 sLogoutput.warn(message); in warn() 44 public static void warn(String message, List<String> list) { in warn() argument 46 sLogoutput.warn(message, list); in warn() 56 public static void info(String message, Throwable throwable) { in info() argument 58 sLogoutput.info(message, throwable); in info()
|
D | LogOutput.java | 25 void warn(String message); in warn() argument 30 void warn(String message, List<String> list); in warn() argument 34 void info(String message, Throwable throwable); in info() argument
|
/cts/libs/commonutil/src/com/android/cts/util/ |
D | ReportLog.java | 46 public void printArray(String message, double[] values, ResultType type, in printArray() argument 48 doPrintArray(message, values, type, unit); in printArray() 54 public void printValue(String message, double value, ResultType type, in printValue() argument 57 doPrintArray(message, vals, type, unit); in printValue() 60 private void doPrintArray(String message, double[] values, ResultType type, in doPrintArray() argument 65 builder.append(getClassMethodNames(mDepth + 1, true) + LOG_ELEM_SEPARATOR + message + in doPrintArray() 88 public void printSummaryWithTarget(String message, double target, double value, in printSummaryWithTarget() argument 90 mSummary = message + LOG_ELEM_SEPARATOR + target + LOG_ELEM_SEPARATOR + type.getXmlString() in printSummaryWithTarget() 112 public void printSummary(String message, double value, ResultType type, in printSummary() argument 114 mSummary = message + LOG_ELEM_SEPARATOR + " " + LOG_ELEM_SEPARATOR + type.getXmlString() + in printSummary()
|
D | CtsException.java | 25 public CtsException(String message) { in CtsException() argument 26 super(message); in CtsException()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | IntentFilter_MalformedMimeTypeExceptionTest.java | 42 final String message = "testException"; in testMalformedMimeTypeException() local 44 message); in testMalformedMimeTypeException() 46 assertEquals(message, mMalformedMimeTypeException.getMessage()); in testMalformedMimeTypeException() 52 assertEquals(message, e.getMessage()); in testMalformedMimeTypeException()
|
/cts/tools/vm-tests-tf/src/dot/junit/ |
D | DxAbstractMain.java | 25 static public void assertEquals(String message, int expected, int actual) { in assertEquals() argument 26 …ctual) throw new RuntimeException("AssertionFailedError: not equals: " + message + " Expected " + … in assertEquals() 62 static public void fail(String message) { in fail() argument 63 throw new RuntimeException("AssertionFailedError msg:"+message); in fail()
|
/cts/suite/cts/deviceTests/browserbench/src/com/android/cts/browser/ |
D | BrowserBenchTest.java | 93 String message = matchResult.group(3); in setUp() 94 Log.i(TAG, message + ":" + score); in setUp() 95 if (!mResultsMap.containsKey(message)) { in setUp() 96 mResultsMap.put(message, new double[mNumberRepeat]); in setUp() 98 double[] scores = mResultsMap.get(message); in setUp() 157 String message = entry.getKey(); in doTest() local 161 getReportLog().printArray(message, scores, mTypeFinal, mUnitFinal); in doTest() 162 getReportLog().printSummary(message, Stat.getAverage(scores), mTypeFinal, in doTest() 165 getReportLog().printArray(message, scores, mTypeNonFinal, mUnitNonFinal); in doTest()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | WindowManager_BadTokenExceptionTest.java | 32 String message = "WindowManager_BadTokenExceptionTest"; in testBadTokenException() local 33 badTokenException = new BadTokenException(message); in testBadTokenException() 39 assertEquals(message, e.getMessage()); in testBadTokenException()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | SensorManagerTestVerifier.java | 119 String message = SensorCtsHelper.formatAssertionMessage( in registerListener() local 123 Assert.assertTrue(message, result); in registerListener() 163 String message = SensorCtsHelper.formatAssertionMessage( in startFlush() local 167 Assert.assertTrue(message, mSensorManager.flush(mEventListener)); in startFlush() 231 String message = SensorCtsHelper.formatAssertionMessage( in waitForFlushComplete() local 235 Assert.assertTrue(message, latch.await(WAIT_TIMEOUT_IN_SECONDS, TimeUnit.SECONDS)); in waitForFlushComplete() 246 String message = SensorCtsHelper.formatAssertionMessage( in waitForEvents() local 253 Assert.assertTrue(message, awaitCompleted); in waitForEvents()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManager_NameNotFoundExceptionTest.java | 34 final String message = "test"; in testNameNotFoundException() local 35 exception = new PackageManager.NameNotFoundException(message); in testNameNotFoundException() 39 assertEquals(message, e.getMessage()); in testNameNotFoundException()
|
/cts/tests/tests/app/src/android/app/cts/ |
D | PendingIntent_CanceledExceptionTest.java | 33 final String message = "test"; in testConstructor() local 34 canceledException = new PendingIntent.CanceledException(message); in testConstructor() 38 assertEquals(message, canceledException.getMessage()); in testConstructor()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebChromeClientTest.java | 358 public boolean onJsAlert(WebView view, String url, String message, JsResult result) { in onJsAlert() argument 359 super.onJsAlert(view, url, message, result); in onJsAlert() 361 mMessage = message; in onJsAlert() 367 public boolean onJsConfirm(WebView view, String url, String message, JsResult result) { in onJsConfirm() argument 368 super.onJsConfirm(view, url, message, result); in onJsConfirm() 370 mMessage = message; in onJsConfirm() 376 public boolean onJsPrompt(WebView view, String url, String message, in onJsPrompt() argument 378 super.onJsPrompt(view, url, message, defaultValue, result); in onJsPrompt() 380 mMessage = message; in onJsPrompt() 386 public boolean onJsBeforeUnload(WebView view, String url, String message, JsResult result) { in onJsBeforeUnload() argument [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | PositionTesterContextMenuListener.java | 92 private boolean areEqual(String message, int expected, int actual) { in areEqual() argument 94 errorMessage = String.format(message + " (%d vs %d", expected, actual); in areEqual() 100 private boolean isTrue(String message, boolean value) { in isTrue() argument 102 errorMessage = message; in isTrue()
|
D | RemoteViews_ActionExceptionTest.java | 29 String message = "This is exception message"; in testConstructor() local 30 new RemoteViews.ActionException(message); in testConstructor()
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_LinuxRngTest.cpp | 32 char *message; in throwIOException() local 33 vasprintf(&message, format, ap); in throwIOException() 38 env->ThrowNew(cls, message); in throwIOException() 40 free(message); in throwIOException()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/tech/ |
D | NfcUtils.java | 27 public static boolean areMessagesEqual(NdefMessage message, NdefMessage otherMessage) { in areMessagesEqual() argument 28 return message != null && otherMessage != null in areMessagesEqual() 29 && areRecordArraysEqual(message.getRecords(), otherMessage.getRecords()); in areMessagesEqual()
|
D | NdefTagTester.java | 80 NdefMessage message = readMessage(tag); in writeTag() 81 NdefRecord[] records = message.getRecords(); in writeTag() 94 NfcUtils.areMessagesEqual(message, expectedMessage)); in writeTag() 107 private void writeMessage(Tag tag, NdefMessage message) throws IOException, FormatException { 112 ndef.writeNdefMessage(message);
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | GeeTestResultParser.java | 269 String message = null; in parse() local 274 message = line.substring(Prefixes.START_TEST_MARKER.length()).trim(); in parse() 275 processTestStartedTag(message); in parse() 279 message = line.substring(Prefixes.OK_TEST_MARKER.length()).trim(); in parse() 280 processOKTag(message); in parse() 285 message = line.substring(Prefixes.FAILED_TEST_MARKER.length()).trim(); in parse() 286 processFailedTag(message); in parse() 292 message = line.substring(Prefixes.TEST_RUN_MARKER.length()).trim(); in parse() 293 processRunStartedTag(message); in parse() 299 message = line.substring(Prefixes.TEST_RUN_MARKER.length()).trim(); in parse() [all …]
|
/cts/apps/cts-usb-accessory/ |
D | cts-usb-accessory.c | 38 char message[50]; in message_thread() local 52 sprintf(message, "Message from Android accessory #%d", num++); in message_thread() 53 printf("[SENT] %s\n", message); in message_thread() 55 usb_device_bulk_transfer(sDevice, endpoints[1], message, strlen(message), 1000); in message_thread()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | PrintStreamPrinterTest.java | 47 final String message = "testMessageOfPrintStreamPrinter"; in testPrintln() local 52 printStreamPrinter.println(message); in testPrintln() 61 assertEquals(message, mLine); in testPrintln()
|