/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/ets/test/ |
D | ComplexNdk.test.ets | 504 let resultValue = 5; 506 expect(result).assertEqual(resultValue); 522 let resultValue = 5; 524 expect(result).assertEqual(resultValue); 540 let resultValue = 5; 542 expect(result).assertEqual(resultValue); 558 let resultValue = 5; 560 expect(result).assertEqual(resultValue); 576 let resultValue = 5; 578 expect(result).assertEqual(resultValue); [all …]
|
D | GrpNdk.test.ets | 64 let resultValue = 1; 66 expect(result).assertEqual(resultValue); 80 let resultValue = 0; 82 expect(result).assertEqual(resultValue); 96 let resultValue = 1; 98 expect(result).assertEqual(resultValue);
|
D | DirentNdk.test.ets | 141 let resultValue = 0; 143 expect(result).assertEqual(resultValue); 157 let resultValue = 0; 159 expect(result).assertEqual(resultValue);
|
D | UnistdNdk.test.ets | 835 let resultValue = 0; 837 expect(result).assertEqual(resultValue); 1024 let resultValue = 0; 1026 expect(result).assertEqual(resultValue); 1041 let resultValue = 0; 1043 expect(result).assertEqual(resultValue); 1057 let resultValue = 1; 1059 expect(result).assertEqual(resultValue); 1073 let resultValue = 1; 1075 expect(result).assertEqual(resultValue); [all …]
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
D | resolvndk.cpp | 44 int resultValue = res_init(); in ResInit() local 46 napi_create_int32(env, resultValue, &result); in ResInit() 65 int resultValue = FAILD; in ResMkquery() local 67 …resultValue = res_mkquery(op, dname, cla, T_ANY + PARAM_1, data, PARAM_0, nullptr, nullptr, PARAM_… in ResMkquery() 71 resultValue = RETURN_0; in ResMkquery() 76 napi_create_int32(env, resultValue, &result); in ResMkquery() 94 int resultValue = FAILD; in ResQuery() local 96 resultValue = res_query(dname, cla, type, buf, sizeof(buf)); in ResQuery() 100 resultValue = RETURN_0; in ResQuery() 105 napi_create_int32(env, resultValue, &result); in ResQuery() [all …]
|
D | complexndk.cpp | 701 double resultValue = cabs(param); in Cabs() local 703 napi_create_double(env, resultValue, &result); in Cabs() 716 float resultValue = cabsf(param); in Cabsf() local 718 napi_create_double(env, resultValue, &result); in Cabsf() 731 double resultValue = cabsl(param); in Cabsl() local 733 napi_create_double(env, resultValue, &result); in Cabsl() 746 double complex resultValue = cacos(param); in Cacos() local 751 end = creal(resultValue); in Cacos() 755 end = cimag(resultValue); in Cacos() 772 double complex resultValue = cacosl(param); in Cacosl() local [all …]
|
D | grpndk.cpp | 121 int resultValue = FAIL; in Getgrgid() local 123 resultValue = SUCCESS; in Getgrgid() 126 napi_create_int32(env, resultValue, &result); in Getgrgid() 137 int resultValue = getgrgid_r(gid, &grpStorage, buf, sizeof(buf), &grp); in Getgrgid_r() local 139 napi_create_int32(env, resultValue, &result); in Getgrgid_r() 148 int resultValue = FAIL; in Getgrnam() local 150 resultValue = SUCCESS; in Getgrnam() 153 napi_create_int32(env, resultValue, &result); in Getgrnam() 159 int resultValue = FAIL; in Getgrent() local 165 resultValue = SUCCESS; in Getgrent() [all …]
|
D | timesndk.cpp | 34 int resultValue = PARAM_0; in Times() local 36 resultValue = PARAM_0; in Times() 38 resultValue = FAIL; in Times() 41 napi_create_int32(env, resultValue, &result); in Times()
|
D | regexndk.cpp | 67 int resultValue = FAILD; in Regerror() local 70 resultValue = RETURN_0; in Regerror() 74 napi_create_int32(env, resultValue, &result); in Regerror() 84 int resultValue = FAILD; in Regfree() local 88 resultValue = RETURN_0; in Regfree() 92 napi_create_int32(env, resultValue, &result); in Regfree()
|
D | ucharndk.cpp | 63 int resultValue = FAIL; in C16rtomb() local 65 resultValue = PARAM_1; in C16rtomb() 69 napi_create_int32(env, resultValue, &result); in C16rtomb() 81 int resultValue = FAIL; in C32rtomb() local 83 resultValue = PARAM_1; in C32rtomb() 87 napi_create_int32(env, resultValue, &result); in C32rtomb()
|
D | inttypesndk.cpp | 118 int resultValue; in Wcstoimax() local 120 resultValue = wcstoimax(L"ff", nullptr, PARAM_16); in Wcstoimax() 122 resultValue = wcstoimax(L"1000xyz", nullptr, param_int); in Wcstoimax() 126 napi_create_int32(env, resultValue, &result); in Wcstoimax() 140 int resultValue; in Wcstoumax() local 142 resultValue = wcstoumax(L"ff", nullptr, PARAM_16); in Wcstoumax() 144 resultValue = wcstoumax(L"1000xyz", nullptr, param_int); in Wcstoumax() 148 napi_create_int32(env, resultValue, &result); in Wcstoumax()
|
D | inndk.cpp | 91 int resultValue = FAILD; in In6addrAny() local 94 resultValue = RETURN_0; in In6addrAny() 97 napi_create_int32(env, resultValue, &result); in In6addrAny() 104 int resultValue = FAILD; in In6addrLoopback() local 107 resultValue = RETURN_0; in In6addrLoopback() 110 napi_create_int32(env, resultValue, &result); in In6addrLoopback()
|
D | wcharndk.cpp | 671 int resultValue = RETURN_0; in Wcpncpy() local 675 resultValue = FAILD; in Wcpncpy() 678 napi_create_int32(env, resultValue, &result); in Wcpncpy() 854 int resultValue = RETURN_0; in Wcsncpy() local 862 resultValue = RETURN_ONE; in Wcsncpy() 869 resultValue = RETURN_ONE; in Wcsncpy() 874 napi_create_int32(env, resultValue, &result); in Wcsncpy() 889 int resultValue; in Wcsrchr() local 893 resultValue = RETURN_0; in Wcsrchr() 895 resultValue = FAILD; in Wcsrchr() [all …]
|
D | ctypendk.cpp | 521 int resultValue = FAILD; in Tolower() local 526 resultValue = RETURN_0; in Tolower() 532 resultValue = RETURN_0; in Tolower() 539 resultValue = RETURN_0; in Tolower() 545 resultValue = RETURN_0; in Tolower() 550 napi_create_int32(env, resultValue, &result); in Tolower() 564 int resultValue = FAILD; in TolowerL() local 569 resultValue = RETURN_0; in TolowerL() 575 resultValue = RETURN_0; in TolowerL() 582 resultValue = RETURN_0; in TolowerL() [all …]
|
D | mathndk.cpp | 370 double resultValue = asin(valueZero); in ASin() local 372 if (resultValue <= M_PI && resultValue >= -M_PI) { in ASin() 375 napi_create_double(env, resultValue, &result); in ASin() 390 double resultValue = asinf(valueZero); in ASinF() local 392 if (resultValue <= M_PI && resultValue >= -M_PI) { in ASinF() 395 napi_create_double(env, resultValue, &result); in ASinF() 410 double resultValue = asinl(valueZero); in ASinL() local 412 if (resultValue <= M_PI && resultValue >= -M_PI) { in ASinL() 415 napi_create_double(env, resultValue, &result); in ASinL() 430 double resultValue = asinh(valueZero); in ASinH() local [all …]
|
D | socketndk.cpp | 271 int resultValue = FAILD; in Recv() local 275 resultValue = recv(PARAM_0, buf, data_len, PARAM_0); in Recv() 281 resultValue = recv(sockets[PARAM_0], buf, sizeof buf, PARAM_0); in Recv() 286 napi_create_int32(env, resultValue, &result); in Recv() 298 int resultValue = FAILD; in Recvfrom() local 302 resultValue = recvfrom(PARAM_0, buf, data_len, PARAM_0, nullptr, nullptr); in Recvfrom() 307 napi_create_int32(env, resultValue, &result); in Recvfrom() 319 int resultValue = FAILD; in Recvmsg() local 322 resultValue = recvmsg(PARAM_0, &msgRev, PARAM_0); in Recvmsg() 326 napi_create_int32(env, resultValue, &result); in Recvmsg() [all …]
|
D | stdlibndk.cpp | 145 int resultValue = FAILD; in Rand() local 149 resultValue = RETURN_0; in Rand() 154 resultValue = RETURN_0; in Rand() 158 napi_create_int32(env, resultValue, &result); in Rand() 195 int resultValue = FAILD; in RandR() local 200 resultValue = RETURN_0; in RandR() 206 resultValue = RETURN_0; in RandR() 210 napi_create_int32(env, resultValue, &result); in RandR() 1097 double resultValue = atof(param); in Atof() local 1098 napi_create_double(env, resultValue, &result); in Atof() [all …]
|
D | stringsndk.cpp | 147 int resultValue = PARAM_UNNORMAL; in Index() local 149 resultValue = PARAM_0; in Index() 151 resultValue = PARAM_UNNORMAL; in Index() 155 napi_create_int32(env, resultValue, &result); in Index() 204 int resultValue = bcmp(valueFirst, valueSecond, size); in Bcmp() local 206 napi_create_int32(env, resultValue, &result); in Bcmp()
|
D | wctypendk.cpp | 746 int resultValue = FAILD; in Wctrans() local 749 resultValue = RETURN_0; in Wctrans() 753 resultValue = RETURN_0; in Wctrans() 758 napi_create_int32(env, resultValue, &result); in Wctrans() 770 int resultValue = FAILD; in WctransL() local 774 resultValue = RETURN_0; in WctransL() 778 resultValue = RETURN_0; in WctransL() 783 napi_create_int32(env, resultValue, &result); in WctransL() 795 int resultValue = FAILD; in Wctype() local 800 resultValue = RETURN_0; in Wctype() [all …]
|
D | unistdndk.cpp | 612 int resultValue = FAILD; in Readlink() local 619 resultValue = RETURN_0; in Readlink() 629 resultValue = errno; in Readlink() 632 resultValue = RETURN_0; in Readlink() 637 napi_create_int32(env, resultValue, &result); in Readlink() 646 int resultValue = FAILD; in Readlinkat() local 648 resultValue = RETURN_0; in Readlinkat() 651 napi_create_int32(env, resultValue, &result); in Readlinkat() 1037 int resultValue = alarm(param); in Alarm() local 1038 if (resultValue >= PARAM_0) { in Alarm() [all …]
|
D | timendk.cpp | 356 int resultValue = abs(getdate_err); in GetdateErr() local 358 napi_create_int32(env, resultValue, &result); in GetdateErr() 366 int resultValue = abs(daylight); in Daylight() local 368 napi_create_int32(env, resultValue, &result); in Daylight() 459 int resultValue = FAIL; in Asctime() local 461 resultValue = SUCCESS; in Asctime() 464 napi_create_int32(env, resultValue, &result); in Asctime() 477 int resultValue = FAIL; in AsctimeR() local 479 resultValue = SUCCESS; in AsctimeR() 482 napi_create_int32(env, resultValue, &result); in AsctimeR()
|
D | uiondk.cpp | 91 ssize_t resultValue = FAILD; in Writev() local 93 resultValue = writev(PARAM_UNNORMAL, nullptr, PARAM_UNNORMAL); in Writev() 106 resultValue = RETURN_0; in Writev() 111 napi_create_int32(env, resultValue, &result); in Writev()
|
/test/xts/acts/commonlibrary/thirdparty/musl32/entry/src/main/cpp/ |
D | timexndk32.cpp | 51 int resultValue = __adjtimex_time64(&tx); in AdjTimex_time64_One() local 52 NAPI_ASSERT(env, resultValue != MPARAM_1, "AdjTimex_time64_One failed"); in AdjTimex_time64_One() 54 napi_create_int32(env, resultValue == TIME_BAD, &result); in AdjTimex_time64_One() 62 int resultValue = __adjtimex_time64(&tx); in AdjTimex_time64_Two() local 63 NAPI_ASSERT(env, resultValue != MPARAM_1, "AdjTimex_time64_Two failed"); in AdjTimex_time64_Two() 65 napi_create_int32(env, resultValue == TIME_BAD, &result); in AdjTimex_time64_Two() 89 int resultValue = adjtimex(&tx); in AdjTimex_One() local 90 NAPI_ASSERT(env, resultValue != MPARAM_1, "AdjTimex_One failed"); in AdjTimex_One() 92 napi_create_int32(env, resultValue == TIME_BAD, &result); in AdjTimex_One() 100 int resultValue = adjtimex(&tx); in AdjTimex_Two() local [all …]
|
/test/xts/acts/startup/startup_standard/init_ndkTest/entry/src/main/cpp/ |
D | initndk.cpp | 147 int resultValue = OH_GetSdkApiVersion(); in OHGetSdkApiVersion() local 149 napi_create_int32(env, resultValue, &result); in OHGetSdkApiVersion() 155 int resultValue = OH_GetFirstApiVersion(); in OHGetFirstApiVersion() local 157 napi_create_int32(env, resultValue, &result); in OHGetFirstApiVersion() 227 int resultValue = OH_GetDistributionOSApiVersion(); in OHGetDistributionOSApiVersion() local 229 napi_create_int32(env, resultValue, &result); in OHGetDistributionOSApiVersion()
|
/test/testfwk/arkxtest/uitest/napi/ |
D | uitest_napi.cpp | 243 auto resultValue = UnmarshalReply(env, ctx, reply); in TransactSync() local 245 NAPI_CALL(env, napi_is_error(env, resultValue, &isError)); in TransactSync() 247 NAPI_CALL(env, napi_throw(env, resultValue)); in TransactSync() 248 NAPI_CALL(env, napi_get_undefined(env, &resultValue)); // return undefined it's error in TransactSync() 262 return resultValue; in TransactSync() 302 auto resultValue = UnmarshalReply(env, aCtx->ctx_, aCtx->reply_); in TransactAsync() local 305 napi_is_error(env, resultValue, &isError); in TransactAsync() 307 napi_reject_deferred(env, aCtx->deferred_, resultValue); in TransactAsync() 309 napi_resolve_deferred(env, aCtx->deferred_, resultValue); in TransactAsync()
|