/test/xts/acts/kernel_lite/kernelcmsis_hal/src/ |
D | cmsis_task_pri_func_test.c | 57 osThreadAttr_t attr; in CmsisThreadGetPriorityFunc001() local 59 attr.priority = osThreadGetPriority(g_priTaskID01); in CmsisThreadGetPriorityFunc001() 60 TEST_ASSERT_EQUAL_INT(g_setPriority, attr.priority); in CmsisThreadGetPriorityFunc001() 67 osThreadAttr_t attr; in CmsisThreadSetPriorityFunc001() local 72 attr.priority = osThreadGetPriority(g_priTaskID01); in CmsisThreadSetPriorityFunc001() 73 TEST_ASSERT_EQUAL_INT(g_setPriority, attr.priority); in CmsisThreadSetPriorityFunc001() 95 osThreadAttr_t attr; variable 97 attr.name = "test"; 98 attr.attr_bits = 0U; 99 attr.cb_mem = NULL; [all …]
|
D | cmsis_task_func_test.c | 119 osThreadAttr_t attr; in CmsisThreadCreat004Func001() local 120 attr.name = "test"; in CmsisThreadCreat004Func001() 121 attr.attr_bits = 0U; in CmsisThreadCreat004Func001() 122 attr.cb_mem = NULL; in CmsisThreadCreat004Func001() 123 attr.cb_size = 0U; in CmsisThreadCreat004Func001() 124 attr.stack_mem = NULL; in CmsisThreadCreat004Func001() 125 attr.stack_size = TEST_TASK_STACK_SIZE; in CmsisThreadCreat004Func001() 126 attr.priority = osPriorityAboveNormal6; in CmsisThreadCreat004Func001() 129 id = osThreadNew((osThreadFunc_t)CmsisThreadCreat004Func002, NULL, &attr); in CmsisThreadCreat004Func001() 197 osThreadAttr_t attr; in CmsisThreadGetNameFunc001() local [all …]
|
D | cmsis_event_func_test.c | 163 osThreadAttr_t attr; variable 164 attr.name = "test"; 165 attr.attr_bits = 0U; 166 attr.cb_mem = NULL; 167 attr.cb_size = 0U; 168 attr.stack_mem = NULL; 169 attr.stack_size = TEST_TASK_STACK_SIZE; 170 attr.priority = osPriorityAboveNormal; 175 id = osThreadNew((osThreadFunc_t)CmsisEventFlagsSetFunc002, NULL, &attr); 218 osThreadAttr_t attr; variable [all …]
|
D | cmsis_mutex_func_test.c | 62 osThreadAttr_t attr; in CmsisMutexGetOwnerFunc001() local 73 attr.name = osThreadGetName(id1); in CmsisMutexGetOwnerFunc001() 74 TEST_ASSERT_EQUAL_STRING("testMutexGetOwner001", attr.name); in CmsisMutexGetOwnerFunc001() 251 osThreadAttr_t attr; variable 252 attr.name = "testMutexGetOwner001"; 253 attr.attr_bits = 0U; 254 attr.cb_mem = NULL; 255 attr.cb_size = 0U; 256 attr.stack_mem = NULL; 257 attr.stack_size = TEST_TASK_STACK_SIZE; [all …]
|
/test/xts/acts/security_lite/huks/liteos_m_adapter/ |
D | hks_cipher_test.c | 62 osThreadAttr_t attr; in HksCipherTestSetUp() local 64 attr.name = "test"; in HksCipherTestSetUp() 65 attr.attr_bits = 0U; in HksCipherTestSetUp() 66 attr.cb_mem = NULL; in HksCipherTestSetUp() 67 attr.cb_size = 0U; in HksCipherTestSetUp() 68 attr.stack_mem = NULL; in HksCipherTestSetUp() 69 attr.stack_size = TEST_TASK_STACK_SIZE; in HksCipherTestSetUp() 70 attr.priority = g_setPriority; in HksCipherTestSetUp() 71 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksCipherTestSetUp() 192 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_others_test.c | 58 osThreadAttr_t attr; in HksOthersTestSetUp() local 60 attr.name = "test"; in HksOthersTestSetUp() 61 attr.attr_bits = 0U; in HksOthersTestSetUp() 62 attr.cb_mem = NULL; in HksOthersTestSetUp() 63 attr.cb_size = 0U; in HksOthersTestSetUp() 64 attr.stack_mem = NULL; in HksOthersTestSetUp() 65 attr.stack_size = TEST_TASK_STACK_SIZE; in HksOthersTestSetUp() 66 attr.priority = g_setPriority; in HksOthersTestSetUp() 67 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksOthersTestSetUp() 163 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_curve25519_test.c | 60 osThreadAttr_t attr; in HksCurve25519TestSetUp() local 62 attr.name = "test"; in HksCurve25519TestSetUp() 63 attr.attr_bits = 0U; in HksCurve25519TestSetUp() 64 attr.cb_mem = NULL; in HksCurve25519TestSetUp() 65 attr.cb_size = 0U; in HksCurve25519TestSetUp() 66 attr.stack_mem = NULL; in HksCurve25519TestSetUp() 67 attr.stack_size = TEST_TASK_STACK_SIZE; in HksCurve25519TestSetUp() 68 attr.priority = g_setPriority; in HksCurve25519TestSetUp() 69 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksCurve25519TestSetUp() 125 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_aes_test.c | 54 osThreadAttr_t attr; in HksAesTestSetUp() local 56 attr.name = "test"; in HksAesTestSetUp() 57 attr.attr_bits = 0U; in HksAesTestSetUp() 58 attr.cb_mem = NULL; in HksAesTestSetUp() 59 attr.cb_size = 0U; in HksAesTestSetUp() 60 attr.stack_mem = NULL; in HksAesTestSetUp() 61 attr.stack_size = TEST_TASK_STACK_SIZE; in HksAesTestSetUp() 62 attr.priority = g_setPriority; in HksAesTestSetUp() 63 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksAesTestSetUp() 126 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_hash_test.c | 67 osThreadAttr_t attr; in HksHashTestSetUp() local 69 attr.name = "test"; in HksHashTestSetUp() 70 attr.attr_bits = 0U; in HksHashTestSetUp() 71 attr.cb_mem = NULL; in HksHashTestSetUp() 72 attr.cb_size = 0U; in HksHashTestSetUp() 73 attr.stack_mem = NULL; in HksHashTestSetUp() 74 attr.stack_size = TEST_TASK_STACK_SIZE; in HksHashTestSetUp() 75 attr.priority = g_setPriority; in HksHashTestSetUp() 76 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksHashTestSetUp() 181 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_generate_random_test.c | 59 osThreadAttr_t attr; in HksGenerateRandomTestSetUp() local 61 attr.name = "test"; in HksGenerateRandomTestSetUp() 62 attr.attr_bits = 0U; in HksGenerateRandomTestSetUp() 63 attr.cb_mem = NULL; in HksGenerateRandomTestSetUp() 64 attr.cb_size = 0U; in HksGenerateRandomTestSetUp() 65 attr.stack_mem = NULL; in HksGenerateRandomTestSetUp() 66 attr.stack_size = TEST_TASK_STACK_SIZE; in HksGenerateRandomTestSetUp() 67 attr.priority = g_setPriority; in HksGenerateRandomTestSetUp() 68 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksGenerateRandomTestSetUp() 123 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_delete_test.c | 87 osThreadAttr_t attr; in HksDeleteTestSetUp() local 89 attr.name = "test"; in HksDeleteTestSetUp() 90 attr.attr_bits = 0U; in HksDeleteTestSetUp() 91 attr.cb_mem = NULL; in HksDeleteTestSetUp() 92 attr.cb_size = 0U; in HksDeleteTestSetUp() 93 attr.stack_mem = NULL; in HksDeleteTestSetUp() 94 attr.stack_size = TEST_TASK_STACK_SIZE; in HksDeleteTestSetUp() 95 attr.priority = g_setPriority; in HksDeleteTestSetUp() 96 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksDeleteTestSetUp() 120 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_exist_test.c | 96 osThreadAttr_t attr; in HksExistTestSetUp() local 98 attr.name = "test"; in HksExistTestSetUp() 99 attr.attr_bits = 0U; in HksExistTestSetUp() 100 attr.cb_mem = NULL; in HksExistTestSetUp() 101 attr.cb_size = 0U; in HksExistTestSetUp() 102 attr.stack_mem = NULL; in HksExistTestSetUp() 103 attr.stack_size = TEST_TASK_STACK_SIZE; in HksExistTestSetUp() 104 attr.priority = g_setPriority; in HksExistTestSetUp() 105 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksExistTestSetUp() 132 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_derive_test.c | 61 osThreadAttr_t attr; in HksDeriveTestSetUp() local 63 attr.name = "test"; in HksDeriveTestSetUp() 64 attr.attr_bits = 0U; in HksDeriveTestSetUp() 65 attr.cb_mem = NULL; in HksDeriveTestSetUp() 66 attr.cb_size = 0U; in HksDeriveTestSetUp() 67 attr.stack_mem = NULL; in HksDeriveTestSetUp() 68 attr.stack_size = TEST_TASK_STACK_SIZE; in HksDeriveTestSetUp() 69 attr.priority = g_setPriority; in HksDeriveTestSetUp() 70 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksDeriveTestSetUp() 289 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_agreement_test.c | 62 osThreadAttr_t attr; in HksAgreementTestSetUp() local 64 attr.name = "test"; in HksAgreementTestSetUp() 65 attr.attr_bits = 0U; in HksAgreementTestSetUp() 66 attr.cb_mem = NULL; in HksAgreementTestSetUp() 67 attr.cb_size = 0U; in HksAgreementTestSetUp() 68 attr.stack_mem = NULL; in HksAgreementTestSetUp() 69 attr.stack_size = TEST_TASK_STACK_SIZE; in HksAgreementTestSetUp() 70 attr.priority = g_setPriority; in HksAgreementTestSetUp() 71 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksAgreementTestSetUp() 228 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_mac_test.c | 84 osThreadAttr_t attr; in HksMacTestSetUp() local 86 attr.name = "test"; in HksMacTestSetUp() 87 attr.attr_bits = 0U; in HksMacTestSetUp() 88 attr.cb_mem = NULL; in HksMacTestSetUp() 89 attr.cb_size = 0U; in HksMacTestSetUp() 90 attr.stack_mem = NULL; in HksMacTestSetUp() 91 attr.stack_size = TEST_TASK_STACK_SIZE; in HksMacTestSetUp() 92 attr.priority = g_setPriority; in HksMacTestSetUp() 93 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksMacTestSetUp() 234 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_generate_key_test.c | 61 osThreadAttr_t attr; in HksGenerateKeyTestSetUp() local 63 attr.name = "test"; in HksGenerateKeyTestSetUp() 64 attr.attr_bits = 0U; in HksGenerateKeyTestSetUp() 65 attr.cb_mem = NULL; in HksGenerateKeyTestSetUp() 66 attr.cb_size = 0U; in HksGenerateKeyTestSetUp() 67 attr.stack_mem = NULL; in HksGenerateKeyTestSetUp() 68 attr.stack_size = TEST_TASK_STACK_SIZE; in HksGenerateKeyTestSetUp() 69 attr.priority = g_setPriority; in HksGenerateKeyTestSetUp() 70 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksGenerateKeyTestSetUp() 166 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_safe_compare_key_test.c | 66 osThreadAttr_t attr; in HksSafeCompareKeyTestSetUp() local 68 attr.name = "test"; in HksSafeCompareKeyTestSetUp() 69 attr.attr_bits = 0U; in HksSafeCompareKeyTestSetUp() 70 attr.cb_mem = NULL; in HksSafeCompareKeyTestSetUp() 71 attr.cb_size = 0U; in HksSafeCompareKeyTestSetUp() 72 attr.stack_mem = NULL; in HksSafeCompareKeyTestSetUp() 73 attr.stack_size = TEST_TASK_STACK_SIZE; in HksSafeCompareKeyTestSetUp() 74 attr.priority = g_setPriority; in HksSafeCompareKeyTestSetUp() 75 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksSafeCompareKeyTestSetUp() 243 osThreadAttr_t attr; in LITE_TEST_CASE() local [all …]
|
D | hks_bn_exp_mod_test.c | 57 osThreadAttr_t attr; in HksBnExpModTestSetUp() local 59 attr.name = "test"; in HksBnExpModTestSetUp() 60 attr.attr_bits = 0U; in HksBnExpModTestSetUp() 61 attr.cb_mem = NULL; in HksBnExpModTestSetUp() 62 attr.cb_size = 0U; in HksBnExpModTestSetUp() 63 attr.stack_mem = NULL; in HksBnExpModTestSetUp() 64 attr.stack_size = TEST_TASK_STACK_SIZE; in HksBnExpModTestSetUp() 65 attr.priority = g_setPriority; in HksBnExpModTestSetUp() 66 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksBnExpModTestSetUp()
|
D | hks_safe_cipher_key_test.c | 62 osThreadAttr_t attr; in HksSafeCipherKeyTestSetUp() local 64 attr.name = "test"; in HksSafeCipherKeyTestSetUp() 65 attr.attr_bits = 0U; in HksSafeCipherKeyTestSetUp() 66 attr.cb_mem = NULL; in HksSafeCipherKeyTestSetUp() 67 attr.cb_size = 0U; in HksSafeCipherKeyTestSetUp() 68 attr.stack_mem = NULL; in HksSafeCipherKeyTestSetUp() 69 attr.stack_size = TEST_TASK_STACK_SIZE; in HksSafeCipherKeyTestSetUp() 70 attr.priority = g_setPriority; in HksSafeCipherKeyTestSetUp() 71 id = osThreadNew((osThreadFunc_t)ExecHksInitialize, NULL, &attr); in HksSafeCipherKeyTestSetUp()
|
/test/xts/acts/kernel_lite/process_posix/src/ |
D | PthreadAttrTest.cpp | 36 pthread_attr_t attr; variable 40 EXPECT_EQ(pthread_attr_init(&attr), 0); 41 EXPECT_EQ(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED), 0) << "> return errno"; 42 EXPECT_EQ(pthread_attr_getdetachstate(&attr, ¶m), 0); 45 ASSERT_EQ(pthread_create(&tid, &attr, ThreadPublic, nullptr), 0) << "> return errno"; 46 EXPECT_EQ(pthread_attr_destroy(&attr), 0); 50 EXPECT_EQ(pthread_attr_init(&attr), 0); 51 EXPECT_EQ(pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_JOINABLE), 0) << "> return errno"; 52 EXPECT_EQ(pthread_attr_getdetachstate(&attr, ¶m), 0); 55 ASSERT_EQ(pthread_create(&tid, &attr, ThreadPublic, nullptr), 0) << "> return errno"; [all …]
|
/test/xts/acts/kernel_lite/sched_posix/src/ |
D | PthreadSchedApiTest.cpp | 43 pthread_attr_t attr; variable 44 ASSERT_EQ(pthread_attr_init(&attr), 0); 47 int rt = pthread_attr_getinheritsched(&attr, &inheritsched); 60 pthread_attr_t attr; variable 61 ASSERT_EQ(pthread_attr_init(&attr), 0); 63 int rt = pthread_attr_setinheritsched(&attr, PTHREAD_INHERIT_SCHED); 66 rt = pthread_attr_getinheritsched(&attr, &inheritsched); 70 rt = pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED); 73 rt = pthread_attr_getinheritsched(&attr, &inheritsched); 85 pthread_attr_t attr; variable [all …]
|
/test/testfwk/arkxtest/jsunit/src/ |
D | event.js | 17 constructor(attr) { argument 18 this.id = attr.id; 19 this.coreContext = attr.context; 41 constructor(attr) { argument 42 this.id = attr.id; 43 this.suiteContext = attr.coreContext; 65 constructor(attr) { argument 66 this.id = attr.id; 67 this.coreContext = attr.coreContext;
|
/test/xts/acts/kernel_lite/ipc_posix/message_queue/ |
D | IpcMqExceptionTest.cpp | 60 struct mq_attr attr = { 0 }; variable 69 attr.mq_msgsize = -1; 70 attr.mq_maxmsg = max; 74 attr.mq_msgsize = max; 75 attr.mq_maxmsg = max; 78 attr.mq_msgsize = 10; 79 attr.mq_maxmsg = -1; 82 attr.mq_msgsize = 10; 83 attr.mq_maxmsg = max + 1; 87 attr.mq_msgsize = 0; [all …]
|
/test/xts/dcts/communication/softbus_standard/transmission/sendstream/ |
D | trans_stream_test.cpp | 85 SessionAttribute attr; variable 86 (void)memset_s(&attr, sizeof(attr), 0, sizeof(attr)); 87 attr.dataType = TYPE_STREAM; 89 DEF_GROUP_ID, &attr); 130 SessionAttribute attr; variable 131 (void)memset_s(&attr, sizeof(attr), 0, sizeof(attr)); 132 attr.dataType = TYPE_STREAM; 133 attr.linkTypeNum = 1; 134 attr.linkType[0] = LINK_TYPE_WIFI_P2P; 137 DEF_GROUP_ID, &attr);
|
/test/xts/device_attest_lite/framework/mini/src/ |
D | attest_framework_client_mini.c | 23 osThreadAttr_t attr = {0}; in StartDevAttestTask() local 24 attr.stack_size = LITEOS_M_STACK_SIZE; in StartDevAttestTask() 25 attr.priority = osPriorityNormal; in StartDevAttestTask() 26 attr.name = ATTEST_TASK_THREAD_NAME; in StartDevAttestTask() 27 if (osThreadNew((osThreadFunc_t)AttestTask, NULL, &attr) == NULL) { in StartDevAttestTask()
|