/base/startup/appspawn/service/hnp/base/ |
H A D | hnp_sal.c | 58 char *from = strdup(fromPath); in HnpRelPath() local 59 if (from == NULL) { in HnpRelPath() 64 free(from); in HnpRelPath() 70 char *fromHead = from; in HnpRelPath() 73 while ((*from != '\0') && (*to != '\0') && (*from == *to)) { in HnpRelPath() 74 from++; in HnpRelPath() 78 while (from > fromHead && *(from - 1) != DIR_SPLIT_SYMBOL) { in HnpRelPath() 79 from in HnpRelPath() [all...] |
H A D | hnp_log.c | 32 static char* ReplaceSubstring(const char* str, const char* from, const char* to)
in ReplaceSubstring() argument 36 int lenFrom = strlen(from);
in ReplaceSubstring() 44 if (strncmp(&str[i], from, lenFrom) == 0) {
in ReplaceSubstring() 59 if (strncmp(&str[i], from, lenFrom) == 0) {
in ReplaceSubstring()
|
/base/security/device_security_level/baselib/utils/src/ |
H A D | utils_base64.c | 57 static int32_t Base64Encode(const uint8_t *from, uint32_t fromLen, uint8_t *to, uint32_t toCheckLen) in Base64Encode() argument 59 bool isInvalidParam = ((from == NULL) || (to == NULL) || (fromLen == 0)); in Base64Encode() 78 uint32_t a = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode() 80 uint32_t b = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode() 82 uint32_t c = (i < fromLen) ? (uint8_t)from[i] : 0; in Base64Encode() 105 static int32_t Base64Decode(const uint8_t *from, uint8_t *to, uint32_t toCheckLen) in Base64Decode() argument 107 bool isInvalidParam = ((from == NULL) || (to == NULL)); in Base64Decode() 112 uint32_t fromLen = strlen((char *)from); in Base64Decode() 120 if (from[fromLen - 1] == '=') { /* if last 1-bit is null, make it "=" */ in Base64Decode() 123 if (from[fromLe in Base64Decode() 161 Base64EncodeApp(const uint8_t *from, uint32_t fromLen) Base64EncodeApp() argument 245 const uint8_t *from = base64Str; Base64UrlDecodeApp() local [all...] |
/base/request/request/services/src/task/ |
H A D | ffi.rs | 89 path: CStringWrapper::from(&self.path), 91 message: CStringWrapper::from(&self.message), 98 reason: Reason::from(c_struct.reason), 116 sizes: CStringWrapper::from(sizes), 117 processed: CStringWrapper::from(processed), 118 extras: CStringWrapper::from(extras), 158 bundle: CStringWrapper::from(&self.bundle), 159 url: CStringWrapper::from(&self.url), 160 data: CStringWrapper::from(&self.data), 161 token: CStringWrapper::from( [all...] |
H A D | info.rs | 52 Action::from(self.common_data.action) 126 fn from(value: u8) -> Self { in from() functions 162 action: Action::from(self.common_data.action), 163 version: Version::from(self.common_data.version),
|
/base/request/request/services/src/utils/ |
H A D | c_wrapper.rs | 27 fn from(value: &str) -> Self { in from() functions 35 fn from(value: &String) -> Self { in from() functions 36 Self::from(value.as_str()) in from() 71 name: CStringWrapper::from(&self.name), 72 path: CStringWrapper::from(&self.path), 73 file_name: CStringWrapper::from(&self.file_name), 74 mime_type: CStringWrapper::from(&self.mime_type), 100 name: CStringWrapper::from(&self.name), 101 value: CStringWrapper::from(&self.value),
|
/base/msdp/device_status/rust/frameworks/client/src/ |
H A D | lib.rs | 50 return i32::from(err); 55 |err| { i32::from(err) }, 71 fw.start_drag(&drag_data).map_or_else(|err| { i32::from(err) }, |_| { 0 }) 80 fw.register_coordination_listener().map_or_else(|err| { i32::from(err) }, |_| { 0 }) 88 fw.unregister_coordination_listener().map_or_else(|err| { i32::from(err) }, |_| { 0 }) 96 fw.enable_coordination(user_data).map_or_else(|err| { i32::from(err) }, |_| { 0 }) 104 fw.disable_coordination(user_data).map_or_else(|err| { i32::from(err) }, |_| { 0 }) 125 start_device_id).map_or_else(|err| { i32::from(err) }, |_| { 0 }) 133 fw.stop_coordination(user_data, is_unchained).map_or_else(|err| { i32::from(err) }, |_| { 0 }) 152 fw.get_coordination_state(user_data, &device_id).map_or_else(|err| { i32::from(er [all...] |
/base/msdp/device_status/rust/utils/src/ |
H A D | errors.rs | 31 fn from(_: NulError) -> Self { in from() functions 37 fn from(value: FusionErrorCode) -> Self in from() functions 51 _ if i32::from(FusionErrorCode::Fail) == value => { Ok(FusionErrorCode::Fail) }, in try_from() 52 _ if i32::from(FusionErrorCode::InvalidParam) == value => { Ok(FusionErrorCode::InvalidParam) }, in try_from()
|
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/expire/ |
H A D | event_scan_handler.cpp | 45 uint64_t GetDuration(uint64_t from, uint64_t to) in GetDuration() argument 47 return ((from >= to) ? (from - to) : (to - from)); in GetDuration()
|
/base/msdp/device_status/rust/subsystem/device_profile/sys/src/ |
H A D | device_profile.rs | 54 fn from(value: ProfileEvent) -> u32 { in from() functions 68 _ if u32::from(ProfileEvent::Unknown) == value => { Ok(ProfileEvent::Unknown) }, in try_from() 69 _ if u32::from(ProfileEvent::SyncCompleted) == value => { Ok(ProfileEvent::SyncCompleted) }, in try_from() 70 _ if u32::from(ProfileEvent::ProfileChanged) == value => { Ok(ProfileEvent::ProfileChanged) }, in try_from() 196 fn from(value: Arc<dyn IProfileEventCallback>) -> Self { in from() functions 260 let mut event_cb = ProfileEventCallback::from(event_callback.clone()); in subscribe_profile_events() 288 /// Unsubscribes from the specified profile events. 292 /// * `profile_events` - A slice of `ProfileEvent` enumerations representing the events to unsubscribe from. 298 /// An empty `FusionResult` indicating success or an error if unsubscribing from events fails. 315 let mut event_cb = ProfileEventCallback::from(event_callbac in unsubscribe_profile_events() [all...] |
H A D | adapter.rs | 111 /// Handle a state update event from a device. 132 error!(LOG_LABEL, "Failed to handle a state update event from a device"); in on_update() 140 fn from(value: Arc<F>) -> Self in from() functions 258 fn from(value: &[String]) -> Self in from() functions 328 let mut device_ids = StringVector::from(device_ids); in sync_cross_switch_state() 341 /// * `device_id` - The device ID string representing the target device to get the cross switch state from. 372 let mut listener = CrossStateListener::from(Arc::new(callback)); in register_cross_state_listener() 385 /// * `device_id` - The device ID string representing the target device to unregister the listener from. 405 /// Retrieves the string data from the CIString object. 440 fn from(valu functions [all...] |
/base/security/asset/services/db_operator/src/test/ |
H A D | test_table.rs | 59 let count = table.insert_row(&DbMap::from([("Id", Value::Number(1))])).unwrap(); in table_restore() 119 let sql = "select Owner,Alias from table_name where Id>?"; in execute_sql() 147 assert_eq!(1, table.update_row(&datas, false, &DbMap::from([("value", Value::Bytes(b"dddd".to_vec()))])).unwrap()); in data_life_circle() 166 let stmt = Statement::prepare("select id,alias from table_name where id < ?", &db).unwrap(); in single_data() 210 let stmt = Statement::prepare("select id,alias from table_name where id < ?", &db).unwrap(); in multiple_data() 241 let datas = DbMap::from([("id", Value::Number(3)), ("alias", Value::Bytes(b"alias1".to_vec()))]); in insert_query_row() 243 let datas = DbMap::from([("alias", Value::Bytes(b"alias1".to_vec()))]); in insert_query_row() 251 let count = table.count_datas(&DbMap::from([("id", Value::Number(3))]), false).unwrap(); 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([("i in update_delete_row() [all...] |
H A D | test_database.rs | 62 let mut def = DbMap::from(DB_DATA); in open_db_and_insert_data() 138 let mut def = DbMap::from(DB_DATA); in insert_data_with_different_alias() 155 &DbMap::from([(column::OWNER, Value::Bytes(column::OWNER.as_bytes().to_vec()))]), in insert_data_with_different_alias() 193 .update_datas(&datas, true, &DbMap::from([(column::UPDATE_TIME, Value::Bytes(update_time.clone()))])) in update_data() 212 let mut def = DbMap::from(DB_DATA); in query_ordered_data() 236 &DbMap::from([(column::OWNER, Value::Bytes(column::OWNER.as_bytes().to_vec()))]), in query_ordered_data() 276 let mut def = DbMap::from(DB_DATA); in backup_and_restore() 288 let mut def = DbMap::from(DB_DATA); in insert_duplicated_data() 299 let mut data = DbMap::from(DB_DATA); in query_mismatch_type_data()
|
/base/powermgr/display_manager/brightness_manager/src/ |
H A D | brightness_dimming.cpp | 60 void BrightnessDimming::StartDimming(uint32_t from, uint32_t to, uint32_t duration) in StartDimming() argument 63 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "animation is running, no need to start again, from=%{public}u, "\ in StartDimming() 64 " to=%{public}u, duration=%{public}u", from, to, duration); in StartDimming() 67 DISPLAY_HILOGI(FEAT_BRIGHTNESS, "animation from=%{public}u, to=%{public}u, duration=%{public}u", in StartDimming() 68 from, to, duration); in StartDimming() 73 mFromBrightness = from; in StartDimming()
|
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/ |
H A D | error.rs | 74 fn from(code: SocketStatusCode) -> i32 { in from() functions 91 fn from(code: BufferStatusCode) -> i32 { in from() functions 118 fn from(code: SessionStatusCode) -> i32 { in from() functions 137 fn from(code: NetPacketStatusCode) -> i32 { in from() functions
|
/base/security/asset/test/unittest/inner_kits_rust/src/ |
H A D | remove.rs | 27 AssetMap::from([(Tag::DataLabelCritical1, Value::Bytes("remove_condition_non_exist".as_bytes().to_vec()))]); in remove_condition_non_exist() 35 let mut condition = AssetMap::from([ in remove_condition_exist_and_query()
|
/base/telephony/sms_mms/frameworks/js/napi/include/ |
H A D | napi_mms.h | 76 MmsAddress from; member 99 MmsAddress from; member 120 MmsAddress from; member 150 MmsAddress from; member 159 MmsAddress from; member
|
/base/telephony/core_service/utils/vcard/src/ |
H A D | vcard_decoder_v30.cpp | 124 std::string VCardDecoderV30::UnescapeText(const std::string &from) in UnescapeText() argument 127 for (size_t i = 0; i < from.length(); i++) { in UnescapeText() 128 auto ch = from[i]; in UnescapeText() 129 if (ch == '\\' && i < from.length() - 1) { in UnescapeText() 130 char nextCh = from[++i]; in UnescapeText()
|
/base/powermgr/display_manager/state_manager/service/native/src/ |
H A D | gradual_animator.cpp | 40 void GradualAnimator::StartAnimation(uint32_t from, uint32_t to, uint32_t duration) in StartAnimation() argument 46 DISPLAY_HILOGD(FEAT_BRIGHTNESS, "animation from=%{public}u, to=%{public}u, duration=%{public}u", in StartAnimation() 47 from, to, duration); in StartAnimation() 52 fromBrightness_ = from; in StartAnimation()
|
/base/telephony/core_service/services/sim/src/ |
H A D | operator_config_cache.cpp | 113 TELEPHONY_LOGI("load from file success opc size %{public}zu", poc.configValue.size()); in LoadOperatorConfig() 123 TELEPHONY_LOGI("load from custom system success"); in LoadOperatorConfig() 148 TELEPHONY_LOGD("get from memory"); in GetOperatorConfigs() 172 void OperatorConfigCache::CopyOperatorConfig(const OperatorConfig &from, OperatorConfig &to) in CopyOperatorConfig() argument 174 for (const auto &it : from.configValue) { in CopyOperatorConfig() 177 for (const auto &it : from.boolValue) { in CopyOperatorConfig() 180 for (const auto &it : from.intValue) { in CopyOperatorConfig() 183 for (const auto &it : from.longValue) { in CopyOperatorConfig() 186 for (const auto &it : from.stringValue) { in CopyOperatorConfig() 189 for (const auto &it : from in CopyOperatorConfig() [all...] |
/base/security/device_security_level/baselib/utils/include/ |
H A D | utils_base64.h | 29 uint8_t *Base64EncodeApp(const uint8_t *from, uint32_t fromLen);
|
/base/msdp/device_status/rust/modules/scheduler/sys/src/ |
H A D | lib.rs | 125 TaskHandle::from(handle) in post_async_task() 142 TaskHandle::from(handle) in post_delayed_task() 166 TaskHandle::from(handle) in post_perioric_task() 181 TaskHandle::from(handle) in post_blocking_task() 216 /// Remove an epoll handler from epoll event loop.
|
H A D | task.rs | 27 fn from(value: JoinHandle<R>) -> Self in from() functions
|
/base/telephony/core_service/utils/vcard/include/ |
H A D | vcard_decoder_v21.h | 64 virtual std::string UnescapeText(const std::string &from); 85 const std::string &from, const std::string &fromCharSet, const std::string &toCharSet, int32_t &errorCode); 89 std::string GetPoMultiLine(const std::string &from); 90 std::string getUpperName(const std::string &from);
|
/base/hiviewdfx/hisysevent/interfaces/rust/innerkits/src/ |
H A D | sys_event_manager.rs | 144 .trim_end_matches(char::from(0)).to_string() in get_domain() 150 .trim_end_matches(char::from(0)).to_string() in get_event_name() 172 .trim_end_matches(char::from(0)).to_string() in get_time_zone() 216 .trim_end_matches(char::from(0)).to_owned() in get_level() 225 .trim_end_matches(char::from(0)); in get_tag() 226 String::from(tag) in get_tag() 235 .trim_end_matches(char::from(0)); in get_json_str() 236 String::from(json_str) in get_json_str()
|