/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 | 37 fn generate_key_if_needed(secret_key: &SecretKey) -> Result<()> { in generate_key_if_needed() 55 fn encrypt(calling_info: &CallingInfo, db_data: &mut DbMap) -> Result<()> { in encrypt() 71 ) -> Result<()> { in resolve_conflict() 100 fn add_system_attrs(db_data: &mut DbMap) -> Result<()> { in add_system_attrs() 123 fn check_accessibity_validity(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in check_accessibity_validity() 142 fn check_persistent_permission(attributes: &AssetMap) -> Result<()> { in check_persistent_permission() 152 fn check_arguments(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in check_arguments() 168 fn local_add(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in local_add() 188 pub(crate) fn add(attributes: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in add()
|
D | operation_remove.rs | 31 fn add_system_attrs(db_data: &mut DbMap) -> Result<()> { in add_system_attrs() 41 fn check_arguments(attributes: &AssetMap) -> Result<()> { in check_arguments() 53 pub(crate) fn remove(query: &AssetMap, calling_info: &CallingInfo) -> Result<()> { in remove()
|
D | operation_post_query.rs | 27 fn check_arguments(query: &AssetMap) -> Result<()> { in check_arguments() 36 pub(crate) fn post_query(handle: &AssetMap, calling_info: &CallingInfo) -> 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(calling_info: &CallingInfo, db_data: &mut DbMap) -> Result<()> { in decrypt() 70 fn exec_crypto(calling_info: &CallingInfo, query: &AssetMap, db_data: &mut DbMap) -> Result<()> { in exec_crypto() 167 fn check_arguments(attributes: &AssetMap) -> Result<()> { in check_arguments()
|
D | operation_update.rs | 41 fn add_system_attrs(update: &AssetMap, db_data: &mut DbMap) -> Result<()> { in add_system_attrs() 58 fn check_arguments(query: &AssetMap, attrs_to_update: &AssetMap) -> Result<()> { in check_arguments() 87 pub(crate) fn update(query: &AssetMap, update: &AssetMap, calling_info: &CallingInfo) -> Result<()>… in update()
|
D | operation_pre_query.rs | 31 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 | 167 ) -> Result<(), Box<dyn Error>> { in verify_signers() 239 ) -> Result<(), ProfileError> { in add_profile_cert_path() 255 ) -> Result<(), ProfileError> { in process_profile() 297 fn verify_udid(profile_json: &JsonValue) -> Result<(), String> { in verify_udid() 384 ) -> Result<(), ()> { in enable_key_in_profile_internal() 414 fn remove_key_in_profile_internal(bundle_name: *const c_char) -> Result<(), ()> { in remove_key_in_profile_internal()
|
D | cert_path_utils.rs | 147 pub fn add_cert_paths(&self) -> Result<(), CertPathError> { in add_cert_paths() 306 pub fn add_subject_cert_path(&self) -> Result<(), CertPathError> { in add_subject_cert_path() 395 ) -> Result<(), CertPathError> in cert_path_operation() 428 ) -> Result<(), CertPathError> { in add_cert_path_info() 445 ) -> 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.rs | 117 pub fn check_db_accessible(path: String, user_id: i32) -> Result<()> { in check_db_accessible() 126 pub(crate) fn open(&mut self) -> Result<()> { in open() 140 fn open_and_restore(&mut self) -> Result<()> { in open_and_restore() 158 pub(crate) fn restore(&mut self) -> Result<()> { in restore() 184 pub(crate) fn set_version(&self, ver: u32) -> Result<()> { in set_version() 191 pub fn upgrade(&mut self, ver: u32, callback: UpgradeDbCallback) -> Result<()> { in upgrade() 203 pub(crate) fn delete(user_id: i32) -> Result<()> { in delete() 232 pub fn exec(&self, sql: &str) -> Result<()> { in exec() 416 …fn replace_datas(&mut self, condition: &DbMap, is_filter_sync: bool, datas: &DbMap) -> Result<()> { in replace_datas()
|
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() 209 pub(crate) fn delete(&self) -> Result<()> { in delete() 216 pub(crate) fn create(&self, columns: &[ColumnInfo]) -> Result<()> { in create() 247 pub(crate) fn upgrade(&self, ver: u32, columns: &[UpgradeColumnInfo]) -> Result<()> { in upgrade() 458 …pub(crate) fn add_column(&self, column: &ColumnInfo, default_value: &Option<Value>) -> Result<()> { in add_column() 477 …rate) fn replace_row(&self, condition: &DbMap, is_filter_sync: bool, datas: &DbMap) -> Result<()> { in replace_row()
|
/base/security/asset/interfaces/inner_api/rs/src/ |
D | plugin_interface.rs | 75 fn init(&mut self, user_id: i32) -> Result<(), u32>; in init() 90 fn begin_transaction(&mut self) -> Result<(), u32>; in begin_transaction() 93 fn commit_transaction(&mut self) -> Result<(), u32>; in commit_transaction() 96 fn rollback_transaction(&mut self) -> Result<(), u32>; in rollback_transaction() 105 fn init(&self, ctx: Box<dyn IAssetPluginCtx>) -> Result<(), u32>; in init() 111 fn process_event(&self, event_type: EventType, params: &ExtDbMap) -> Result<(), u32>; in process_event()
|
D | lib.rs | 56 pub fn add(&self, attributes: &AssetMap) -> Result<()> { in add() 65 pub fn remove(&self, query: &AssetMap) -> Result<()> { in remove() 74 pub fn update(&self, query: &AssetMap, attributes_to_update: &AssetMap) -> Result<()> { in update() 104 pub fn post_query(&self, query: &AssetMap) -> Result<()> { in post_query()
|
/base/security/asset/test/unittest/inner_api_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 | lib.rs | 37 pub fn create_user_db_dir(user_id: i32) -> Result<()> { in create_user_db_dir() 55 pub fn delete_user_db_dir(user_id: i32) -> Result<()> { in delete_user_db_dir()
|
/base/security/asset/services/plugin/src/ |
D | asset_plugin.rs | 89 fn init(&mut self, user_id: i32) -> std::result::Result<(), u32> { in init() 127 fn begin_transaction(&mut self) -> std::result::Result<(), u32> { in begin_transaction() 134 fn commit_transaction(&mut self) -> std::result::Result<(), u32> { in commit_transaction() 141 fn rollback_transaction(&mut self) -> std::result::Result<(), u32> { in rollback_transaction()
|
/base/security/asset/services/core_service/src/ |
D | lib.rs | 104 fn start_service(handler: Handler) -> Result<()> { in start_service() 167 fn add(&self, attributes: &AssetMap) -> Result<()> { in add() 171 fn remove(&self, query: &AssetMap) -> Result<()> { in remove() 175 fn update(&self, query: &AssetMap, attributes_to_update: &AssetMap) -> Result<()> { in update() 187 fn post_query(&self, query: &AssetMap) -> Result<()> { in post_query()
|
/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/security/asset/frameworks/ipc/src/ |
D | lib.rs | 54 pub fn serialize_map(map: &AssetMap, parcel: &mut MsgParcel) -> Result<()> { in serialize_map() 107 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()
|
D | secret_key.rs | 98 pub fn generate(&self) -> Result<()> { in generate() 109 pub fn delete(&self) -> Result<()> { in delete() 120 pub fn delete_by_owner(calling_info: &CallingInfo) -> Result<()> { in delete_by_owner()
|
/base/request/request/services/src/manage/events/ |
D | mod.rs | 214 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { in fmt() 226 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { in fmt() 291 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { in fmt() 309 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { in fmt()
|