| /arkcompiler/runtime_core/static_core/plugins/ets/tests/napi/bridges/lib/ |
| D | EtsNapiTests.cpp | 791 [[maybe_unused]] ets_boolean a1) in ETS_EtsNapiTests_printBool1() 798 … [[maybe_unused]] ets_boolean a1, [[maybe_unused]] ets_boolean a2) in ETS_EtsNapiTests_printBool2() 805 … [[maybe_unused]] ets_boolean a1, [[maybe_unused]] ets_boolean a2, in ETS_EtsNapiTests_printBool3() 806 [[maybe_unused]] ets_boolean a3) in ETS_EtsNapiTests_printBool3() 813 … [[maybe_unused]] ets_boolean a1, [[maybe_unused]] ets_boolean a2, in ETS_EtsNapiTests_printBool4() 814 … [[maybe_unused]] ets_boolean a3, [[maybe_unused]] ets_boolean a4) in ETS_EtsNapiTests_printBool4() 821 … [[maybe_unused]] ets_boolean a1, [[maybe_unused]] ets_boolean a2, in ETS_EtsNapiTests_printBool5() 822 … [[maybe_unused]] ets_boolean a3, [[maybe_unused]] ets_boolean a4, in ETS_EtsNapiTests_printBool5() 823 [[maybe_unused]] ets_boolean a5) in ETS_EtsNapiTests_printBool5() 830 … [[maybe_unused]] ets_boolean a1, [[maybe_unused]] ets_boolean a2, in ETS_EtsNapiTests_printBool6() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/native/native_methods/ |
| D | register_native_methods_test.cpp | 43 ets_boolean Func0(EtsEnv *env, [[maybe_unused]] ets_int param) in Func0() 55 return static_cast<ets_boolean>(method->IsFastNative()); in Func0() 79 ets_boolean result = env_->CallStaticBooleanMethod(cls, method); in TEST_F() 80 ASSERT_EQ(result, static_cast<ets_boolean>(false)); in TEST_F() 107 ets_boolean result = env_->CallStaticBooleanMethod(cls, method); in TEST_F() 108 ASSERT_EQ(result, static_cast<ets_boolean>(true)); in TEST_F() 133 ets_boolean result = env_->CallStaticBooleanMethod(cls, method); in TEST_F() 134 ASSERT_EQ(result, static_cast<ets_boolean>(true)); in TEST_F()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/ |
| D | calling_methods_test_6.cpp | 96 EXPECT_EQ(env_->CallNonvirtualBooleanMethod(obj, cCls, booleanId, static_cast<ets_boolean>(1), in TEST_F() 98 static_cast<ets_boolean>(0)); in TEST_F() 106 tmp.z = static_cast<ets_boolean>(1); in TEST_F() 109 static_cast<ets_boolean>(0)); in TEST_F() 115 …T_EQ(CallNonvirtualBooleanMethodListHelper(env_, obj, cCls, booleanId, static_cast<ets_boolean>(1), in TEST_F() 117 static_cast<ets_boolean>(0)); in TEST_F() 123 static_cast<ets_boolean>(0)); in TEST_F() 126 …Q(CallNonvirtualBooleanMethodListHelper(env_, obj, nullptr, booleanId, static_cast<ets_boolean>(1), in TEST_F() 128 static_cast<ets_boolean>(0)); in TEST_F() 313 …EXPECT_EQ(env->CallBooleanMethod(obj, boolean_id, static_cast<ets_boolean>(1), static_cast<ets_int… in TEST_F() [all …]
|
| D | stack_reference_check_test.cpp | 63 static ets_boolean StrCheck(EtsEnv *env, ets_string ets_str) in StrCheck() 88 ets_boolean res_true = env->CallStaticBooleanMethod(cls_A, method, ets_str); in TEST_F() 98 static ets_boolean MultiStrCheck(EtsEnv *env, ets_string ets_str1, ets_string ets_str2, ets_string … in MultiStrCheck() 138 …ets_boolean res_true = env->CallStaticBooleanMethod(cls_A, method, ets_str1, ets_str2, ets_str3, e… in TEST_F()
|
| D | calling_methods_test_3.cpp | 206 …v_->CallStaticBooleanMethod(cls, booleanId, static_cast<ets_boolean>(1)), static_cast<ets_boolean>… in TEST_F() 247 tmp.z = static_cast<ets_boolean>(1); in TEST_F() 249 …v_->CallStaticBooleanMethodArray(cls, booleanId, booleanArgs.data()), static_cast<ets_boolean>(0)); in TEST_F() 259 …CallStaticBooleanMethodArray(nullptr, booleanId, booleanArgs.data()), static_cast<ets_boolean>(0)); in TEST_F() 346 EXPECT_EQ(CallStaticBooleanMethodListHelper(env_, cls, booleanId, static_cast<ets_boolean>(1)), in TEST_F() 347 static_cast<ets_boolean>(0)); in TEST_F() 387 EXPECT_EQ(env_->CallStaticBooleanMethod(nullptr, booleanId, static_cast<ets_boolean>(1)), in TEST_F() 388 static_cast<ets_boolean>(0)); in TEST_F() 426 …EXPECT_EQ(CallStaticBooleanMethodListHelper(env_, nullptr, booleanId, static_cast<ets_boolean>(1)), in TEST_F() 427 static_cast<ets_boolean>(0)); in TEST_F()
|
| D | accessing_objects_fields_test_3.cpp | 99 EXPECT_EQ(env_->GetBooleanField(obj, member0Id), static_cast<ets_boolean>(1)); in TEST_F() 130 env->SetBooleanField(obj, members.member0, static_cast<ets_boolean>(1)); in SetterHelper() 183 EXPECT_EQ(env_->GetBooleanField(obj, member0Id), static_cast<ets_boolean>(1)); in TEST_F() 248 EXPECT_EQ(env_->GetStaticBooleanField(cls, member0Id), static_cast<ets_boolean>(1)); in TEST_F() 299 env_->SetStaticBooleanField(cls, member0Id, static_cast<ets_boolean>(1)); in TEST_F() 309 EXPECT_EQ(env_->GetStaticBooleanField(cls, member0Id), static_cast<ets_boolean>(1)); in TEST_F() 357 env_->SetStaticBooleanField(nullptr, member0Id, static_cast<ets_boolean>(1)); in TEST_F() 367 EXPECT_EQ(env_->GetStaticBooleanField(nullptr, member0Id), static_cast<ets_boolean>(1)); in TEST_F() 439 EXPECT_EQ(env_->GetStaticBooleanField(cls, member0Id), static_cast<ets_boolean>(1)); in TEST_F() 470 … EXPECT_DEATH(env_->SetStaticBooleanField(nullptr, nullptr, static_cast<ets_boolean>(0)), ""); in TEST_F() [all …]
|
| D | accessing_objects_fields_test_2.cpp | 48 EXPECT_DEATH(env_->SetBooleanField(nullptr, nullptr, static_cast<ets_boolean>(0)), ""); in TEST_F() 93 EXPECT_DEATH(env_->SetBooleanField(nullptr, member0Id, static_cast<ets_boolean>(0)), ""); in TEST_F() 124 EXPECT_DEATH(env_->SetBooleanField(obj, nullptr, static_cast<ets_boolean>(0)), ""); in TEST_F()
|
| D | array_native_test.cpp | 73 …const std::vector<ets_boolean> src = {ETS_FALSE, ETS_FALSE, ETS_FALSE, ETS_TRUE, ETS_FALSE, ETS_FA… in TEST_F() 83 ets_boolean *buf = env_->PinBooleanArray(array); in TEST_F() 85 std::vector<ets_boolean> res1 = {buf, buf + length}; in TEST_F() 88 std::vector<ets_boolean> res2(src.size()); in TEST_F() 96 std::vector<ets_boolean> vec(length); in TEST_F() 103 std::vector<ets_boolean> vec(length - half); in TEST_F() 421 ets_boolean isCopy; in TEST_F()
|
| D | calling_methods_test_2.cpp | 122 …EXPECT_EQ(env_->CallBooleanMethod(obj, booleanId, static_cast<ets_boolean>(1), static_cast<ets_int… in TEST_F() 123 static_cast<ets_boolean>(0)); in TEST_F() 170 tmp.z = static_cast<ets_boolean>(1); in TEST_F() 172 …_EQ(env_->CallBooleanMethodArray(obj, booleanId, booleanArgs.data()), static_cast<ets_boolean>(0)); in TEST_F() 265 …CallBooleanMethodListHelper(env_, obj, booleanId, static_cast<ets_boolean>(1), static_cast<ets_int… in TEST_F() 266 static_cast<ets_boolean>(0)); in TEST_F()
|
| D | calling_methods_test_helper.h | 47 [[maybe_unused]] static ets_boolean CallBooleanMethodListHelper(EtsEnv *env, ets_object obj, ets_me… in CallBooleanMethodListHelper() 119 [[maybe_unused]] static ets_boolean CallNonvirtualBooleanMethodListHelper(EtsEnv *env, ets_object o… in CallNonvirtualBooleanMethodListHelper() 198 [[maybe_unused]] static ets_boolean CallStaticBooleanMethodListHelper(EtsEnv *env, ets_class cls, e… in CallStaticBooleanMethodListHelper()
|
| D | calling_methods_test_4.cpp | 65 …EXPECT_DEATH(env_->CallBooleanMethod(nullptr, booleanId, static_cast<ets_boolean>(1), static_cast<… in TEST_F() 117 tmp.z = static_cast<ets_boolean>(1); in TEST_F() 217 …CallBooleanMethodListHelper(env_, nullptr, booleanId, static_cast<ets_boolean>(1), static_cast<ets… in TEST_F()
|
| D | calling_methods_test_8.cpp | 60 …(CallNonvirtualBooleanMethodListHelper(env_, nullptr, cCls, booleanId, static_cast<ets_boolean>(1), in TEST_F()
|
| D | calling_methods_test_5.cpp | 66 …EXPECT_DEATH(env_->CallNonvirtualBooleanMethod(nullptr, cls, booleanId, static_cast<ets_boolean>(1… in TEST_F()
|
| D | calling_methods_test_7.cpp | 64 tmp.z = static_cast<ets_boolean>(1); in TEST_F()
|
| D | array_native_test_2.cpp | 31 ets_boolean buf[10U] = {0}; in TEST_F() 311 ets_boolean buf[10U] = {0}; in TEST_F()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/native/promise/ |
| D | promise_test.cpp | 37 ets_boolean result; in TEST_F() 53 ets_boolean result; in TEST_F()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/ |
| D | ets_napi.h | 53 typedef uint8_t ets_boolean; typedef 127 ets_boolean z; 185 …ets_object (*ToReflectedMethod)(EtsEnv *env, ets_class cls, ets_method p_method, ets_boolean isSta… 188 ets_boolean (*IsAssignableFrom)(EtsEnv *env, ets_class cls1, ets_class cls2); 190 …ets_object (*ToReflectedField)(EtsEnv *env, ets_class cls, ets_field p_field, ets_boolean isStatic… 203 ets_boolean (*IsSameObject)(EtsEnv *env, ets_object ref1, ets_object ref2); 211 ets_boolean (*IsInstanceOf)(EtsEnv *env, ets_object obj, ets_class cls); 216 ets_boolean (*CallBooleanMethod)(EtsEnv *env, ets_object obj, ets_method p_method, ...); 217 …ets_boolean (*CallBooleanMethodList)(EtsEnv *env, ets_object obj, ets_method p_method, va_list arg… 218 …ets_boolean (*CallBooleanMethodArray)(EtsEnv *env, ets_object obj, ets_method p_method, const ets_… [all …]
|
| D | ets_napi_native_interface.cpp | 497 NO_UB_SANITIZE static ets_boolean IsAssignableFrom(EtsEnv *env, ets_class cls1, ets_class cls2) in IsAssignableFrom() 510 NO_UB_SANITIZE static ets_boolean ErrorCheck(EtsEnv *env) in ErrorCheck() 515 return static_cast<ets_boolean>(PandaEtsNapiEnv::ToPandaEtsEnv(env)->HasPendingException()); in ErrorCheck() 656 NO_UB_SANITIZE static ets_boolean IsSameObject(EtsEnv *env, ets_object ref1, ets_object ref2) in IsSameObject() 751 NO_UB_SANITIZE static ets_boolean CallBooleanMethodList(EtsEnv *env, ets_object obj, ets_method met… in CallBooleanMethodList() 757 return GeneralMethodCall<true, ets_boolean, EtsBoolean>(env, obj, methodId, args); in CallBooleanMethodList() 760 NO_UB_SANITIZE static ets_boolean CallBooleanMethod(EtsEnv *env, ets_object obj, ets_method methodI… in CallBooleanMethod() 765 ets_boolean res = CallBooleanMethodList(env, obj, methodId, args); in CallBooleanMethod() 770 NO_UB_SANITIZE static ets_boolean CallBooleanMethodArray(EtsEnv *env, ets_object obj, ets_method me… in CallBooleanMethodArray() 777 return GeneralMethodCall<true, ets_boolean, EtsBoolean>(env, obj, methodId, args); in CallBooleanMethodArray() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/napi/lib/ |
| D | EtsnapiNameTest.h | 75 …ETS_CALL ETS_EtsnapiNameTest_methodOverloaded__ZBCDFIJS(EtsEnv *, ets_class, ets_boolean, ets_byte,
|
| D | EtsnapiNameTest.cpp | 63 [[maybe_unused]] EtsEnv *, [[maybe_unused]] ets_class, [[maybe_unused]] ets_boolean boo, in ETS_EtsnapiNameTest_methodOverloaded__ZBCDFIJS()
|
| D | InterfaceNativeTest.cpp | 96 ets_boolean isCopy; in ETS_InterfaceNativeTest_testNewStrUTF()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
| D | ets_value.h | 28 if constexpr (std::is_same<T, ets_boolean>::value) { // NOLINT in GetEtsType()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/native/escompat/ |
| D | Process.cpp | 331 static ets_boolean PManagerKill(EtsEnv *env, [[maybe_unused]] ets_object process, ets_double signal… in PManagerKill() 352 return static_cast<ets_boolean>(ark::os::kill_process::Kill(integerPid, signal) == 0); in PManagerKill() 408 static ets_boolean Is64BitProcess([[maybe_unused]] EtsEnv *env, [[maybe_unused]] ets_object process) in Is64BitProcess() 411 return static_cast<ets_boolean>(sizeof(char *) == SIZE_OF_64_BIT_PTR); in Is64BitProcess()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/native/ |
| D | native_test_helper.h | 36 if constexpr (std::is_same_v<R, ets_boolean>) { in CallEtsFuntion()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/common/bouncing_peas/ |
| D | bouncing_peas_unit_napi.cpp | 166 … [[maybe_unused]] ets_object cb /*any*/, [[maybe_unused]] ets_boolean sync) in SkoalaDrawPicture()
|