/frameworks/base/media/mca/filterpacks/native/base/ |
D | vec_types.h | 49 class Vec : public VecBase<T,dim> { 51 Vec() {} in Vec() function 52 Vec<T,dim>& operator = (const Vec<T, dim> &x) { 59 Vec<T, dim> operator + (const Vec<T,dim> &x, const Vec<T,dim> &y) { 60 Vec<T, dim> out; 67 Vec<T, dim> operator - (const Vec<T,dim> &x, const Vec<T,dim> &y) { 68 Vec<T, dim> out; 75 Vec<T, dim> operator * (const Vec<T,dim> &x, const Vec<T,dim> &y) { 76 Vec<T, dim> out; 83 Vec<T, dim> operator / (const Vec<T,dim> &x, const Vec<T,dim> &y) { [all …]
|
/frameworks/native/libs/binder/rust/tests/parcel_fuzzer/ |
D | read_utils.rs | 73 read_parcel_interface!(Vec<i8>), 74 read_parcel_interface!(Vec<i32>), 75 read_parcel_interface!(Vec<i64>), 76 read_parcel_interface!(Vec<f32>), 77 read_parcel_interface!(Vec<f64>), 78 read_parcel_interface!(Vec<u16>), 79 read_parcel_interface!(Vec<u32>), 80 read_parcel_interface!(Vec<u64>), 81 read_parcel_interface!(Vec<String>), 82 read_parcel_interface!(Option<Vec<i8>>), [all …]
|
D | parcel_fuzzer.rs | 38 ReadBasicTypes { instructions: Vec<usize> }, 45 Read { read_operations: Vec<ReadOperation>, data: &'a [u8] }, 102 fn do_read_fuzz(read_operations: Vec<ReadOperation>, data: &[u8]) { in do_read_fuzz()
|
/frameworks/native/libs/binder/rust/tests/ |
D | serialization.rs | 115 assert_eq!(parcel.read::<Vec<bool>>()?, unsafe { bindings::TESTDATA_BOOL }); in on_transact() 116 assert_eq!(parcel.read::<Option<Vec<bool>>>()?, None); in on_transact() 122 reply.write(&(None as Option<Vec<bool>>))?; in on_transact() 129 assert_eq!(parcel.read::<Vec<i8>>()?, unsafe { bindings::TESTDATA_I8 }); in on_transact() 131 assert_eq!(parcel.read::<Vec<u8>>()?, unsafe { bindings::TESTDATA_U8 }); in on_transact() 132 assert_eq!(parcel.read::<Option<Vec<i8>>>()?, None); in on_transact() 141 reply.write(&(None as Option<Vec<i8>>))?; in on_transact() 148 assert_eq!(parcel.read::<Vec<u16>>()?, unsafe { bindings::TESTDATA_CHARS }); in on_transact() 149 assert_eq!(parcel.read::<Option<Vec<u16>>>()?, None); in on_transact() 156 reply.write(&(None as Option<Vec<u16>>))?; in on_transact() [all …]
|
D | integration.rs | 83 dump_args: Mutex<Vec<String>>, 88 Self { s: s.to_string(), dump_args: Mutex::new(Vec::new()) } in new() 133 fn get_dump_args(&self) -> Result<Vec<String>, StatusCode> { in get_dump_args() 155 fn get_dump_args(&self) -> Result<Vec<String>, StatusCode>; in get_dump_args() 170 fn get_dump_args(&self) -> binder::BoxFuture<'static, Result<Vec<String>, StatusCode>>; in get_dump_args() 212 fn get_dump_args(&self) -> Result<Vec<String>, StatusCode> { in get_dump_args() 247 fn get_dump_args(&self) -> binder::BoxFuture<'static, Result<Vec<String>, StatusCode>> { in get_dump_args() 291 fn get_dump_args(&self) -> Result<Vec<String>, StatusCode> { in get_dump_args() 310 fn get_dump_args(&self) -> binder::BoxFuture<'static, Result<Vec<String>, StatusCode>> { in get_dump_args()
|
/frameworks/native/libs/bufferstreams/rust/src/subscribers/ |
D | testing.rs | 36 events: Vec<TestingSubscriberEvent>, 42 Self { config, subscription: None, events: Vec::new() } in new() 76 pub fn take_events(&mut self) -> Vec<TestingSubscriberEvent> { in take_events() 77 let mut out = Vec::new(); in take_events()
|
/frameworks/native/libs/input/rust/ |
D | input_verifier.rs | 304 Vec::from([RustPointerProperties { id: 0 }, RustPointerProperties { id: 1 }]); in bad_down_event() 319 let pointer_properties = Vec::from([RustPointerProperties { id: 0 }]); in single_pointer_stream() 352 let pointer_properties = Vec::from([RustPointerProperties { id: 0 }]); in two_pointer_stream() 364 Vec::from([RustPointerProperties { id: 0 }, RustPointerProperties { id: 1 }]); in two_pointer_stream() 387 let pointer_1_properties = Vec::from([RustPointerProperties { id: 1 }]); in two_pointer_stream() 402 let pointer_properties = Vec::from([RustPointerProperties { id: 0 }]); in multi_device_stream() 453 let pointer_properties = Vec::from([RustPointerProperties { id: 0 }]); in action_cancel() 477 let pointer_properties = Vec::from([RustPointerProperties { id: 0 }]); in invalid_action_cancel() 501 let pointer_properties = Vec::from([RustPointerProperties { id: 0 }]); in invalid_up() 516 let pointer_properties = Vec::from([RustPointerProperties { id: 0 }]); in correct_hover_sequence() [all …]
|
/frameworks/native/libs/binder/rust/src/parcel/ |
D | parcelable.rs | 179 fn deserialize_array(parcel: &BorrowedParcel<'_>) -> Result<Option<Vec<Self>>> { in deserialize_array() 180 let mut vec: Option<Vec<Self::UninitType>> = None; in deserialize_array() 198 let vec: Option<Vec<Self>> = unsafe { mem::transmute(vec) }; in deserialize_array() 217 let vec = unsafe { &mut *(array as *mut Option<Vec<T::UninitType>>) }; in deserialize_element() 307 let vec = unsafe { &mut *(data as *mut Option<Vec<T::UninitType>>) }; in allocate_vec_with_buffer() 325 let vec = unsafe { &mut *(data as *mut Option<Vec<T::UninitType>>) }; in allocate_vec() 333 let mut new_vec: Vec<T::UninitType> = Vec::with_capacity(len as usize); in allocate_vec() 354 unsafe fn vec_assume_init<T: Deserialize>(vec: Vec<T::UninitType>) -> Vec<T> { in vec_assume_init() 362 unsafe { Vec::from_raw_parts(vec.as_mut_ptr().cast(), vec.len(), vec.capacity()) } in vec_assume_init() 424 fn deserialize_array(parcel: &BorrowedParcel<'_>) -> Result<Option<Vec<Self>>> { [all …]
|
/frameworks/native/libs/debugstore/rust/src/ |
D | event.rs | 34 data: Vec<(String, String)>, 50 data: Vec<(String, String)>, in new() 66 self.data.iter().map(|(k, v)| format!("{}={}", k, v)).collect::<Vec<_>>().join(";"); in fmt()
|
D | core.rs | 69 pub fn begin(&self, name: String, data: Vec<(String, String)>) -> u64 { in begin() 86 pub fn record(&self, name: String, data: Vec<(String, String)>) { in record() 101 pub fn end(&self, id: u64, data: Vec<(String, String)>) { in end()
|
D | lib.rs | 63 fn cxx_vec_to_pairs(vec: &CxxVector<CxxString>) -> Vec<(String, String)> { in cxx_vec_to_pairs() 66 .collect::<Vec<_>>() in cxx_vec_to_pairs()
|
D | storage.rs | 116 let threads: Vec<_> = (0..10) in test_concurrent_insertions()
|
/frameworks/native/libs/binder/rust/src/ |
D | service.rs | 208 pub fn get_declared_instances(interface: &str) -> Result<Vec<String>> { in get_declared_instances() 214 if let Some(instances) = unsafe { opaque.cast::<Vec<CString>>().as_mut() } { in get_declared_instances() 227 let mut instances: Vec<CString> = vec![]; in get_declared_instances() 242 .collect::<std::result::Result<Vec<String>, _>>() in get_declared_instances()
|
D | parcel.rs | 520 pub fn resize_out_vec<D: Default + Deserialize>(&self, out_vec: &mut Vec<D>) -> Result<()> { in resize_out_vec() 542 out_vec: &mut Option<Vec<D>>, in resize_nullable_out_vec() 551 let mut vec = Vec::with_capacity(len); in resize_nullable_out_vec() 631 pub fn resize_out_vec<D: Default + Deserialize>(&self, out_vec: &mut Vec<D>) -> Result<()> { in resize_out_vec() 643 out_vec: &mut Option<Vec<D>>, in resize_nullable_out_vec() 830 assert_eq!(parcel.read::<Vec<u8>>().unwrap(), b"Hello, Binder!\0"); in test_read_data() 883 assert_eq!(parcel.read::<Vec<String>>().unwrap(), ["str1", "str2", "str3"]); in test_utf8_utf16_conversions() 884 assert_eq!(parcel.read::<Vec<String>>().unwrap(), ["str4", "str5", "str6"]); in test_utf8_utf16_conversions() 885 assert_eq!(parcel.read::<Vec<String>>().unwrap(), [s1, s2, s3]); in test_utf8_utf16_conversions() 912 assert_eq!(parcel.read::<Vec<i32>>().unwrap(), &arr,); in test_sized_write()
|
D | proxy.rs | 311 let args: Vec<_> = args.iter().map(|a| CString::new(*a).unwrap()).collect(); in dump() 312 let mut arg_ptrs: Vec<_> = args.iter().map(|a| a.as_ptr()).collect(); in dump()
|
D | binder.rs | 1134 let v: Vec<$backing> = slice.iter().map(|x| x.0).collect(); 1150 …l: &$crate::binder_impl::BorrowedParcel<'_>) -> std::result::Result<Option<Vec<Self>>, $crate::Sta… 1151 let v: Option<Vec<$backing>> =
|
/frameworks/native/cmds/evemu-record/ |
D | evdev.rs | 152 ) -> Result<Vec<u8>, nix::errno::Errno> { in buf_from_ioctl() 202 pub fn properties_bitmap(&self) -> Result<Vec<u8>, nix::errno::Errno> { in properties_bitmap() 213 pub fn bitmap_for_event_type(&self, event_type: EventType) -> nix::Result<Vec<u8>> { in bitmap_for_event_type() 247 pub fn supported_axes_of_type(&self, event_type: EventType) -> nix::Result<Vec<u16>> { in supported_axes_of_type() 248 let mut axes = Vec::new(); in supported_axes_of_type()
|
D | main.rs | 72 fs::read_dir("/dev/input")?.filter_map(|entry| entry.ok()).collect::<Vec<_>>(); in pick_input_device()
|
/frameworks/native/libs/bufferstreams/rust/src/buffers/ |
D | buffer_pool.rs | 31 available_buffers: Vec<u64>, 68 let mut available_buffers = Vec::new(); in new()
|
/frameworks/libs/binary_translation/interpreter/riscv64/ |
D | interpreter.h | 889 struct Vec { struct 1405 kFrm>(args.dst, Vec<SignedType{}>{args.src1}, arg2); in OpVector() 1414 Vec<SignedType{(sizeof(ElementType) == sizeof(Float32)) ? 0x3f80'0000 in OpVector() 1424 kFrm>(args.dst, Vec<SignedType{}>{args.src1}, arg2); in OpVector() 1431 kFrm>(args.dst, Vec<SignedType{}>{args.src1}, arg2); in OpVector() 1438 kFrm>(args.dst, Vec<SignedType{}>{args.src1}, arg2); in OpVector() 1445 kFrm>(args.dst, Vec<SignedType{}>{args.src1}, arg2); in OpVector() 1726 kFrm>(args.dst, Vec<kNegativeZero>{args.src1}, args.src2); in OpVector() 1733 kFrm>(args.dst, Vec<kPositiveZero>{args.src1}, args.src2); in OpVector() 1744 kFrm>(args.dst, Vec<kNegativeZero>{args.src1}, args.src2); in OpVector() [all …]
|
/frameworks/native/services/inputflinger/rust/ |
D | slow_keys_filter.rs | 47 pending_down_events: Vec<KeyEvent>, 51 ongoing_down_events: Vec<OngoingKeyDown>, 69 pending_down_events: Vec::new(), in new() 70 ongoing_down_events: Vec::new(), in new()
|
D | bounce_keys_filter.rs | 44 blocked_events: Vec<BlockedEvent>, 58 blocked_events: Vec::new(), in new()
|
/frameworks/native/libs/math/tests/ |
D | half_test.cpp | 86 TEST_F(HalfTest, Vec) { in TEST_F() argument
|
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/binder_rpc_test_session/ |
D | lib.rs | 73 fn countBinders(&self) -> Result<Vec<i32>, Status> { in countBinders()
|
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/service/ |
D | main.rs | 81 fn countBinders(&self) -> Result<Vec<i32>, Status> { in countBinders()
|