/base/msdp/device_status/rust/subsystem/input/sys/src/ |
D | input_binding.rs | 56 pub size: i32, 60 pub id: i32, 73 pub source_type: i32, 75 pub pointer_id: i32, 86 pub fn CGetPointerId(event: *const CPointerEvent) -> i32; in CGetPointerId() argument 87 pub fn CGetPointerAction(event: *const CPointerEvent) -> i32; in CGetPointerAction() argument 88 pub fn CGetTargetWindowId(event: *const CPointerEvent) -> i32; in CGetTargetWindowId() argument 89 pub fn CGetSourceType(event: *const CPointerEvent) -> i32; in CGetSourceType() argument 90 pub fn CGetTargetDisplayId(event: *const CPointerEvent) -> i32; in CGetTargetDisplayId() argument 91 pub fn CGetDisplayX(event: *const CPointerEvent) -> i32; in CGetDisplayX() argument [all …]
|
/base/msdp/device_status/rust/modules/basic/server/src/ |
D | binding.rs | 23 program_name: *const c_char, module_type: i32, client_fd: *mut i32, token_type: *mut i32 24 ) -> i32; 27 fn AllocSocketFd(program_name: *const c_char, module_type: i32, in AllocSocketFd() argument 28 client_fd: *mut i32, token_type: *mut i32) -> i32; in AllocSocketFd() argument
|
D | lib.rs | 46 dummy: i32 50 …oc_socket_pair(&self, data: &BorrowedMsgParcel, reply: &mut BorrowedMsgParcel) -> FusionResult<i32> in alloc_socket_pair() argument 55 let mut token_type: i32 = 0; in alloc_socket_pair() 85 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in enable() argument 91 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in disable() argument 97 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in start() argument 104 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in stop() argument 110 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in add_watch() argument 116 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in remove_watch() argument 122 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in set_param() argument [all …]
|
/base/msdp/device_status/rust/data/sys/src/ipc/ |
D | drag.rs | 34 x: i32, 35 y: i32, 44 source_type: i32, 45 drag_num: i32, 46 pointer_id: i32, 47 display_x: i32, 48 display_y: i32, 49 display_id: i32, 55 x: i32, 56 y: i32, [all …]
|
D | coordination.rs | 33 pub user_data: i32, 50 user_data: i32::deserialize(parcel)?, in deserialize() 58 pub user_data: i32, 60 pub start_device_id: i32, 81 user_data: i32::deserialize(parcel)?, in deserialize() 82 start_device_id: i32::deserialize(parcel)?, in deserialize() 91 pub user_data: i32, 93 pub is_unchained: i32, 111 user_data: i32::deserialize(parcel)?, in deserialize() 112 is_unchained: i32::deserialize(parcel)?, in deserialize() [all …]
|
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/ |
D | stream_session.rs | 27 const SEND_RETRY_LIMIT: i32 = 32; 29 const RET_ERR: i32 = -1; 33 module_type: i32, 34 fd: i32, 35 uid : i32, 36 pid: i32, 37 token_type: i32, 65 fn uid(&self) -> i32 { in uid() argument 69 fn pid(&self) -> i32 { in pid() argument 73 fn module_type(&self) -> i32 { in module_type() argument [all …]
|
D | epoll_manager.rs | 21 const ONCE_PROCESS_NETPACKET_LIMIT: i32 = 100; 24 const SEND_RETRY_LIMIT: i32 = 32; 25 const RET_ERR: i32 = -1; 26 const RET_OK: i32 = 0; 38 pub socket_fd: i32, 40 pub epoll_fd: i32, 65 fn socket_fd(&self) -> i32 { in socket_fd() argument 68 fn socket_set_fd(&mut self, fd: i32) { in socket_set_fd() argument
|
D | error.rs | 73 impl From<SocketStatusCode> for i32 { implementation 74 fn from(code: SocketStatusCode) -> i32 { in from() argument 90 impl From<BufferStatusCode> for i32 { implementation 91 fn from(code: BufferStatusCode) -> i32 { in from() argument 117 impl From<SessionStatusCode> for i32 { implementation 118 fn from(code: SessionStatusCode) -> i32 { in from() argument 136 impl From<NetPacketStatusCode> for i32 { implementation 137 fn from(code: NetPacketStatusCode) -> i32 { in from() argument
|
/base/msdp/device_status/rust/subsystem/input/sys/src/interaction/ |
D | pointer_event.rs | 47 pub fn pointer_id(&self) -> i32 { in pointer_id() argument 56 pub fn pointer_acttion(&self) -> i32 { in pointer_acttion() argument 65 pub fn target_window_id(&self) -> i32 { in target_window_id() argument 74 pub fn source_type(&self) -> i32 { in source_type() argument 83 pub fn taget_display_id(&self) -> i32 { in taget_display_id() argument 92 pub fn display_x(&self) -> i32 { in display_x() argument 101 pub fn display_y(&self) -> i32 { in display_y() argument 110 pub fn device_id(&self) -> i32 { in device_id() argument 119 pub fn window_pid(&self) -> i32 { in window_pid() argument
|
D | input_manager.rs | 27 const INPUT_BINDING_OK: i32 = 0; 34 pub fn add_monitor(callback: OnPointerEventCallback) -> FusionResult<i32> { in add_monitor() argument 46 pub fn set_pointer_visible(visible: bool) -> FusionResult<i32> { in set_pointer_visible() argument 58 pub fn enable_input_device(enable: bool) -> FusionResult<i32> { in enable_input_device() argument 70 pub fn remove_input_event_filter(filter_id: i32) -> FusionResult<i32> { in remove_input_event_filter() argument 82 pub fn remove_monitor(monitor_id: i32) { in remove_monitor() argument 90 pub fn remove_interceptor(interceptor_id: i32) { in remove_interceptor() argument 98 pub fn set_pointer_location(physical_x: i32, physical_y: i32) { in set_pointer_location() argument
|
/base/msdp/device_status/rust/data/sys/src/ |
D | errors.rs | 19 #[repr(i32)] 27 impl From<FusionErrorCode> for i32 { implementation 37 impl TryFrom<i32> for FusionErrorCode { 40 fn try_from(value: i32) -> Result<Self, Self::Error> { in try_from() 42 _ if i32::from(FusionErrorCode::Fail) == value => { Ok(FusionErrorCode::Fail) }, in try_from() 43 … _ if i32::from(FusionErrorCode::InvalidParam) == value => { Ok(FusionErrorCode::InvalidParam) }, in try_from() 50 pub type FusionResult<T> = std::result::Result<T, i32>;
|
D | plugin_manager.rs | 35 …xt: &CallingContext, data: &BorrowedMsgParcel, reply: &mut BorrowedMsgParcel) -> FusionResult<i32>; in enable() argument 37 …xt: &CallingContext, data: &BorrowedMsgParcel, reply: &mut BorrowedMsgParcel) -> FusionResult<i32>; in disable() argument 39 …xt: &CallingContext, data: &BorrowedMsgParcel, reply: &mut BorrowedMsgParcel) -> FusionResult<i32>; in start() argument 41 …xt: &CallingContext, data: &BorrowedMsgParcel, reply: &mut BorrowedMsgParcel) -> FusionResult<i32>; in stop() argument 43 …ingContext, id: u32, data: &BorrowedMsgParcel, reply: &mut BorrowedMsgParcel) -> FusionResult<i32>; in add_watch() argument 45 …ingContext, id: u32, data: &BorrowedMsgParcel, reply: &mut BorrowedMsgParcel) -> FusionResult<i32>; in remove_watch() argument 47 …ingContext, id: u32, data: &BorrowedMsgParcel, reply: &mut BorrowedMsgParcel) -> FusionResult<i32>; in set_param() argument 49 …ingContext, id: u32, data: &BorrowedMsgParcel, reply: &mut BorrowedMsgParcel) -> FusionResult<i32>; in get_param() argument 51 …ingContext, id: u32, data: &BorrowedMsgParcel, reply: &mut BorrowedMsgParcel) -> FusionResult<i32>; in control() argument
|
/base/msdp/device_status/rust/frameworks/client/src/ |
D | lib.rs | 48 pub unsafe extern "C" fn fusion_alloc_socket_fd(program_name: *const c_char, module_type: i32, in fusion_alloc_socket_fd() argument 49 client_fd: *mut i32, token_type: *mut i32) -> i32 in fusion_alloc_socket_fd() argument 104 pub unsafe extern "C" fn fusion_start_drag(c_drag_data: *mut CDragData) -> i32 in fusion_start_drag() argument 143 pub unsafe extern "C" fn fusion_register_coordination_listener() -> i32 in fusion_register_coordination_listener() 168 pub unsafe extern "C" fn fusion_unregister_coordination_listener() -> i32 in fusion_unregister_coordination_listener() 193 pub unsafe extern "C" fn fusion_enable_coordination(user_data: i32) -> i32 in fusion_enable_coordination() argument 218 pub unsafe extern "C" fn fusion_disable_coordination(user_data: i32) -> i32 in fusion_disable_coordination() argument 243 pub unsafe extern "C" fn fusion_start_coordination(user_data: i32, in fusion_start_coordination() argument 244 remote_network_id: *const c_char, start_device_id: i32) -> i32 in fusion_start_coordination() argument 282 pub unsafe extern "C" fn fusion_stop_coordination(user_data: i32, is_unchained: i32) -> i32 in fusion_stop_coordination() argument [all …]
|
D | frameworks.rs | 100 pub fn alloc_socket_pair(&self, param: &AllocSocketPairParam) -> FusionResult<(FileDesc, i32)> { in alloc_socket_pair() argument 114 pub fn start_drag(&self, drag_data: &DragData) -> FusionResult<i32> { in start_drag() argument 128 pub fn register_coordination_listener(&self) -> FusionResult<i32> { in register_coordination_listener() argument 142 pub fn unregister_coordination_listener(&self) -> FusionResult<i32> { in unregister_coordination_listener() argument 156 pub fn enable_coordination(&self, user_data: i32) -> FusionResult<i32> { in enable_coordination() argument 170 pub fn disable_coordination(&self, user_data: i32) -> FusionResult<i32> { in disable_coordination() argument 184 pub fn start_coordination(&self, user_data: i32, remote_network_id: String, in start_coordination() argument 185 start_device_id: i32) -> FusionResult<i32> { in start_coordination() argument 201 pub fn stop_coordination(&self, user_data: i32, is_unchained: i32) -> FusionResult<i32> in stop_coordination() argument 216 pub fn get_coordination_state(&self, user_data: i32, device_id: String) -> FusionResult<i32> in get_coordination_state() argument
|
/base/msdp/device_status/rust/modules/coordination/server/src/ |
D | coordination.rs | 35 dummy: i32 41 param: &GeneralCoordinationParam) -> FusionResult<i32> in enable() argument 49 param: &GeneralCoordinationParam) -> FusionResult<i32> in disable() argument 57 param: &StartCoordinationParam) -> FusionResult<i32> in start() argument 65 param: &StopCoordinationParam) -> FusionResult<i32> in stop() argument 73 param: &GetCoordinationStateParam) -> FusionResult<i32> in get_state() argument 80 param: &GeneralCoordinationParam) -> FusionResult<i32> in register_listener() argument 87 param: &GeneralCoordinationParam) -> FusionResult<i32> in unregister_listener() argument
|
D | lib.rs | 57 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in enable() argument 71 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in disable() argument 85 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in start() argument 99 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in stop() argument 113 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in add_watch() argument 127 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in remove_watch() argument 141 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in set_param() argument 147 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in get_param() argument 161 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in control() argument
|
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/stream_session/ |
D | ffi.rs | 60 pub unsafe extern "C" fn StreamSessionSetUid(object: *mut StreamSession, uid: i32) -> i32 { in StreamSessionSetUid() argument 76 pub unsafe extern "C" fn StreamSessionSetFd(object: *mut StreamSession, fd: i32) -> i32 { in StreamSessionSetFd() argument 92 pub unsafe extern "C" fn StreamSessionSetPid(object: *mut StreamSession, pid: i32) -> i32 { in StreamSessionSetPid() argument 108 pub unsafe extern "C" fn StreamSessionGetUid(object: *const StreamSession) -> i32 { in StreamSessionGetUid() argument 123 pub unsafe extern "C" fn StreamSessionGetPid(object: *const StreamSession) -> i32 { in StreamSessionGetPid() argument 139 pub unsafe extern "C" fn StreamSessionGetFd(object: *const StreamSession) -> i32 { in StreamSessionGetFd() argument 154 pub unsafe extern "C" fn StreamSessionSetTokenType(object: *mut StreamSession, style: i32) -> i32 { in StreamSessionSetTokenType() argument 170 pub unsafe extern "C" fn StreamSessionGetTokenType(object: *const StreamSession) -> i32 { in StreamSessionGetTokenType() argument 185 pub unsafe extern "C" fn StreamSessionGetModuleType(object: *const StreamSession) -> i32 { in StreamSessionGetModuleType() argument 200 pub unsafe extern "C" fn StreamSessionClose(object: *mut StreamSession) -> i32 { in StreamSessionClose() argument
|
/base/msdp/device_status/rust/modules/coordination/client/src/ |
D | lib.rs | 45 dummy: i32 50 …pub fn enable_coordination(&self, user_data: i32, ipc_client: Rc<FusionIpcClient>) -> FusionResult… in enable_coordination() argument 70 …pub fn disable_coordination(&self, user_data: i32, ipc_client: Rc<FusionIpcClient>) -> FusionResul… in disable_coordination() argument 90 pub fn start_coordination(&self, user_data: i32, remote_network_id: String, in start_coordination() argument 91 start_device_id: i32, ipc_client: Rc<FusionIpcClient>) -> FusionResult<i32> in start_coordination() argument 113 pub fn stop_coordination(&self, user_data: i32, is_unchained: i32, in stop_coordination() argument 114 ipc_client: Rc<FusionIpcClient>) -> FusionResult<i32> in stop_coordination() argument 135 pub fn get_coordination_state(&self, user_data: i32, device_id: String, in get_coordination_state() argument 136 ipc_client: Rc<FusionIpcClient>) -> FusionResult<i32> in get_coordination_state() argument 167 … pub fn register_coordination_listener(&self, ipc_client: Rc<FusionIpcClient>) -> FusionResult<i32> in register_coordination_listener() argument [all …]
|
/base/msdp/device_status/rust/modules/drag/server/src/ |
D | lib.rs | 45 dummy: i32 57 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in enable() argument 63 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in disable() argument 69 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in start() argument 105 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in stop() argument 111 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in add_watch() argument 117 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in remove_watch() argument 123 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in set_param() argument 129 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in get_param() argument 135 reply: &mut BorrowedMsgParcel) -> FusionResult<i32> { in control() argument [all …]
|
/base/msdp/device_status/rust/ipc/service/src/ |
D | lib.rs | 44 pub const MSDP_DEVICESTATUS_SERVICE_ID: i32 = 2902; 49 …: Intention, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<i32>; in enable() argument 51 …: Intention, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<i32>; in disable() argument 53 …: Intention, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<i32>; in start() argument 55 …: Intention, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<i32>; in stop() argument 57 …on, id: u32, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<i32>; in add_watch() argument 59 …on, id: u32, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<i32>; in remove_watch() argument 61 …on, id: u32, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<i32>; in set_param() argument 63 …on, id: u32, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<i32>; in get_param() argument 65 …on, id: u32, data: &BorrowedMsgParcel<'_>, reply: &mut BorrowedMsgParcel<'_>) -> FusionResult<i32>; in control() argument [all …]
|
/base/request/request/services/service/rust/src/ |
D | request_service.rs | 53 reply.write(&(ErrorCode::Permission as i32)); in construct() 87 reply.write(&(ErrorCode::Ipc_size_too_large as i32)); in construct() 101 reply.write(&(ErrorCode::Ipc_size_too_large as i32)); in construct() 111 let fd_error: i32 = data.read()?; in construct() 123 reply.write(&(ErrorCode::Ipc_size_too_large as i32)); in construct() 136 reply.write(&(ErrorCode::Ipc_size_too_large as i32)); in construct() 182 reply.write(&(ret as i32))?; in construct() 187 reply.write(&(task_id as i32))?; in construct() 197 reply.write(&(ErrorCode::Permission as i32)); in pause() 206 reply.write(&(ret as i32))?; in pause() [all …]
|
/base/msdp/device_status/rust/services/sys/src/ |
D | binding.rs | 54 program_name: *const c_char, module_type: i32, in NativeService_AllocSocketFd() argument 55 client_fd: *mut i32, token_type: *mut i32) -> i32; in NativeService_AllocSocketFd() argument 80 pub fn alloc_socket_fd(&self, program_name: &str, module_type: i32, in alloc_socket_fd() argument 81 client_fd: &mut RawFd, token_type: &mut i32) -> FusionResult<i32> in alloc_socket_fd() argument
|
D | service.rs | 53 fn alloc_socket_fd(&self, program_name: &str, module_type: i32, in alloc_socket_fd() argument 54 client_fd: &mut RawFd, token_type: &mut i32) -> FusionResult<i32> in alloc_socket_fd() argument 107 pub fn alloc_socket_fd(&self, program_name: &str, module_type: i32, in alloc_socket_fd() argument 108 client_fd: &mut RawFd, token_type: &mut i32) -> FusionResult<i32> in alloc_socket_fd() argument
|
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/stream_buffer/ |
D | ffi.rs | 90 pub unsafe extern "C" fn StreamBufferReset(object: *mut StreamBuffer) -> i32 { in StreamBufferReset() argument 106 pub unsafe extern "C" fn StreamBufferClean(object: *mut StreamBuffer) -> i32 { in StreamBufferClean() argument 219 pub unsafe extern "C" fn CircleStreamBufferCopyDataToBegin(object: *mut StreamBuffer) -> i32 { in CircleStreamBufferCopyDataToBegin() argument 266 callback_fun: ClientPacketCallBackFun) -> i32 { in ReadClientPackets() argument 296 pub unsafe extern "C" fn StreamBufferGetRcount(object: *const StreamBuffer) -> i32 { in StreamBufferGetRcount() argument 298 obj.r_count() as i32 in StreamBufferGetRcount() 310 pub unsafe extern "C" fn StreamBufferGetWcount(object: *const StreamBuffer) -> i32 { in StreamBufferGetWcount() argument 312 obj.w_count() as i32 in StreamBufferGetWcount() 324 pub unsafe extern "C" fn StreamBufferGetWpos(object: *const StreamBuffer) -> i32 { in StreamBufferGetWpos() argument 326 obj.w_pos() as i32 in StreamBufferGetWpos() [all …]
|
/base/hiviewdfx/hitrace/interfaces/rust/innerkits/hitracechain/src/ |
D | lib.rs | 54 type Output = i32; 57 (self as i32) | (rhs as i32) in bitor() 119 HiTraceChainIsFlagEnabledWrapper(self as *const HiTraceId, flag as i32) in is_flag_enabled() 127 HiTraceChainEnableFlagWrapper(self as *mut HiTraceId, flag as i32); in enable_flag() 132 pub fn set_flags(&mut self, flags: i32) { in set_flags() argument 140 pub fn get_flags(&self) -> i32 { in get_flags() argument 197 pub fn begin(name: &str, flags: i32) -> HiTraceId { in begin() 248 pub fn id_to_bytes(p_id: &HiTraceId, p_id_array: &mut [u8]) -> i32 { in id_to_bytes() argument
|