/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/ |
H A D | dcamera_source_event.cpp | 25 auto indexPtr = std::get_if<DCameraIndex>(&eventParam_); in GetDCameraIndex() 27 DHLOGE("DCameraSourceEvent can not get_if DCameraIndex"); in GetDCameraIndex() 37 auto paramPtr = std::get_if<std::shared_ptr<DCameraRegistParam>>(&eventParam_); in GetDCameraRegistParam() 39 DHLOGE("DCameraSourceEvent can not get_if DCameraRegistParam"); in GetDCameraRegistParam() 48 auto streamInfosPtr = std::get_if<std::vector<std::shared_ptr<DCStreamInfo>>>(&eventParam_); in GetStreamInfos() 50 DHLOGE("DCameraSourceEvent can not get_if DCStreamInfo"); in GetStreamInfos() 59 auto captureInfosPtr = std::get_if<std::vector<std::shared_ptr<DCCaptureInfo>>>(&eventParam_); in GetCaptureInfos() 61 DHLOGE("DCameraSourceEvent can not get_if DCCaptureInfo"); in GetCaptureInfos() 70 auto settingsPtr = std::get_if<std::vector<std::shared_ptr<DCameraSettings>>>(&eventParam_); in GetCameraSettings() 72 DHLOGE("DCameraSourceEvent can not get_if DCameraSetting in GetCameraSettings() [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | cache_cursor_test.cpp | 171 int64_t identifier = *std::get_if<int64_t>(&data["identifier"]);
in HWTEST_F() 173 std::string name = *std::get_if<std::string>(&data["name"]);
in HWTEST_F() 175 int64_t age = *std::get_if<int64_t>(&data["age"]);
in HWTEST_F() 177 std::string phoneNumber = *std::get_if<std::string>(&data["phoneNumber"]);
in HWTEST_F() 185 identifier = *std::get_if<int64_t>(&data["identifier"]);
in HWTEST_F() 190 age = *std::get_if<int64_t>(&value);
in HWTEST_F() 194 name = *std::get_if<std::string>(&value);
in HWTEST_F() 221 int64_t identifier = *std::get_if<int64_t>(&data["identifier"]);
in HWTEST_F() 223 std::string name = *std::get_if<std::string>(&data["name"]);
in HWTEST_F() 225 int64_t age = *std::get_if<int64_ in HWTEST_F() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/common/ |
H A D | traits.h | 83 * Extend the template<typename _Tp, typename... _Types> std::get_if(variant<_Types...>*) function to support these: 84 * 1. When the _Tp is a type in the ..._Types, the get_if is equal to the std::get_if. 86 * the get_if will return it. 87 * 3. When the _Tp is not a type in the ..._Types and can't convert, the get_if will return nullptr. 90 std::enable_if_t<same_in_v<T, Types...>, T *> get_if(std::variant<Types...> *input) in get_if() function 92 return std::get_if<T>(input); in get_if() 96 std::enable_if_t<same_in_v<T, Types...>, const T *> get_if(const std::variant<Types...> *input) in get_if() function 98 return std::get_if<T>(input); in get_if() 104 get_if(st function 112 get_if(const std::variant<Types...> *input) get_if() function 118 std::enable_if_t<!same_in_v<T, Types...> && (!std::is_class_v<T> || !convertible_in_v<T, Types...>), T *> get_if( get_if() function 126 std::enable_if_t<!same_in_v<T, Types...> && !convertible_in_v<T, Types...>, const T *> get_if( get_if() function [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/mock/include/ |
H A D | traits.h | 83 * Extend the template<typename _Tp, typename... _Types> std::get_if(variant<_Types...>*) function to support these: 84 * 1. When the _Tp is a type in the ..._Types, the get_if is equal to the std::get_if. 86 * the get_if will return it. 87 * 3. When the _Tp is not a type in the ..._Types and can't convert, the get_if will return nullptr. 90 std::enable_if_t<same_in_v<T, Types...>, T *> get_if(std::variant<Types...> *input) in get_if() function 92 return std::get_if<T>(input); in get_if() 96 std::enable_if_t<same_in_v<T, Types...>, const T *> get_if(const std::variant<Types...> *input) in get_if() function 98 return std::get_if<T>(input); in get_if() 105 get_if(st function 114 get_if(const std::variant<Types...> *input) get_if() function 120 std::enable_if_t<!same_in_v<T, Types...> && !convertible_in_v<T, Types...>, T *> get_if(std::variant<Types...> *input) get_if() function 127 std::enable_if_t<!same_in_v<T, Types...> && !convertible_in_v<T, Types...>, const T *> get_if( get_if() function [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/common/test/ |
H A D | traits_test.cpp | 171 // 1. When the _Tp is a type in the ..._Types, the get_if is equal to the std::get_if. in HWTEST_F() 173 auto *nil = Traits::get_if<std::monostate>(&value); in HWTEST_F() 175 auto *number = Traits::get_if<int64_t>(&value); in HWTEST_F() 178 number = Traits::get_if<int64_t>(&value); in HWTEST_F() 182 auto *dVal = Traits::get_if<double>(&value); in HWTEST_F() 186 auto *charPtr = Traits::get_if<const char *>(&value); in HWTEST_F() 200 // the get_if will return it. in HWTEST_F() 203 auto *fVal = Traits::get_if<double>(&value); in HWTEST_F() 207 auto *strVal = Traits::get_if<st in HWTEST_F() [all...] |
/foundation/distributeddatamgr/data_share/interfaces/inner_api/common/include/ |
H A D | datashare_value_object.h | 138 if (std::get_if<int64_t>(&value) != nullptr) { in operator int() 146 if (std::get_if<int64_t>(&value) != nullptr) { in operator int64_t() 154 if (std::get_if<double>(&value) != nullptr) { in operator double() 162 if (std::get_if<bool>(&value) != nullptr) { in operator bool() 170 if (std::get_if<std::string>(&value) != nullptr) { in operator std::string() 178 if (std::get_if<std::vector<uint8_t>>(&value) != nullptr) { in operator std::vector()
|
H A D | datashare_predicates_object.h | 149 if (std::get_if<int>(&value) != nullptr) { in operator int() 157 if (std::get_if<int64_t>(&value) != nullptr) { in operator int64_t() 165 if (std::get_if<double>(&value) != nullptr) { in operator double() 173 if (std::get_if<bool>(&value) != nullptr) { in operator bool() 181 if (std::get_if<std::string>(&value) != nullptr) { in operator std::string()
|
H A D | datashare_predicates_objects.h | 123 if (std::get_if<std::vector<int>>(&value) != nullptr) { in operator std::vector() 131 if (std::get_if<std::vector<int64_t>>(&value) != nullptr) { in operator std::vector() 139 if (std::get_if<std::vector<double>>(&value) != nullptr) { in operator std::vector() 147 if (std::get_if<std::vector<std::string>>(&value) != nullptr) { in operator std::vector()
|
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_bigint_test.cpp | 101 auto val = std::get_if<BigInteger>(&value.value); in HWTEST_F() 107 val = std::get_if<BigInteger>(&value.value); in HWTEST_F() 135 auto val = std::get_if<BigInteger>(&value.value); in HWTEST_F() 141 val = std::get_if<BigInteger>(&value.value); in HWTEST_F() 171 auto val = std::get_if<BigInteger>(&value.value); in HWTEST_F() 177 val = std::get_if<BigInteger>(&value.value); in HWTEST_F() 206 auto val = std::get_if<BigInteger>(&object.value); in HWTEST_F() 213 val = std::get_if<BigInteger>(&object.value); in HWTEST_F() 243 auto val = std::get_if<BigInteger>(&value.value); in HWTEST_F() 249 val = std::get_if<BigIntege in HWTEST_F() [all...] |
H A D | rdb_value_bucket_test.cpp | 312 auto *nil = std::get_if<std::monostate>(&output);
in HWTEST_F() 316 auto *number = std::get_if<int64_t>(&output);
in HWTEST_F() 321 auto *real = std::get_if<double>(&output);
in HWTEST_F() 325 auto *text = std::get_if<std::string>(&output);
in HWTEST_F() 330 auto *blob = std::get_if<std::vector<uint8_t>>(&output);
in HWTEST_F() 346 auto *nil = std::get_if<std::monostate>(&output);
in HWTEST_F() 350 auto *number = std::get_if<int64_t>(&output);
in HWTEST_F() 355 auto *real = std::get_if<double>(&output);
in HWTEST_F() 359 auto *text = std::get_if<std::string>(&output);
in HWTEST_F() 364 auto *blob = std::get_if<st in HWTEST_F() [all...] |
/foundation/distributeddatamgr/pasteboard/framework/test/src/ |
H A D | paste_data_record_test.cpp | 149 auto object = std::get_if<std::shared_ptr<Object>>(&decodeValue); in CheckPlainUds() 152 auto typeValue = std::get_if<std::string>(&objectValue[UDMF::UNIFORM_DATA_TYPE]); in CheckPlainUds() 155 auto value = std::get_if<std::string>(&objectValue[UDMF::CONTENT]); in CheckPlainUds() 164 auto object = std::get_if<std::shared_ptr<Object>>(&decodeValue); in CheckFileUriUds() 167 auto typeValue = std::get_if<std::string>(&objectValue[UDMF::UNIFORM_DATA_TYPE]); in CheckFileUriUds() 170 auto value = std::get_if<std::string>(&objectValue[UDMF::FILE_URI_PARAM]); in CheckFileUriUds() 179 auto object = std::get_if<std::shared_ptr<Object>>(&decodeValue); in CheckHtmlUds() 182 auto typeValue = std::get_if<std::string>(&objectValue[UDMF::UNIFORM_DATA_TYPE]); in CheckHtmlUds() 185 auto value = std::get_if<std::string>(&objectValue[UDMF::HTML_CONTENT]); in CheckHtmlUds() 194 auto object = std::get_if<st in CheckPixelMapUds() [all...] |
H A D | pasteboard_multi_type_unified_data_delay_test.cpp | 142 ASSERT_NE(std::get_if<std::shared_ptr<Object>>(&value), nullptr); in CheckPlainUds() 145 ASSERT_NE(std::get_if<std::string>(&obj->value_[UDMF::UNIFORM_DATA_TYPE]), nullptr); in CheckPlainUds() 147 ASSERT_NE(std::get_if<std::string>(&obj->value_[UDMF::CONTENT]), nullptr); in CheckPlainUds() 153 ASSERT_NE(std::get_if<std::shared_ptr<Object>>(&value), nullptr); in CheckHtmlUds() 156 ASSERT_NE(std::get_if<std::string>(&obj->value_[UDMF::UNIFORM_DATA_TYPE]), nullptr); in CheckHtmlUds() 158 ASSERT_NE(std::get_if<std::string>(&obj->value_[UDMF::HTML_CONTENT]), nullptr); in CheckHtmlUds() 164 ASSERT_NE(std::get_if<std::shared_ptr<Object>>(&value), nullptr); in CheckFileUriUds() 167 ASSERT_NE(std::get_if<std::string>(&obj->value_[UDMF::UNIFORM_DATA_TYPE]), nullptr); in CheckFileUriUds() 169 ASSERT_NE(std::get_if<std::string>(&obj->value_[UDMF::FILE_URI_PARAM]), nullptr); in CheckFileUriUds() 171 ASSERT_NE(std::get_if<st in CheckFileUriUds() [all...] |
H A D | convert_utils_test.cpp | 259 auto object = std::get_if<std::shared_ptr<Object>>(&decodeValue); in CheckPlainUds() 262 auto typeValue = std::get_if<std::string>(&objectValue[UDMF::UNIFORM_DATA_TYPE]); in CheckPlainUds() 265 auto value = std::get_if<std::string>(&objectValue[UDMF::CONTENT]); in CheckPlainUds() 275 auto object = std::get_if<std::shared_ptr<Object>>(&decodeValue); in CheckFileUriUds() 278 auto typeValue = std::get_if<std::string>(&objectValue[UDMF::UNIFORM_DATA_TYPE]); in CheckFileUriUds() 281 auto value = std::get_if<std::string>(&objectValue[UDMF::FILE_URI_PARAM]); in CheckFileUriUds() 291 auto object = std::get_if<std::shared_ptr<Object>>(&decodeValue); in CheckHtmlUds() 294 auto typeValue = std::get_if<std::string>(&objectValue[UDMF::UNIFORM_DATA_TYPE]); in CheckHtmlUds() 297 auto value = std::get_if<std::string>(&objectValue[UDMF::HTML_CONTENT]); in CheckHtmlUds() 307 auto object = std::get_if<st in CheckPixelMapUds() [all...] |
H A D | paste_data_entry_test.cpp | 113 auto object = std::get_if<std::shared_ptr<Object>>(&decodeValue); in CheckPlainUds() 116 auto typeValue = std::get_if<std::string>(&objectValue[UDMF::UNIFORM_DATA_TYPE]); in CheckPlainUds() 119 auto value = std::get_if<std::string>(&objectValue[UDMF::CONTENT]); in CheckPlainUds() 129 auto object = std::get_if<std::shared_ptr<Object>>(&decodeValue); in CheckPixelMapUds() 132 auto typeValue = std::get_if<std::string>(&objectValue[UDMF::UNIFORM_DATA_TYPE]); in CheckPixelMapUds() 135 auto value = std::get_if<std::shared_ptr<PixelMap>>(&objectValue[UDMF::PIXEL_MAP]); in CheckPixelMapUds() 208 auto str = std::get_if<std::string>(&value); in HWTEST_F()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/extension/ |
H A D | asset_loader_impl.cpp | 38 auto pre = std::get_if<std::string>(&prefix); in Download() 51 auto dbAssets = std::get_if<DBAssets>(&value); in Download() 74 auto dbAssets = std::get_if<DBAssets>(&value); in RemoveLocalAssets() 81 auto dbAsset = std::get_if<DBAsset>(&value); in RemoveLocalAssets()
|
/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/ |
H A D | modify_time_cursor.cpp | 46 auto *val = Traits::get_if<std::string>(&priKey); in GetText() 67 auto *val = Traits::get_if<int64_t>(&priKey); in GetInt64() 81 auto *val = Traits::get_if<double>(&priKey); in GetReal()
|
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributeddata/src/ |
H A D | js_query.cpp | 126 auto strValue = std::get_if<std::string>(&ctxt->vv); in EqualTo() 130 auto boolValue = std::get_if<bool>(&ctxt->vv); in EqualTo() 134 auto dblValue = std::get_if<double>(&ctxt->vv); in EqualTo() 151 auto strValue = std::get_if<std::string>(&ctxt->vv); in NotEqualTo() 155 auto boolValue = std::get_if<bool>(&ctxt->vv); in NotEqualTo() 159 auto dblValue = std::get_if<double>(&ctxt->vv); in NotEqualTo() 176 auto strValue = std::get_if<std::string>(&ctxt->vv); in GreaterThan() 180 auto boolValue = std::get_if<bool>(&ctxt->vv); in GreaterThan() 184 auto dblValue = std::get_if<double>(&ctxt->vv); in GreaterThan() 201 auto strValue = std::get_if<st in LessThan() [all...] |
/foundation/distributeddatamgr/udmf/interfaces/cj/src/ |
H A D | unified_record_impl.cpp | 72 } else if (auto p = std::get_if<int32_t>(&value)) { in ValueType2CJValueType() 75 } else if (auto p = std::get_if<int64_t>(&value)) { in ValueType2CJValueType() 78 } else if (auto p = std::get_if<double>(&value)) { in ValueType2CJValueType() 81 } else if (auto p = std::get_if<bool>(&value)) { in ValueType2CJValueType() 84 } else if (auto p = std::get_if<std::string>(&value)) { in ValueType2CJValueType() 87 } else if (auto p = std::get_if<std::vector<uint8_t>>(&value)) { in ValueType2CJValueType() 90 } else if (auto p = std::get_if<std::shared_ptr<OHOS::Media::PixelMap>>(&value)) { in ValueType2CJValueType()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/kvdb/ |
H A D | kvdb_watcher.cpp | 86 auto key = std::get_if<Bytes>(&info[0]); in ConvertToEntries() 87 auto value = std::get_if<Bytes>(&info[1]); in ConvertToEntries() 101 auto key = std::get_if<std::string>(&info); in ConvertToKeys()
|
/foundation/multimedia/camera_framework/interfaces/kits/js/camera_napi/include/ |
H A D | camera_napi_object.h | 214 auto variantAddrPointer = std::get_if<bool*>(&variantAddr); in GetVariantBoolFromNapiValue() 226 auto variantAddrPointer = std::get_if<int32_t*>(&variantAddr); in GetVariantInt32FromNapiValue() 238 auto variantAddrPointer = std::get_if<uint32_t*>(&variantAddr); in GetVariantUint32FromNapiValue() 250 auto variantAddrPointer = std::get_if<int64_t*>(&variantAddr); in GetVariantInt64FromNapiValue() 262 auto variantAddrPointer = std::get_if<float*>(&variantAddr); in GetVariantFloatFromNapiValue() 277 auto variantAddrPointer = std::get_if<double*>(&variantAddr); in GetVariantDoubleFromNapiValue() 290 auto variantAddrPointer = std::get_if<std::string*>(&variantAddr); in GetVariantStringFromNapiValue() 312 auto variantAddrPointer = std::get_if<CameraNapiObject*>(&variantAddr); in GetVariantCameraNapiObjectFromNapiValue()
|
/foundation/distributeddatamgr/kv_store/kvstoremock/frameworks/innerkitsimpl/distributeddatafwk/src/ |
H A D | kv_utils.cpp | 98 auto *val = std::get_if<std::vector<std::string>>(&oper.multiParams[0]); in GetKeys() 117 if (auto *val = std::get_if<std::string>(&it->second)) { in ToEntryKey() 137 if (auto *val = std::get_if<std::vector<uint8_t>>(&it->second)) { in ToEntryValue() 142 } else if (auto *val = std::get_if<int64_t>(&it->second)) { in ToEntryValue() 149 } else if (auto *val = std::get_if<double>(&it->second)) { in ToEntryValue() 156 } else if (auto *val = std::get_if<bool>(&it->second)) { in ToEntryValue() 161 } else if (auto *val = std::get_if<std::string>(&it->second)) { in ToEntryValue() 178 auto *val = std::get_if<std::vector<std::string>>(&oper.multiParams[0]); in InKeys()
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/src/ |
H A D | kv_utils.cpp | 100 auto *val = std::get_if<std::vector<std::string>>(&oper.multiParams[0]); in GetKeys() 119 if (auto *val = std::get_if<std::string>(&it->second)) { in ToEntryKey() 139 if (auto *val = std::get_if<std::vector<uint8_t>>(&it->second)) { in ToEntryValue() 144 } else if (auto *val = std::get_if<int64_t>(&it->second)) { in ToEntryValue() 151 } else if (auto *val = std::get_if<double>(&it->second)) { in ToEntryValue() 158 } else if (auto *val = std::get_if<bool>(&it->second)) { in ToEntryValue() 163 } else if (auto *val = std::get_if<std::string>(&it->second)) { in ToEntryValue() 180 auto *val = std::get_if<std::vector<std::string>>(&oper.multiParams[0]); in InKeys()
|
/foundation/distributeddatamgr/kv_store/frameworks/jskitsimpl/distributedkvstore/src/ |
H A D | js_query.cpp | 138 auto strValue = std::get_if<std::string>(&ctxt->vv); in EqualTo() 142 auto boolValue = std::get_if<bool>(&ctxt->vv); in EqualTo() 146 auto dblValue = std::get_if<double>(&ctxt->vv); in EqualTo() 165 auto strValue = std::get_if<std::string>(&ctxt->vv); in NotEqualTo() 169 auto boolValue = std::get_if<bool>(&ctxt->vv); in NotEqualTo() 173 auto dblValue = std::get_if<double>(&ctxt->vv); in NotEqualTo() 192 auto strValue = std::get_if<std::string>(&ctxt->vv); in GreaterThan() 196 auto boolValue = std::get_if<bool>(&ctxt->vv); in GreaterThan() 200 auto dblValue = std::get_if<double>(&ctxt->vv); in GreaterThan() 219 auto strValue = std::get_if<st in LessThan() [all...] |
/foundation/distributeddatamgr/udmf/framework/innerkitsimpl/test/unittest/ |
H A D | unified_record_test.cpp | 153 auto originValueStr = std::get_if<std::string>(&originValue); in HWTEST_F() 158 auto entryStr = std::get_if<std::string>(&entry); in HWTEST_F() 166 auto entryStr2 = std::get_if<std::string>(&entry2); in HWTEST_F()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | value_object.cpp | 295 auto val = std::get_if<Asset>(&value); in operator Asset() 304 auto val = std::get_if<Assets>(&value); in operator Assets() 313 auto val = std::get_if<FloatVector>(&value); in operator FloatVector() 322 auto val = std::get_if<BigInt>(&value); in operator BigInt() 337 const T *v = std::get_if<T>(&value); in Get()
|