Home
last modified time | relevance | path

Searched defs:Self (Results 1 – 25 of 190) sorted by relevance

12345678

/system/security/keystore2/test_utils/
Dauthorizations.rs43 pub fn purpose(mut self, p: KeyPurpose) -> Self { in purpose()
49 pub fn digest(mut self, d: Digest) -> Self { in digest()
55 pub fn algorithm(mut self, a: Algorithm) -> Self { in algorithm()
61 pub fn ec_curve(mut self, e: EcCurve) -> Self { in ec_curve()
67 pub fn attestation_challenge(mut self, b: Vec<u8>) -> Self { in attestation_challenge()
76 pub fn no_auth_required(mut self) -> Self { in no_auth_required()
85 pub fn rsa_public_exponent(mut self, e: i64) -> Self { in rsa_public_exponent()
94 pub fn key_size(mut self, s: i32) -> Self { in key_size()
100 pub fn block_mode(mut self, b: BlockMode) -> Self { in block_mode()
106 pub fn cert_not_before(mut self, b: i64) -> Self { in cert_not_before()
[all …]
/system/keymint/hal/src/
Dhal.rs105 fn fromm(val: T) -> Self; in fromm()
112 fn try_fromm(val: T) -> Result<Self, Self::Error>; in try_fromm()
162 fn fromm(val: wire::sharedsecret::SharedSecretParameters) -> Self { in fromm()
167 fn fromm(val: wire::secureclock::Timestamp) -> Self { in fromm()
172 fn fromm(val: wire::secureclock::TimeStampToken) -> Self { in fromm()
177 fn fromm(val: wire::keymint::Certificate) -> Self { in fromm()
182 fn fromm(val: wire::rpc::DeviceInfo) -> Self { in fromm()
187 fn fromm(val: wire::keymint::HardwareAuthToken) -> Self { in fromm()
199 fn fromm(val: wire::keymint::KeyCharacteristics) -> Self { in fromm()
207 fn fromm(val: wire::keymint::KeyCreationResult) -> Self { in fromm()
[all …]
/system/cros-codecs/src/device/v4l2/stateless/controls/
Dh264.rs59 fn from(sps: &Sps) -> Self { in from()
126 fn from(pps: &Pps) -> Self { in from()
170 fn from(pps: &Pps) -> Self { in from()
192 fn from(dpb: &V4l2CtrlH264DpbEntry) -> Self { in from()
232 pub fn set_picture_data(&mut self, pic: &PictureData) -> &mut Self { in set_picture_data()
249 pub fn set_dpb_entries(&mut self, dpb: Vec<V4l2CtrlH264DpbEntry>) -> &mut Self { in set_dpb_entries()
255 pub fn set_slice_header(&mut self, slice_header: &SliceHeader) -> &mut Self { in set_slice_header()
269 fn from(decode_params: &V4l2CtrlH264DecodeParams) -> Self { in from()
280 fn from(decode_mode: V4l2CtrlH264DecodeMode) -> Self { in from()
286 fn from(decode_mode: V4l2CtrlH264StartCode) -> Self { in from()
Dvp8.rs39 ) -> &mut Self { in set_loop_filter_params()
63 pub fn set_quantization_params(&mut self, hdr: &Header) -> &mut Self { in set_quantization_params()
81 pub fn set_segmentation_params(&mut self, segmentation: &Segmentation) -> &mut Self { in set_segmentation_params()
110 pub fn set_entropy_params(&mut self, hdr: &Header) -> &mut Self { in set_entropy_params()
118 pub fn set_bool_ctx(&mut self, hdr: &Header) -> &mut Self { in set_bool_ctx()
132 ) -> &mut Self { in set_frame_params()
180 fn from(decode_params: &V4l2CtrlVp8FrameParams) -> Self { in from()
Dav1.rs121 pub fn set_film_grain_params(&mut self, hdr: &FrameHeaderObu) -> &mut Self { in set_film_grain_params()
208 ) -> &mut Self {
215 pub fn set_tile_info_params(&mut self, hdr: &FrameHeaderObu) -> &mut Self { in set_tile_info_params()
247 pub fn set_quantization_params(&mut self, quant: &QuantizationParams) -> &mut Self { in set_quantization_params()
270 pub fn set_segmentation_params(&mut self, seg: &SegmentationParams) -> &mut Self { in set_segmentation_params()
297 pub fn set_loop_filter_params(&mut self, loop_filter: &LoopFilterParams) -> &mut Self { in set_loop_filter_params()
323 pub fn set_cdef_params(&mut self, cdef: &CdefParams) -> &mut Self { in set_cdef_params()
338 ) -> &mut Self { in set_loop_restoration_params()
362 pub fn set_global_motion_params(&mut self, global_motion: &GlobalMotionParams) -> &mut Self { in set_global_motion_params()
388 pub fn set_frame_params(&mut self, hdr: &FrameHeaderObu) -> &mut Self { in set_frame_params()
[all …]
Dvp9.rs49 pub fn set_loop_filter_params(&mut self, hdr: &Header) -> &mut Self { in set_loop_filter_params()
67 pub fn set_quantization_params(&mut self, hdr: &Header) -> &mut Self { in set_quantization_params()
75 pub fn set_segmentation_params(&mut self, hdr: &Header) -> &mut Self { in set_segmentation_params()
113 ) -> &mut Self { in set_frame_params()
182 fn from(decode_params: &V4l2CtrlVp9FrameParams) -> Self { in from()
/system/authgraph/hal/src/
Dlib.rs38 fn fromm(val: T) -> Self; in fromm()
45 fn try_fromm(val: T) -> Result<Self, Self::Error>; in try_fromm()
82 fn fromm(val: wire::SessionInitiationInfo) -> Self { in fromm()
93 fn fromm(val: wire::Key) -> Self { in fromm()
104 fn fromm(val: wire::KeInitResult) -> Self { in fromm()
113 fn fromm(val: wire::SessionInfo) -> Self { in fromm()
126 fn try_fromm(aidl: Key) -> Result<Self, Self::Error> { in try_fromm()
/system/logging/rust/
Dliblog_event_list.rs78 pub fn append_i32(self, data: i32) -> Result<Self, LogContextError> { in append_i32()
86 pub fn append_i64(self, data: i64) -> Result<Self, LogContextError> { in append_i64()
94 pub fn append_f32(self, data: f32) -> Result<Self, LogContextError> { in append_f32()
102 pub fn append_str(self, data: &str) -> Result<Self, LogContextError> { in append_str()
117 pub fn begin_list(self) -> Result<Self, LogContextError> { in begin_list()
125 pub fn end_list(self) -> Result<Self, LogContextError> { in end_list()
/system/cros-codecs/src/device/v4l2/stateless/
Dqueue.rs108 fn from(err: QueueError) -> Self { in from()
114 fn from(_err: v4l2r::device::queue::qbuf::QueueError<B>) -> Self { in from()
120 fn from(_err: CreateQueueError) -> Self { in from()
126 fn from(_err: GFmtError) -> Self { in from()
132 fn from(_err: SFmtError) -> Self { in from()
138 fn from(_err: RequestBuffersError) -> Self { in from()
144 fn from(_err: StreamOnError) -> Self { in from()
150 fn from(_err: GetFreeBufferError) -> Self { in from()
156 fn from(_err: IoctlConvertError<QBufIoctlError, Infallible>) -> Self { in from()
189 ) -> Self { in new()
[all …]
/system/secretkeeper/comm/src/data_types/
Derror.rs52 fn new(response_cbor: Vec<Value>) -> Result<Box<Self>, Error> { in new()
87 fn from(_e: ciborium::value::Error) -> Self { in from()
93 fn from(_e: ciborium::Value) -> Self { in from()
99 fn from(_e: core::num::TryFromIntError) -> Self { in from()
105 fn from(e: coset::CoseError) -> Self { in from()
Drequest_response_impl.rs55 fn new(args: Vec<Value>) -> Result<Box<Self>, Error> { in new()
75 fn new(res: Vec<Value>) -> Result<Box<Self>, Error> { in new()
102 fn new(args: Vec<Value>) -> Result<Box<Self>, Error> { in new()
124 fn new(response_cbor: Vec<Value>) -> Result<Box<Self>, Error> { in new()
144 fn new(args: Vec<Value>) -> Result<Box<Self>, Error> { in new()
167 fn new(res: Vec<Value>) -> Result<Box<Self>, Error> { in new()
Dpacket.rs38 pub fn from(request_cbor: Vec<Value>) -> Self { in from()
61 fn from_cbor_value(value: Value) -> Result<Self, CoseError> { in from_cbor_value()
81 pub fn from(response_cbor: Vec<Value>) -> Self { in from()
106 fn from_cbor_value(value: Value) -> Result<Self, CoseError> { in from_cbor_value()
Drequest.rs41 fn new(args: Vec<Value>) -> Result<Box<Self>, Error>; in new()
60 fn deserialize_from_packet(packet: RequestPacket) -> Result<Box<Self>, Error> { in deserialize_from_packet()
Dresponse.rs47 fn new(response_cbor: Vec<Value>) -> Result<Box<Self>, Error>; in new()
69 fn deserialize_from_packet(packet: ResponsePacket) -> Result<Box<Self>, Error> { in deserialize_from_packet()
/system/keymint/wire/src/
Dlib.rs212 fn from(e: cbor::de::Error<T>) -> Self { in from()
226 fn from(_e: cbor::ser::Error<T>) -> Self { in from()
232 fn from(_e: cbor::value::Error) -> Self { in from()
238 fn from(_: core::num::TryFromIntError) -> Self { in from()
244 fn from(e: coset::CoseError) -> Self { in from()
312 fn from_cbor_value(value: cbor::value::Value) -> Result<Self, CborError>; in from_cbor_value()
318 fn from_slice(slice: &[u8]) -> Result<Self, CborError> { in from_slice()
358 fn from_cbor_value(value: cbor::value::Value) -> Result<Self, CborError> { in from_cbor_value()
381 fn from_cbor_value(value: cbor::value::Value) -> Result<Self, CborError> { in from_cbor_value()
407 fn from_cbor_value(value: cbor::value::Value) -> Result<Self, CborError> { in from_cbor_value()
[all …]
/system/authgraph/wire/src/
Dcbor.rs45 fn from(e: ciborium::de::Error<T>) -> Self { in from()
59 fn from(_e: ciborium::ser::Error<T>) -> Self { in from()
112 fn from_cbor_value(value: Value) -> Result<Self, CborError>; in from_cbor_value()
118 fn from_slice(slice: &[u8]) -> Result<Self, CborError> { in from_slice()
132 fn from_cbor_value(value: Value) -> Result<Self, CborError> { in from_cbor_value()
152 fn from_cbor_value(value: Value) -> Result<Self, CborError> { in from_cbor_value()
168 fn from_cbor_value(value: Value) -> Result<Self, CborError> { in from_cbor_value()
180 fn from_cbor_value(value: Value) -> Result<Self, CborError> { in from_cbor_value()
/system/cros-codecs/src/
Dlib.rs60 fn from_str(s: &str) -> Result<Self, Self::Err> { in from_str()
91 pub fn round(mut self, rnd_mode: ResolutionRoundMode) -> Self { in round()
113 fn from(value: (u32, u32)) -> Self { in from() argument
119 fn from(value: Resolution) -> Self { in from()
133 fn from(value: Rect) -> Self { in from()
139 fn from(value: Resolution) -> Self { in from()
145 fn from(value: ((u32, u32), (u32, u32))) -> Self { in from() argument
156 fn from(fourcc: u32) -> Self { in from()
162 fn from(fourcc: Fourcc) -> Self { in from()
168 fn from(n: &[u8; 4]) -> Self { in from()
[all …]
/system/memory/mmd/src/
Dtime.rs80 pub const fn from_duration(value: Duration) -> Self { in from_duration()
103 pub fn checked_add(&self, duration: Duration) -> Option<Self> { in checked_add()
110 pub fn checked_sub(&self, duration: Duration) -> Option<Self> { in checked_sub()
118 pub const fn from_duration(value: Duration) -> Self { in from_duration()
/system/see/authmgr/authmgr-be/src/
Derror.rs80 fn from(ag_error: AGError) -> Self { in from()
86 fn from(am_error: AMError) -> Self { in from()
100 fn from(e: CoseError) -> Self { in from()
106 fn from(e: alloc::collections::TryReserveError) -> Self { in from()
/system/cros-codecs/src/codec/h264/
Dparser.rs85 fn try_from(value: u8) -> Result<Self, Self::Error> { in try_from()
159 pub fn from_value_plus1(max_long_term_frame_idx_plus1: u32) -> Self { in from_value_plus1()
415 pub fn new(pps: &Pps) -> Self { in new()
422 pub fn slice_type(mut self, type_: SliceType) -> Self { in slice_type()
427 pub fn first_mb_in_slice(mut self, value: u32) -> Self { in first_mb_in_slice()
432 pub fn pic_order_cnt_lsb(mut self, value: u16) -> Self { in pic_order_cnt_lsb()
437 pub fn idr_pic_id(mut self, value: u16) -> Self { in idr_pic_id()
442 pub fn num_ref_idx_active_override_flag(mut self, value: bool) -> Self { in num_ref_idx_active_override_flag()
447 pub fn num_ref_idx_l0_active_minus1(mut self, value: u8) -> Self { in num_ref_idx_l0_active_minus1()
453 pub fn num_ref_idx_l0_active(self, value: u8) -> Self { in num_ref_idx_l0_active()
[all …]
/system/cros-codecs/src/backend/
Dv4l2.rs11 fn from(value: v4l2r::PixelFormat) -> Self { in from()
17 fn from(value: crate::Fourcc) -> Self { in from()
/system/authgraph/core/src/
Derror.rs28 fn from(e: CoseError) -> Self { in from()
34 fn from(e: alloc::collections::TryReserveError) -> Self { in from()
/system/security/keystore2/src/
Dkey_parameter.rs141 fn from_primitive(v: Self::Primitive) -> Self; in from_primitive()
206 fn from(v: i64) -> Self { in from()
211 fn from(v: i32) -> Self { in from()
216 fn from(v: Vec<u8>) -> Self { in from()
1047 fn from(kp: &KmKeyParameter) -> Self { in from()
1063 pub fn new(value: KeyParameterValue, security_level: SecurityLevel) -> Self { in new()
1077 ) -> Result<Self> { in new_from_sql()
/system/security/keystore2/src/crypto/
Dzvec.rs45 pub fn new(size: usize) -> Result<Self, Error> { in new()
66 pub fn try_clone(&self) -> Result<Self, Error> { in try_clone()
118 fn try_from(v: &[u8]) -> Result<Self, Self::Error> { in try_from()
130 fn try_from(mut v: Vec<u8>) -> Result<Self, Self::Error> { in try_from()
/system/core/trusty/libtrusty-rs/src/
Dlib.rs107 pub fn connect(device: &str, service: &str) -> Result<Self> { in connect()
115 fn connect_vsock(type_cid_port_str: &str, service: &str) -> Result<Self> { in connect_vsock()
189 fn connect_tipc(device: impl AsRef<Path>, service: &str) -> Result<Self> { in connect_tipc()

12345678