Searched refs:codeValue (Results 1 – 6 of 6) sorted by relevance
/foundation/ace/ace_engine/frameworks/core/event/ |
D | key_event.h | 509 int32_t codeValue = static_cast<int32_t>(code) - static_cast<int32_t>(KeyCode::KEY_A); in ConvertCodeToString() local 511 return std::string(1, static_cast<char>(codeValue + ASCII_START_UPPER_CASE_LETTER)); in ConvertCodeToString() 513 return std::string(1, static_cast<char>(codeValue + ASCII_START_LOWER_CASE_LETTER)); in ConvertCodeToString()
|
/foundation/communication/netmanager_base/frameworks/js/napi/common/ |
D | napi_common.cpp | 227 napi_value codeValue = nullptr; in CreateErrorMessage() local 229 NAPI_CALL(env, napi_create_string_utf8(env, errCode.c_str(), errCode.length(), &codeValue)); in CreateErrorMessage() 230 NAPI_CALL(env, napi_create_error(env, codeValue, message, &result)); in CreateErrorMessage()
|
/foundation/ace/napi/native_engine/ |
D | native_api.cpp | 258 auto codeValue = reinterpret_cast<NativeValue*>(code); in napi_create_error() local 261 if (codeValue != nullptr) { in napi_create_error() 262 RETURN_STATUS_IF_FALSE(env, codeValue->TypeOf() == NATIVE_STRING, napi_invalid_arg); in napi_create_error() 266 auto resultValue = engine->CreateError(codeValue, msgValue); in napi_create_error() 279 auto codeValue = reinterpret_cast<NativeValue*>(code); in napi_create_type_error() local 282 if (codeValue != nullptr) { in napi_create_type_error() 283 RETURN_STATUS_IF_FALSE(env, codeValue->TypeOf() == NATIVE_STRING, napi_invalid_arg); in napi_create_type_error() 287 auto resultValue = engine->CreateError(codeValue, msgValue); in napi_create_type_error() 300 auto codeValue = reinterpret_cast<NativeValue*>(code); in napi_create_range_error() local 303 if (codeValue != nullptr) { in napi_create_range_error() [all …]
|
/foundation/ace/ace_engine/frameworks/core/pipeline/ |
D | pipeline_context.cpp | 1627 auto codeValue = static_cast<int32_t>(event.code); in SetShortcutKey() local 1628 if (codeValue == static_cast<int32_t>(KeyCode::KEY_SHIFT_LEFT) || in SetShortcutKey() 1629 codeValue == static_cast<int32_t>(KeyCode::KEY_SHIFT_RIGHT)) { in SetShortcutKey() 1631 } else if (codeValue == static_cast<int32_t>(KeyCode::KEY_CTRL_LEFT) || in SetShortcutKey() 1632 codeValue == static_cast<int32_t>(KeyCode::KEY_CTRL_RIGHT)) { in SetShortcutKey() 1634 } else if (codeValue == static_cast<int32_t>(KeyCode::KEY_A)) { in SetShortcutKey() 1641 auto codeValue = static_cast<int32_t>(event.code); in SetShortcutKey() local 1642 if (codeValue == static_cast<int32_t>(KeyCode::KEY_SHIFT_LEFT) || in SetShortcutKey() 1643 codeValue == static_cast<int32_t>(KeyCode::KEY_SHIFT_RIGHT)) { in SetShortcutKey() 1645 } else if (codeValue == static_cast<int32_t>(KeyCode::KEY_CTRL_LEFT) || in SetShortcutKey() [all …]
|
/foundation/ace/napi/native_engine/impl/ark/ |
D | ark_native_engine.cpp | 581 Local<JSValueRef> codeValue = StringRef::NewFromUtf8(vm_, code); in Throw() local 583 errorObj->Set(vm_, codeKey, codeValue); in Throw()
|
/foundation/ace/napi/native_engine/impl/v8/ |
D | v8_native_engine.cpp | 679 v8::Local<v8::Value> codeValue = v8::String::NewFromUtf8(isolate_, code).ToLocalChecked(); in Throw() local 680 error.As<v8::Object>()->Set(context_.Get(isolate_), codeKey, codeValue).FromJust(); in Throw()
|