/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/test/unittest/src/ |
H A D | location_button_test.cpp | 58 ASSERT_TRUE(comp.FromJson(jsonComponent)); 71 ASSERT_FALSE(comp.FromJson(jsonComponent)); 85 ASSERT_TRUE(comp.FromJson(jsonComponent)); 88 ASSERT_FALSE(comp.FromJson(jsonComponent)); 91 ASSERT_FALSE(comp.FromJson(jsonComponent)); 107 ASSERT_FALSE(comp.FromJson(jsonComponent)); 110 ASSERT_TRUE(comp.FromJson(jsonComponent)); 114 ASSERT_FALSE(comp.FromJson(jsonComponent)); 118 ASSERT_FALSE(comp.FromJson(jsonComponent)); 145 ASSERT_TRUE(comp.FromJson(jsonComponent)); [all …]
|
H A D | paste_button_test.cpp | 57 ASSERT_TRUE(button.FromJson(jsonComponent)); 61 ASSERT_FALSE(button.FromJson(jsonComponent)); 65 ASSERT_FALSE(button.FromJson(jsonComponent)); 69 ASSERT_FALSE(button.FromJson(jsonComponent)); 73 ASSERT_FALSE(button.FromJson(jsonComponent)); 77 ASSERT_FALSE(button.FromJson(jsonComponent)); 81 ASSERT_FALSE(button.FromJson(jsonComponent)); 98 ASSERT_TRUE(button1.FromJson(jsonComponent)); 99 ASSERT_TRUE(button2.FromJson(jsonComponent)); 128 ASSERT_TRUE(comp1.FromJson(jsonComponent)); [all …]
|
H A D | save_button_test.cpp | 57 ASSERT_TRUE(button.FromJson(jsonComponent)); 61 ASSERT_FALSE(button.FromJson(jsonComponent)); 65 ASSERT_FALSE(button.FromJson(jsonComponent)); 69 ASSERT_FALSE(button.FromJson(jsonComponent)); 73 ASSERT_FALSE(button.FromJson(jsonComponent)); 77 ASSERT_FALSE(button.FromJson(jsonComponent)); 81 ASSERT_FALSE(button.FromJson(jsonComponent)); 98 ASSERT_TRUE(button1.FromJson(jsonComponent)); 99 ASSERT_TRUE(button2.FromJson(jsonComponent)); 128 ASSERT_TRUE(comp1.FromJson(jsonComponent)); [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/utils/test/unittest/common/histreamer_ability_parser/ |
H A D | histreamer_ability_parser_test.cpp | 78 FromJson(json, audioEncoderIn); 97 FromJson(json, audioEncoderOut); 102 FromJson(json, audioEncoderOut); 107 FromJson(json, audioEncoderOut); 112 FromJson(json, audioEncoderOut); 131 FromJson(jsonObject, audioEncoder); 135 FromJson(jsonObject, audioEncoder); 143 FromJson(jsonObject, audioEncoder); 211 FromJson(jsonObject, audioDecoder); 215 FromJson(jsonObject, audioDecoder); [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/utils/src/ |
H A D | histreamer_ability_parser.cpp | 98 void FromJson(const cJSON *jsonObject, AudioEncoder &audioEncoder) in FromJson() function 118 FromJson(inJson, in); in FromJson() 130 FromJson(outJson, out); in FromJson() 204 FromJson(inJson, in); in FromJson() 215 FromJson(outJson, out); in FromJson() 278 FromJson(inJson, in); in FromJson() 290 FromJson(outJson, out); in FromJson() 365 FromJson(inJson, in); in FromJson() 377 FromJson(outJson, out); in FromJson() 398 FromJson(item, obj); in FromJson() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/test/unittest/common/src/ |
H A D | histreamer_ability_querier_test.cpp | 287 FromJson(jsonObject, audioEncoderIn); 343 FromJson(jsonObject, audioEncoder); 353 FromJson(jsonObject2, audioEncoder); 361 FromJson(jsonObject2, audioEncoder); 447 FromJson(jsonObject, audioDecoder); 457 FromJson(jsonObject2, audioDecoder); 469 FromJson(jsonObject2, audioDecoder); 541 FromJson(jsonObject, videoEncoder); 547 FromJson(jsonObject, videoEncoder); 557 FromJson(jsonObject2, videoEncoder); [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/include/ |
H A D | histreamer_ability_querier.h | 58 void FromJson(const cJSON *jsonObject, AudioEncoderIn &audioEncoderIn); 61 void FromJson(const cJSON *jsonObject, AudioEncoderOut &audioEncoderOut); 64 void FromJson(const cJSON *jsonObject, AudioEncoder &audioEncoder); 85 void FromJson(const cJSON *jsonObject, AudioDecoderIn &audioDecoderIn); 88 void FromJson(const cJSON *jsonObject, AudioDecoderOut &audioDecoderOut); 91 void FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder); 111 void FromJson(const cJSON *jsonObject, VideoEncoderIn &videoEncoderIn); 114 void FromJson(const cJSON *jsonObject, VideoEncoderOut &videoEncoderOut); 117 void FromJson(const cJSON *jsonObject, VideoEncoder &videoEncoder); 138 void FromJson(const cJSON *jsonObject, VideoDecoderIn &videoDecoderIn); [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/util/ |
H A D | json_util.h | 61 inline bool FromJson(const CORE_NS::json::value& jsonData, T& result) in FromJson() function 71 inline bool FromJson(const CORE_NS::json::value& jsonData, T& result) in FromJson() function 81 inline bool FromJson(const CORE_NS::json::value& jsonData, T& result) in FromJson() function 96 FromJson(value, result); in Convert() 108 inline void FromJson(const JsonType& jsonData, BASE_NS::array_view<T> container) in FromJson() function 118 inline void FromJson(const JsonType& jsonData, BASE_NS::vector<T>& container) in FromJson() function 127 inline void FromJson(const JsonType& jsonData, T (&container)[N]) in FromJson() function 129 FromJson(jsonData, BASE_NS::array_view(container)); in FromJson() 136 inline void FromJson(const JsonType& jsonData, T& output) in FromJson() function 138 FromJson(jsonData, output.data); in FromJson()
|
H A D | property_util.cpp | 394 FromJson(*value, val); in SetCustomPropertyBlobValue() 398 FromJson(*value, val); in SetCustomPropertyBlobValue() 402 FromJson(*value, val); in SetCustomPropertyBlobValue() 406 FromJson(*value, val); in SetCustomPropertyBlobValue() 410 FromJson(*value, val); in SetCustomPropertyBlobValue() 414 FromJson(*value, val); in SetCustomPropertyBlobValue() 418 FromJson(*value, val); in SetCustomPropertyBlobValue() 422 FromJson(*value, val); in SetCustomPropertyBlobValue() 426 FromJson(*value, val); in SetCustomPropertyBlobValue() 430 FromJson(*value, val); in SetCustomPropertyBlobValue() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | json_util.h | 63 inline bool FromJson(const CORE_NS::json::value& jsonData, T& result) in FromJson() function 73 inline bool FromJson(const CORE_NS::json::value& jsonData, T& result) in FromJson() function 83 inline bool FromJson(const CORE_NS::json::value& jsonData, T& result) in FromJson() function 98 FromJson(value, result); in Convert() 110 inline void FromJson(const JsonType& jsonData, BASE_NS::array_view<T> container) in FromJson() function 120 inline void FromJson(const JsonType& jsonData, BASE_NS::vector<T>& container) in FromJson() function 129 inline void FromJson(const JsonType& jsonData, T (&container)[N]) in FromJson() function 131 FromJson(jsonData, BASE_NS::array_view(container)); in FromJson() 138 inline void FromJson(const JsonType& jsonData, T& output) in FromJson() function 140 FromJson(jsonData, output.data); in FromJson()
|
H A D | property_util.cpp | 397 FromJson(*value, val); in SetCustomPropertyBlobValue() 401 FromJson(*value, val); in SetCustomPropertyBlobValue() 405 FromJson(*value, val); in SetCustomPropertyBlobValue() 409 FromJson(*value, val); in SetCustomPropertyBlobValue() 413 FromJson(*value, val); in SetCustomPropertyBlobValue() 417 FromJson(*value, val); in SetCustomPropertyBlobValue() 421 FromJson(*value, val); in SetCustomPropertyBlobValue() 425 FromJson(*value, val); in SetCustomPropertyBlobValue() 429 FromJson(*value, val); in SetCustomPropertyBlobValue() 433 FromJson(*value, val); in SetCustomPropertyBlobValue() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | json_util.h | 65 inline bool FromJson(const CORE_NS::json::value& jsonData, T& result) 75 inline bool FromJson(const CORE_NS::json::value& jsonData, T& result) in FromJson() function 100 FromJson(value, result); in Convert() 146 inline void FromJson(const JsonType& jsonData, T (&container)[N]) in FromJson() function 148 FromJson(jsonData, BASE_NS::array_view(container)); in FromJson() 155 if (!FromJson(*pos, output)) { in SafeGetJsonValue() 167 if (!FromJson(*pos, output)) { in SafeGetJsonValue() 179 if (!FromJson(*pos, output)) { in SafeGetJsonEnum() 238 FromJson(value, result); in ParseArray() 265 inline void FromJson(const JsonType& jsonData, T& output) in FromJson() function [all …]
|
H A D | shader_state_loader_util.cpp | 161 void FromJson(const json::value& jsonData, JsonContext<GraphicsState::InputAssembly>& context) 184 void FromJson(const json::value& jsonData, JsonContext<GraphicsState::StencilOpState>& context) in FromJson() function 209 FromJson(*frontStencilStateIt, stencilContext); in FromJson() 218 FromJson(*backStencilStateIt, stencilContext); in FromJson() 240 void FromJson(const json::value& jsonData, JsonContext<GraphicsState::ColorBlendState>& context) in FromJson() function 246 FromJson(*colorBlendConstantsIt, context.data.colorBlendConstants); in FromJson() 251 FromJson(*colorAttachmentsIt, colorContexts); in FromJson() 276 FromJson(*inputAssemblyIt, context); in ParseSingleState() 287 FromJson(*rasterizationStateIt, context); in ParseSingleState() 298 FromJson(*depthStencilStateIt, context); in ParseSingleState() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/utils/include/ |
H A D | histreamer_ability_parser.h | 279 void FromJson(const cJSON *jsonObject, AudioEncoderIn &audioEncoderIn); 280 void FromJson(const cJSON *jsonObject, AudioEncoderOut &audioEncoderOut); 281 void FromJson(const cJSON *jsonObject, AudioEncoder &audioEncoder); 301 void FromJson(const cJSON *jsonObject, AudioDecoderIn &audioDecoderIn); 302 void FromJson(const cJSON *jsonObject, AudioDecoderOut &audioDecoderOut); 303 void FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder); 322 void FromJson(const cJSON *jsonObject, VideoEncoderIn &videoEncoderIn); 323 void FromJson(const cJSON *jsonObject, VideoEncoderOut &videoEncoderOut); 324 void FromJson(const cJSON *jsonObject, VideoEncoder &videoEncoder); 344 void FromJson(const cJSON *jsonObject, VideoDecoderIn &videoDecoderIn); [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | json_util.h | 70 inline bool FromJson(const CORE_NS::json::value& jsonIn, T& output) in FromJson() function 80 inline bool FromJson(const CORE_NS::json::value& jsonIn, T& output) in FromJson() function 89 inline bool FromJson(const CORE_NS::json::value& jsonIn, bool& output) in FromJson() function 98 inline bool FromJson(const CORE_NS::json::value& jsonIn, BASE_NS::Uid& output) in FromJson() function 113 if (!FromJson(element, *output)) { in FromJsonArray() 123 inline bool FromJson(const CORE_NS::json::value& jsonIn, BASE_NS::Math::Vec2& output) in FromJson() function 128 inline bool FromJson(const CORE_NS::json::value& jsonIn, BASE_NS::Math::Vec3& output) in FromJson() function 133 inline bool FromJson(const CORE_NS::json::value& jsonIn, BASE_NS::Math::Vec4& output) in FromJson() function 138 inline bool FromJson(const CORE_NS::json::value& jsonIn, BASE_NS::Math::UVec2& output) in FromJson() function 143 inline bool FromJson(const CORE_NS::json::value& jsonIn, BASE_NS::Math::UVec3& output) in FromJson() function [all …]
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_conversational_content_test.cpp | 46 rrc->FromJson(jsonObject); 62 rrc->FromJson(jsonObject); 64 EXPECT_EQ(rrc->FromJson(jsonObject), nullptr); 83 messageUser.FromJson(jsonObject); 100 auto newContent = content->FromJson(jsonObject); 229 rrc->FromJson(jsonObject); 253 rrc->FromJson(jsonObject); 274 EXPECT_NE(rrc->FromJson(jsonObject), nullptr);
|
H A D | message_user_test.cpp | 45 EXPECT_EQ(messageUser ->FromJson(jsonObject), nullptr); 58 messageUser.FromJson(jsonObject); 60 EXPECT_EQ(messageUser.FromJson(jsonObject), nullptr); 77 messageUser.FromJson(jsonObject); 146 auto res = messageUser.FromJson(jsonObject);
|
H A D | notification_conversational_message_test.cpp | 104 rrc->FromJson(jsonObject); 178 rrc->FromJson(jsonObject); 179 EXPECT_EQ(rrc->FromJson(jsonObject), nullptr); 201 rrc->FromJson(jsonObject); 218 rrc->FromJson(jsonObject); 236 auto res = rrc->FromJson(jsonObject); 253 auto res = rrc->FromJson(jsonObject);
|
H A D | notification_long_text_content_test.cpp | 59 rrc->FromJson(jsonObject); 73 rrc->FromJson(jsonObject); 75 EXPECT_EQ(rrc->FromJson(jsonObject), nullptr); 92 rrc->FromJson(jsonObject); 156 EXPECT_NE(rrc->FromJson(jsonObject), nullptr);
|
H A D | notification_picture_content_test.cpp | 102 rrc->FromJson(jsonObject); 117 rrc->FromJson(jsonObject); 119 EXPECT_EQ(rrc->FromJson(jsonObject), nullptr); 137 rrc->FromJson(jsonObject); 202 auto res = rrc->FromJson(jsonObject);
|
H A D | notification_content_test.cpp | 270 notificationContent.FromJson(jsonObject); 272 EXPECT_EQ(notificationContent.FromJson(jsonObject), nullptr); 290 notificationContent.FromJson(jsonObject); 304 EXPECT_EQ(content.FromJson(jsonObject), nullptr); 308 EXPECT_NE(content.FromJson(jsonObject), nullptr); 311 EXPECT_NE(content.FromJson(jsonObject), nullptr); 314 EXPECT_NE(content.FromJson(jsonObject), nullptr); 317 EXPECT_NE(content.FromJson(jsonObject), nullptr); 320 EXPECT_NE(content.FromJson(jsonObject), nullptr); 323 EXPECT_NE(content.FromJson(jsonObject), nullptr);
|
H A D | notification_multiline_content_test.cpp | 102 rrc->FromJson(jsonObject); 184 auto res = rrc->FromJson(jsonObject); 200 auto res = rrc->FromJson(jsonObject); 216 auto res = rrc->FromJson(jsonObject); 232 auto res = rrc->FromJson(jsonObject);
|
H A D | notification_flags_test.cpp | 86 rrc->FromJson(jsonObject); 100 rrc->FromJson(jsonObject); 102 EXPECT_EQ(rrc->FromJson(jsonObject), nullptr); 119 rrc->FromJson(jsonObject);
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/av_transport/av_trans_handler/histreamer_ability_querier/src/ |
H A D | histreamer_ability_querier.cpp | 289 void FromJson(const cJSON *jsonObject, AudioEncoder &audioEncoder) in FromJson() function 309 FromJson(inJson, in); in FromJson() 321 FromJson(outJson, out); in FromJson() 499 void FromJson(const cJSON *jsonObject, AudioDecoder &audioDecoder) in FromJson() function 519 FromJson(inJson, in); in FromJson() 530 FromJson(outJson, out); in FromJson() 714 FromJson(inJson, in); in FromJson() 726 FromJson(outJson, out); in FromJson() 933 FromJson(inJson, in); in FromJson() 945 FromJson(outJson, out); in FromJson() [all …]
|
/ohos5.0/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/ |
H A D | sandbox_json_manager_test.cpp | 142 sandboxJsonManager_->FromJson(jsonObject); 151 sandboxJsonManager_->FromJson(jsonObject); 160 sandboxJsonManager_->FromJson(jsonObject); 169 sandboxJsonManager_->FromJson(jsonObject); 178 sandboxJsonManager_->FromJson(jsonObject);
|