Home
last modified time | relevance | path

Searched refs:default (Results 1 – 25 of 226) sorted by relevance

12345678910

/tools/netsim/rust/cli/src/
Drequests.rs102 let mut chip = model::Chip { ..Default::default() }; in get_expected_radio()
217 let position = Position { x, y, z: z.unwrap_or_default(), ..Default::default() }; in get_expected_move()
298 ..Default::default() in get_create_device_req_bytes()
300 ..Default::default() in get_create_device_req_bytes()
302 ..Default::default() in get_create_device_req_bytes()
305 CreateDeviceRequest { device, ..Default::default() }.write_to_bytes().unwrap() in get_create_device_req_bytes()
325 ..Default::default() in get_patch_device_req_bytes()
327 ..Default::default() in get_patch_device_req_bytes()
329 ..Default::default() in get_patch_device_req_bytes()
332 PatchDeviceRequest { device, ..Default::default() }.write_to_bytes().unwrap() in get_patch_device_req_bytes()
[all …]
Dlib.rs105 let req = &DeleteChipRequest { id, ..Default::default() } in perform_command()
231 chips: vec![ChipProto { id: chip_id, ..Default::default() }], in test_remove_device()
232 ..Default::default() in test_remove_device()
234 ..Default::default() in test_remove_device()
259 ChipProto { id: chip_id, name: chip_name, ..Default::default() }, in test_remove_chip()
263 ..Default::default() in test_remove_chip()
266 ..Default::default() in test_remove_chip()
268 ..Default::default() in test_remove_chip()
290 ChipProto { id: 1, name: String::from("chip-1"), ..Default::default() }, in test_remove_multiple_chips_fails()
291 ChipProto { id: 2, name: String::from("chip-2"), ..Default::default() }, in test_remove_multiple_chips_fails()
[all …]
/tools/acloud/public/
Dacloud_common.py35 default=None,
46 default=None,
52 default=None,
56 default=0,
63 default=False,
72 default=None,
81 default=None,
86 default=None,
/tools/security/remote_provisioning/hwtrust/src/cbor/dice/
Dprofile.rs44 #[default]
54 #[default]
70 ..Self::default() in android13()
82 ..Self::default() in android14()
88 Self { config_hash_unverified: true, security_version_optional: true, ..Self::default() } in android15()
93 Self::default() in android16()
Dchain.rs82 ConfigFormat::default() in from_root_and_entries()
107 KeyOpsType::default() in root_and_entries_from_value()
131 let session = Session { options: Options::default() }; in chain_form_valid_proper()
139 let session = Session { options: Options::default() }; in chain_form_valid_degenerate()
147 let session = Session { options: Options::default() }; in check_chain_valid_ed25519()
156 let session = Session { options: Options::default() }; in check_chain_valid_ed25519_value()
164 let session = Session { options: Options::default() }; in check_chain_valid_p256()
173 let session = Session { options: Options::default() }; in check_chain_valid_p256_value()
180 let session = Session { options: Options::default() }; in check_chain_wrong_value_type()
187 let session = Session { options: Options::default() }; in check_chain_bad_p256()
[all …]
Dentry.rs62 #[default]
278 return Ok((Some(ConfigDesc::default()), config_hash)); in validate_config()
471 let session = Session { options: Options::default() }; in valid_payload_sha256()
484 let session = Session { options: Options::default() }; in valid_payload_sha384()
491 let session = Session { options: Options::default() }; in valid_payload_sha512()
499 let session = Session { options: Options::default() }; in key_usage_only_key_cert_sign()
507 let session = Session { options: Options::default() }; in key_usage_too_long()
515 let session = Session { options: Options::default() }; in key_usage_lacks_key_cert_sign()
523 let session = Session { options: Options::default() }; in key_usage_not_just_key_cert_sign()
531 let session = Session { options: Options::default() }; in mode_not_configured()
[all …]
/tools/test/connectivity/acts_tests/tests/google/net/
Dsendra.py33 parser.add_argument('-m', '--mac-address', action='store', default=None,
35 parser.add_argument('-i', '--t-interval', action='store', default=None,
37 parser.add_argument('-c', '--pkt-count', action='store', default=None,
39 parser.add_argument('-l', '--life-time', action='store', default=None,
41 parser.add_argument('-in', '--wifi-interface', action='store', default=None,
43 parser.add_argument('-rtt', '--retrans-timer', action='store', default=None,
/tools/acloud/create/
Dcreate_args.py47 default=1,
85 default=False,
212 default="kernel",
317 default=None,
333 default=True,
340 default=None,
347 default=None,
354 default=True,
365 default=None,
376 default=1,
[all …]
/tools/netsim/scripts/
Dbuild_tools.py54 default="tools/netsim/objs/",
58 "--dist_dir", type=str, default="dist/", help="The destination directory"
63 default="",
70 default=default_target(),
96 default="release",
103 default="emulator-linux_x64",
112 default="",
/tools/netsim/rust/daemon/
DCargo.toml14 clap = { version = "4.1.8", default-features = false, features = ["derive", "error-context", "help"…
22 pica = { version = "0.1.9", default-features = false }
30 tungstenite = { version = ">=0.19.0", default-features = false }
35 grpcio = {version= "0.13.0", default-features = false, features = ["protobufv3-codec"]}
38 futures-util = { version = "0.3.30", default-features = false, features = ["sink"] }
45 default = ["local_ssl"] qkey
/tools/asuite/atest/
Darg_parser.py79 default=True,
122 default=True,
171 default=True,
230 default=0,
236 default=True,
342 default=BuildOutputMode.STREAMED,
416 default=0,
456 default=0,
468 default=0,
480 default=0,
[all …]
/tools/asuite/adevice/src/
Dfingerprint.rs20 #[default]
43 #[serde(skip_serializing_if = "String::is_empty", default)]
47 #[serde(skip_serializing_if = "String::is_empty", default)]
51 #[serde(default, skip_serializing_if = "is_default")]
65 t == &T::default() in is_default()
82 FileMetadata { file_type: FileType::Directory, ..Default::default() } in from_dir()
98 ..Default::default() in from_symlink()
114 ..Default::default() in from_file()
365 assert_eq!(diff(&HashMap::new(), &HashMap::new(), UsePermissions), Diffs::default()); in empty_inputs()
375 ..Default::default() in same_inputs()
[all …]
Dmetrics.rs50 let mut start_event = AdeviceStartEvent::default(); in add_start_event()
60 ..Default::default() in add_start_event()
81 ..Default::default() in add_action_event_with_files_changed()
83 ..Default::default() in add_action_event_with_files_changed()
91 ..Default::default() in add_action_event_with_files_changed()
96 let mut exit_event = AdeviceExitEvent::default(); in add_exit_event()
105 ..Default::default() in add_exit_event()
145 fn default() -> Self { in default() method
163 let mut log_request = LogRequest::default(); in send()
192 let mut event = AdeviceLogEvent::default(); in default_log_event()
[all …]
/tools/netsim/rust/daemon/src/bluetooth/
Dadvertise_settings.rs53 AdvertiseSettingsBuilder::default() in builder()
75 let mut builder = AdvertiseSettingsBuilder::default(); in try_from()
89 if value.timeout != u64::default() { in try_from()
108 ..Default::default() in try_from()
125 Self::default() in new()
178 fn default() -> Self { in default() method
231 fn default() -> Self { in default() method
303 ..Default::default() in test_from_proto_succeeds()
327 ..Default::default() in test_from_proto_fails()
340 ..Default::default() in test_into_proto()
[all …]
Dadvertise_data.rs85 ..Default::default() in from()
103 AdvertiseDataBuilder { device_name, tx_power_level, ..Self::default() } in new()
216 ..Default::default() in test_from_proto_succeeds()
241 &AdvertiseDataProto { include_device_name: true, ..Default::default() }, in test_from_proto_fails()
254 ..Default::default() in test_from_proto_sets_proto_field()
266 let ad = AdvertiseData::builder(device_name.clone(), TxPowerLevel::default()) in test_set_device_name_succeeds()
284 let data = AdvertiseData::builder(device_name, TxPowerLevel::default()) in test_set_device_name_fails()
295 AdvertiseData::builder(String::default(), tx_power).include_tx_power_level().build(); in test_set_tx_power_level()
308 let ad = AdvertiseData::builder(String::default(), TxPowerLevel::default()) in test_set_manufacturer_data_succeeds()
327 let data = AdvertiseData::builder(String::default(), TxPowerLevel::default()) in test_set_manufacturer_data_fails()
/tools/metalava/metalava-model-testsuite/src/main/java/com/android/tools/metalava/model/testsuite/fielditem/
DSourceFieldItemTest.kt29 fun `test field with default value as constant literal`() { in test field with default value as constant literal()
64 fun `test field with default value as constant expression`() { in test field with default value as constant expression()
90 fun `test field with default value as object reference`() { in test field with default value as object reference()
123 fun `test default value of an enum constant field`() { in test default value of an enum constant field()
145 fun `test default value of a Class type field`() { in test default value of a Class type field()
165 fun `test non final field with default value as constant literal`() { in test non final field with default value as constant literal()
186 fun `test non final field with default value as constant expression`() { in test non final field with default value as constant expression()
213 fun `test default value of a non final Class type field`() { in test default value of a non final Class type field()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DModelOptions.kt36 return settings[key]?.let { key.kClass.cast(it) } ?: key.default in get()
86 internal val default: T, constant in com.android.tools.metalava.model.ModelOptions.Key
90 override fun toString() = "Key($name, $default, $kClass)" in toString()
102 inline fun <reified T : Any> of(name: String, default: T): Key<T> { in toString()
103 return Key(name, default, T::class) in toString()
/tools/security/remote_provisioning/hwtrust/src/rkp/
Dfactory_csr.rs71 let csr = FactoryCsr::from_json(&Session::default(), &json).unwrap(); in from_json_valid_v2_ed25519()
128 let csr = FactoryCsr::from_json(&Session::default(), &json).unwrap(); in from_json_valid_v3_ed25519()
146 let csr = FactoryCsr::from_json(&Session::default(), &json).unwrap(); in from_json_valid_v2_p256()
173 let csr = FactoryCsr::from_json(&Session::default(), &json).unwrap(); in from_json_valid_v3_p256()
194 let err = FactoryCsr::from_json(&Session::default(), &json).unwrap_err(); in from_json_name_is_missing()
201 value.insert("name".to_string(), Value::Object(Map::default())); in from_json_name_is_wrong_type()
203 let err = FactoryCsr::from_json(&Session::default(), &json).unwrap_err(); in from_json_name_is_wrong_type()
210 let err = FactoryCsr::from_json(&Session::default(), json).unwrap_err(); in from_json_csr_is_missing()
217 let err = FactoryCsr::from_json(&Session::default(), json).unwrap_err(); in from_json_csr_is_wrong_type()
226 let csr = FactoryCsr::from_json(&Session::default(), &json).unwrap(); in from_json_extra_tag_is_ignored()
/tools/netsim/proto/netsim/
Dconfig.proto23 // default is ipv4 = true, proto3 does not allow custom default values
30 // default is ipv6 = true, proto3 does not allow custom default values
58 // default is False
60 // default is False
/tools/carrier_settings/proto/
Dcarrier_settings.proto89 optional string bearer_bitmask = 4 [default = "0"];
98 optional int32 authtype = 10 [default = -1];
112 optional Protocol protocol = 14 [default = IP];
113 optional Protocol roaming_protocol = 15 [default = IP];
116 optional int32 mtu = 16 [default = 0];
120 optional int32 max_conns = 18 [default = 0];
122 optional int32 wait_time = 19 [default = 0];
124 optional int32 max_conns_time = 20 [default = 0];
127 optional bool modem_cognitive = 22 [default = false];
129 optional bool user_visible = 23 [default = true];
[all …]
/tools/netsim/rust/common/
DCargo.toml12 chrono = { version = "0.4.19", default-features = false }
13 env_logger = { version = "0.10.0", default-features = false }
17 zip = { version = "0.6.4", default-features = false }
/tools/netsim/rust/proto/src/
Dfrontend_grpc.rs138 self.get_version_opt(req, ::grpcio::CallOption::default()) in get_version()
153 self.get_version_async_opt(req, ::grpcio::CallOption::default()) in get_version_async()
168 self.create_device_opt(req, ::grpcio::CallOption::default()) in create_device()
185 self.create_device_async_opt(req, ::grpcio::CallOption::default()) in create_device_async()
200 self.delete_chip_opt(req, ::grpcio::CallOption::default()) in delete_chip()
215 self.delete_chip_async_opt(req, ::grpcio::CallOption::default()) in delete_chip_async()
230 self.patch_device_opt(req, ::grpcio::CallOption::default()) in patch_device()
245 self.patch_device_async_opt(req, ::grpcio::CallOption::default()) in patch_device_async()
257 self.reset_opt(req, ::grpcio::CallOption::default()) in reset()
272 self.reset_async_opt(req, ::grpcio::CallOption::default()) in reset_async()
[all …]
Dfrontend.rs39 impl<'a> ::std::default::Default for &'a VersionResponse {
40 fn default() -> &'a VersionResponse { in default() method
47 ::std::default::Default::default() in new()
161 impl<'a> ::std::default::Default for &'a CreateDeviceRequest {
162 fn default() -> &'a CreateDeviceRequest { in default() method
169 ::std::default::Default::default() in new()
284 impl<'a> ::std::default::Default for &'a CreateDeviceResponse {
285 fn default() -> &'a CreateDeviceResponse { in default() method
292 ::std::default::Default::default() in new()
407 impl<'a> ::std::default::Default for &'a DeleteChipRequest {
[all …]
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/binarycompatibility/
DBinaryCompatibilityInterfaceMethodsTest.kt258 fun `Change default to abstract (Incompatible)`() { in Change default to abstract (Incompatible)()
284 fun `Change abstract to default (Compatible)`() { in Change abstract to default (Compatible)()
478 fun `Add default clause to annotation type element (Compatible)`() { in Add default clause to annotation type element (Compatible)()
504 fun `Change default clause on annotation type element (Incompatible)`() { in Change default clause on annotation type element (Incompatible)()
530 fun `Delete default clause from annotation type element (Incompatible)`() { in Delete default clause from annotation type element (Incompatible)()
/tools/security/remote_provisioning/hwtrust/src/dice/
Dentry.rs10 #[default]
152 issuer: Default::default(), in with_subject_public_key()
153 subject: Default::default(), in with_subject_public_key()
155 mode: Default::default(), in with_subject_public_key()
156 code_desc: Default::default(), in with_subject_public_key()
157 code_hash: Default::default(), in with_subject_public_key()
158 config_desc: Default::default(), in with_subject_public_key()
159 config_hash: Default::default(), in with_subject_public_key()
160 authority_desc: Default::default(), in with_subject_public_key()
161 authority_hash: Default::default(), in with_subject_public_key()
[all …]

12345678910