/foundation/systemabilitymgr/samgr/interfaces/innerkits/rust/src/ |
H A D | manage.rs | 16 use ipc::remote::{RemoteObj, RemoteStub}; 43 pub fn get_context_manager() -> Option<RemoteObj> { in get_context_manager() 45 RemoteObj::from_sptr(GetContextManager()) in get_context_manager() 75 pub fn get_system_ability(said: i32) -> Option<RemoteObj> { in get_system_ability() 77 RemoteObj::from_sptr(GetSystemAbility(said)) in get_system_ability() 84 pub fn get_system_ability_with_device_id(said: i32, device_id: &str) -> Option<RemoteObj> { in get_system_ability_with_device_id() 87 RemoteObj::from_sptr(GetSystemAbilityWithDeviceId(said, &id)) in get_system_ability_with_device_id() 97 pub fn check_system_ability(said: i32) -> Option<RemoteObj> { in check_system_ability() 100 RemoteObj::from_sptr(CheckSystemAbility(said)) in check_system_ability() 103 pub fn check_system_ability_with_ability(said: i32, device_id: &str) -> Option<RemoteObj> { in check_system_ability_with_ability() [all...] |
/foundation/communication/ipc/interfaces/innerkits/rust/src/remote/ |
H A D | obj.rs | 30 pub struct RemoteObj { structure names 34 impl Clone for RemoteObj { 42 unsafe impl Send for RemoteObj {} 43 unsafe impl Sync for RemoteObj {} 49 impl RemoteObj { impls 76 /// Creates a RemoteObj from RemoteStub. 81 /// Creates a RemoteObj from sptr in from_stub() 137 pub fn add_death_recipient(&self, f: fn(Box<RemoteObj>)) -> Option<RecipientRemoveHandler> { in add_death_recipient()
|
H A D | wrapper.rs | 24 pub use super::obj::RemoteObj; 32 type RemoteObj; types 46 fn new_remote_obj(wrap: UniquePtr<IRemoteObjectWrapper>) -> Box<RemoteObj>; in descriptor() 90 cb: fn(Box<RemoteObj>), in AddDeathRecipient() 100 fn new_remote_obj(wrap: UniquePtr<ffi::IRemoteObjectWrapper>) -> Box<RemoteObj> { in new_remote_obj() 101 Box::new(RemoteObj::try_new(wrap).unwrap()) in new_remote_obj() 137 pub fn into_remote(self) -> Option<RemoteObj> { in descriptor() 138 RemoteObj::try_new(FromRemoteStub(Box::new(self))) in descriptor()
|
H A D | mod.rs | 15 //! IPC RemoteObj 21 pub use obj::RemoteObj;
|
H A D | stub.rs | 56 use crate::remote::RemoteObj; 74 let remote = RemoteObj::from_stub(TestStub).unwrap(); in descriptor()
|
/foundation/communication/ipc/interfaces/innerkits/rust/src/ |
H A D | skeleton.rs | 17 use crate::remote::RemoteObj; 141 pub fn get_context_object() -> Option<RemoteObj> { in get_context_object() 142 RemoteObj::try_new(GetContextObject()) in get_context_object() 146 pub fn flush_commands(remote: &mut RemoteObj) -> i32 { in flush_commands()
|
/foundation/communication/ipc/interfaces/innerkits/rust/include/ |
H A D | remote_object_wrapper.h | 35 struct RemoteObj; 54 std::unique_ptr<DeathRecipientRemoveHandler> AddDeathRecipient(rust::Fn<void(rust::Box<RemoteObj>)>) const; 65 DeathRecipientWrapper(rust::Fn<void(rust::Box<RemoteObj>)> cb); 69 rust::Fn<void(rust::Box<RemoteObj>)> inner_;
|
/foundation/systemabilitymgr/safwk/interfaces/innerkits/safwk/rust/examples/audio_rust_sa/src/ |
H A D | proxy.rs | 15 use ipc::remote::RemoteObj; 20 pub remote: RemoteObj, 24 pub fn new(remote: RemoteObj) -> Self { in new()
|
/foundation/communication/ipc/interfaces/innerkits/rust/tests/ |
H A D | skeleton.rs | 19 use ipc::remote::{RemoteObj, RemoteStub}; 53 data.write_remote(RemoteObj::from_stub(TestRemoteStub).unwrap()) in context()
|
H A D | parcel_remote.rs | 20 use ipc::remote::{RemoteObj, RemoteStub};
|
/foundation/communication/ipc/interfaces/innerkits/rust/examples/ |
H A D | basic.rs | 18 use ipc::remote::{RemoteObj, RemoteStub};
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/ipc_conn/ |
H A D | asset.rs | 17 use ipc::remote::RemoteObj; 184 pub(crate) remote_obj: Option<RemoteObj>, 191 let remote_obj = unsafe { RemoteObj::from_ciremote(ConnectService(user_id)) }
|
H A D | database.rs | 17 use ipc::remote::RemoteObj; 53 pub(crate) remote_obj: Option<RemoteObj>, 73 let remote_obj = unsafe { RemoteObj::from_ciremote(ConnectService(user_id)) }
|
H A D | connect.rs | 20 use ipc::remote::RemoteObj; 686 remote: &Option<RemoteObj>, 726 remote: &Option<RemoteObj>, 756 pub(crate) remote_obj: Option<RemoteObj>, 764 let remote_obj = unsafe { RemoteObj::from_ciremote(ConnectService(user_id)) }
|
/foundation/communication/ipc/interfaces/innerkits/rust/src/parcel/ |
H A D | msg.rs | 31 use crate::remote::RemoteObj; 302 /// Writes a RemoteObj into this MsgParcel. 307 /// use ipc::remote::{RemoteObj, RemoteStub}; 319 /// msg.write_remote(RemoteObj::from_stub(TestRemoteStub).unwrap()) 322 pub fn write_remote(&mut self, remote: RemoteObj) -> IpcResult<()> { in write_remote() 326 /// Reads a RemoteObj from this MsgParcel. 331 /// use ipc::remote::{RemoteObj, RemoteStub}; 343 /// msg.write_remote(RemoteObj::from_stub(TestRemoteStub).unwrap()) 347 pub fn read_remote(&mut self) -> IpcResult<RemoteObj> { in read_remote() 360 .map(|remote| unsafe { RemoteObj in read_remote() [all...] |
/foundation/communication/ipc/interfaces/innerkits/rust/src/cxx/ |
H A D | remote_object_wrapper.cpp | 62 rust::Fn<void(rust::Box<RemoteObj>)> callback) const in AddDeathRecipient() 100 DeathRecipientWrapper::DeathRecipientWrapper(rust::Fn<void(rust::Box<RemoteObj>)> cb) in DeathRecipientWrapper()
|
/foundation/communication/ipc/example/rust_test/service/src/ |
H A D | lib.rs | 24 IpcStatusCode, RemoteObj, define_remote_object, FIRST_CALL_TRANSACTION,
|
/foundation/ability/idl_tool/test/rust/moduletest/service/src/ |
H A D | IIdlTestService.rs | 24 RemoteObj, define_remote_object, FIRST_CALL_TRANSACTION
|