/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 | 43 String message = "CPU is ARM v7 compatible, so " in assertArmCpuAbiConstants() local 46 assertProperty(message, RO_PRODUCT_CPU_ABI, CpuFeatures.ARMEABI_V7); in assertArmCpuAbiConstants() 47 assertProperty(message, RO_PRODUCT_CPU_ABI2, CpuFeatures.ARMEABI); in assertArmCpuAbiConstants() 48 assertEquals(message, CpuFeatures.ARMEABI_V7, Build.CPU_ABI); in assertArmCpuAbiConstants() 49 assertEquals(message, CpuFeatures.ARMEABI, Build.CPU_ABI2); in assertArmCpuAbiConstants() 51 String message = "CPU is not ARM v7 compatible. " in assertArmCpuAbiConstants() local 54 assertProperty(message, RO_PRODUCT_CPU_ABI, CpuFeatures.ARMEABI); in assertArmCpuAbiConstants() 55 assertNoPropertySet(message, RO_PRODUCT_CPU_ABI2); in assertArmCpuAbiConstants() 56 assertEquals(message, CpuFeatures.ARMEABI, Build.CPU_ABI); in assertArmCpuAbiConstants() 57 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/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/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/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/webkit/src/android/webkit/cts/ |
D | WebChromeClientTest.java | 338 public boolean onJsAlert(WebView view, String url, String message, JsResult result) { in onJsAlert() argument 339 super.onJsAlert(view, url, message, result); in onJsAlert() 341 mMessage = message; in onJsAlert() 347 public boolean onJsConfirm(WebView view, String url, String message, JsResult result) { in onJsConfirm() argument 348 super.onJsConfirm(view, url, message, result); in onJsConfirm() 350 mMessage = message; in onJsConfirm() 356 public boolean onJsPrompt(WebView view, String url, String message, in onJsPrompt() argument 358 super.onJsPrompt(view, url, message, defaultValue, result); in onJsPrompt() 360 mMessage = message; in onJsPrompt() 366 public boolean onJsBeforeUnload(WebView view, String url, String message, JsResult result) { in onJsBeforeUnload() argument [all …]
|
D | ChromeClient.java | 31 public synchronized boolean onConsoleMessage(ConsoleMessage message) { in onConsoleMessage() argument 32 mMessageLevel = message.messageLevel(); in onConsoleMessage()
|
/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/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/suite/pts/lib/commonutil/src/com/android/pts/util/ |
D | PtsException.java | 25 public PtsException(String message) { in PtsException() argument 26 super(message); in PtsException()
|
/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()
|
/cts/tests/src/android/app/cts/ |
D | SearchManagerStubActivity.java | 176 private void assertFalse(String message, boolean value) throws FailException { in assertFalse() argument 177 assertTrue(message, !value); in assertFalse() 180 private void assertTrue(String message, boolean value) throws FailException { in assertTrue() argument 182 throw new FailException(message); in assertTrue()
|
/cts/libs/util/src/android/cts/util/ |
D | PollingCheck.java | 59 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) in check() argument 70 Assert.fail(message.toString()); in check()
|
/cts/tests/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilitySettingsTest.java | 42 String message = "Accessibility settings activity must be launched via Intent " + in testAccessibilitySettingsIntentHandled() local 44 assertTrue(message, !resolvedActivities.isEmpty()); in testAccessibilitySettingsIntentHandled()
|
/cts/tests/tests/holo/src/android/holo/cts/ |
D | LayoutTestActivity.java | 149 String message = path != null in onPostExecute() local 152 Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show(); in onPostExecute() local 153 finishWithResult(success, message); in onPostExecute() 265 String message = mSame 268 finishWithResult(mSame, message); 294 private void finishWithResult(boolean success, String message) { 297 data.putExtra(EXTRA_MESSAGE, message);
|
/cts/tests/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityRecordTest.java | 186 String message = "text has incorrect value"; in assertEqualsText() local 188 TestCase.assertEquals(message, expectedText.size(), receivedText.size()); in assertEqualsText() 195 TestCase.assertEquals(message, expectedTextIterator.next().toString(), in assertEqualsText() 216 String message = "New fields have been added, so add code to test marshaling them."; in assertNoNewNonStaticFieldsAdded() local 217 assertEquals(message, expectedCount, nonStaticFieldCount); in assertNoNewNonStaticFieldsAdded()
|