/frameworks/native/libs/binder/rust/tests/parcel_fuzzer/ |
D | read_utils.rs | 82 read_parcel_interface!(Option<Vec<i8>>), 83 read_parcel_interface!(Option<Vec<i32>>), 84 read_parcel_interface!(Option<Vec<i64>>), 85 read_parcel_interface!(Option<Vec<f32>>), 86 read_parcel_interface!(Option<Vec<f64>>), 87 read_parcel_interface!(Option<Vec<u16>>), 88 read_parcel_interface!(Option<Vec<u32>>), 89 read_parcel_interface!(Option<Vec<u64>>), 90 read_parcel_interface!(Option<Vec<String>>), 93 read_parcel_interface!(Vec<Option<ParcelFileDescriptor>>), [all …]
|
/frameworks/base/cmds/idmap2/libidmap2/ |
D | CommandLineOptions.cpp | 44 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, false}); in OptionalFlag() 53 options_.push_back(Option{name, description, func, Option::COUNT_EXACTLY_ONCE, true}); in MandatoryOption() 62 options_.push_back(Option{name, description, func, Option::COUNT_ONCE_OR_MORE, true}); in MandatoryOption() 71 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL, true}); in OptionalOption() 80 options_.push_back(Option{name, description, func, Option::COUNT_OPTIONAL_ONCE_OR_MORE, true}); in OptionalOption() 85 const auto pivot = std::partition(options_.begin(), options_.end(), [](const Option& opt) { in Parse() 86 return opt.count != Option::COUNT_OPTIONAL && opt.count != Option::COUNT_OPTIONAL_ONCE_OR_MORE; in Parse() 90 [](const Option& opt) -> std::string { return opt.name; }); in Parse() 101 for (const Option& opt : options_) { in Parse() 145 for (const Option& opt : options_) { in Usage() [all …]
|
/frameworks/native/libs/binder/rust/tests/ |
D | serialization.rs | 116 assert_eq!(parcel.read::<Option<Vec<bool>>>()?, None); in on_transact() 122 reply.write(&(None as Option<Vec<bool>>))?; 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() 149 assert_eq!(parcel.read::<Option<Vec<u16>>>()?, None); in on_transact() 156 reply.write(&(None as Option<Vec<u16>>))?; in on_transact() 164 assert_eq!(parcel.read::<Option<Vec<i32>>>()?, None); in on_transact() 171 reply.write(&(None as Option<Vec<i32>>))?; in on_transact() 179 assert_eq!(parcel.read::<Option<Vec<i64>>>()?, None); in on_transact() 186 reply.write(&(None as Option<Vec<i64>>))?; in on_transact() [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() 259 fn serialize_option(this: Option<&Self>, parcel: &mut BorrowedParcel<'_>) -> Result<()> { in serialize_option() 272 fn deserialize_option(parcel: &BorrowedParcel<'_>) -> Result<Option<Self>> { in deserialize_option() 284 fn deserialize_option_from(this: &mut Option<Self>, parcel: &BorrowedParcel<'_>) -> Result<()> { in deserialize_option_from() 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() 424 fn deserialize_array(parcel: &BorrowedParcel<'_>) -> Result<Option<Vec<Self>>> { [all …]
|
D | file_descriptor.rs | 88 fn serialize_option(this: Option<&Self>, parcel: &mut BorrowedParcel<'_>) -> Result<()> { in serialize_option() 104 fn deserialize_option(parcel: &BorrowedParcel<'_>) -> Result<Option<Self>> { in deserialize_option() 129 type UninitType = Option<Self>;
|
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/ |
D | StartVoiceInteractionActivity.java | 79 VoiceInteractor.PickOptionRequest.Option[] options = in onClick() 80 new VoiceInteractor.PickOptionRequest.Option[5]; in onClick() 81 options[0] = new VoiceInteractor.PickOptionRequest.Option("One"); in onClick() 82 options[1] = new VoiceInteractor.PickOptionRequest.Option("Two"); in onClick() 83 options[2] = new VoiceInteractor.PickOptionRequest.Option("Three"); in onClick() 84 options[3] = new VoiceInteractor.PickOptionRequest.Option("Four"); in onClick() 85 options[4] = new VoiceInteractor.PickOptionRequest.Option("Five"); in onClick() 183 public TestPickOption(Option[] options) { in TestPickOption() 191 public void onPickOptionResult(boolean finished, Option[] selections, Bundle result) { in onPickOptionResult()
|
D | TestInteractionActivity.java | 146 VoiceInteractor.PickOptionRequest.Option[] options = in onClick() 147 new VoiceInteractor.PickOptionRequest.Option[5]; in onClick() 148 options[0] = new VoiceInteractor.PickOptionRequest.Option("One"); in onClick() 149 options[1] = new VoiceInteractor.PickOptionRequest.Option("Two"); in onClick() 150 options[2] = new VoiceInteractor.PickOptionRequest.Option("Three"); in onClick() 151 options[3] = new VoiceInteractor.PickOptionRequest.Option("Four"); in onClick() 152 options[4] = new VoiceInteractor.PickOptionRequest.Option("Five"); in onClick() 236 public TestPickOption(Option[] options) { in TestPickOption() 244 public void onPickOptionResult(boolean finished, Option[] selections, Bundle result) { in onPickOptionResult()
|
/frameworks/base/core/java/android/service/autofill/ |
D | ImageTransformation.java | 64 private final ArrayList<Option> mOptions; 87 final Option option = mOptions.get(i); in apply() 114 private final ArrayList<Option> mOptions = new ArrayList<>(); 192 mOptions.add(new Option(regex, resId, contentDescription)); in addOptionInternal() 236 final Option option = mOptions.get(i); in writeToParcel() 281 private static final class Option { class in ImageTransformation 286 Option(Pattern pattern, int resId, CharSequence contentDescription) { in Option() method in ImageTransformation.Option
|
/frameworks/native/libs/binder/rust/src/ |
D | proxy.rs | 76 pub(crate) unsafe fn from_raw(ptr: *mut sys::AIBinder) -> Option<Self> { in from_raw() 113 pub fn get_class(&mut self) -> Option<InterfaceClass> { in get_class() 141 pub unsafe fn new_spibinder(ptr: *mut sys::AIBinder) -> Option<SpIBinder> { in new_spibinder() 191 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { in partial_cmp() 334 fn get_extension(&mut self) -> Result<Option<SpIBinder>> { in get_extension() 408 fn serialize_option(this: Option<&Self>, parcel: &mut BorrowedParcel<'_>) -> Result<()> { in serialize_option() 416 type UninitType = Option<Self>; 430 fn deserialize_option(parcel: &BorrowedParcel<'_>) -> Result<Option<SpIBinder>> { in deserialize_option() 468 pub fn promote(&self) -> Option<SpIBinder> { in promote() 514 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { in partial_cmp()
|
D | parcel.rs | 99 pub unsafe fn from_raw(ptr: *mut sys::AParcel) -> Option<Parcel> { in from_raw() 159 pub unsafe fn from_raw(ptr: *mut sys::AParcel) -> Option<BorrowedParcel<'a>> { in from_raw() 214 pub fn write_slice_size<T>(&mut self, slice: Option<&[T]>) -> Result<()> { in write_slice_size() 358 pub fn write_slice_size<T>(&mut self, slice: Option<&[T]>) -> Result<()> { in write_slice_size() 542 out_vec: &mut Option<Vec<D>>, in resize_nullable_out_vec() 643 out_vec: &mut Option<Vec<D>>, in resize_nullable_out_vec() 651 pub(crate) fn write_binder(&mut self, binder: Option<&SpIBinder>) -> Result<()> { in write_binder() 670 pub(crate) fn read_binder(&self) -> Result<Option<SpIBinder>> { in read_binder() 723 assert_eq!(parcel.read::<Option<String>>(), Ok(None)); in test_read_write() 844 assert_eq!(parcel.read::<Option<String>>().unwrap().unwrap(), "Hello, Binder!",); in test_utf8_utf16_conversions() [all …]
|
D | service.rs | 137 fn interface_cast<T: FromIBinder + ?Sized>(service: Option<SpIBinder>) -> Result<Strong<T>> { in interface_cast() 148 pub fn get_service(name: &str) -> Option<SpIBinder> { in get_service() 157 pub fn check_service(name: &str) -> Option<SpIBinder> { in check_service() 167 pub fn wait_for_service(name: &str) -> Option<SpIBinder> { in wait_for_service()
|
D | binder.rs | 207 fn get_extension(&mut self) -> Result<Option<SpIBinder>>; in get_extension() 441 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { in partial_cmp() 488 fn partial_cmp(&self, other: &Self) -> Option<Ordering> { in partial_cmp() 544 static mut CLASS: Option<$crate::binder_impl::InterfaceClass> = None; 668 unsafe impl<T, V: AsNative<T>> AsNative<T> for Option<V> { implementation 913 pub fn downcast_binder<T: $interface>(&self) -> Option<&T> { 943 static mut CLASS: Option<$crate::binder_impl::InterfaceClass> = None; 1005 …fn serialize_option(this: Option<&Self>, parcel: &mut $crate::binder_impl::BorrowedParcel<'_>) -> … 1061 …fn serialize_option(this: Option<&Self>, parcel: &mut $crate::binder_impl::BorrowedParcel<'_>) -> … 1150 …parcel: &$crate::binder_impl::BorrowedParcel<'_>) -> std::result::Result<Option<Vec<Self>>, $crate… [all …]
|
/frameworks/native/cmds/sfdo/ |
D | sfdo.rs | 32 fn parse_toggle(toggle_value: &str) -> Option<bool> { in parse_toggle() 52 command: Option<Commands>, 68 ForceClientComposition { state: Option<String> }, 71 FrameRateIndicator { state: Option<String> },
|
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/service/ |
D | main.rs | 34 static HOLD_BINDER: Mutex<Option<SpIBinder>> = Mutex::new(None); 35 static SAME_BINDER: Mutex<Option<SpIBinder>> = Mutex::new(None); 93 fn repeatBinder(&self, binder: Option<&SpIBinder>) -> Result<Option<SpIBinder>, Status> { in repeatBinder() 99 fn holdBinder(&self, binder: Option<&SpIBinder>) -> Result<(), Status> { in holdBinder() 103 fn getHeldBinder(&self) -> Result<Option<SpIBinder>, Status> { in getHeldBinder()
|
/frameworks/native/libs/binder/trusty/rust/binder_rpc_test/binder_rpc_test_session/ |
D | lib.rs | 82 fn repeatBinder(&self, _binder: Option<&SpIBinder>) -> Result<Option<SpIBinder>, Status> { in repeatBinder() 85 fn holdBinder(&self, _binder: Option<&SpIBinder>) -> Result<(), Status> { in holdBinder() 88 fn getHeldBinder(&self) -> Result<Option<SpIBinder>, Status> { in getHeldBinder()
|
/frameworks/base/core/java/android/app/ |
D | VoiceInteractor.java | 115 (PickOptionRequest.Option[]) args.arg2, (Bundle) args.arg3); 178 boolean finished, PickOptionRequest.Option[] options, Bundle result) { 409 final Option[] mOptions; 417 public static final class Option implements Parcelable { class in VoiceInteractor.PickOptionRequest 430 public Option(CharSequence label) { in Option() method in VoiceInteractor.PickOptionRequest.Option 444 public Option(CharSequence label, int index) { in Option() method in VoiceInteractor.PickOptionRequest.Option 455 public Option addSynonym(CharSequence synonym) { in addSynonym() 501 Option(Parcel in) { in Option() method in VoiceInteractor.PickOptionRequest.Option 521 public static final @android.annotation.NonNull Parcelable.Creator<Option> CREATOR 522 = new Parcelable.Creator<Option>() { [all …]
|
D | VoiceInteractor.aidl | 19 parcelable VoiceInteractor.PickOptionRequest.Option;
|
/frameworks/native/libs/debugstore/rust/src/ |
D | event.rs | 28 pub name: Option<String>, 47 name: Option<String>, in new()
|
/frameworks/proto_logging/stats/atoms/corenetworking/networkstack/ |
D | ipclient_extension_atoms.proto | 49 // The lowest valid lifetime of PIO (Prefix Information Option) in seconds, excluding 0. 52 // The lowest route lifetime of RIO (Route Information Option) in seconds, excluding 0. 55 // The lowest lifetime of RDNSS (Recursive DNS Server Option) in seconds, excluding 0.
|
/frameworks/base/cmds/idmap2/include/idmap2/ |
D | CommandLineOptions.h | 55 struct Option { struct 68 mutable std::vector<Option> options_; argument
|
/frameworks/native/libs/binder/rust/rpcbinder/src/ |
D | session.rs | 198 mut request_fd: impl FnMut() -> Option<RawFd>, in setup_preconnected_client() 218 service: Option<SpIBinder>, in get_interface() 228 type RequestFd<'a> = &'a mut dyn FnMut() -> Option<RawFd>;
|
/frameworks/native/libs/bufferstreams/rust/src/publishers/ |
D | buffer_pool_publisher.rs | 25 subscriber: Option<Box<dyn BufferSubscriber>>, 31 pub fn new(stream_config: StreamConfig, size: usize) -> Option<Self> { in new()
|
/frameworks/native/libs/bufferstreams/rust/src/buffers/ |
D | buffer_pool.rs | 66 pub fn new(pool_size: usize, stream_config: StreamConfig) -> Option<Self> { in new() 87 pub fn next_buffer(&mut self) -> Option<Buffer> { in next_buffer()
|
/frameworks/base/media/java/android/media/ |
D | MediaMetadataRetriever.java | 568 public @Nullable Bitmap getFrameAtTime(long timeUs, @Option int option) { in getFrameAtTime() 615 long timeUs, @Option int option, @NonNull BitmapParams params) { in getFrameAtTime() 656 public @Nullable Bitmap getScaledFrameAtTime(long timeUs, @Option int option, in getScaledFrameAtTime() 701 public @Nullable Bitmap getScaledFrameAtTime(long timeUs, @Option int option, in getScaledFrameAtTime() 708 private void validate(@Option int option, int dstWidth, int dstHeight) { in validate() 1165 public @interface Option {} annotation in MediaMetadataRetriever
|
/frameworks/native/libs/binder/rust/rpcbinder/src/server/ |
D | trusty.rs | 23 pub trait PerSessionCallback: Fn(Uuid) -> Option<SpIBinder> + Send + Sync + 'static {} 24 impl<T> PerSessionCallback for T where T: Fn(Uuid) -> Option<SpIBinder> + Send + Sync + 'static {}
|