/cts/tests/tests/os/src/android/os/cts/ |
D | HandlerTest.java | 54 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 …]
|
D | MessengerTest.java | 46 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/ |
D | poc.cpp | 41 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/util/src/android/util/cts/ |
D | LogTest.java | 36 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/ |
D | AudioTestRunner.java | 58 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/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/hostsidetests/securitybulletin/securityPatch/CVE-2016-10229/ |
D | poc.c | 49 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/CameraITS/tests/scene1_1/ |
D | test_ae_precapture_trigger.py | 87 msg = 'AE state after manual request %d: %d' % (i, state) 88 logging.debug('%s', msg) 89 e_msg = msg + ' AE_INACTIVE: %d' % AE_INACTIVE 98 msg = 'AE state after auto request: %d' % state 99 logging.debug('%s', msg) 100 e_msg = msg + ' AE_SEARCHING: %d, AE_CONVERGED: %d' % ( 109 msg = 'AE state after auto request with precapture trigger: %d' % state 110 logging.debug('%s', msg) 111 e_msg = msg + ' AE_SEARCHING: %d, AE_CONVERGED: %d, AE_PRECAPTURE: %d' % ( 121 msg = 'AE state after auto request: %d' % state [all …]
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraErrorCollector.java | 123 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/externalservice/service/src/android/externalservice/service/ |
D | ServiceCreator.java | 43 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/bluetooth/ |
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 | 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 …]
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
D | Asserts.java | 76 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/tests/tests/webkit/src/android/webkit/cts/ |
D | TestProcessService.java | 52 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/tests/graphics/jni/ |
D | NativeTestHelpers.cpp | 27 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/uirendering/jni/ |
D | NativeTestHelpers.cpp | 30 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/hostsidetests/graphics/gpuprofiling/app/ |
D | android_graphics_cts_GpuCounters.cpp | 30 #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/selinux/selinuxTargetSdk27/src/android/security/ |
D | SELinuxTargetSdkTest.java | 40 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/selinuxTargetSdk28/src/android/security/ |
D | SELinuxTargetSdkTest.java | 40 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/selinuxTargetSdk25/src/android/security/ |
D | SELinuxTargetSdkTest.java | 44 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/tests/view/jni/ |
D | jniAssert.h | 27 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/bionic_app/ |
D | bionic_app_jni.cpp | 40 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/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowManagerStateHelper.java | 346 public void waitForFocusedActivity(final String msg, final ComponentName activityName) { in waitForFocusedActivity() argument 348 waitFor(msg, wmState -> Objects.equals(activityComponentName, wmState.getFocusedActivity()) in waitForFocusedActivity() 546 public void assertContainsStack(String msg, int windowingMode, int activityType) { 547 assertTrue(msg, containsRootTasks(windowingMode, activityType)); 550 public void assertDoesNotContainStack(String msg, int windowingMode, int activityType) { 551 assertFalse(msg, containsRootTasks(windowingMode, activityType)); 554 public void assertFrontStack(String msg, int windowingMode, int activityType) { 555 assertFrontStackOnDisplay(msg, windowingMode, activityType, DEFAULT_DISPLAY); 558 public void assertFrontStackOnDisplay(String msg, int windowingMode, int activityType, 561 assertEquals(msg, windowingMode, getFrontRootTaskWindowingMode(displayId)); [all …]
|
/cts/tests/tests/selinux/selinuxTargetSdkCurrent/src/android/security/ |
D | SELinuxTargetSdkTest.java | 54 String msg = "Untrusted apps with targetSdkVersion 29 and above " + in testAppDomainContext() local 60 appDomainContext(context, msg); in testAppDomainContext() 69 String msg = "Untrusted apps with targetSdkVersion 29 and above " + in testAppDataContext() local 75 appDataContext(context, msg); in testAppDataContext()
|
/cts/tests/tests/selinux/selinuxTargetSdk29/src/android/security/ |
D | SELinuxTargetSdkTest.java | 64 String msg = "Untrusted apps with targetSdkVersion 29 " + in testAppDomainContext() local 70 appDomainContext(context, msg); in testAppDomainContext() 79 String msg = "Untrusted apps with targetSdkVersion 29 " + in testAppDataContext() local 85 appDataContext(context, msg); in testAppDataContext()
|