/ohos5.0/base/powermgr/battery_statistics/services/native/include/ |
H A D | battery_stats_listener.h | 34 void ProcessHiSysEvent(const std::string& eventName, const Json::Value& root); 36 void ProcessWakelockEvent(StatsUtils::StatsData& data, const Json::Value& root); 38 void ProcessBatteryEvent(StatsUtils::StatsData& data, const Json::Value& root); 39 void ProcessThermalEvent(StatsUtils::StatsData& data, const Json::Value& root); 42 void ProcessWorkschedulerEvent(StatsUtils::StatsData& data, const Json::Value& root); 43 void ProcessFlashlightEvent(StatsUtils::StatsData& data, const Json::Value& root); 45 void ProcessAudioEvent(StatsUtils::StatsData& data, const Json::Value& root); 47 void ProcessGnssEvent(StatsUtils::StatsData& data, const Json::Value& root); 53 void ProcessAlarmEvent(StatsUtils::StatsData& data, const Json::Value& root); 54 void ProcessDispalyDebugInfo(StatsUtils::StatsData& data, const Json::Value& root); [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/service_impl/ |
H A D | types.rs | 26 pub enum Value { enum 52 impl Value { implementation 54 matches!(self, Value::Asset(_) | Value::Assets(_)) in has_asset() 58 impl From<&Value> for ipc_conn::FieldRaw { 59 fn from(value: &Value) -> Self { in from() 61 Value::Empty => ipc_conn::FieldRaw::Null, in from() 73 impl From<&ipc_conn::FieldRaw> for Value { implementation 76 ipc_conn::FieldRaw::Null => Value::Empty, in from() 88 impl From<ipc_conn::FieldRaw> for Value { implementation 104 pub type RawValueBucket = HashMap<String, Value>; [all …]
|
/ohos5.0/base/security/asset/frameworks/definition/src/ |
H A D | extension.rs | 24 Result, Tag, Value, 43 fn into_value(self) -> Value { in into_value() argument 44 Value::Number(self as u32) in into_value() 48 impl Conversion for Value { implementation 57 fn into_value(self) -> Value { in into_value() argument 67 fn into_value(self) -> Value { in into_value() argument 68 Value::Bytes(self) in into_value() 77 fn into_value(self) -> Value { in into_value() argument 78 Value::Bool(self) in into_value() 87 fn into_value(self) -> Value { in into_value() argument [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_mtp/include/ |
H A D | property.h | 29 class Value { 31 Value(); 66 const std::shared_ptr<Value> GetCurrentValue(); 79 std::shared_ptr<Value> defaultValue; 80 std::shared_ptr<Value> currentValue; 93 std::shared_ptr<Value> minValue; // for range form 94 std::shared_ptr<Value> maxValue; 95 std::shared_ptr<Value> stepSize; 96 std::shared_ptr<std::vector<Value>> enumValues; // for enum form 106 void WriteValue(std::vector<uint8_t> &buffer, const Value &value); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_side_bar_container_bridge.cpp | 48 sideBarWidth.Value() >= 0) { in SetSideBarWidth() 76 minSideBarWidth.Value() >= 0) { in SetMinSideBarWidth() 115 values[NUM_1] = topArg->ToNumber(vm)->Value(); in SetControlButton() 228 maxSideBarWidth.Value() >= 0) { in SetMaxSideBarWidth() 256 minContentWidth.Value() >= 0) { in SetMinContentWidth() 347 strokeWidth.Value() >= 0) { in SetDivider() 348 values[NUM_0] = strokeWidth.Value(); in SetDivider() 355 startMargin.Value() >= 0) { in SetDivider() 356 values[NUM_1] = startMargin.Value(); in SetDivider() 363 endMargin.Value() >= 0) { in SetDivider() [all …]
|
H A D | arkts_native_counter_bridge.cpp | 25 auto nativeNode = nodePtr(nodeArg->ToNativePointer(vm)->Value()); in SetEnableInc() 30 bool flag = flagArg->ToBoolean(vm)->Value(); in SetEnableInc() 40 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in ResetEnableInc() 51 auto nativeNode = nodePtr(nodeArg->ToNativePointer(vm)->Value()); in SetEnableDec() 56 bool flag = flagArg->ToBoolean(vm)->Value(); in SetEnableDec() 77 auto nativeNode = nodePtr(nodeArg->ToNativePointer(vm)->Value()); in SetCounterHeight() 81 if (LessNotEqual(height.Value(), 0.0)) { in SetCounterHeight() 110 if (LessNotEqual(width.Value(), 0.0)) { in SetCounterWidth() 116 nativeNode, width.Value(), static_cast<int>(width.Unit())); in SetCounterWidth() 166 if (GreatNotEqual(width.Value(), 0.0)) { in SetCounterSize() [all …]
|
H A D | arkts_native_render_node_bridge.cpp | 318 useClip = secondArg->ToBoolean(vm)->Value(); in SetClipToFrame() 341 rotationY = thirdArg->ToNumber(vm)->Value(); in SetRotation() 379 offsetX = secondArg->ToNumber(vm)->Value(); in SetShadowOffset() 382 offsetY = thirdArg->ToNumber(vm)->Value(); in SetShadowOffset() 415 alphaValue = alpha->ToNumber(vm)->Value(); in SetShadowAlpha() 441 radiusValue = radius->ToNumber(vm)->Value(); in SetShadowRadius() 457 scaleXValue = scaleX->ToNumber(vm)->Value(); in SetScale() 528 widthValue = width->ToNumber(vm)->Value(); in SetFrame() 551 widthValue = width->ToNumber(vm)->Value(); in SetSize() 579 xAxisValue = xAxis->ToNumber(vm)->Value(); in SetPosition() [all …]
|
H A D | arkts_native_panel_bridge.cpp | 25 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in SetPanelBackgroundMask() 41 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in ResetPanelBackgroundMask() 52 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in SetPanelMode() 67 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in ResetPanelMode() 78 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in SetPanelType() 120 if (LessNotEqual(height.Value(), 0.0)) { in SetPanelFullHeight() 151 if (LessNotEqual(height.Value(), 0.0)) { in SetPanelHalfHeight() 182 if (LessNotEqual(height.Value(), 0.0)) { in SetPanelMiniHeight() 240 boolValue = showCloseArg->ToBoolean(vm)->Value(); in SetShowCloseIcon() 269 boolValue = dragBarArg->ToBoolean(vm)->Value(); in SetDragBar() [all …]
|
H A D | arkts_native_plugin_bridge.cpp | 27 auto nativeNode = nodePtr(nodeArg->ToNativePointer(vm)->Value()); in SetSize() 36 if (LessNotEqual(width.Value(), 0.0)) { in SetSize() 39 if (LessNotEqual(height.Value(), 0.0)) { in SetSize() 43 …ArkUINodeModifiers()->getPluginModifier()->setPluginSize(nativeNode, width.Value(), height.Value(), in SetSize() 54 auto nativeNode = nodePtr(nodeArg->ToNativePointer(vm)->Value()); in SetWidth() 60 if (LessNotEqual(width.Value(), 0.0)) { in SetWidth() 75 auto nativeNode = nodePtr(nodeArg->ToNativePointer(vm)->Value()); in SetHeight() 81 if (LessNotEqual(height.Value(), 0.0)) { in SetHeight() 95 auto nativeNode = nodePtr(nodeArg->ToNativePointer(vm)->Value()); in ResetSize() 105 auto nativeNode = nodePtr(nodeArg->ToNativePointer(vm)->Value()); in ResetWidth() [all …]
|
H A D | arkts_native_tabs_bridge.cpp | 48 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in SetTabBarMode() 85 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in ResetTabBarMode() 97 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in SetScrollableBarModeOptions() 277 bool fadingEdge = secondArg->ToBoolean(vm)->Value(); in SetFadingEdge() 357 bool overlap = overlapArg->ToBoolean(vm)->Value(); in SetBarOverlap() 384 bool isVertical = isVerticalArg->ToBoolean(vm)->Value(); in SetIsVertical() 439 bool scrollable = scrollableArg->ToBoolean(vm)->Value(); in SetScrollable() 471 nativeNode, width.Value(), static_cast<int>(width.Unit())); in SetTabBarWidth() 522 bool value = secondArg->ToBoolean(vm)->Value(); in SetBarAdaptiveHeight() 548 float duration = durationArg->ToNumber(vm)->Value(); in SetAnimationDuration() [all …]
|
H A D | arkts_native_checkboxgroup_bridge.cpp | 33 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in SetCheckboxGroupSelectedColor() 49 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in ResetCheckboxGroupSelectedColor() 60 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in SetCheckboxGroupUnSelectedColor() 75 auto nativeNode = nodePtr(firstArg->ToNativePointer(vm)->Value()); in ResetCheckboxGroupUnSelectedColor() 86 auto nativeNode = nodePtr(nodeArg->ToNativePointer(vm)->Value()); in SetCheckboxGroupSelectAll() 90 bool selectAll = selectAllArg->ToBoolean(vm)->Value(); in SetCheckboxGroupSelectAll() 117 if (LessNotEqual(width.Value(), 0.0)) { in SetCheckboxGroupWidth() 146 if (LessNotEqual(height.Value(), 0.0)) { in SetCheckboxGroupHeight() 196 nativeNode, strokeColor.GetValue(), size.Value(), strokeWidth.Value()); in SetCheckboxGroupMark() 224 if (LessNotEqual(width.Value(), 0.0)) { in SetCheckboxGroupSize() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-basic-services-kit/common_event/ |
H A D | commonEvent-definitions.md | 10 - Value: **usual.event.BOOT_COMPLETED** 20 - Value: **usual.event.SHUTDOWN** 30 - Value: **usual.event.BATTERY_LOW** 35 - Value: **usual.event.BATTERY_OKAY** 52 - Value: **usual.event.SCREEN_OFF** 58 - Value: **usual.event.SCREEN_ON** 70 - Value: **usual.event.USER_PRESENT** 76 - Value: **usual.event.TIME_TICK** 82 - Value: **usual.event.TIME_CHANGED** 88 - Value: **usual.event.DATE_CHANGED** [all …]
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/src/ |
H A D | battery_config.cpp | 72 Json::Value config; in ParseConfig() 204 Json::Value valueObj = lightConfig[key]; in ParseLightConfig() 210 Json::Value soc = GetValue(valueObj, "soc"); in ParseLightConfig() 211 Json::Value rgb = GetValue(valueObj, "rgb"); in ParseLightConfig() 250 Json::Value valueObj = chargeSceneConfig[key]; in ParseChargeSceneConfig() 276 Json::Value setPath = GetValue(valueObj, "set.path"); in IsValidChargeSceneConfig() 277 Json::Value getPath = GetValue(valueObj, "get.path"); in IsValidChargeSceneConfig() 350 Json::Value valueObj = ueventConfig[key]; in ParseUeventConfig() 378 Json::Value BatteryConfig::GetValue(const Json::Value& config, std::string key) const in GetValue() 383 return Json::Value(); in GetValue() [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/utils/src/ |
H A D | wifi_hisysevent.cpp | 49 Json::Value root; in WriteWifiStateHiSysEvent() 93 Json::Value root; in WriteWifiOperateStateHiSysEvent() 102 Json::Value root; in WriteWifiAbnormalDisconnectHiSysEvent() 110 Json::Value root; in WriteWifiConnectionInfoHiSysEvent() 118 Json::Value root; in WriteWifiOpenAndCloseFailedHiSysEvent() 129 Json::Value root; in WriteSoftApOpenAndCloseFailedEvent() 138 Json::Value root; in WriteWifiAccessIntFailedHiSysEvent() 147 Json::Value root; in WriteWifiPnoScanHiSysEvent() 156 Json::Value root; in WriteBrowserFailedForPortalHiSysEvent() 165 Json::Value root; in WriteWifiConnectFailedEventHiSysEvent() [all …]
|
/ohos5.0/base/hiviewdfx/hisysevent/frameworks/native/include/ |
H A D | hisysevent_json_decorator.h | 33 using BaseInfoHandler = std::function<bool(const Json::Value&)>; 34 using ExtensiveInfoHander = std::function<bool(const Json::Value&, const Json::Value&)>; 43 bool CheckAttrDecorationNeed(const Json::Value& eventJson, const std::string& key, 44 const Json::Value& standard); 45 Validity CheckAttrValidity(const Json::Value& eventJson, const std::string& key, 46 const Json::Value& standard); 47 Validity CheckLevelValidity(const Json::Value& baseInfo); 48 bool CheckEventDecorationNeed(const Json::Value& eventJson, BaseInfoHandler baseJsonInfoHandler, 52 bool JudgeDataType(const std::string& dataType, const Json::Value& eventJson); 55 Json::Value jsonRoot_;
|
/ohos5.0/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_stack_info_formatter.cpp | 40 Json::Value frameJson; in FillJsFrame() 55 Json::Value jsonInfo; in GetStackInfo() 90 Json::Value signal; in GetNativeCrashInfo() 102 Json::Value exception; in GetNativeCrashInfo() 113 Json::Value frames(Json::arrayValue); in GetNativeCrashInfo() 125 Json::Value threadsJsonArray(Json::arrayValue); in GetNativeCrashInfo() 133 Json::Value thread; in GetDumpInfo() 134 Json::Value frames(Json::arrayValue); in GetDumpInfo() 178 Json::Value frameJson; in FillNativeFrame() 202 Json::Value threadJson; in AppendThreads() [all …]
|
/ohos5.0/drivers/peripheral/battery/interfaces/hdi_service/include/ |
H A D | battery_config.h | 65 void ParseConfInner(const Json::Value& config); 66 void ParseConfSplit(const Json::Value& config); 67 void ParseLightConfig(const Json::Value& lightConfig); 68 void ParseChargeSceneConfig(const Json::Value& chargeSceneConfig); 69 bool IsValidChargeSceneConfig(const std::string& key, const Json::Value& valueObj); 71 bool ParseChargeSceneSet(const Json::Value& valueObj, BatteryConfig::ChargeSceneConfig& config); 72 bool ParseChargeSceneGet(const Json::Value& valueObj, BatteryConfig::ChargeSceneConfig& config); 74 void ParseChargerConfig(const Json::Value& chargerConfig); 75 void ParseUeventConfig(const Json::Value& ueventConfig); 77 Json::Value GetValue(const Json::Value& config, std::string key) const; [all …]
|
/ohos5.0/foundation/communication/netmanager_base/services/netmanagernative/bpf/include/ |
H A D | bpf_mapper.h | 42 template <class Key, class Value> class BpfMapperImplement { 44 BpfMapperImplement<Key, Value>() = default; 196 static uint64_t BpfMapValueToU64(const Value &value) in BpfMapValueToU64() 202 template <class Key, class Value> class BpfMapper { 204 BpfMapper<Key, Value>() = default; 205 ~BpfMapper<Key, Value>() in ~BpfMapper() 212 BpfMapper<Key, Value>(const std::string &pathName, uint32_t flags) 237 [[nodiscard]] int32_t Read(const Key &key, Value &val) const in Read() 239 Value value{}; in Read() 268 if (BpfMapperImplement<Key, Value>::GetFirstKey(mapFd_, key) < 0) { in GetAllKeys() [all …]
|
/ohos5.0/base/security/asset/services/db_operator/src/test/ |
H A D | test_database.rs | 24 use asset_definition::{ErrCode, Extension, Value}; 32 const DB_DATA: [(&str, Value); 9] = [ 33 (column::OWNER_TYPE, Value::Number(1)), 34 (column::SYNC_TYPE, Value::Number(1)), 35 (column::ACCESSIBILITY, Value::Number(1)), 36 (column::AUTH_TYPE, Value::Number(1)), 37 (column::IS_PERSISTENT, Value::Bool(true)), 38 (column::VERSION, Value::Number(2)), 39 (column::REQUIRE_PASSWORD_SET, Value::Bool(false)), 40 (column::LOCAL_STATUS, Value::Number(0)), [all …]
|
H A D | test_table.rs | 19 use asset_definition::{DataType, Extension, Value}; 198 [Value::Number(2), Value::Bytes(b"test2".to_vec())], in multiple_data() 199 [Value::Number(3), Value::Bytes(b"test3".to_vec())], in multiple_data() 200 [Value::Number(4), Value::Bytes(b"test4".to_vec())], in multiple_data() 241 … let datas = DbMap::from([("id", Value::Number(3)), ("alias", Value::Bytes(b"alias1".to_vec()))]); in insert_query_row() 270 … let datas = DbMap::from([("id", Value::Number(1)), ("alias", Value::Bytes(b"alias1".to_vec()))]); in update_delete_row() 272 … let datas = DbMap::from([("id", Value::Number(2)), ("alias", Value::Bytes(b"alias2".to_vec()))]); in update_delete_row() 319 &Some(Value::Number(1)) in upgrade_table() 338 … let datas = DbMap::from([("id", Value::Number(1)), ("alias", Value::Bytes(b"alias1".to_vec()))]); in replace_datas() 340 … let datas = DbMap::from([("id", Value::Number(2)), ("alias", Value::Bytes(b"alias2".to_vec()))]); in replace_datas() [all …]
|
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/want/include/ |
H A D | pac_map.h | 496 bool GetBaseJsonValue(PacMapList::const_iterator &it, Json::Value &json) const; 497 bool GetArrayJsonValue(PacMapList::const_iterator &it, Json::Value &json) const; 504 bool ParseJson(Json::Value &data, PacMapList &mapList); 505 bool ParseJsonItem(PacMapList &mapList, const std::string &key, Json::Value &item); 520 bool ToJson(const PacMapList &mapList, Json::Value &dataObject) const; 548 bool ToJsonArrayShort(std::vector<short> &array, Json::Value &item, int type) const; 549 bool ToJsonArrayInt(std::vector<int> &array, Json::Value &item, int type) const; 550 bool ToJsonArrayLong(std::vector<long> &array, Json::Value &item, int type) const; 551 bool ToJsonArrayByte(std::vector<byte> &array, Json::Value &item, int type) const; 553 bool ToJsonArrayFloat(std::vector<float> &array, Json::Value &item, int type) const; [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/base/test/unittest/common/base/ |
H A D | dcamera_capture_info_cmd_test.cpp | 37 "Value": [ 48 "Value": [ 58 "Value": [ 69 "Value": [ 79 "Value": [ 90 "Value": [ 107 "Value":"[ 129 "Value": [ 140 "Value": [ 151 "Value": [ [all …]
|
/ohos5.0/base/security/asset/services/core_service/src/operations/ |
H A D | operation_add.rs | 29 SyncStatus, SyncType, Tag, Value, 41 db_data.insert(column::SECRET, Value::Bytes(cipher)); in encrypt_secret() 53 Some(Value::Number(num)) if *num == ConflictResolution::Overwrite as u32 => { in resolve_conflict() 74 query.insert(column::ALIAS, Value::Bytes(alias.clone())); in get_query_condition() 75 query.insert(column::OWNER, Value::Bytes(calling_info.owner_info().clone())); in get_query_condition() 76 query.insert(column::OWNER_TYPE, Value::Number(calling_info.owner_type())); in get_query_condition() 81 db_data.insert(column::VERSION, Value::Number(DB_DATA_VERSION)); in add_system_attrs() 84 db_data.insert(column::CREATE_TIME, Value::Bytes(time.clone())); in add_system_attrs() 85 db_data.insert(column::UPDATE_TIME, Value::Bytes(time)); in add_system_attrs() 93 db_data.entry(column::REQUIRE_PASSWORD_SET).or_insert(Value::Bool(bool::default())); in add_default_attrs() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/video/ |
H A D | video_theme.h | 62 videoPattern->GetAttr<Dimension>("control_bar_play_padding_left", 10.0_vp).Value(), in ParsePattern() 63 videoPattern->GetAttr<Dimension>("control_bar_play_padding_top", 5.0_vp).Value(), in ParsePattern() 64 videoPattern->GetAttr<Dimension>("control_bar_play_padding_right", 10.0_vp).Value(), in ParsePattern() 65 … videoPattern->GetAttr<Dimension>("control_bar_play_padding_bottom", 5.0_vp).Value()); in ParsePattern() 67 … videoPattern->GetAttr<Dimension>("control_bar_current_time_padding_left", 5.0_vp).Value(), in ParsePattern() 68 … videoPattern->GetAttr<Dimension>("control_bar_current_time_padding_top", 5.0_vp).Value(), in ParsePattern() 69 … videoPattern->GetAttr<Dimension>("control_bar_current_time_padding_right", 5.0_vp).Value(), in ParsePattern() 72 … videoPattern->GetAttr<Dimension>("control_bar_progress_padding_left", 0.0_vp).Value(), in ParsePattern() 73 … videoPattern->GetAttr<Dimension>("control_bar_progress_padding_top", 0.0_vp).Value(), in ParsePattern() 74 … videoPattern->GetAttr<Dimension>("control_bar_progress_padding_right", 0.0_vp).Value(), in ParsePattern() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/list/ |
H A D | list_scroller_event_test_ng.cpp | 358 EXPECT_EQ(didOffset.Value(), ITEM_HEIGHT); 451 EXPECT_EQ(didOffset.Value(), 0); 463 EXPECT_EQ(didOffset.Value(), 0); 475 EXPECT_EQ(didOffset.Value(), 0); 499 EXPECT_EQ(didOffset.Value(), 0); 511 EXPECT_EQ(didOffset.Value(), 0); 523 EXPECT_EQ(didOffset.Value(), 0); 535 EXPECT_EQ(didOffset.Value(), 0); 547 EXPECT_EQ(didOffset.Value(), 0); 559 EXPECT_EQ(didOffset.Value(), 0); [all …]
|