Home
last modified time | relevance | path

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

12345678910>>...14

/cts/tests/tests/os/src/android/os/cts/
DHandlerTest.java80 public boolean handleMessage(Message msg) { in testConstructor()
121 Message msg = mHandler1.obtainMessage(); in testSendMessageAtTime() local
122 assertTrue(mHandler1.sendMessageAtTime(msg, SystemClock.uptimeMillis() + RUNTIME)); in testSendMessageAtTime()
125 assertSame(msg, mHandler1.message); in testSendMessageAtTime()
126 mHandler1.removeMessages(msg.what); in testSendMessageAtTime()
138 Message msg = mHandler.obtainMessage(); in testHasMessagesWithInt() local
139 assertFalse(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt()
140 mHandler.sendMessageAtTime(msg, SystemClock.uptimeMillis() + RUNTIME); in testHasMessagesWithInt()
141 assertTrue(mHandler.hasMessages(msg.what)); in testHasMessagesWithInt()
142 mHandler.removeMessages(msg.what); in testHasMessagesWithInt()
[all …]
DMessengerTest.java48 public boolean sendMessageAtTime(Message msg, long uptimeMillis) {
50 mMessage = msg;
51 return super.sendMessageAtTime(msg, uptimeMillis);
169 public void handleMessage(Message msg) { in init()
170 MessengerTestHelper.this.handleMessage(msg); in init()
186 Message msg = Message.obtain(); in executeTest() local
187 msg.arg1 = MSG_ARG1; in executeTest()
188 msg.arg2 = MSG_ARG2; in executeTest()
189 msg.replyTo = mTestMessenger; in executeTest()
191 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()
46 outMsg->header.seq = msg.header.seq; in sanitizeMessage()
49 switch(msg.header.type) { in sanitizeMessage()
52 outMsg->body.key.eventId = msg.body.key.eventId; in sanitizeMessage()
54 outMsg->body.key.eventTime = msg.body.key.eventTime; in sanitizeMessage()
56 outMsg->body.key.deviceId = msg.body.key.deviceId; in sanitizeMessage()
58 outMsg->body.key.source = msg.body.key.source; in sanitizeMessage()
60 outMsg->body.key.displayId = msg.body.key.displayId; in sanitizeMessage()
62 outMsg->body.key.hmac = msg.body.key.hmac; in sanitizeMessage()
[all …]
/cts/tests/tests/libcorefileio/src/android/cts/
DLockHoldingService.java111 public void handleMessage(Message msg) { in handleMessage() argument
113 switch (msg.what) { in handleMessage()
115 acquireLockAndThenWaitThenRelease(msg); in handleMessage()
118 acquireLock(msg); in handleMessage()
121 prepareForShutdown(msg); in handleMessage()
124 super.handleMessage(msg); in handleMessage()
142 private void acquireLock(Message msg) throws IOException, in acquireLock() argument
144 Bundle bundle = msg.getData(); in acquireLock()
151 notifyLockHeld(msg); in acquireLock()
158 private void acquireLockAndThenWaitThenRelease(Message msg) in acquireLockAndThenWaitThenRelease() argument
[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/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()
45 public static void v(String tag, String msg) { in v() argument
47 Log.v(tag, String.format("[%d] %s", t, msg)); in v()
/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 …]
/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/tests/app/app/src/android/app/stubs/
DDisplayEventActivity.java92 Message msg = Message.obtain(); in launched() local
93 msg.what = MESSAGE_LAUNCHED; in launched()
94 msg.arg1 = Process.myPid(); in launched()
95 msg.arg2 = Process.myUid(); in launched()
97 mMessenger.send(msg); in launched()
105 Message msg = Message.obtain(); in callback() local
106 msg.what = MESSAGE_CALLBACK; in callback()
107 msg.arg1 = displayId; in callback()
108 msg.arg2 = event; in callback()
109 Log.d(TAG, "Msg " + msg.arg1 + " " + msg.arg2); in callback()
[all …]
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java136 public boolean expectTrue(String msg, boolean condition) { in expectTrue() argument
138 addMessage(msg); in expectTrue()
154 public <T> boolean expectEquals(String msg, T expected, T actual) { in expectEquals() argument
155 return expectEquals(msg, expected, actual, /*mpc*/false); in expectEquals()
169 public <T> boolean expectEquals(String msg, T expected, T actual, boolean mpc) { in expectEquals() argument
178 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, expected, in expectEquals()
195 public <T> boolean expectNotEquals(String msg, T expected, T actual) { in expectNotEquals() argument
197 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, expected, in expectNotEquals()
215 public <T> boolean expectEquals(String msg, T[] expected, T[] actual) { in expectEquals() argument
221 addMessage(String.format("%s (expected = %s, actual = %s) ", msg, in expectEquals()
[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/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAsserts.java76 static void assertReadingContentUriNotAllowed(Uri uri, String msg) { in assertReadingContentUriNotAllowed() argument
79 fail("expected SecurityException reading " + uri + ": " + msg); in assertReadingContentUriNotAllowed()
97 static void assertReadingClipNotAllowed(ClipData clip, String msg) { in assertReadingClipNotAllowed() argument
102 assertReadingContentUriNotAllowed(uri, msg); in assertReadingClipNotAllowed()
107 assertReadingContentUriNotAllowed(uri, msg); in assertReadingClipNotAllowed()
111 assertReadingClipNotAllowed(intentClip, msg); in assertReadingClipNotAllowed()
117 static void assertOpenFileDescriptorModeNotAllowed(Uri uri, String msg, String mode) { in assertOpenFileDescriptorModeNotAllowed() argument
120 fail("expected SecurityException writing " + uri + ": " + msg); in assertOpenFileDescriptorModeNotAllowed()
133 static void assertContentUriNotAllowed(Uri uri, String msg) { in assertContentUriNotAllowed() argument
134 assertReadingContentUriNotAllowed(uri, msg); in assertContentUriNotAllowed()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
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 …]
DMessageTestActivity.java198 public void handleMessage(Message msg) { in handleMessage() argument
199 super.handleMessage(msg); in handleMessage()
200 switch (msg.what) { in handleMessage()
202 handleStateChange(msg); in handleMessage()
205 handleMessageRead(msg); in handleMessage()
208 handleMessageWrite(msg); in handleMessage()
211 handleDeviceName(msg); in handleMessage()
214 handleToast(msg); in handleMessage()
220 private void handleStateChange(Message msg) { in handleStateChange() argument
221 int state = msg.arg1; in handleStateChange()
[all …]
/cts/tests/tests/externalservice/common/src/android/externalservice/common/
DRunningServiceInfo.java93 public void handleMessage(Message msg) { in handleMessage() argument
94 Log.d(mLoggingTag, "Received message: " + msg); in handleMessage()
95 switch (msg.what) { in handleMessage()
97 msg.getData().setClassLoader(RunningServiceInfo.class.getClassLoader()); in handleMessage()
98 mInfo = msg.getData().getParcelable(ServiceMessages.IDENTIFY_INFO); in handleMessage()
102 super.handleMessage(msg); in handleMessage()
113 Message msg = Message.obtain(null, ServiceMessages.MSG_IDENTIFY); in identifyService() local
114 msg.replyTo = local; in identifyService()
117 service.send(msg); in identifyService()
/cts/tests/tests/uirendering/jni/
DNativeTestHelpers.cpp30 char *msg; in fail() local
31 vasprintf(&msg, format, args); in fail()
41 env->ThrowNew(exClass, msg); in fail()
42 free(msg); in fail()
/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/hostsidetests/graphics/gpuprofiling/app/
Dandroid_graphics_cts_GpuCounters.cpp30 #define ALOGI(msg, ...) \ argument
31 __android_log_print(ANDROID_LOG_INFO, LOG_TAG, (msg), __VA_ARGS__)
32 #define ALOGE(msg, ...) \ argument
33 __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, (msg), __VA_ARGS__)
34 #define ALOGD(msg, ...) \ argument
35 __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, (msg), __VA_ARGS__)
/cts/tests/tests/bionic_app/
Dbionic_app_jni.cpp40 char msg[256]; in Java_com_android_bionic_1app_BionicAppTest_callMainDlsym() local
41 snprintf(msg, sizeof(msg), "dlsym(RTLD_DEFAULT, \"main\") was nullptr: %s", dlerror()); in Java_com_android_bionic_1app_BionicAppTest_callMainDlsym()
42 android_set_abort_message(msg); in Java_com_android_bionic_1app_BionicAppTest_callMainDlsym()
/cts/tests/tests/selinux/selinuxTargetSdk25/src/android/security/
DSELinuxTargetSdkTest.java44 String msg = "Untrusted apps with targetSdkVersion of 25 and below " + in testAppDomainContext() local
50 appDomainContext(context, msg); in testAppDomainContext()
59 String msg = "Untrusted apps with targetSdkVersion of 25 and below " + in testAppDataContext() local
65 appDataContext(context, msg); in testAppDataContext()
/cts/tests/surfacecontrol/jni/
DjniAssert.h27 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/view/jni/
DjniAssert.h27 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/media/jni/
DNativeCodecTestBase.h35 std::string msg = StringFormat("%s with error %d \n", str, val); \
36 ALOGE("%s", msg.c_str()); \
37 mErrorLogs.append((msg)); \
42 #define RETURN_IF_TRUE(cond, msg) \ argument
44 ALOGE("%s", (msg).c_str()); \
45 mErrorLogs.append((msg)).append("\n"); \
49 #define RETURN_IF_FALSE(cond, msg) \ argument
51 ALOGE("%s", (msg).c_str()); \
52 mErrorLogs.append((msg)).append("\n"); \
56 #define RETURN_IF_NULL(var, msg) \ argument
[all …]
/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()

12345678910>>...14