Home
last modified time | relevance | path

Searched refs:AddNumber16ToJsonObject (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/ble/mock/
H A Dconnection_ble_trans_mock.cpp60 bool AddNumber16ToJsonObject(cJSON *json, const char *const string, uint16_t num) in AddNumber16ToJsonObject() function
62 return GetConnectionBleTransInterface()->AddNumber16ToJsonObject(json, string, num); in AddNumber16ToJsonObject()
H A Dconnection_ble_trans_mock.h34 virtual bool AddNumber16ToJsonObject(cJSON *json, const char *const string, uint16_t num) = 0;
47 MOCK_METHOD(bool, AddNumber16ToJsonObject, (cJSON *, const char *const, uint16_t), (override));
/ohos5.0/foundation/communication/dsoftbus/core/common/include/
H A Dsoftbus_json_utils.h52 bool AddNumber16ToJsonObject(cJSON *json, const char * const string, uint16_t num);
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/json_utils/uttest/
H A Dsoftbus_json_utils_test.cpp347 bool ret = AddNumber16ToJsonObject(json, JSON_KEY1, INPUT_NUM);
635 bool ret = AddNumber16ToJsonObject(nullptr, JSON_KEY1, INPUT_NUM);
637 ret = AddNumber16ToJsonObject(json, nullptr, INPUT_NUM);
639 ret = AddNumber16ToJsonObject(json, JSON_KEY1, INPUT_NUM);
/ohos5.0/foundation/communication/dsoftbus/core/transmission/common/src/
H A Dsoftbus_message_open_channel.c140 if (!AddNumber16ToJsonObject(json, FIRST_DATA_SIZE, appInfo->fastTransDataSize)) { in PackRequest()
328 if (!AddNumber16ToJsonObject(json, FIRST_DATA_SIZE, appInfo->fastTransDataSize)) { in PackReply()
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/ble/
H A Dconnection_ble_trans_test.cpp165 EXPECT_CALL(bleMock, AddNumber16ToJsonObject).WillRepeatedly(Return(true));
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/common/softbus_message_open_channel_test/
H A Dsoftbus_message_open_channel_test.cpp97 !AddNumber16ToJsonObject(msg, "FIRST_DATA_SIZE", appInfo->fastTransDataSize) || in TestTransAuthChannelMsgPack()
/ohos5.0/foundation/communication/dsoftbus/core/common/json_utils/
H A Dsoftbus_json_utils.c232 bool AddNumber16ToJsonObject(cJSON *json, const char * const string, uint16_t num) in AddNumber16ToJsonObject() function
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_message.c416 if (!AddNumber16ToJsonObject(root, JSON_KEY_FIRST_DATA_SIZE, appInfo->fastTransDataSize)) { in PackHandshakeMsgForFastData()
567 !AddNumber16ToJsonObject(root, JSON_KEY_FIRST_DATA_SIZE, appInfo->fastTransDataSize) || in TransProxyPackHandshakeAckMsg()
/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/src/
H A Dsoftbus_conn_ble_trans.c425 !AddNumber16ToJsonObject(json, CTRL_MSG_KEY_CHALLENGE, ctx.challengeCode)) { in BleCtrlMsgSerializeByJson()