Home
last modified time | relevance | path

Searched refs:desc (Results 1 - 25 of 166) sorted by relevance

1234567

/base/msdp/device_status/utils/common/include/
H A Dutil_napi.h33 #define CHKRV(state, desc) \
36 FI_HILOGE("%{public}s failed", std::string(desc).c_str()); \
41 #define CHKRP(state, desc) \
44 FI_HILOGE("%{public}s failed", std::string(desc).c_str()); \
49 #define CHKRF(state, desc) \
52 FI_HILOGE("%{public}s failed", std::string(desc).c_str()); \
57 #define CHKRV_SCOPE(env, state, desc, scope) \
60 FI_HILOGE("%{public}s failed", std::string(desc).c_str()); \
66 #define CHKRF_SCOPE(env, state, desc, scope) \
69 FI_HILOGE("%{public}s failed", std::string(desc)
[all...]
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
H A Dnapi_certificate_init.cpp48 napi_property_descriptor desc[] = { in DefineEncodingFormatProperties() local
51 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc); in DefineEncodingFormatProperties()
77 napi_property_descriptor desc[] = { in DefineResultCodeProperties() local
80 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc); in DefineResultCodeProperties()
99 napi_property_descriptor desc[] = { in DefineCertItemTypeProperties() local
102 napi_define_properties(env, exports, sizeof(desc) / sizeo in DefineCertItemTypeProperties()
119 napi_property_descriptor desc[] = { DefineExtensionOidTypeProperties() local
140 napi_property_descriptor desc[] = { DefineExtensionEntryTypeProperties() local
169 napi_property_descriptor desc[] = { DefineGeneralNameTypeProperties() local
223 napi_property_descriptor desc[] = { DefineOcspCheckOptionTypeProperties() local
231 napi_property_descriptor desc[] = { DefineValidationPolicyTypeProperties() local
239 napi_property_descriptor desc[] = { DefineValidationKeyUsageTypeProperties() local
257 napi_property_descriptor desc[] = { DefineEncodingTypeProperties() local
[all...]
/base/powermgr/power_manager/frameworks/napi/runninglock/
H A Drunninglock_module.cpp58 napi_property_descriptor desc[] = { in CreateRunningLockClass() local
71 sizeof(desc) / sizeof(*desc), desc, &result); in CreateRunningLockClass()
96 napi_property_descriptor desc[] = { in CreateRunningLockType() local
102 sizeof(desc) / sizeof(*desc), desc, &result); in CreateRunningLockType()
128 napi_property_descriptor desc[] = { in RunningLockInit() local
135 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeo in RunningLockInit()
[all...]
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_init.cpp57 napi_property_descriptor desc[] = { in DefineCryptoModeProperties() local
60 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc); in DefineCryptoModeProperties()
80 napi_property_descriptor desc[] = { in DefineResultCodeProperties() local
83 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc); in DefineResultCodeProperties()
129 napi_property_descriptor desc[] = { in DefineAsyKeySpecItemProperties() local
132 napi_define_properties(env, exports, sizeof(desc) / sizeo in DefineAsyKeySpecItemProperties()
150 napi_property_descriptor desc[] = { DefineAsyKeySpecTypeProperties() local
172 napi_property_descriptor desc[] = { DefineCipherSpecItemProperties() local
195 napi_property_descriptor desc[] = { DefineSignSpecItemProperties() local
[all...]
/base/telephony/core_service/services/core/src/
H A Dcore_service_hisysevent.cpp86 void CoreServiceHiSysEvent::WriteDialCallFaultEvent(int32_t slotId, int32_t errCode, const std::string &desc) in WriteDialCallFaultEvent() argument
89 INVALID_PARAMETER, VIDEO_STATE_KEY, INVALID_PARAMETER, ERROR_TYPE_KEY, errCode, ERROR_MSG_KEY, desc); in WriteDialCallFaultEvent()
92 void CoreServiceHiSysEvent::WriteAnswerCallFaultEvent(int32_t slotId, int32_t errCode, const std::string &desc) in WriteAnswerCallFaultEvent() argument
95 INVALID_PARAMETER, VIDEO_STATE_KEY, INVALID_PARAMETER, ERROR_TYPE_KEY, errCode, ERROR_MSG_KEY, desc); in WriteAnswerCallFaultEvent()
98 void CoreServiceHiSysEvent::WriteHangUpFaultEvent(int32_t slotId, int32_t errCode, const std::string &desc) in WriteHangUpFaultEvent() argument
101 INVALID_PARAMETER, ERROR_TYPE_KEY, errCode, ERROR_MSG_KEY, desc); in WriteHangUpFaultEvent()
105 int32_t slotId, SmsMmsMessageType type, SmsMmsErrorCode errorCode, const std::string &desc) in WriteSmsSendFaultEvent()
108 static_cast<int32_t>(type), ERROR_TYPE_KEY, static_cast<int32_t>(errorCode), ERROR_MSG_KEY, desc); in WriteSmsSendFaultEvent()
112 int32_t slotId, SmsMmsMessageType type, SmsMmsErrorCode errorCode, const std::string &desc) in WriteSmsReceiveFaultEvent()
115 static_cast<int32_t>(type), ERROR_TYPE_KEY, static_cast<int32_t>(errorCode), ERROR_MSG_KEY, desc); in WriteSmsReceiveFaultEvent()
104 WriteSmsSendFaultEvent( int32_t slotId, SmsMmsMessageType type, SmsMmsErrorCode errorCode, const std::string &desc) WriteSmsSendFaultEvent() argument
111 WriteSmsReceiveFaultEvent( int32_t slotId, SmsMmsMessageType type, SmsMmsErrorCode errorCode, const std::string &desc) WriteSmsReceiveFaultEvent() argument
131 WriteSetActiveSimFaultEvent( int32_t slotId, SimCardErrorCode errorCode, const std::string &desc) WriteSetActiveSimFaultEvent() argument
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/src/subscribe/
H A Dinit_module.cpp32 napi_property_descriptor desc[] = { in NotificationSubscribeInit() local
40 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); in NotificationSubscribeInit()
/base/telephony/core_service/services/core/include/
H A Dcore_service_hisysevent.h42 static void WriteDialCallFaultEvent(int32_t slotId, int32_t errCode, const std::string &desc);
43 static void WriteAnswerCallFaultEvent(int32_t slotId, int32_t errCode, const std::string &desc);
44 static void WriteHangUpFaultEvent(int32_t slotId, int32_t errCode, const std::string &desc);
46 int32_t slotId, SmsMmsMessageType type, SmsMmsErrorCode errorCode, const std::string &desc);
48 int32_t slotId, SmsMmsMessageType type, SmsMmsErrorCode errorCode, const std::string &desc);
52 static void WriteSetActiveSimFaultEvent(int32_t slotId, SimCardErrorCode errorCode, const std::string &desc);
/base/powermgr/power_manager/frameworks/napi/power/
H A Dpower_module.cpp52 napi_property_descriptor desc[] = { in CreateDevicePowerMode() local
60 sizeof(desc) / sizeof(*desc), desc, &result); in CreateDevicePowerMode()
74 napi_property_descriptor desc[] = { in PowerInit() local
93 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); in PowerInit()
/base/startup/hvb/libhvb/src/rvt/
H A Dhvb_rvt.c97 enum hvb_errno hvb_rvt_pubk_desc_parser(const struct hvb_buf *pubk, struct rvt_pubk_desc *desc, uint64_t desc_size) in hvb_rvt_pubk_desc_parser() argument
101 hvb_return_hvb_err_if_null(desc); in hvb_rvt_pubk_desc_parser()
107 if (hvb_memcpy_s(desc, sizeof(*desc), pubk->addr, desc_size) != 0) { in hvb_rvt_pubk_desc_parser()
108 hvb_print("error, copy desc.\n"); in hvb_rvt_pubk_desc_parser()
115 enum hvb_errno hvb_rvt_get_pubk_buf(struct hvb_buf *key_buf, const struct hvb_buf *rvt, struct rvt_pubk_desc *desc) in hvb_rvt_get_pubk_buf() argument
120 hvb_return_hvb_err_if_null(desc); in hvb_rvt_get_pubk_buf()
122 key_buf->addr = rvt->addr + desc->pubkey_offset; in hvb_rvt_get_pubk_buf()
123 key_buf->size = desc->pubkey_len; in hvb_rvt_get_pubk_buf()
/base/telephony/call_manager/services/audio/src/
H A Daudio_proxy.cpp301 std::vector<sptr<AudioStandard::AudioDeviceDescriptor>> desc; in GetPreferredOutputAudioDevice() local
303 AudioStandard::AudioRoutingManager::GetInstance()->GetPreferredOutputDeviceForRendererInfo(rendererInfo, desc); in GetPreferredOutputAudioDevice()
308 if (desc.size() == NO_DEVICE_VALID) { in GetPreferredOutputAudioDevice()
309 TELEPHONY_LOGE("desc size is zero"); in GetPreferredOutputAudioDevice()
312 switch (desc[0]->deviceType_) { in GetPreferredOutputAudioDevice()
320 if (memcpy_s(device.address, kMaxAddressLen, desc[0]->macAddress_.c_str(), in GetPreferredOutputAudioDevice()
321 desc[0]->macAddress_.length()) != EOK || in GetPreferredOutputAudioDevice()
322 memcpy_s(&device.deviceName, kMaxDeviceNameLen, desc[0]->deviceName_.c_str(), in GetPreferredOutputAudioDevice()
323 desc[0]->deviceName_.length()) != EOK) { in GetPreferredOutputAudioDevice()
379 const std::vector<sptr<AudioStandard::AudioDeviceDescriptor>> &desc) in OnPreferredOutputDeviceUpdated()
378 OnPreferredOutputDeviceUpdated( const std::vector<sptr<AudioStandard::AudioDeviceDescriptor>> &desc) OnPreferredOutputDeviceUpdated() argument
428 SetBluetoothDevice(AudioDevice &device, const std::vector<sptr<AudioStandard::AudioDeviceDescriptor>> &desc) SetBluetoothDevice() argument
447 IsDistributedDeviceSelected( const std::vector<sptr<AudioStandard::AudioDeviceDescriptor>> &desc) IsDistributedDeviceSelected() argument
[all...]
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/test/unittest/cpp/
H A Dfaultlogger_test_napi.cpp38 napi_property_descriptor desc[] = { in Init() local
42 napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc); in Init()
/base/startup/init/services/begetctl/shell/
H A Dshell.h49 char *desc; member
55 char *desc; member
69 char *desc; member
74 char *desc; member
97 int BShellEnvSetParam(BShellHandle handle, const char *name, const char *desc, BShellParamType type, void *value);
/base/powermgr/battery_statistics/frameworks/napi/src/
H A Dbattery_stats_module.cpp113 napi_property_descriptor desc[] = { in CreateEnumStatsType() local
126 sizeof(desc) / sizeof(*desc), desc, &result); in CreateEnumStatsType()
138 napi_property_descriptor desc[] = { in BatteryStatsInit() local
145 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); in BatteryStatsInit()
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_audio_system_manager_adapter_impl.cpp100 std::shared_ptr<NWeb::AudioDeviceDescAdapter> desc = real_.GetDefaultOutputDevice(); in GetDefaultOutputDevice() local
101 if (CHECK_SHARED_PTR_IS_NULL(desc)) { in GetDefaultOutputDevice()
105 return new ArkAudioDeviceDescAdapterImpl(desc); in GetDefaultOutputDevice()
110 std::shared_ptr<NWeb::AudioDeviceDescAdapter> desc = real_.GetDefaultInputDevice(); in GetDefaultInputDevice() local
111 if (CHECK_SHARED_PTR_IS_NULL(desc)) { in GetDefaultInputDevice()
115 return new ArkAudioDeviceDescAdapterImpl(desc); in GetDefaultInputDevice()
/base/web/webview/ohos_adapter/audio_adapter/src/
H A Daudio_system_manager_adapter_impl.cpp275 std::shared_ptr<AudioDeviceDescAdapterImpl> desc = std::make_shared<AudioDeviceDescAdapterImpl>(); in GetDevices() local
276 if (!desc) { in GetDevices()
277 WVLOG_E("AudioSystemManagerAdapterImpl::GetDevices create desc failed"); in GetDevices()
281 desc->SetDeviceId(audioDevice->deviceId_); in GetDevices()
283 desc->SetDeviceName(GetDeviceName(audioDevice->deviceType_)); in GetDevices()
285 desc->SetDeviceName(audioDevice->deviceName_); in GetDevices()
287 audioDeviceAdapterList.emplace_back(desc); in GetDevices()
383 std::shared_ptr<AudioDeviceDescAdapterImpl> desc = std::make_shared<AudioDeviceDescAdapterImpl>(); in GetDefaultOutputDevice() local
384 if (!desc) { in GetDefaultOutputDevice()
385 WVLOG_E("AudioSystemManagerAdapterImpl::GetDefaultOutputDevice create desc faile in GetDefaultOutputDevice()
411 std::shared_ptr<AudioDeviceDescAdapterImpl> desc = std::make_shared<AudioDeviceDescAdapterImpl>(); GetDefaultInputDevice() local
[all...]
/base/print/print_fwk/frameworks/helper/scan_helper/src/
H A Dscan_option_descriptor_helper.cpp34 napi_value ScanOptionDescriptorHelper::MakeJsObject(napi_env env, const ScanOptionDescriptor &desc) in MakeJsObject() argument
39 NapiScanUtils::SetStringPropertyUtf8(env, jsObj, PARAM_OPTION_NAME, desc.GetOptionName()); in MakeJsObject()
40 NapiScanUtils::SetStringPropertyUtf8(env, jsObj, PARAM_OPTION_TITLE, desc.GetOptionTitle()); in MakeJsObject()
41 NapiScanUtils::SetStringPropertyUtf8(env, jsObj, PARAM_OPTION_DESC, desc.GetOptionDesc()); in MakeJsObject()
42 NapiScanUtils::SetUint32Property(env, jsObj, PARAM_OPTION_TYPE, desc.GetOptionType()); in MakeJsObject()
43 NapiScanUtils::SetUint32Property(env, jsObj, PARAM_OPTION_UNIT, desc.GetOptionUnit()); in MakeJsObject()
45 NapiScanUtils::SetInt32Property(env, jsObj, PARAM_OPTION_SIZE, desc.GetOptionSize()); in MakeJsObject()
46 NapiScanUtils::SetInt32Property(env, jsObj, PARAM_OPTION_CAP, desc.GetOptionCap()); in MakeJsObject()
48 NapiScanUtils::SetUint32Property(env, jsObj, PARAM_OPTION_CONSTRAINT_TYPE, desc.GetOptionConstraintType()); in MakeJsObject()
51 desc in MakeJsObject()
[all...]
/base/telephony/call_manager/services/hisysevent/src/
H A Dcall_manager_hisysevent.cpp84 const int32_t videoState, const int32_t errCode, const std::string &desc) in WriteIncomingCallFaultEvent()
90 ERROR_MSG_KEY, desc); in WriteIncomingCallFaultEvent()
93 CALL_TYPE_KEY, callType, VIDEO_STATE_KEY, videoState, ERROR_TYPE_KEY, errCode, ERROR_MSG_KEY, desc); in WriteIncomingCallFaultEvent()
98 const int32_t videoState, const int32_t errCode, const std::string &desc) in WriteDialCallFaultEvent()
104 ERROR_MSG_KEY, desc); in WriteDialCallFaultEvent()
107 CALL_TYPE_KEY, callType, VIDEO_STATE_KEY, videoState, ERROR_TYPE_KEY, errCode, ERROR_MSG_KEY, desc); in WriteDialCallFaultEvent()
112 const int32_t videoState, const int32_t errCode, const std::string &desc) in WriteAnswerCallFaultEvent()
118 ERROR_MSG_KEY, desc); in WriteAnswerCallFaultEvent()
121 CALL_ID_KEY, callId, VIDEO_STATE_KEY, videoState, ERROR_TYPE_KEY, errCode, ERROR_MSG_KEY, desc); in WriteAnswerCallFaultEvent()
126 const int32_t slotId, const int32_t callId, const int32_t errCode, const std::string &desc) in WriteHangUpFaultEvent()
83 WriteIncomingCallFaultEvent(const int32_t slotId, const int32_t callType, const int32_t videoState, const int32_t errCode, const std::string &desc) WriteIncomingCallFaultEvent() argument
97 WriteDialCallFaultEvent(const int32_t slotId, const int32_t callType, const int32_t videoState, const int32_t errCode, const std::string &desc) WriteDialCallFaultEvent() argument
111 WriteAnswerCallFaultEvent(const int32_t slotId, const int32_t callId, const int32_t videoState, const int32_t errCode, const std::string &desc) WriteAnswerCallFaultEvent() argument
125 WriteHangUpFaultEvent( const int32_t slotId, const int32_t callId, const int32_t errCode, const std::string &desc) WriteHangUpFaultEvent() argument
[all...]
/base/powermgr/battery_manager/frameworks/napi/src/
H A Dcharger.cpp59 napi_property_descriptor desc[] = { in CreateEnumChargeType() local
71 sizeof(desc) / sizeof(*desc), desc, &result); in CreateEnumChargeType()
H A Dbattery_info.cpp316 napi_property_descriptor desc[] = { in CreateEnumHealthState() local
326 sizeof(desc) / sizeof(*desc), desc, &result); in CreateEnumHealthState()
351 napi_property_descriptor desc[] = { in CreateEnumLevelState() local
362 sizeof(desc) / sizeof(*desc), desc, &result); in CreateEnumLevelState()
394 napi_property_descriptor desc[] = { in CreateEnumChargeState() local
403 sizeof(desc) / sizeo in CreateEnumChargeState()
435 napi_property_descriptor desc[] = { CreateEnumPluggedType() local
486 napi_property_descriptor desc[] = { CreateEventBatteryChangedKey() local
535 napi_property_descriptor desc[] = { CreateEventBatteryChangedCode() local
567 napi_property_descriptor desc[] = { BatteryInit() local
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dinit.cpp42 napi_property_descriptor desc[] = { in NotificationInit() local
88 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); in NotificationInit()
/base/update/updateservice/frameworks/js/napi/update/src/
H A Dupdate_module.cpp276 nativeClass.constructor, nullptr, nativeClass.descSize, nativeClass.desc, &result); in DefineClass()
290 napi_property_descriptor desc[] = { in DefineRestorer() local
298 .desc = desc, in DefineRestorer()
299 .descSize = COUNT_OF(desc) in DefineRestorer()
306 napi_property_descriptor desc[] = { in DefineLocalUpdater() local
318 .desc = desc, in DefineLocalUpdater()
319 .descSize = COUNT_OF(desc) in DefineLocalUpdater()
326 napi_property_descriptor desc[] in DefineUpdateClient() local
364 napi_property_descriptor desc[] = { UpdateClientInit() local
[all...]
/base/hiviewdfx/hichecker/interfaces/js/kits/napi/src/
H A Dnapi_hichecker.cpp104 napi_property_descriptor desc[] = { in DeclareHiCheckerInterface() local
113 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); in DeclareHiCheckerInterface()
120 napi_property_descriptor desc[] = { in DeclareHiCheckerRuleEnum() local
132 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); in DeclareHiCheckerRuleEnum()
/base/powermgr/thermal_manager/test/unittest/src/
H A Dthermal_action_hub_test.cpp248 * @tc.desc: register action is cpu_big test
256 std::string desc = ""; in HWTEST_F() local
267 g_service->SubscribeThermalActionCallback(actionList, desc, cb1); in HWTEST_F()
275 * @tc.desc: register action is lcd test
283 std::string desc = ""; in HWTEST_F() local
294 g_service->SubscribeThermalActionCallback(actionList, desc, cb2); in HWTEST_F()
302 * @tc.desc: register action is cpu_med and lcd test
311 std::string desc = ""; in HWTEST_F() local
322 g_service->SubscribeThermalActionCallback(actionList, desc, cb3); in HWTEST_F()
330 * @tc.desc
338 std::string desc = ""; HWTEST_F() local
366 std::string desc = ""; HWTEST_F() local
394 std::string desc = ""; HWTEST_F() local
423 std::string desc = ""; HWTEST_F() local
450 std::string desc = ""; HWTEST_F() local
[all...]
/base/customization/enterprise_device_management/test/unittest/interface/plugin_kits/
H A Dpolicy_serializer_test.cpp37 * @tc.desc: Test BoolSerializer.
78 * @tc.desc: Test StringSerializer.
114 * @tc.desc: Test ArrayStringSerializer.
161 * @tc.desc: Test ArrayMapSerializer::Serialize.
171 { "desc", "hello" },
176 { "desc", "world" },
184 exceptStr = R"(["{\n\"desc\":\"hello\",\n\"id\":\"1\",\n\"name\":\"leon\"\n}")";
185 exceptStr.append(R"(,"{\n\"desc\":\"world\",\n\"id\":\"2\",\n\"name\":\"job\"\n}"])");
191 * @tc.desc: Test ArrayMapSerializer::Deserialize.
198 std::string jsonString = R"([{"desc"
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dinit_module.cpp67 napi_property_descriptor desc[] = { in NotificationManagerInit() local
128 NAPI_CALL(env, napi_define_properties(env, exports, sizeof(desc) / sizeof(desc[0]), desc)); in NotificationManagerInit()

Completed in 11 milliseconds

1234567