Home
last modified time | relevance | path

Searched refs:codeValue (Results 1 – 6 of 6) sorted by relevance

/foundation/ace/ace_engine/frameworks/core/event/
Dkey_event.h509 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/
Dnapi_common.cpp227 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/
Dnative_api.cpp258 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/
Dpipeline_context.cpp1627 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/
Dark_native_engine.cpp581 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/
Dv8_native_engine.cpp679 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()