Home
last modified time | relevance | path

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

1234567891011

/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.java150 static private void assertGreaterThan(String msg, int first, int second) { in assertGreaterThan() argument
151 assertTrue(msg + " Excepted " + first + " to be greater than " + second, first > second); in assertGreaterThan()
155 public DnsParseException(String msg) { in DnsParseException() argument
156 super(msg); in DnsParseException()
196 VerifyCancelCallback(@NonNull String msg, @Nullable CancellationSignal cancel) { in VerifyCancelCallback() argument
197 mMsg = msg; in VerifyCancelCallback()
201 VerifyCancelCallback(@NonNull String msg) { in VerifyCancelCallback() argument
202 this(msg, null); in VerifyCancelCallback()
322 final String msg = "RawQuery " + TEST_DOMAIN; in doTestRawQuery() local
324 final VerifyCancelCallback callback = new VerifyCancelCallback(msg); in doTestRawQuery()
[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/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/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioTestRunner.java58 Message msg = Message.obtain(); in sendMessage() local
59 msg.what = msgType; in sendMessage()
60 msg.obj = str; in sendMessage()
61 msg.arg1 = testId; in sendMessage()
62 mHandler.sendMessage(msg); in sendMessage()
66 public void handleMessage(Message msg) { in handleMessage() argument
67 super.handleMessage(msg); in handleMessage()
68 int testId = msg.arg1; //testId in handleMessage()
69 String str = (String) msg.obj; in handleMessage()
70 switch (msg.what) { in handleMessage()
[all …]
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 …]
DAudioAEC.java285 String msg; in startTest()
287 msg = "Error. AEC not available"; in startTest()
288 sendMessage(AudioTestRunner.TEST_ENDED_ERROR, msg); in startTest()
291 msg = "Warning. AEC not implemented."; in startTest()
292 sendMessage(AudioTestRunner.TEST_ENDED_OK, msg); in startTest()
294 recordTestResults(mMandatory, 0, 0, msg); in startTest()
342 String msg = "Could not create AEC Effect. " + e.toString(); in startTest()
343 recordTestResults(mMandatory, 0, 0, msg); in startTest()
346 sendMessage(AudioTestRunner.TEST_ENDED_ERROR, msg); in startTest()
352 String msg = "Could not create AEC Effect (AEC Null)"; in startTest()
[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/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/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/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/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/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/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/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/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 …]
/cts/tests/tests/jni/libjnitest/
Dmacroized_tests.c190 char *msg; in help_CallBooleanMethod() local
192 jmethodID method = findAppropriateMethod(env, &msg, (callType)ct, in help_CallBooleanMethod()
197 return msg; in help_CallBooleanMethod()
295 char *msg; in help_CallByteMethod() local
297 jmethodID method = findAppropriateMethod(env, &msg, (callType)ct, in help_CallByteMethod()
302 return msg; in help_CallByteMethod()
400 char *msg; in help_CallShortMethod() local
402 jmethodID method = findAppropriateMethod(env, &msg, (callType)ct, in help_CallShortMethod()
407 return msg; in help_CallShortMethod()
505 char *msg; in help_CallCharMethod() local
[all …]
/cts/hostsidetests/security/src/android/security/cts/
DSELinuxHostTest.java985 String msg = "Expected no processes in SELinux domain \"" + domain + "\"" in assertDomainEmpty() local
987 assertNull(msg, procs); in assertDomainEmpty()
1002 String msg = "Expected 1 process in SELinux domain \"" + domain + "\"" in assertDomainOne() local
1004 assertNotNull(msg, procs); in assertDomainOne()
1005 assertEquals(msg, 1, procs.size()); in assertDomainOne()
1007 msg = "Expected executable \"" + executable + "\" in SELinux domain \"" + domain + "\"" in assertDomainOne()
1009 assertEquals(msg, executable, procs.get(0).procTitle); in assertDomainOne()
1011 msg = "Expected 1 process with executable \"" + executable + "\"" in assertDomainOne()
1013 assertNotNull(msg, exeProcs); in assertDomainOne()
1014 assertEquals(msg, 1, exeProcs.size()); in assertDomainOne()
[all …]
/cts/tests/tests/externalservice/src/android/externalservice/cts/
DExternalServiceTest.java176 public void handleMessage(Message msg) { in testBindExternalServiceWithRunningOwn()
177 Log.d(TAG, "Received message: " + msg); in testBindExternalServiceWithRunningOwn()
178 switch (msg.what) { in testBindExternalServiceWithRunningOwn()
180 creatorMsg.copyFrom(msg); in testBindExternalServiceWithRunningOwn()
184 super.handleMessage(msg); in testBindExternalServiceWithRunningOwn()
339 public void handleMessage(Message msg) { in testBindExternalServiceWithZygoteWithRunningOwn()
340 Log.d(TAG, "Received message: " + msg); in testBindExternalServiceWithZygoteWithRunningOwn()
341 switch (msg.what) { in testBindExternalServiceWithZygoteWithRunningOwn()
343 creatorMsg.copyFrom(msg); in testBindExternalServiceWithZygoteWithRunningOwn()
347 super.handleMessage(msg); in testBindExternalServiceWithZygoteWithRunningOwn()
[all …]
/cts/tests/tests/drm/src/android/drm/cts/
DDrmEventTest.java146 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

1234567891011