/cts/tests/tests/os/src/android/os/cts/ |
D | HandlerTest.java | 52 public boolean handleMessage(Message msg) { in testConstructor() 90 Message msg = mHandler1.obtainMessage(); in testSendMessageAtTime() local 91 assertTrue(mHandler1.sendMessageAtTime(msg, SystemClock.uptimeMillis() + RUNTIME)); in testSendMessageAtTime() 94 assertSame(msg, mHandler1.message); in testSendMessageAtTime() 95 mHandler1.removeMessages(msg.what); in testSendMessageAtTime() 105 Message msg = mHandler.obtainMessage(); in testHasMessagesWithInt() local 106 assertFalse(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt() 107 mHandler.sendMessageAtTime(msg, SystemClock.uptimeMillis() + RUNTIME); in testHasMessagesWithInt() 108 assertTrue(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt() 109 mHandler.removeMessages(msg.what); in testHasMessagesWithInt() [all …]
|
D | MessengerTest.java | 48 public boolean sendMessageAtTime(Message msg, long uptimeMillis) { 50 mMessage = msg; 51 return super.sendMessageAtTime(msg, uptimeMillis); 205 public void handleMessage(Message msg) { in init() 206 MessengerTestHelper.this.handleMessage(msg); in init() 222 Message msg = Message.obtain(); in executeTest() local 223 msg.arg1 = MSG_ARG1; in executeTest() 224 msg.arg2 = MSG_ARG2; in executeTest() 225 msg.replyTo = mTestMessenger; in executeTest() 227 mServiceMessenger.send(msg); in executeTest() [all …]
|
D | MessengerService.java | 31 public void handleMessage(Message msg) { 33 reply.copyFrom(msg); 35 msg.replyTo.send(reply);
|
D | StrictModeTest.java | 57 final String msg = "Detected cleartext network traffic from UID " in testCleartextNetwork() local 65 assertTrue("Expected cleartext to be caught", readLogSince(millis).contains(msg)); in testCleartextNetwork() 75 final String msg = "Detected cleartext network traffic from UID " in testEncryptedNetwork() local 83 assertFalse("Expected encrypted to be ignored", readLogSince(millis).contains(msg)); in testEncryptedNetwork()
|
D | MessageQueueTest.java | 209 public void handleMessage(Message msg) { in testAtFrontOfQueue() 210 super.handleMessage(msg); in testAtFrontOfQueue() 211 if (msg.what == 0) { in testAtFrontOfQueue() 737 public void handleMessage(Message msg) { in testSyncBarriers() 738 super.handleMessage(msg); in testSyncBarriers() 739 if (msg.what == 3) { in testSyncBarriers() 744 } else if (msg.what == 4) { in testSyncBarriers() 748 } else if (msg.what == 8) { in testSyncBarriers() 754 Message msg = mHandler.obtainMessage(what); in testSyncBarriers() 755 msg.setAsynchronous(true); in testSyncBarriers() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | LogTest.java | 31 final String msg = "Test Log operations."; in testLogOperations() local 39 Log.e(TAG, msg); in testLogOperations() 40 Log.e(TAG, msg, tr); in testLogOperations() 41 Log.w(TAG, msg); in testLogOperations() 43 Log.w(TAG, msg, tr); in testLogOperations() 44 Log.i(TAG, msg); in testLogOperations() 45 Log.i(TAG, msg, tr); in testLogOperations() 46 Log.d(TAG, msg); in testLogOperations() 47 Log.d(TAG, msg, tr); in testLogOperations() 48 Log.v(TAG, msg); in testLogOperations() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/ |
D | CameraErrorCollector.java | 125 public boolean expectTrue(String msg, boolean condition) { in expectTrue() argument 127 addMessage(msg); in expectTrue() 143 public <T> boolean expectEquals(String msg, T expected, T actual) { in expectEquals() argument 149 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, expected, in expectEquals() 165 public <T> boolean expectNotEquals(String msg, T expected, T actual) { in expectNotEquals() argument 167 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, expected, in expectNotEquals() 185 public <T> boolean expectEquals(String msg, T[] expected, T[] actual) { in expectEquals() argument 191 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, in expectEquals() 210 public <T> boolean expectNotEquals(String msg, T[] expected, T[] actual) { in expectNotEquals() argument 216 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, in expectNotEquals() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | Logt.java | 22 public static void i(String tag, String msg) { in i() argument 24 Log.i(tag, String.format("[%d] %s", t, msg)); in i() 26 public static void e(String tag, String msg) { in e() argument 28 Log.e(tag, String.format("[%d] %s", t, msg)); in e() 30 public static void w(String tag, String msg) { in w() argument 32 Log.w(tag, String.format("[%d] %s", t, msg)); in w() 34 public static void e(String tag, String msg, Throwable tr) { in e() argument 36 Log.e(tag, String.format("[%d] %s", t, msg), tr); in e()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | MessageTestActivity.java | 196 public void handleMessage(Message msg) { in handleMessage() argument 197 super.handleMessage(msg); in handleMessage() 198 switch (msg.what) { in handleMessage() 200 handleStateChange(msg); in handleMessage() 203 handleMessageRead(msg); in handleMessage() 206 handleMessageWrite(msg); in handleMessage() 209 handleDeviceName(msg); in handleMessage() 212 handleToast(msg); in handleMessage() 218 private void handleStateChange(Message msg) { in handleStateChange() argument 219 int state = msg.arg1; in handleStateChange() [all …]
|
D | ConnectionAccessClientActivity.java | 120 public void handleMessage(Message msg) { in handleMessage() argument 121 super.handleMessage(msg); in handleMessage() 122 switch (msg.what) { in handleMessage() 124 handleStateChange(msg); in handleMessage() 128 handleDeviceName(msg); in handleMessage() 132 handleToast(msg); in handleMessage() 138 private void handleStateChange(Message msg) { in handleStateChange() argument 139 int state = msg.arg1; in handleStateChange() 157 private void handleDeviceName(Message msg) { in handleDeviceName() argument 158 mDeviceAddress = msg.getData().getString(BluetoothChatService.DEVICE_NAME); in handleDeviceName() [all …]
|
D | ConnectionAccessServerActivity.java | 124 public void handleMessage(Message msg) { in handleMessage() argument 125 super.handleMessage(msg); in handleMessage() 126 switch (msg.what) { in handleMessage() 128 handleStateChange(msg); in handleMessage() 132 handleToast(msg); in handleMessage() 138 private void handleStateChange(Message msg) { in handleStateChange() argument 139 int state = msg.arg1; in handleStateChange() 148 private void handleToast(Message msg) { in handleToast() argument 149 String toast = msg.getData().getString(BluetoothChatService.TOAST); in handleToast()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | NativeAudioThread.java | 118 Message msg = Message.obtain(); in run() local 119 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_STARTED; in run() 120 mMessageHandler.sendMessage(msg); in run() 133 Message msg = Message.obtain(); in run() local 134 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_ERROR; in run() 135 mMessageHandler.sendMessage(msg); in run() 243 Message msg = Message.obtain(); in endTest() local 245 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_COMPLETE_ERRORS; in endTest() 247 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_COMPLETE; in endTest() 248 mMessageHandler.sendMessage(msg); in endTest() [all …]
|
D | AudioFrequencyMicActivity.java | 314 Message msg = Message.obtain(); 315 msg.what = TEST_STARTED; 316 mMessageHandler.sendMessage(msg); 357 Message msg = Message.obtain(); 358 msg.what = TEST1_MESSAGE; 359 msg.obj = str; 360 mMessageHandler.sendMessage(msg); 386 Message msg = Message.obtain(); 387 msg.what = TEST_STARTED; 388 mMessageHandler.sendMessage(msg); [all …]
|
/cts/hostsidetests/security/src/android/cts/security/ |
D | SELinuxHostTest.java | 404 String msg = "Expected no processes in SELinux domain \"" + domain + "\"" in assertDomainEmpty() local 406 assertNull(msg, procs); in assertDomainEmpty() 421 String msg = "Expected 1 process in SELinux domain \"" + domain + "\"" in assertDomainOne() local 423 assertNotNull(msg, procs); in assertDomainOne() 424 assertEquals(msg, 1, procs.size()); in assertDomainOne() 426 msg = "Expected executable \"" + executable + "\" in SELinux domain \"" + domain + "\"" in assertDomainOne() 428 assertEquals(msg, executable, procs.get(0).procTitle); in assertDomainOne() 430 msg = "Expected 1 process with executable \"" + executable + "\"" in assertDomainOne() 432 assertNotNull(msg, exeProcs); in assertDomainOne() 433 assertEquals(msg, 1, exeProcs.size()); in assertDomainOne() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/multiprocess/ |
D | ErrorLoggingService.java | 151 public void handleMessage(Message msg) { in handleMessage() argument 152 switch(msg.what) { in handleMessage() 154 if (msg.replyTo == null) { in handleMessage() 158 if (msg.arg1 == DO_EVENT_FILTER) { in handleMessage() 159 mEventWaiters.add(new Pair<Integer, Messenger>(msg.arg2, msg.replyTo)); in handleMessage() 161 mEventWaiters.add(new Pair<Integer, Messenger>(null, msg.replyTo)); in handleMessage() 168 Bundle b = msg.getData(); in handleMessage() 177 Log.e(TAG, "Unknown message type: " + msg.what); in handleMessage() 178 super.handleMessage(msg); in handleMessage() 227 public LogEvent(int id, String msg) { in LogEvent() argument [all …]
|
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/ |
D | ServiceRunnerActivity.java | 53 public void handleMessage(Message msg) { in handleMessage() argument 54 switch (msg.what) { in handleMessage() 70 super.handleMessage(msg); in handleMessage() 86 Message msg = Message.obtain(null, PermissionTestService.MSG_START_TEST); 87 msg.replyTo = mMessenger; 88 mService.send(msg);
|
/cts/tests/tests/hardware/src/android/hardware/consumerir/cts/ |
D | ConsumerIrTest.java | 92 String msg = String.format("Pattern length pattern:%d, actual:%d", in test_timing() local 94 assertTrue(msg, newTime - currentTime >= totalXmitTimeNanos * (1.0 - margin)); in test_timing() 95 assertTrue(msg, newTime - currentTime <= totalXmitTimeNanos * (1.0 + margin)); in test_timing() 101 msg = String.format("Pattern length pattern:%d, actual:%d", in test_timing() 103 assertTrue(msg, newTime - currentTime >= totalXmitTimeNanos * (1.0 - margin)); in test_timing() 104 assertTrue(msg, newTime - currentTime <= totalXmitTimeNanos * (1.0 + margin)); in test_timing()
|
/cts/tests/tests/drm/src/android/drm/cts/ |
D | DrmEventTest.java | 146 boolean isInfo, int id, String msg, HashMap<String, Object> attributes) { in createDrmEvent() argument 151 return new DrmInfoEvent(id, type, msg); in createDrmEvent() 153 return new DrmInfoEvent(id, type, msg, attributes); in createDrmEvent() 158 return new DrmErrorEvent(id, type, msg); in createDrmEvent() 160 return new DrmErrorEvent(id, type, msg, attributes); in createDrmEvent() 183 String msg, boolean isInfo) throws Exception { in checkGetMessageWithEventType() argument 185 DrmEvent event = createDrmEvent(isInfo, 0, msg, null); in checkGetMessageWithEventType() 187 if (msg == null) { in checkGetMessageWithEventType() 190 assertEquals(event.getMessage(), msg); in checkGetMessageWithEventType() local
|
/cts/tests/tests/jni/src/android/jni/cts/ |
D | JniCTest.java | 37 String msg = runAllTests(); in testEverything() local 39 if (msg != null) { in testEverything() 40 fail(msg); in testEverything()
|
D | JniCppTest.java | 37 String msg = runAllTests(); in testEverything() local 39 if (msg != null) { in testEverything() 40 fail(msg); in testEverything()
|
/cts/tests/tests/jni/libjnitest/ |
D | macroized_tests.c | 189 char *msg; in help_CallBooleanMethod() local 191 jmethodID method = findAppropriateMethod(env, &msg, ct, in help_CallBooleanMethod() 195 return msg; in help_CallBooleanMethod() 292 char *msg; in help_CallByteMethod() local 294 jmethodID method = findAppropriateMethod(env, &msg, ct, in help_CallByteMethod() 298 return msg; in help_CallByteMethod() 395 char *msg; in help_CallShortMethod() local 397 jmethodID method = findAppropriateMethod(env, &msg, ct, in help_CallShortMethod() 401 return msg; in help_CallShortMethod() 498 char *msg; in help_CallCharMethod() local [all …]
|
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/ |
D | LauncherCallbackTestsService.java | 81 public void handleMessage(Message msg) { in handleMessage() argument 83 if (msg.obj instanceof Bundle) { in handleMessage() 84 params = (Bundle) (msg.obj); in handleMessage() 87 switch (msg.what) { in handleMessage() 92 msg.replyTo.send(Message.obtain(null, MSG_RESULT, in handleMessage() 100 msg.replyTo.send(Message.obtain(null, MSG_RESULT, in handleMessage() 108 msg.replyTo.send(Message.obtain(null, MSG_RESULT, in handleMessage() 116 msg.replyTo.send(Message.obtain(null, MSG_RESULT, in handleMessage() 121 super.handleMessage(msg); in handleMessage()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CrossProfileWidgetPrimaryUserTest.java | 98 private int sendMessageToCallbacksService(int msg, String packageName) in sendMessageToCallbacksService() argument 103 Message message = Message.obtain(null, msg, params); in sendMessageToCallbacksService() 121 public void handleMessage(Message msg) { in handleMessage() argument 122 if (msg.what == MSG_RESULT) { in handleMessage() 123 result = msg.arg1; in handleMessage() 126 super.handleMessage(msg); in handleMessage()
|
/cts/apps/CameraITS/tools/ |
D | run_all_tests.py | 146 msg = "%s %s/%s [%.1fs]" % (retstr, scene, testname, t1-t0) 147 print msg 148 summary += msg + "\n" 169 msg = "(*) tests are not yet mandated" 170 print msg 171 summary += msg + "\n"
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/ |
D | FakeSensorOperation.java | 85 String msg = "FakeSensorOperation failed"; in doFail() local 86 getStats().addValue(SensorStats.ERROR, msg); in doFail() 87 Assert.fail(msg); in doFail()
|