/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/ |
D | bluetooth_map_mce_parameter.cpp | 28 bool status; in Marshalling() local 29 status = parcel.WriteInt32(static_cast<int>(action_)); in Marshalling() 30 if (!status) { in Marshalling() 31 return status; in Marshalling() 34 status = parcel.WriteInt32(supportedFeatures_); in Marshalling() 35 if (!status) { in Marshalling() 36 return status; in Marshalling() 39 status = parcel.WriteUint8(ownerStatus_.PresenceAvailability); in Marshalling() 40 if (!status) { in Marshalling() 41 return status; in Marshalling() [all …]
|
D | bluetooth_pbap_pce_parameter.cpp | 49 bool status = false; in Marshalling() local 50 status = parcel.WriteString16(GetName()); in Marshalling() 51 if (!status) { in Marshalling() 52 return status; in Marshalling() 54 status = parcel.WriteInt64(GetPropertySelector()); in Marshalling() 55 if (!status) { in Marshalling() 56 return status; in Marshalling() 58 status = parcel.WriteInt32(GetFormat()); in Marshalling() 59 if (!status) { in Marshalling() 60 return status; in Marshalling() [all …]
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/rdb/ |
D | rdb_result_set_stub.cpp | 50 int status = GetAllColumnNames(columnNames); in OnGetAllColumnNames() local 51 if (status != 0) { in OnGetAllColumnNames() 52 ZLOGE("failed, status: %{public}d", status); in OnGetAllColumnNames() 53 if (!ITypesUtil::Marshal(reply, status)) { in OnGetAllColumnNames() 59 if (!ITypesUtil::Marshal(reply, status, columnNames)) { in OnGetAllColumnNames() 69 int status = GetColumnCount(columnCount); in OnGetColumnCount() local 70 if (status != 0) { in OnGetColumnCount() 71 ZLOGE("failed, status: %{public}d", status); in OnGetColumnCount() 72 if (!ITypesUtil::Marshal(reply, status)) { in OnGetColumnCount() 78 if (!ITypesUtil::Marshal(reply, status, columnCount)) { in OnGetColumnCount() [all …]
|
/foundation/multimedia/av_session/frameworks/js/napi/session/src/ |
D | napi_meta_data.cpp | 82 auto status = napi_typeof(env, filter, &type); in ConvertFilter() local 83 CHECK_RETURN(status == napi_ok, "napi_typeof failed", status); in ConvertFilter() 87 status = NapiUtils::GetValue(env, filter, stringFilter); in ConvertFilter() 88 CHECK_RETURN(status == napi_ok, "get string filter failed", status); in ConvertFilter() 98 status = napi_get_array_length(env, filter, &count); in ConvertFilter() 99 CHECK_RETURN(status == napi_ok, "get array length failed", status); in ConvertFilter() 102 status = napi_get_element(env, filter, i, &value); in ConvertFilter() 103 CHECK_RETURN(status == napi_ok, "get element failed", status); in ConvertFilter() 105 status = NapiUtils::GetValue(env, value, metaKey); in ConvertFilter() 106 CHECK_RETURN(status == napi_ok, "get string value failed", status); in ConvertFilter() [all …]
|
D | napi_playback_state.cpp | 60 auto status = napi_typeof(env, filter, &type); in ConvertFilter() local 61 CHECK_RETURN(status == napi_ok, "napi_typeof failed", status); in ConvertFilter() 65 status = NapiUtils::GetValue(env, filter, stringFilter); in ConvertFilter() 66 CHECK_RETURN(status == napi_ok, "get string filter failed", status); in ConvertFilter() 74 status = napi_get_array_length(env, filter, &count); in ConvertFilter() 75 CHECK_RETURN(status == napi_ok, "get array length failed", status); in ConvertFilter() 78 status = napi_get_element(env, filter, i, &value); in ConvertFilter() 79 CHECK_RETURN(status == napi_ok, "get element failed", status); in ConvertFilter() 81 status = NapiUtils::GetValue(env, value, metaKey); in ConvertFilter() 82 CHECK_RETURN(status == napi_ok, "get string value failed", status); in ConvertFilter() [all …]
|
D | napi_media_description.cpp | 74 auto status = NapiUtils::GetPropertyNames(env, in, propertyNames); in GetValue() local 75 CHECK_RETURN(status == napi_ok, "get property name failed", status); in GetValue() 95 napi_status status = napi_create_object(env, &out); in SetValue() local 96 CHECK_RETURN((status == napi_ok) && (out != nullptr), "create object failed", status); in SetValue() 108 void NapiMediaDescription::CheckAndSetDefaultString(napi_status status, std::string& defaultStr) in CheckAndSetDefaultString() argument 110 if (status != napi_ok) { in CheckAndSetDefaultString() 116 void NapiMediaDescription::CheckAndSetDefaultInt(napi_status status, int32_t& defaultInt) in CheckAndSetDefaultInt() argument 118 if (status != napi_ok) { in CheckAndSetDefaultInt() 127 auto status = NapiUtils::GetNamedProperty(env, in, "mediaId", property); in GetMediaId() local 128 if (status != napi_ok) { in GetMediaId() [all …]
|
D | napi_utils.cpp | 116 napi_status status = napi_typeof(env, in, &type); in GetValue() local 117 CHECK_RETURN((status == napi_ok) && (type == napi_string), "invalid type", napi_invalid_arg); in GetValue() 120 status = napi_get_value_string_utf8(env, in, nullptr, 0, &maxLen); in GetValue() 127 status = napi_get_value_string_utf8(env, in, buf, maxLen + STR_TAIL_LENGTH, &len); in GetValue() 128 if (status == napi_ok) { in GetValue() 131 return status; in GetValue() 142 napi_status status = napi_create_object(env, &out); in SetValue() local 143 CHECK_RETURN((status == napi_ok) && (out != nullptr), "create object failed", status); in SetValue() 146 status = SetValue(env, in.GetDeviceID(), property); in SetValue() 147 CHECK_RETURN((status == napi_ok) && (property != nullptr), "create property failed", status); in SetValue() [all …]
|
D | napi_cast_control_command.cpp | 73 auto status = NapiUtils::GetNamedProperty(env, in, "command", cmd); in GetValue() local 74 if (status != napi_ok) { in GetValue() 76 return status; in GetValue() 95 napi_status status = napi_create_object(env, &out); in SetValue() local 96 CHECK_RETURN((status == napi_ok) && (out != nullptr), "create object failed", status); in SetValue() 100 status = NapiUtils::SetValue(env, cmd, property); in SetValue() 101 CHECK_RETURN(status == napi_ok, "create command property failed", status); in SetValue() 102 status = napi_set_named_property(env, out, "command", property); in SetValue() 103 CHECK_RETURN(status == napi_ok, "set command property failed", status); in SetValue() 136 auto status = NapiUtils::GetNamedProperty(env, in, "parameter", forwardTime); in GetForwardTime() local [all …]
|
D | napi_control_command.cpp | 72 auto status = NapiUtils::GetNamedProperty(env, in, "command", cmd); in GetValue() local 73 if (status != napi_ok) { in GetValue() 75 return status; in GetValue() 94 napi_status status = napi_create_object(env, &out); in SetValue() local 95 CHECK_RETURN((status == napi_ok) && (out != nullptr), "create object failed", status); in SetValue() 99 status = NapiUtils::SetValue(env, cmd, property); in SetValue() 100 CHECK_RETURN(status == napi_ok, "create command property failed", status); in SetValue() 101 status = napi_set_named_property(env, out, "command", property); in SetValue() 102 CHECK_RETURN(status == napi_ok, "set command property failed", status); in SetValue() 135 auto status = NapiUtils::GetNamedProperty(env, in, "parameter", speed); in GetSpeed() local [all …]
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/cmd/ |
D | hci_cmd_failure_le_controller.c | 27 static void HciCmdOnLeSetEventMaskFailed(uint8_t status, const void *param) in HciCmdOnLeSetEventMaskFailed() argument 30 .status = status, in HciCmdOnLeSetEventMaskFailed() 41 static void HciCmdOnLeReadBufferSizeFailed(uint8_t status, const void *param) in HciCmdOnLeReadBufferSizeFailed() argument 44 .status = status, in HciCmdOnLeReadBufferSizeFailed() 55 static void HciCmdOnLeReadLocalSupportedFeaturesFailed(uint8_t status, const void *param) in HciCmdOnLeReadLocalSupportedFeaturesFailed() argument 58 .status = status, in HciCmdOnLeReadLocalSupportedFeaturesFailed() 69 static void HciCmdOnLeSetRandomAddressFailed(uint8_t status, const void *param) in HciCmdOnLeSetRandomAddressFailed() argument 72 .status = status, in HciCmdOnLeSetRandomAddressFailed() 83 static void HciCmdOnLeSetAdvertisingParametersFailed(uint8_t status, const void *param) in HciCmdOnLeSetAdvertisingParametersFailed() argument 86 .status = status, in HciCmdOnLeSetAdvertisingParametersFailed() [all …]
|
D | hci_cmd_failure_controller_baseband.c | 27 static void HciCmdOnSetEventMaskFailed(uint8_t status, const void *param) in HciCmdOnSetEventMaskFailed() argument 30 .status = status, in HciCmdOnSetEventMaskFailed() 41 static void HciCmdOnResetFailed(uint8_t status, const void *param) in HciCmdOnResetFailed() argument 44 .status = status, in HciCmdOnResetFailed() 55 static void HciCmdOnSetEventFilterFailed(uint8_t status, const void *param) in HciCmdOnSetEventFilterFailed() argument 58 .status = status, in HciCmdOnSetEventFilterFailed() 69 static void HciCmdOnFlushFailed(uint8_t status, const void *param) in HciCmdOnFlushFailed() argument 72 .status = status, in HciCmdOnFlushFailed() 83 static void HciCmdOnReadPinTypeFailed(uint8_t status, const void *param) in HciCmdOnReadPinTypeFailed() argument 86 .status = status, in HciCmdOnReadPinTypeFailed() [all …]
|
D | hci_cmd_failure_link_ctrl.c | 30 static void HciCmdOnInquiryFailed(uint8_t status, const void *param) in HciCmdOnInquiryFailed() argument 33 .status = status, in HciCmdOnInquiryFailed() 44 static void HciCmdOnInquiryCancelFailed(uint8_t status, const void *param) in HciCmdOnInquiryCancelFailed() argument 47 .status = status, in HciCmdOnInquiryCancelFailed() 58 static void HciCmdOnPeriodicInquiryModeFailed(uint8_t status, const void *param) in HciCmdOnPeriodicInquiryModeFailed() argument 61 .status = status, in HciCmdOnPeriodicInquiryModeFailed() 72 static void HciCmdOnExitPeriodicInquiryModeFailed(uint8_t status, const void *param) in HciCmdOnExitPeriodicInquiryModeFailed() argument 75 .status = status, in HciCmdOnExitPeriodicInquiryModeFailed() 86 static void HciCmdOnCreateConnectionFailed(uint8_t status, const void *param) in HciCmdOnCreateConnectionFailed() argument 89 .status = status, in HciCmdOnCreateConnectionFailed() [all …]
|
D | hci_cmd_failure_status_params.c | 27 static void HciCmdOnReadFailedContactCounterFailed(uint8_t status, const void *param) in HciCmdOnReadFailedContactCounterFailed() argument 30 .status = status, in HciCmdOnReadFailedContactCounterFailed() 42 static void HciCmdOnResetFailedContactCounterFailed(uint8_t status, const void *param) in HciCmdOnResetFailedContactCounterFailed() argument 45 .status = status, in HciCmdOnResetFailedContactCounterFailed() 57 static void HciCmdOnReadLinkQualityFailed(uint8_t status, const void *param) in HciCmdOnReadLinkQualityFailed() argument 60 .status = status, in HciCmdOnReadLinkQualityFailed() 72 static void HciCmdOnReadRssiFailed(uint8_t status, const void *param) in HciCmdOnReadRssiFailed() argument 75 .status = status, in HciCmdOnReadRssiFailed() 87 static void HciCmdOnReadAfhChannelMapFailed(uint8_t status, const void *param) in HciCmdOnReadAfhChannelMapFailed() argument 90 .status = status, in HciCmdOnReadAfhChannelMapFailed() [all …]
|
/foundation/communication/dsoftbus/tests/adapter/bluetooth/ |
D | adapter_bt_utils_test.cpp | 35 auto status = BleOhosStatusToSoftBus(OHOS_BT_STATUS_SUCCESS); variable 36 EXPECT_EQ(status, SOFTBUS_BT_STATUS_SUCCESS); 38 status = BleOhosStatusToSoftBus(OHOS_BT_STATUS_FAIL); 39 EXPECT_EQ(status, SOFTBUS_BT_STATUS_FAIL); 41 status = BleOhosStatusToSoftBus(OHOS_BT_STATUS_NOT_READY); 42 EXPECT_EQ(status, SOFTBUS_BT_STATUS_NOT_READY); 44 status = BleOhosStatusToSoftBus(OHOS_BT_STATUS_NOMEM); 45 EXPECT_EQ(status, SOFTBUS_BT_STATUS_NOMEM); 47 status = BleOhosStatusToSoftBus(OHOS_BT_STATUS_BUSY); 48 EXPECT_EQ(status, SOFTBUS_BT_STATUS_BUSY); [all …]
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/ |
D | distributeddb_nb_crud_test.cpp | 112 DBStatus status; in ConcurOperThread() local 116 …status = DistributedDBNbTestTools::Get(*g_kvStoreNbDelegate, paramsPtr->entryPtr_->key, valueResul… in ConcurOperThread() 118 EXPECT_EQ(status, OK); in ConcurOperThread() 122 status = DistributedDBNbTestTools::Put(*g_kvStoreNbDelegate, in ConcurOperThread() 124 ASSERT_EQ(status, DBStatus::OK); in ConcurOperThread() 126 …status = DistributedDBNbTestTools::Get(*g_kvStoreNbDelegate, paramsPtr->entryPtr_->key, valueResul… in ConcurOperThread() 127 EXPECT_EQ(status, DBStatus::OK); in ConcurOperThread() 131 …status = DistributedDBNbTestTools::Get(*g_kvStoreNbDelegate, paramsPtr->entryPtr_->key, valueResul… in ConcurOperThread() 133 … status = DistributedDBNbTestTools::Delete(*g_kvStoreNbDelegate, paramsPtr->entryPtr_->key); in ConcurOperThread() 134 ASSERT_EQ(status, DBStatus::OK); in ConcurOperThread() [all …]
|
/foundation/multimodalinput/input/util/common/src/ |
D | util_napi_value.cpp | 31 auto status = napi_get_boolean(env, value, &napiValue); in SetNameProperty() local 32 CHKRR(status, "create bool", status); in SetNameProperty() 33 status = napi_set_named_property(env, object, name.c_str(), napiValue); in SetNameProperty() 34 CHKRR(status, "set property", status); in SetNameProperty() 35 return status; in SetNameProperty() 41 auto status = napi_create_uint32(env, value, &napiValue); in SetNameProperty() local 42 CHKRR(status, "create bool", status); in SetNameProperty() 43 status = napi_set_named_property(env, object, name.c_str(), napiValue); in SetNameProperty() 44 CHKRR(status, "set property", status); in SetNameProperty() 45 return status; in SetNameProperty() [all …]
|
D | key_event_napi.cpp | 29 …auto status = SetNameProperty(env, out, "action", in->GetKeyAction() - KeyEvent::KEY_ACTION_CANCEL… in CreateKeyEvent() local 30 CHKRR(status, "set action property", status); in CreateKeyEvent() 32 CHECK_RETURN(in->GetKeyItem(), "get key item", status); in CreateKeyEvent() 34 status = SetNameProperty(env, out, "key", keyItem); in CreateKeyEvent() 35 CHKRR(status, "set key property", status); in CreateKeyEvent() 37 status = SetNameProperty(env, out, "unicodeChar", in->GetKeyItem()->GetUnicode()); in CreateKeyEvent() 38 CHKRR(status, "set unicodeChar property", status); in CreateKeyEvent() 41 status = SetNameProperty(env, out, "keys", keyItems); in CreateKeyEvent() 42 CHKRR(status, "set keys property", status); in CreateKeyEvent() 44 status = WriteKeyStatusToJs(env, in->GetPressedKeys(), out); in CreateKeyEvent() [all …]
|
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/input/ |
D | camera_napi.cpp | 62 napi_status status; in CameraNapiConstructor() local 67 CAMERA_NAPI_GET_JS_OBJ_WITH_ZERO_ARGS(env, info, status, thisVar); in CameraNapiConstructor() 69 if (status == napi_ok && thisVar != nullptr) { in CameraNapiConstructor() 73 status = napi_wrap(env, thisVar, reinterpret_cast<void*>(obj.get()), in CameraNapiConstructor() 75 if (status == napi_ok) { in CameraNapiConstructor() 99 napi_status status; in Init() local 133 …status = napi_define_class(env, CAMERA_LIB_NAPI_CLASS_NAME, NAPI_AUTO_LENGTH, CameraNapiConstructo… in Init() 136 if (status == napi_ok) { in Init() 138 status = napi_set_named_property(env, exports, CAMERA_LIB_NAPI_CLASS_NAME, ctorObj); in Init() 139 if (status == napi_ok && napi_define_properties(env, exports, in Init() [all …]
|
D | camera_info_napi.cpp | 52 napi_status status; in Init() local 65 status = napi_define_class(env, CAMERA_OBJECT_NAPI_CLASS_NAME, NAPI_AUTO_LENGTH, in Init() 69 if (status == napi_ok) { in Init() 70 status = napi_create_reference(env, ctorObj, refCount, &sConstructor_); in Init() 71 if (status == napi_ok) { in Init() 72 status = napi_set_named_property(env, exports, CAMERA_OBJECT_NAPI_CLASS_NAME, ctorObj); in Init() 73 if (status == napi_ok) { in Init() 86 napi_status status; in CameraDeviceNapiConstructor() local 91 CAMERA_NAPI_GET_JS_OBJ_WITH_ZERO_ARGS(env, info, status, thisVar); in CameraDeviceNapiConstructor() 93 if (status == napi_ok && thisVar != nullptr) { in CameraDeviceNapiConstructor() [all …]
|
/foundation/multimedia/audio_framework/frameworks/js/napi/audio_capturer/src/ |
D | audio_parameters_napi.cpp | 61 napi_status status; in AddNamedProperty() local 64 status = napi_create_int32(env, enumValue, &enumNapiValue); in AddNamedProperty() 65 if (status == napi_ok) { in AddNamedProperty() 66 status = napi_set_named_property(env, object, name.c_str(), enumNapiValue); in AddNamedProperty() 69 return status; in AddNamedProperty() 75 napi_status status; in CreateAudioChannelObject() local 78 status = napi_create_object(env, &result); in CreateAudioChannelObject() 79 if (status == napi_ok) { in CreateAudioChannelObject() 82 status = AddNamedProperty(env, result, propName, iter.second); in CreateAudioChannelObject() 83 if (status != napi_ok) { in CreateAudioChannelObject() [all …]
|
/foundation/distributeddatamgr/udmf/interfaces/jskits/module/ |
D | unified_data_channel_napi_module.cpp | 43 napi_status status = in Init() local 45 LOG_INFO(UDMF_KITS_NAPI, "init UnifiedData %{public}d", status); in Init() 46 …status = napi_set_named_property(env, exports, "Summary", OHOS::UDMF::SummaryNapi::Constructor(env… in Init() 47 LOG_INFO(UDMF_KITS_NAPI, "init Summary %{public}d", status); in Init() 48 …status = napi_set_named_property(env, exports, "UnifiedRecord", OHOS::UDMF::UnifiedRecordNapi::Con… in Init() 49 LOG_INFO(UDMF_KITS_NAPI, "init UnifiedRecord %{public}d", status); in Init() 50 status = napi_set_named_property(env, exports, "Text", OHOS::UDMF::TextNapi::Constructor(env)); in Init() 51 LOG_INFO(UDMF_KITS_NAPI, "init Text %{public}d", status); in Init() 52 …status = napi_set_named_property(env, exports, "PlainText", OHOS::UDMF::PlainTextNapi::Constructor… in Init() 53 LOG_INFO(UDMF_KITS_NAPI, "init PlainText %{public}d", status); in Init() [all …]
|
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/common/ |
D | adapter_bt_utils.c | 21 int32_t status; in BleOhosStatusToSoftBus() local 24 status = SOFTBUS_BT_STATUS_SUCCESS; in BleOhosStatusToSoftBus() 27 status = SOFTBUS_BT_STATUS_FAIL; in BleOhosStatusToSoftBus() 30 status = SOFTBUS_BT_STATUS_NOT_READY; in BleOhosStatusToSoftBus() 33 status = SOFTBUS_BT_STATUS_NOMEM; in BleOhosStatusToSoftBus() 36 status = SOFTBUS_BT_STATUS_BUSY; in BleOhosStatusToSoftBus() 39 status = SOFTBUS_BT_STATUS_DONE; in BleOhosStatusToSoftBus() 42 status = SOFTBUS_BT_STATUS_UNSUPPORTED; in BleOhosStatusToSoftBus() 45 status = SOFTBUS_BT_STATUS_PARM_INVALID; in BleOhosStatusToSoftBus() 48 status = SOFTBUS_BT_STATUS_UNHANDLED; in BleOhosStatusToSoftBus() [all …]
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/gaussdb_rd/test/unittest/api/ |
D | documentdb_api_test.cpp | 62 int status = GRD_DBOpen(path.c_str(), nullptr, GRD_DB_OPEN_CREATE, &db); variable 63 EXPECT_EQ(status, GRD_OK); 65 GLOGD("Open DB test 001: status: %d", status); 73 status = GRD_DBClose(db, GRD_DB_CLOSE); 74 EXPECT_EQ(status, GRD_OK); 90 int status = GRD_DBOpen(path.c_str(), nullptr, GRD_DB_OPEN_CREATE, nullptr); variable 91 EXPECT_EQ(status, GRD_INVALID_ARGS); 94 status = GRD_DBOpen(path.c_str(), nullptr, GRD_DB_OPEN_CREATE, &db); 95 EXPECT_EQ(status, GRD_OK); 98 status = GRD_DBClose(db, GRD_DB_CLOSE); [all …]
|
/foundation/distributeddatamgr/data_object/frameworks/innerkitsimpl/src/adaptor/ |
D | distributed_object_impl.cpp | 91 uint32_t status = flatObjectStore_->Get(sessionId_, FIELDS_PREFIX + key, data); in GetDouble() local 92 if (status != SUCCESS) { in GetDouble() 93 …LOG_ERROR("DistributedObjectImpl:GetDouble field not exist. %{public}d %{public}s", status, key.c_… in GetDouble() 94 return status; in GetDouble() 96 status = GetNum(data, sizeof(Type), &value, sizeof(value)); in GetDouble() 97 if (status != SUCCESS) { in GetDouble() 98 LOG_ERROR("DistributedObjectImpl::GetDouble getNum err. %{public}d", status); in GetDouble() 100 return status; in GetDouble() 107 uint32_t status = flatObjectStore_->Get(sessionId_, FIELDS_PREFIX + key, data); in GetBoolean() local 108 if (status != SUCCESS) { in GetBoolean() [all …]
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
D | single_store_impl_test.cpp | 103 auto status = StoreManager::GetInstance().CloseKVStore(appId, storeId); in TearDown() local 104 ASSERT_EQ(status, SUCCESS); in TearDown() 106 status = StoreManager::GetInstance().Delete(appId, storeId, baseDir); in TearDown() 107 ASSERT_EQ(status, SUCCESS); in TearDown() 123 Status status = StoreManager::GetInstance().Delete(appId, storeId, options.baseDir); in CreateKVStore() local 124 return StoreManager::GetInstance().GetKVStore(appId, storeId, options, status); in CreateKVStore() 151 auto status = kvStore_->Put({ "Put Test" }, { "Put Value" }); variable 152 ASSERT_EQ(status, SUCCESS); 153 status = kvStore_->Put({ " Put Test" }, { "Put2 Value" }); 154 ASSERT_EQ(status, SUCCESS); [all …]
|