| /base/security/asset/services/core_service/src/operations/common/ |
| D | argument_check.rs | 42 fn check_data_type(tag: &Tag, value: &Value) -> Result<()> { in check_data_type() 54 fn check_array_size(tag: &Tag, value: &Value, min: usize, max: usize) -> Result<()> { in check_array_size() 69 fn check_enum_variant<T: TryFrom<u32>>(tag: &Tag, value: &Value) -> Result<()> { in check_enum_variant() 84 fn check_valid_bits(tag: &Tag, value: &Value, min_bits: u32, max_bits: u32) -> Result<()> { in check_valid_bits() 100 fn check_number_range(tag: &Tag, value: &Value, min: u32, max: u32) -> Result<()> { in check_number_range() 115 fn check_tag_range(tag: &Tag, value: &Value, tags: &[Tag]) -> Result<()> { in check_tag_range() 132 fn check_user_id(tag: &Tag, value: &Value) -> Result<()> { in check_user_id() 144 fn check_data_value(tag: &Tag, value: &Value) -> Result<()> { in check_data_value() 178 pub(crate) fn check_value_validity(attrs: &AssetMap) -> Result<()> { in check_value_validity() 186 pub(crate) fn check_required_tags(attrs: &AssetMap, required_tags: &[Tag]) -> Result<()> { in check_required_tags() [all …]
|
| D | permission_check.rs | 30 pub(crate) fn check_system_permission(attrs: &AssetMap) -> Result<()> { in check_system_permission()
|
| /base/security/asset/services/core_service/src/operations/ |
| D | operation_add.rs | 35 fn encrypt_secret(calling_info: &CallingInfo, db_data: &mut DbMap) -> Result<()> { in encrypt_secret() 51 ) -> Result<()> { in resolve_conflict() 80 fn add_system_attrs(db_data: &mut DbMap) -> Result<()> { in add_system_attrs() 103 fn check_accessibity_validity(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in check_accessibity_validity() 122 fn check_persistent_permission(attributes: &AssetMap) -> Result<()> { in check_persistent_permission() 132 fn check_sync_permission(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in check_sync_permission() 148 fn check_arguments(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in check_arguments() 165 fn local_add(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in local_add() 188 pub(crate) fn add(calling_info: &CallingInfo, attributes: &AssetMap) -> Result<()> { in add()
|
| D | operation_remove.rs | 29 fn add_system_attrs(db_data: &mut DbMap) -> Result<()> { in add_system_attrs() 39 fn check_arguments(attributes: &AssetMap) -> Result<()> { in check_arguments() 50 pub(crate) fn remove(calling_info: &CallingInfo, query: &AssetMap) -> Result<()> { in remove()
|
| D | operation_update.rs | 46 fn add_attrs(update: &AssetMap, db_data: &mut DbMap) -> Result<()> { in add_attrs() 55 fn add_system_attrs(db_data: &mut DbMap) -> Result<()> { in add_system_attrs() 68 fn check_arguments(query: &AssetMap, attrs_to_update: &AssetMap) -> Result<()> { in check_arguments() 96 pub(crate) fn update(calling_info: &CallingInfo, query: &AssetMap, update: &AssetMap) -> Result<()>… in update() function
|
| D | operation_post_query.rs | 27 fn check_arguments(query: &AssetMap) -> Result<()> { in check_arguments() 36 pub(crate) fn post_query(calling_info: &CallingInfo, handle: &AssetMap) -> Result<()> { in post_query()
|
| D | operation_query.rs | 42 …upgrade_version(db: &mut Database, calling_info: &CallingInfo, db_data: &mut DbMap) -> Result<()> { in upgrade_version() 62 fn decrypt_secret(calling_info: &CallingInfo, db_data: &mut DbMap) -> Result<()> { in decrypt_secret() 70 fn exec_crypto(calling_info: &CallingInfo, query: &AssetMap, db_data: &mut DbMap) -> Result<()> { in exec_crypto() 160 fn check_arguments(attributes: &AssetMap) -> Result<()> { in check_arguments()
|
| /base/security/code_signature/services/key_enable/src/ |
| D | file_utils.rs | 32 pub fn change_default_mode_file(path_file: &str) -> Result<(), CodeSignFileError> { in change_default_mode_file() 42 pub fn change_default_mode_directory(path_file: &str) -> Result<(), CodeSignFileError> { in change_default_mode_directory() 56 pub fn create_file_path(path_name: &str) -> Result<(), std::io::Error> { in create_file_path() 62 pub fn write_bytes_to_file(filename: &str, data: &[u8]) -> Result<(), std::io::Error> { in write_bytes_to_file() 68 pub fn load_bytes_from_file(filename: &str, buffer: &mut Vec<u8>) -> Result<(), std::io::Error> { in load_bytes_from_file() 78 pub fn delete_file_path(file_path: &str) -> Result<(), std::io::Error> { in delete_file_path()
|
| D | profile_utils.rs | 137 ) -> Result<(), Box<dyn Error>> { in validate_bundle_and_distribution_type() 228 ) -> Result<(), Box<dyn Error>> { in verify_signers() 308 ) -> Result<(), ProfileError> { in add_profile_cert_path() 323 ) -> Result<(), ProfileError> { in process_profile() 367 fn verify_udid(profile_json: &JsonValue) -> Result<(), String> { in verify_udid() 454 ) -> Result<(), ()> { in enable_key_in_profile_internal() 487 ) -> Result<(), ()> { in process_remove_bundle() 518 fn remove_key_in_profile_internal(bundle_name: *const c_char) -> Result<(), ()> { in remove_key_in_profile_internal()
|
| D | cert_path_utils.rs | 160 pub fn add_cert_paths(&self) -> Result<(), CertPathError> { in add_cert_paths() 319 pub fn add_subject_cert_path(&self) -> Result<(), CertPathError> { in add_subject_cert_path() 425 ) -> Result<(), CertPathError> in cert_path_operation() 464 ) -> Result<(), CertPathError> { in add_cert_path_info() 481 ) -> Result<(), CertPathError> { in remove_cert_path_info()
|
| /base/security/asset/services/db_operator/src/ |
| D | transaction.rs | 37 pub(crate) fn begin(&mut self) -> Result<()> { in begin() 42 pub(crate) fn rollback(self) -> Result<()> { in rollback() 47 pub(crate) fn commit(self) -> Result<()> { in commit()
|
| D | database_file_upgrade.rs | 87 fn remove_old_db(user_id: i32) -> Result<()> { in remove_old_db() 108 pub fn trigger_db_upgrade(user_id: i32, is_ce: bool) -> Result<()> { in trigger_db_upgrade() 142 ) -> Result<()> { in migrate_data() 163 fn split_db(user_id: i32) -> Result<()> { in split_db() 187 pub fn check_and_split_db(user_id: i32) -> Result<()> { in check_and_split_db()
|
| D | table.rs | 43 fn bind_datas(datas: &DbMap, stmt: &Statement, index: &mut i32) -> Result<()> { in bind_datas() 51 fn bind_where_datas(datas: &DbMap, stmt: &Statement, index: &mut i32) -> Result<()> { in bind_where_datas() 63 …d_where_with_specific_condifion(datas: &[Value], stmt: &Statement, index: &mut i32) -> Result<()> { in bind_where_with_specific_condifion() 217 pub(crate) fn delete(&self) -> Result<()> { in delete() 224 pub(crate) fn create_with_version(&self, columns: &[ColumnInfo], version: u32) -> Result<()> { in create_with_version() 257 pub(crate) fn create(&self, columns: &[ColumnInfo]) -> Result<()> { in create() 261 pub(crate) fn upgrade(&self, ver: u32, columns: &[UpgradeColumnInfo]) -> Result<()> { in upgrade() 496 …pub(crate) fn add_column(&self, column: &ColumnInfo, default_value: &Option<Value>) -> Result<()> { in add_column() 515 …rate) fn replace_row(&self, condition: &DbMap, is_filter_sync: bool, datas: &DbMap) -> Result<()> { in replace_row()
|
| D | database.rs | 135 fn check_validity_of_db_key(path: &str, user_id: i32) -> Result<()> { in check_validity_of_db_key() 225 …_db_accessible(path: String, user_id: i32, db_name: String, db_key: Option<&DbKey>) -> Result<()> { in check_db_accessible() 238 pub(crate) fn open(&mut self) -> Result<()> { in open() 252 pub(crate) fn open_and_restore(&mut self, db_key: Option<&DbKey>) -> Result<()> { in open_and_restore() 284 pub fn set_db_key(&mut self, p_key: &DbKey) -> Result<()> { in set_db_key() 295 pub(crate) fn restore(&mut self) -> Result<()> { in restore() 321 pub(crate) fn set_version(&self, ver: u32) -> Result<()> { in set_version() 328 …b fn upgrade(&mut self, user_id: i32, target_ver: u32, callback: UpgradeDbCallback) -> Result<()> { in upgrade() 390 pub(crate) fn delete(user_id: i32, db_name: &str) -> Result<()> { in delete() 419 pub fn exec(&self, sql: &str) -> Result<()> { in exec() [all …]
|
| /base/security/asset/test/unittest/inner_kits_rust/src/ |
| D | common.rs | 53 pub(crate) fn remove_by_alias(alias: &[u8]) -> Result<()> { in remove_by_alias() 89 pub(crate) fn add_default_asset(alias: &[u8], secret: &[u8]) -> Result<()> { in add_default_asset() 97 pub(crate) fn add_default_auth_asset(alias: &[u8], secret: &[u8]) -> Result<()> { in add_default_auth_asset() 106 pub(crate) fn add_all_tags_asset(alias: &[u8]) -> Result<()> { in add_all_tags_asset()
|
| /base/security/asset/frameworks/os_dependency/file/src/ |
| D | de_operator.rs | 34 pub fn create_user_de_dir(user_id: i32) -> Result<()> { in create_user_de_dir() 56 pub fn delete_user_de_dir(user_id: i32) -> Result<()> { in delete_user_de_dir()
|
| D | ce_operator.rs | 54 pub fn write_db_key_cipher(user_id: i32, db_key_cipher: &Vec<u8>) -> Result<()> { in write_db_key_cipher() 70 pub fn remove_ce_files(user_id: i32) -> Result<()> { in remove_ce_files()
|
| /base/security/asset/interfaces/inner_kits/rs/src/ |
| D | lib.rs | 54 pub fn add(&self, attributes: &AssetMap) -> Result<()> { in add() 63 pub fn remove(&self, query: &AssetMap) -> Result<()> { in remove() 72 pub fn update(&self, query: &AssetMap, attributes_to_update: &AssetMap) -> Result<()> { in update() 102 pub fn post_query(&self, query: &AssetMap) -> Result<()> { in post_query()
|
| D | plugin_interface.rs | 82 fn init(&mut self, user_id: i32) -> Result<(), u32>; in init() 91 …fn replace(&mut self, condition: &ExtDbMap, attributes: &ExtDbMap) -> std::result::Result<(), u32>; in replace() 94 …fn ce_replace(&mut self, condition: &ExtDbMap, attributes: &ExtDbMap) -> std::result::Result<(), u… in ce_replace() 133 fn init(&self, ctx: Box<dyn IAssetPluginCtx>) -> Result<(), u32>; in init() 139 fn process_event(&self, event_type: EventType, params: &ExtDbMap) -> Result<(), u32>; in process_event() 142 …fn redirect_request(&self, code: u32, data: &mut MsgParcel, reply: &mut MsgParcel) -> Result<(), i… in redirect_request()
|
| /base/security/asset/services/core_service/src/ |
| D | lib.rs | 119 fn start_service(handler: Handler) -> Result<()> { in start_service() 172 fn add(&self, calling_info: &CallingInfo, attributes: &AssetMap) -> Result<()> { in add() 176 fn remove(&self, calling_info: &CallingInfo, query: &AssetMap) -> Result<()> { in remove() 180 …&self, calling_info: &CallingInfo, query: &AssetMap, attributes_to_update: &AssetMap) -> Result<()… in update() 192 fn post_query(&self, calling_info: &CallingInfo, query: &AssetMap) -> Result<()> { in post_query()
|
| D | stub.rs | 63 fn on_app_request(process_info: &ProcessInfo, calling_info: &CallingInfo) -> Result<()> { in on_app_request() 149 fn reply_handle(ret: Result<()>, reply: &mut MsgParcel) -> IpcResult<()> { in reply_handle()
|
| /base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/ |
| D | lib.rs | 26 pub type Result<T> = std::result::Result<T, i32>; typedef
|
| /base/request/request/services/src/manage/scheduler/ |
| D | mod.rs | 112 pub(crate) fn start_task(&mut self, uid: u64, task_id: u32) -> Result<(), ErrorCode> { in start_task() 116 pub(crate) fn resume_task(&mut self, uid: u64, task_id: u32) -> Result<(), ErrorCode> { in resume_task() 120 fn start_inner(&mut self, uid: u64, task_id: u32, is_resume: bool) -> Result<(), ErrorCode> { in start_inner() 158 pub(crate) fn pause_task(&mut self, uid: u64, task_id: u32) -> Result<(), ErrorCode> { in pause_task() 172 pub(crate) fn remove_task(&mut self, uid: u64, task_id: u32) -> Result<(), ErrorCode> { in remove_task() 187 pub(crate) fn stop_task(&mut self, uid: u64, task_id: u32) -> Result<(), ErrorCode> { in stop_task() 441 fn change_status(&self, task_id: u32, state: State) -> Result<(), ErrorCode> { in change_status()
|
| /base/security/asset/frameworks/ipc/src/ |
| D | lib.rs | 55 pub fn serialize_map(map: &AssetMap, parcel: &mut MsgParcel) -> Result<()> { in serialize_map() 108 pub fn serialize_maps(vec: &Vec<AssetMap>, parcel: &mut MsgParcel) -> Result<()> { in serialize_maps()
|
| /base/security/asset/services/crypto_manager/src/ |
| D | crypto_manager.rs | 47 pub fn add(&mut self, crypto: Crypto) -> Result<()> { in add() 93 fn remove_expired_crypto(&mut self) -> Result<()> { in remove_expired_crypto()
|