Home
last modified time | relevance | path

Searched refs:Option (Results 1 – 25 of 72) sorted by relevance

123

/system/extras/partition_tools/
Dlpmake.cc96 enum class Option : int { enum
171 { "device-size", required_argument, nullptr, (int)Option::kDeviceSize }, in main()
172 { "metadata-size", required_argument, nullptr, (int)Option::kMetadataSize }, in main()
173 { "metadata-slots", required_argument, nullptr, (int)Option::kMetadataSlots }, in main()
174 { "partition", required_argument, nullptr, (int)Option::kPartition }, in main()
175 { "output", required_argument, nullptr, (int)Option::kOutput }, in main()
176 { "help", no_argument, nullptr, (int)Option::kOutput }, in main()
177 { "alignment-offset", required_argument, nullptr, (int)Option::kAlignmentOffset }, in main()
178 { "alignment", required_argument, nullptr, (int)Option::kAlignment }, in main()
179 { "sparse", no_argument, nullptr, (int)Option::kSparse }, in main()
[all …]
/system/tools/aidl/tests/rust/
Dtest_service.rs112 input: Option<&[$type]>,
113 ) -> binder::Result<Option<Vec<$type>>> {
187 repeated: &mut Vec<Option<ParcelFileDescriptor>>, in ReverseParcelFileDescriptorArray()
202 impl_repeat_nullable! {RepeatNullableStringList, Option<String>}
204 fn RepeatNullableString(&self, input: Option<&str>) -> binder::Result<Option<String>> { in RepeatNullableString()
208 fn RepeatNullableUtf8CppString(&self, input: Option<&str>) -> binder::Result<Option<String>> { in RepeatNullableUtf8CppString()
214 input: Option<&StructuredParcelable::StructuredParcelable>, in RepeatNullableParcelable()
215 ) -> binder::Result<Option<StructuredParcelable::StructuredParcelable>> { in RepeatNullableParcelable()
223 fn TakesANullableIBinder(&self, _: Option<&SpIBinder>) -> binder::Result<()> { in TakesANullableIBinder()
229 input: Option<&[Option<String>]>, in ReverseNullableUtf8CppString()
[all …]
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/
DITestService.rs44 …_input: &[binder::parcel::ParcelFileDescriptor], _arg_repeated: &mut Vec<Option<binder::parcel::Pa… in ReverseParcelFileDescriptorArray()
46 …fn RepeatNullableIntArray(&self, _arg_input: Option<&[i32]>) -> binder::public_api::Result<Option<… in RepeatNullableIntArray()
47 …mArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_ByteEnum]>) -> bind… in RepeatNullableByteEnumArray()
48 …mArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_7_IntEnum]>) -> binde… in RepeatNullableIntEnumArray()
49 …mArray(&self, _arg_input: Option<&[crate::mangled::_7_android_4_aidl_5_tests_8_LongEnum]>) -> bind… in RepeatNullableLongEnumArray()
50 …fn RepeatNullableString(&self, _arg_input: Option<&str>) -> binder::public_api::Result<Option<Stri… in RepeatNullableString()
51 …tNullableStringList(&self, _arg_input: Option<&[Option<String>]>) -> binder::public_api::Result<Op… in RepeatNullableStringList()
52 …(&self, _arg_input: Option<&crate::mangled::_7_android_4_aidl_5_tests_20_StructuredParcelable>) ->… in RepeatNullableParcelable()
54 …fn TakesANullableIBinder(&self, _arg_input: Option<&binder::SpIBinder>) -> binder::public_api::Res… in TakesANullableIBinder()
56 …fn RepeatNullableUtf8CppString(&self, _arg_token: Option<&str>) -> binder::public_api::Result<Opti… in RepeatNullableUtf8CppString()
[all …]
DUnionWithFd.rs4 Pfd(Option<binder::parcel::ParcelFileDescriptor>),
19 …fn serialize_option(this: Option<&Self>, parcel: &mut binder::parcel::Parcel) -> binder::Result<()… in serialize_option()
48 fn deserialize_option(parcel: &binder::parcel::Parcel) -> binder::Result<Option<Self>> { in deserialize_option()
58 let value: Option<binder::parcel::ParcelFileDescriptor> = Some(parcel.read()?); in deserialize_option()
DUnion.rs7 Ibinder(Option<binder::SpIBinder>),
25 …fn serialize_option(this: Option<&Self>, parcel: &mut binder::parcel::Parcel) -> binder::Result<()… in serialize_option()
73 fn deserialize_option(parcel: &binder::parcel::Parcel) -> binder::Result<Option<Self>> { in deserialize_option()
95 let value: Option<binder::SpIBinder> = parcel.read()?; in deserialize_option()
DDeprecatedParcelable.rs19 …fn serialize_option(this: Option<&Self>, parcel: &mut binder::parcel::Parcel) -> binder::Result<()… in serialize_option()
40 fn deserialize_option(parcel: &binder::parcel::Parcel) -> binder::Result<Option<Self>> { in deserialize_option()
DOtherParcelableForToString.rs20 …fn serialize_option(this: Option<&Self>, parcel: &mut binder::parcel::Parcel) -> binder::Result<()… in serialize_option()
42 fn deserialize_option(parcel: &binder::parcel::Parcel) -> binder::Result<Option<Self>> { in deserialize_option()
/system/bt/gd/rust/common/src/
Dsys_prop.rs19 pub fn get(name: &str) -> Option<String> { in get()
32 pub fn get(_name: &str) -> Option<String> { in get()
37 pub fn get_u32(name: &str) -> Option<u32> { in get_u32()
46 pub fn get_bool(name: &str) -> Option<bool> { in get_bool()
/system/security/keystore2/system_property/
Dlib.rs76 fn get_prop_info(&mut self) -> Option<*const PropInfo> { in get_prop_info()
91 fn read_raw(prop_info: *const PropInfo, mut f: impl FnOnce(Option<&CStr>, Option<&CStr>)) { in read_raw()
103 let f = &mut *res_p.cast::<&mut dyn FnMut(Option<&CStr>, Option<&CStr>)>(); in read_raw()
107 let mut f: &mut dyn FnOnce(Option<&CStr>, Option<&CStr>) = &mut f; in read_raw()
/system/security/keystore2/src/
Denforcements.rs64 hat: Mutex<Option<HardwareAuthToken>>,
92 fn get_auth_tokens(&self) -> Result<(HardwareAuthToken, Option<TimeStampToken>)> { in get_auth_tokens()
140 Token(HardwareAuthToken, Option<TimeStampToken>),
150 key_usage_limited: Option<i64>,
151 confirmation_token_receiver: Option<Arc<Mutex<Option<Receiver<Vec<u8>>>>>>,
248 pub fn finalize_create_authorization(&mut self, challenge: i64) -> Option<OperationChallenge> { in finalize_create_authorization()
282 pub fn before_update(&mut self) -> Result<(Option<HardwareAuthToken>, Option<TimeStampToken>)> { in before_update()
291 ) -> Result<(Option<HardwareAuthToken>, Option<TimeStampToken>, Option<Vec<u8>>)> { in before_finish()
292 let mut confirmation_token: Option<Vec<u8>> = None; in before_finish()
339 fn get_auth_tokens(&mut self) -> Result<(Option<HardwareAuthToken>, Option<TimeStampToken>)> { in get_auth_tokens()
[all …]
Dwatchdog.rs61 callback: Option<Box<dyn Fn() -> String + Send + 'static>>,
66 thread: Option<thread::JoinHandle<()>>,
74 fn update_overdue_and_find_next_timeout(&mut self) -> (bool, Option<Duration>) { in update_overdue_and_find_next_timeout()
76 let mut next_timeout: Option<Duration> = None; in update_overdue_and_find_next_timeout()
189 callback: Option<Box<dyn Fn() -> String + Send + 'static>>, in watch_with_optional()
192 ) -> Option<WatchPoint> { in watch_with_optional()
211 ) -> Option<WatchPoint> { in watch_with()
216 pub fn watch(wd: &Arc<Self>, id: &'static str, timeout: Duration) -> Option<WatchPoint> { in watch()
222 callback: Option<Box<dyn Fn() -> String + Send + 'static>>, in arm()
Doperation.rs235 fn get_pruning_info(&self) -> Option<PruningInfo> { in get_pruning_info()
386 fn update(&self, input: &[u8]) -> Result<Option<Vec<u8>>> { in update()
417 fn finish(&self, input: Option<&[u8]>, signature: Option<&[u8]>) -> Result<Option<Vec<u8>>> { in finish()
559 fn get(&self, index: usize) -> Option<Arc<Operation>> { in get()
672 let mut oldest_caller_op: Option<CandidateInfo> = None; in prune()
675 |acc: Option<CandidateInfo>, &PruningInfo { last_usage, owner, index, forced }| { in prune()
786 operation: Mutex<Option<Arc<Operation>>>,
855 fn update(&self, input: &[u8]) -> binder::public_api::Result<Option<Vec<u8>>> { in update()
867 input: Option<&[u8]>, in finish()
868 signature: Option<&[u8]>, in finish()
[all …]
Dutils.rs76 access_vector: &Option<KeyPermSet>, in check_key_permission()
252 pub fn watch_millis(id: &'static str, millis: u64) -> Option<WatchPoint> { in watch_millis()
262 ) -> Option<WatchPoint> { in watch_millis_with()
273 fn watch_millis(_: &'static str, _: u64) -> Option<WatchPoint> { in watch_millis()
281 ) -> Option<WatchPoint> { in watch_millis_with()
Dauthorization.rs132 password: Option<Password>, in on_lock_screen_event()
133 unlocking_sids: Option<&[i64]>, in on_lock_screen_event()
245 password: Option<&[u8]>, in onLockScreenEvent()
246 unlocking_sids: Option<&[i64]>, in onLockScreenEvent()
/system/security/keystore2/apc_compat/
Dapc_compat.rs73 type Callback = dyn FnOnce(u32, Option<&[u8]>, Option<&[u8]>);
116 pub fn try_get_service() -> Option<Self> { in try_get_service()
157 F: FnOnce(u32, Option<&[u8]>, Option<&[u8]>) + 'static, in prompt_user_confirmation()
/system/sepolicy/tests/
Dsepolicy_tests.py2 from optparse import Option, OptionValueError
96 class MultipleOption(Option):
97 ACTIONS = Option.ACTIONS + ("extend",)
98 STORE_ACTIONS = Option.STORE_ACTIONS + ("extend",)
99 TYPED_ACTIONS = Option.TYPED_ACTIONS + ("extend",)
100 ALWAYS_TYPED_ACTIONS = Option.ALWAYS_TYPED_ACTIONS + ("extend",)
106 Option.take_action(self, action, dest, opt, value, values, parser)
Dtreble_sepolicy_tests.py2 from optparse import Option, OptionValueError
313 class MultipleOption(Option):
314 ACTIONS = Option.ACTIONS + ("extend",)
315 STORE_ACTIONS = Option.STORE_ACTIONS + ("extend",)
316 TYPED_ACTIONS = Option.TYPED_ACTIONS + ("extend",)
317 ALWAYS_TYPED_ACTIONS = Option.ALWAYS_TYPED_ACTIONS + ("extend",)
323 Option.take_action(self, action, dest, opt, value, values, parser)
/system/bt/gd/rust/facade/src/
Dlib.rs28 rootcanal_port: Option<u16>, in create()
29 snoop_path: Option<String>, in create()
118 rootcanal_port: Option<u16>, in create()
119 snoop_path: Option<String>, in create()
124 let mut server: Option<FacadeServer> = None; in create()
/system/logging/rust/
Dlogger.rs30 log_level: Option<log::Level>,
31 custom_format: Option<FormatFn>,
32 filter: Option<&'a str>,
34 tag: Option<CString>,
/system/gsid/tests/
DDSUEndtoEndTest.java22 import com.android.tradefed.config.Option;
23 import com.android.tradefed.config.Option.Importance;
55 @Option(name="system_image_path",
62 @Option(name="userdata_size",
/system/libvintf/
Dmain.cpp71 struct Option { struct
78 std::string getShortOptions(const std::vector<Option>& options) { in getShortOptions() argument
85 std::unique_ptr<struct option[]> getLongOptions(const std::vector<Option>& options, in getLongOptions()
106 Status parseOptions(int argc, char** argv, const std::vector<Option>& options, ParsedOptions* out) { in parseOptions()
116 const Option* found = nullptr; in parseOptions()
140 void usage(char* me, const std::vector<Option>& options) { in usage()
232 static const std::vector<Option> gAvailableOptions{
/system/apex/tests/src/com/android/tests/apex/
DApexE2EBaseHostTest.java28 import com.android.tradefed.config.Option;
29 import com.android.tradefed.config.Option.Importance;
63 @Option(name = OPTION_APEX_FILE_NAME,
/system/bt/gd/rust/main/src/
Dlib.rs34 pub async fn set_rootcanal_port(&self, port: Option<u16>) { in set_rootcanal_port()
46 pub async fn configure_snoop(&self, path: Option<String>) { in configure_snoop()
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/unions/
DUnionInUnion.rs19 …fn serialize_option(this: Option<&Self>, parcel: &mut binder::parcel::Parcel) -> binder::Result<()… in serialize_option()
47 fn deserialize_option(parcel: &binder::parcel::Parcel) -> binder::Result<Option<Self>> { in deserialize_option()
DEnumUnion.rs19 …fn serialize_option(this: Option<&Self>, parcel: &mut binder::parcel::Parcel) -> binder::Result<()… in serialize_option()
47 fn deserialize_option(parcel: &binder::parcel::Parcel) -> binder::Result<Option<Self>> { in deserialize_option()

123