Home
last modified time | relevance | path

Searched refs:msg (Results 1 – 25 of 247) sorted by relevance

12345678910

/cts/tests/tests/os/src/android/os/cts/
DHandlerTest.java54 public boolean handleMessage(Message msg) { in testConstructor()
92 Message msg = mHandler1.obtainMessage(); in testSendMessageAtTime() local
93 assertTrue(mHandler1.sendMessageAtTime(msg, SystemClock.uptimeMillis() + RUNTIME)); in testSendMessageAtTime()
96 assertSame(msg, mHandler1.message); in testSendMessageAtTime()
97 mHandler1.removeMessages(msg.what); in testSendMessageAtTime()
107 Message msg = mHandler.obtainMessage(); in testHasMessagesWithInt() local
108 assertFalse(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt()
109 mHandler.sendMessageAtTime(msg, SystemClock.uptimeMillis() + RUNTIME); in testHasMessagesWithInt()
110 assertTrue(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt()
111 mHandler.removeMessages(msg.what); in testHasMessagesWithInt()
[all …]
DMessengerTest.java46 public boolean sendMessageAtTime(Message msg, long uptimeMillis) {
48 mMessage = msg;
49 return super.sendMessageAtTime(msg, uptimeMillis);
167 public void handleMessage(Message msg) { in init()
168 MessengerTestHelper.this.handleMessage(msg); in init()
184 Message msg = Message.obtain(); in executeTest() local
185 msg.arg1 = MSG_ARG1; in executeTest()
186 msg.arg2 = MSG_ARG2; in executeTest()
187 msg.replyTo = mTestMessenger; in executeTest()
189 mServiceMessenger.send(msg); in executeTest()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/Bug-115739809/
Dpoc.cpp41 static void sanitizeMessage(const InputMessage& msg, InputMessage* outMsg) { in sanitizeMessage() argument
45 outMsg->header.type = msg.header.type; in sanitizeMessage()
48 switch(msg.header.type) { in sanitizeMessage()
51 outMsg->body.key.seq = msg.body.key.seq; in sanitizeMessage()
53 outMsg->body.key.eventTime = msg.body.key.eventTime; in sanitizeMessage()
55 outMsg->body.key.deviceId = msg.body.key.deviceId; in sanitizeMessage()
57 outMsg->body.key.source = msg.body.key.source; in sanitizeMessage()
59 outMsg->body.key.displayId = msg.body.key.displayId; in sanitizeMessage()
61 outMsg->body.key.action = msg.body.key.action; in sanitizeMessage()
63 outMsg->body.key.flags = msg.body.key.flags; in sanitizeMessage()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DDnsResolverTest.java156 static private void assertGreaterThan(String msg, int first, int second) { in assertGreaterThan() argument
157 assertTrue(msg + " Excepted " + first + " to be greater than " + second, first > second); in assertGreaterThan()
161 public DnsParseException(String msg) { in DnsParseException() argument
162 super(msg); in DnsParseException()
201 VerifyCancelCallback(@NonNull String msg, @Nullable CancellationSignal cancel) { in VerifyCancelCallback() argument
202 mMsg = msg; in VerifyCancelCallback()
206 VerifyCancelCallback(@NonNull String msg) { in VerifyCancelCallback() argument
207 this(msg, null); in VerifyCancelCallback()
313 final String msg = "RawQuery " + TEST_DOMAIN; in doTestRawQuery() local
315 final VerifyCancelCallback callback = new VerifyCancelCallback(msg); in doTestRawQuery()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DLogTest.java36 final String msg = "Test Log operations."; in testLogOperations() local
44 Log.e(TAG, msg); in testLogOperations()
45 Log.e(TAG, msg, tr); in testLogOperations()
46 Log.w(TAG, msg); in testLogOperations()
48 Log.w(TAG, msg, tr); in testLogOperations()
49 Log.i(TAG, msg); in testLogOperations()
50 Log.i(TAG, msg, tr); in testLogOperations()
51 Log.d(TAG, msg); in testLogOperations()
52 Log.d(TAG, msg, tr); in testLogOperations()
53 Log.v(TAG, msg); in testLogOperations()
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java123 public boolean expectTrue(String msg, boolean condition) { in expectTrue() argument
125 addMessage(msg); in expectTrue()
141 public <T> boolean expectEquals(String msg, T expected, T actual) { in expectEquals() argument
147 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, expected, in expectEquals()
163 public <T> boolean expectNotEquals(String msg, T expected, T actual) { in expectNotEquals() argument
165 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, expected, in expectNotEquals()
183 public <T> boolean expectEquals(String msg, T[] expected, T[] actual) { in expectEquals() argument
189 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, in expectEquals()
208 public <T> boolean expectNotEquals(String msg, T[] expected, T[] actual) { in expectNotEquals() argument
214 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, in expectNotEquals()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-10229/
Dpoc.c49 struct msghdr msg; in udp_recv() local
64 memset(&msg, 0, sizeof(msg)); in udp_recv()
65 msg.msg_iov = iov; in udp_recv()
66 msg.msg_iovlen = 2; in udp_recv()
71 recvmsg(s, &msg, 0); in udp_recv()
77 memset(&msg, 0, sizeof(msg)); in udp_recv()
78 msg.msg_iov = iov; in udp_recv()
79 msg.msg_iovlen = 1; in udp_recv()
82 recvmsg(s, &msg, MSG_PEEK); // No refrence to buf2 in this call. in udp_recv()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DLogt.java22 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/
DMessageTestActivity.java196 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 …]
DConnectionAccessClientActivity.java120 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 …]
DConnectionAccessServerActivity.java124 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/CameraITS/tests/scene1/
Dtest_reprocess_noise_reduction.py149 msg = "FAST(1): %.2f, OFF(0): %.2f, TOL: %f" % (
151 assert snrs[j][0] < snrs[j][1] + SNR_TOLERANCE, msg
153 msg = "HQ(2): %.2f, FAST(1): %.2f, TOL: %f" % (
155 assert snrs[j][1] < snrs[j][2] + SNR_TOLERANCE, msg
157 msg = "HQ(2): %.2f, OFF(0): %.2f" % (snrs[j][2], snrs[j][0])
158 assert snrs[j][0] < snrs[j][2], msg
161 msg = "MINIMAL(3): %.2f, OFF(0): %.2f, TOL: %f" % (
163 assert snrs[j][0] < snrs[j][3] + SNR_TOLERANCE, msg
165 msg = "MINIMAL(3): %.2f, HQ(2): %.2f, TOL: %f" % (
167 assert snrs[j][3] < snrs[j][2] + SNR_TOLERANCE, msg
[all …]
/cts/tests/tests/externalservice/service/src/android/externalservice/service/
DServiceCreator.java43 public void handleMessage(Message msg) {
44 Log.d(TAG, "Received message: " + msg);
45 switch (msg.what) {
52 boolean useZygote = msg.arg1 == 1;
59 CreatorConnection conn = new CreatorConnection(msg.replyTo);
68 msg.replyTo.send(reply);
74 super.handleMessage(msg);
105 Message msg = in onServiceConnected() local
107 msg.obj = new Messenger(service); in onServiceConnected()
109 mReplyTo.send(msg); in onServiceConnected()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DNativeAudioThread.java122 Message msg = Message.obtain(); in run() local
123 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_STARTED; in run()
124 mMessageHandler.sendMessage(msg); in run()
138 Message msg = Message.obtain(); in run() local
139 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_ERROR; in run()
140 mMessageHandler.sendMessage(msg); in run()
248 Message msg = Message.obtain(); in endTest() local
250 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_COMPLETE_ERRORS; in endTest()
252 msg.what = NATIVE_AUDIO_THREAD_MESSAGE_REC_COMPLETE; in endTest()
253 mMessageHandler.sendMessage(msg); in endTest()
[all …]
/cts/tests/tests/webkit/src/android/webkit/cts/
DTestProcessService.java52 public void handleMessage(Message msg) { in handleMessage() argument
53 if (msg.what == MSG_EXIT_PROCESS) { in handleMessage()
58 if (msg.what != MSG_RUN_TEST) { in handleMessage()
59 throw new AssertionFailedError("Unknown service message " + msg.what); in handleMessage()
62 String testClassName = msg.getData().getString(TEST_CLASS_KEY); in handleMessage()
71 msg.replyTo.send(m); in handleMessage()
79 msg.replyTo.send(Message.obtain(null, REPLY_OK)); in handleMessage()
/cts/tests/camera/src/android/hardware/multiprocess/camera/cts/
DErrorLoggingService.java151 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/apps/CameraITS/tests/scene2/
Dtest_effects.py72 msg = 'Y_range:%.f,%.f THRESH:%d, ' % (
75 failed.append({'effect': EFFECTS[effect], 'error': msg})
79 msg += 'U_range:%.f,%.f THRESH:%d, ' % (
81 msg += 'V_range:%.f,%.f THRESH:%d' % (
85 failed.append({'effect': EFFECTS[effect], 'error': msg})
91 msg = 'U_range:%.f,%.f, ' % (u_min, u_max)
92 msg += 'V_range:%.f,%.f, TOL:%d' % (
96 failed.append({'effect': EFFECTS[effect], 'error': msg})
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityAndWindowManagersState.java568 void assertContainsStack(String msg, int windowingMode, int activityType) { in assertContainsStack() argument
569 assertTrue(msg, mAmState.containsStack(windowingMode, activityType)); in assertContainsStack()
570 assertTrue(msg, mWmState.containsStack(windowingMode, activityType)); in assertContainsStack()
573 void assertDoesNotContainStack(String msg, int windowingMode, int activityType) { in assertDoesNotContainStack() argument
574 assertFalse(msg, mAmState.containsStack(windowingMode, activityType)); in assertDoesNotContainStack()
575 assertFalse(msg, mWmState.containsStack(windowingMode, activityType)); in assertDoesNotContainStack()
578 public void assertFrontStack(String msg, int windowingMode, int activityType) { in assertFrontStack() argument
579 assertFrontStackOnDisplay(msg, windowingMode, activityType, DEFAULT_DISPLAY); in assertFrontStack()
582 void assertFrontStackOnDisplay(String msg, int windowingMode, int activityType, int displayId) { in assertFrontStackOnDisplay() argument
584 assertEquals(msg, windowingMode, in assertFrontStackOnDisplay()
[all …]
/cts/tests/tests/graphics/jni/
DNativeTestHelpers.cpp27 char *msg; in fail() local
28 vasprintf(&msg, format, args); in fail()
34 env->ThrowNew(exClass, msg); in fail()
35 free(msg); in fail()
/cts/tests/tests/selinux/selinuxTargetSdk28/src/android/security/
DSELinuxTargetSdkTest.java40 String msg = "Untrusted apps with targetSdkVersion 28 " + in testAppDomainContext() local
46 appDomainContext(context, msg); in testAppDomainContext()
55 String msg = "Untrusted apps with targetSdkVersion 28 " + in testAppDataContext() local
61 appDataContext(context, msg); in testAppDataContext()
/cts/tests/tests/selinux/selinuxTargetSdk27/src/android/security/
DSELinuxTargetSdkTest.java40 String msg = "Untrusted apps with targetSdkVersion in range 26-27 " + in testAppDomainContext() local
46 appDomainContext(context, msg); in testAppDomainContext()
55 String msg = "Untrusted apps with targetSdkVersion in range 26-27 " + in testAppDataContext() local
61 appDataContext(context, msg); in testAppDataContext()
/cts/tests/tests/selinux/selinuxTargetSdk25/src/android/security/
DSELinuxTargetSdkTest.java37 String msg = "Untrusted apps with targetSdkVersion of 25 and below " + in testAppDomainContext() local
43 appDomainContext(context, msg); in testAppDomainContext()
52 String msg = "Untrusted apps with targetSdkVersion of 25 and below " + in testAppDataContext() local
58 appDataContext(context, msg); in testAppDataContext()
/cts/tests/tests/selinux/selinuxTargetSdkCurrent/src/android/security/
DSELinuxTargetSdkTest.java47 String msg = "Untrusted apps with targetSdkVersion 29 and above " + in testAppDomainContext() local
53 appDomainContext(context, msg); in testAppDomainContext()
62 String msg = "Untrusted apps with targetSdkVersion 29 and above " + in testAppDataContext() local
68 appDataContext(context, msg); in testAppDataContext()
/cts/tests/tests/uidisolation/src/android/uidisolation/cts/
DServiceRunnerActivity.java53 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/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java208 private void logAndUpdate(final String msg) { in logAndUpdate() argument
209 Log.d(TAG, msg); in logAndUpdate()
213 mTextView.append(msg); in logAndUpdate()
569 if (result.msg != null && !result.msg.isEmpty()) {
570 logAndUpdate(result.msg);
581 if (result.msg != null && !result.msg.isEmpty()) {
582 logAndUpdate(result.msg);
590 reflectedIp = InetAddress.getByName(result.msg);
592 logAndUpdate("Failed to parse '" + result.msg + "' as an IP address");
614 public final String msg;
[all …]

12345678910