Home
last modified time | relevance | path

Searched refs:rectJson (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/distributedhardware/distributed_screen/services/screentransport/test/unittest/screendatachannel/src/
H A Dscreen_data_channel_impl_test.cpp354 nlohmann::json rectJson; variable
357 rectJson["dirtySize"] = 2;
361 rectJson["dataType"] = 2;
365 rectJson["dataType"] = 2;
368 rectJson["dirtySize"] = 2;
369 rectJson["dataType"] = 2;
370 rectJson["3"] = 2;
374 rectJson["0"] = testJson;
385 rectJson["0"][KEY_POINT_DIRTY_H] = 2;
388 rectJson["0"][KEY_POINT_DIRTY_W] = 2;
[all …]
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screentransport/screendatachannel/src/
H A Dscreen_data_channel_impl.cpp220 nlohmann::json rectJson; in SendDirtyData() local
221 DirtyVecToJson(rectJson, screenData); in SendDirtyData()
223 std::string rectInfo = rectJson.dump(); in SendDirtyData()
343 if (rectJson.is_discarded()) { in ProcessDirtyData()
347 JsonToDirtyJson(rectJson, dataBuffer); in ProcessDirtyData()
354 rectJson["dataType"] = screenData->DataType(); in DirtyVecToJson()
355 rectJson["dirtySize"] = dirtyRectVec.size(); in DirtyVecToJson()
372 if (!IsInt32(rectJson, "dirtySize") || !IsInt32(rectJson, "dataType")) { in JsonToDirtyJson()
383 if (!rectJson.contains(item)) { in JsonToDirtyJson()
386 … if (!IsInt32(rectJson[item], KEY_POINT_DIRTY_X) || !IsInt32(rectJson[item], KEY_POINT_DIRTY_Y) || in JsonToDirtyJson()
[all …]
/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/test/unittest/src/
H A Dlocation_button_test.cpp112 auto& rectJson = jsonComponent[JsonTagConstants::JSON_RECT]; variable
113 rectJson[JsonTagConstants::JSON_RECT_X] = WRONG_TYPE;
116 rectJson[JsonTagConstants::JSON_RECT_X] = TestCommon::TEST_COORDINATE;
117 rectJson[JsonTagConstants::JSON_RECT_Y] = WRONG_TYPE;
121 rectJson[JsonTagConstants::JSON_RECT_WIDTH] = WRONG_TYPE;
125 rectJson[JsonTagConstants::JSON_RECT_HEIGHT] = WRONG_TYPE;
147 auto& rectJson = jsonComponent[JsonTagConstants::JSON_WINDOW_RECT]; variable
148 rectJson[JsonTagConstants::JSON_RECT_X] = WRONG_TYPE;
152 rectJson[JsonTagConstants::JSON_RECT_Y] = WRONG_TYPE;
156 rectJson[JsonTagConstants::JSON_RECT_WIDTH] = WRONG_TYPE;
[all …]
/ohos5.0/foundation/distributedhardware/distributed_screen/services/screentransport/screendatachannel/include/
H A Dscreen_data_channel_impl.h50 void DirtyVecToJson(nlohmann::json &rectJson, const std::shared_ptr<DataBuffer> &screenData);
51 void JsonToDirtyJson(nlohmann::json &rectJson, std::shared_ptr<DataBuffer> &screenData);