Home
last modified time | relevance | path

Searched refs:kind (Results 1 – 25 of 48) sorted by relevance

12

/tools/security/remote_provisioning/hwtrust/src/
Dpublickey.rs40 kind: SignatureKind, field
47 kind: KeyAgreementKind, field
52 pub(crate) fn kind(&self) -> SignatureKind { in kind() method
53 self.kind in kind()
63 let mut verifier = match self.kind { in verify()
67 .with_context(|| format!("Failed to create verifier {:?}", self.kind))?; in verify()
143 let kind = PublicKey::pkey_kind(&pkey).ok_or(TryFromPKeyError(()))?; in try_from() localVariable
144 Ok(Self { kind, pkey: PKeyPublicWrapper(pkey) }) in try_from()
152 let kind = KeyAgreementPublicKey::pkey_kind(&pkey).ok_or(TryFromPKeyError(()))?; in try_from() localVariable
153 Ok(Self { kind, pkey: PKeyPublicWrapper(pkey) }) in try_from()
[all …]
/tools/netsim/rust/daemon/src/transport/
Dfd.rs73 kind: ChipKindEnum, field
109 kind: ChipKindEnum, in fd_reader()
119 info!("Handling fd={} for kind: {:?} chip_id: {:?}", fd_rx, kind, chip_id); in fd_reader()
122 match kind { in fd_reader()
137 if e.kind() == ErrorKind::UnexpectedEof => in fd_reader()
148 error!("unknown control packet chip_kind: {:?}", kind); in fd_reader()
188 let chip_kind = match chip.kind { in run_fd_transport()
208 warn!("The provided chip kind is unsupported: {:?}", chip.kind); in run_fd_transport()
216 kind: chip_kind, in run_fd_transport()
238 chip.kind, in run_fd_transport()
[all …]
Dsocket.rs85 kind: ChipKind::BLUETOOTH, in handle_hci_client()
132 fn reader(mut tcp_rx: TcpStream, kind: ChipKind, chip_id: ChipIdentifier) -> std::io::Result<()> { in reader()
134 if let ChipKind::BLUETOOTH = kind { in reader()
139 Err(PacketError::IoError(e)) if e.kind() == ErrorKind::UnexpectedEof => { in reader()
/tools/netsim/rust/daemon/src/devices/
Dchip.rs66 pub kind: ProtoChipKind, field
80 pub kind: ProtoChipKind, field
113 kind: create_params.kind, in new()
135 proto_chip.kind = EnumOrUnknown::new(self.kind); in get()
229 kind: CHIP_KIND, in new_test_chip()
262 assert_eq!(chip.kind, CHIP_KIND); in test_new_and_get_with_singleton()
279 assert_eq!(netsim_radio_stats::Kind::UNSPECIFIED, chip.get_stats().first().unwrap().kind()); in test_chip_get_stats()
296 expected.kind = EnumOrUnknown::new(chip.kind); in test_chip_get()
Ddevice.rs101 let mut patch_chip_kind = patch_chip.kind.enum_value_or_default(); in patch()
142 if chip.kind == patch_chip_kind && chip.name.contains(patch_chip_name) { in match_target_chip()
157 chip.kind in match_target_chip()
196 if chip.kind == chip_create_params.kind in add_chip()
239 kind: ProtoChipKind::BLUETOOTH, in create_test_device()
251 kind: ProtoChipKind::BLUETOOTH, in create_test_device()
/tools/netsim/proto/netsim/
Dstartup.proto33 * chips: [{kind: "WIFI", fdIn: 1, fdOut: 2},
34 * {kind: "BLUETOOTH", fdIn: 20, fdOut:21}]
37 * chips: [{kind: "BLUETOOTH", fdIn: 3, fdOut: 4},
38 * {kind: "UWB", fdIn: 5, fdOut: 6, model: "DW300"}]
59 common.ChipKind kind = 1; // the kind of chip field
Dstats.proto35 // The kind of radio
47 optional Kind kind = 2; field
/tools/security/remote_provisioning/hwtrust/src/cbor/
Dpublickey.rs28 sign1.protected.header.alg == Some(Algorithm::Assigned(iana_algorithm(self.kind()))), in verify_cose_sign1()
31 sign1.verify_signature(aad, |signature, message| match self.kind() { in verify_cose_sign1()
42 let builder = match self.kind() { in to_cose_key()
71 .algorithm(iana_algorithm(self.kind())) in to_cose_key()
178 fn ec_cose_signature_to_der(kind: EcKind, signature: &[u8]) -> Result<Vec<u8>> { in ec_cose_signature_to_der()
179 let coord_len = ec_coord_len(kind); in ec_cose_signature_to_der()
187 fn ec_coord_len(kind: EcKind) -> usize { in ec_coord_len()
188 match kind { in ec_coord_len()
194 fn iana_algorithm(kind: SignatureKind) -> iana::Algorithm { in iana_algorithm()
195 match kind { in iana_algorithm()
[all …]
/tools/metalava/metalava/src/main/java/com/android/tools/metalava/lint/
DResourceType.kt35 private val kind: Kind = Kind.REAL, constant in com.android.tools.metalava.lint.ResourceType
125 kind = Kind.REAL,
139 if (type.kind != Kind.REAL || type == STYLEABLE) { in <lambda>()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/type/
DDefaultPrimitiveTypeItem.kt26 override val kind: Primitive, constant
29 DefaultPrimitiveTypeItem(modifiers.duplicate(), kind)
/tools/netsim/rust/daemon/src/grpc_server/
Dbackend.rs34 initial_info.chip.kind.enum_value().map_err(|v| anyhow!("unknown chip kind {v}"))?; in add_chip()
49 _ => return Err(anyhow!("The provided chip kind is unsupported: {:?}", chip.kind)), in add_chip()
56 kind: chip_kind, in add_chip()
94 let chip_kind = &initial_info.chip.kind.unwrap(); in stream_packets()
/tools/platform-compat/java/android/processor/compat/unsupportedappusage/
DSignatureConverter.java144 TypeKind kind = type.getKind(); in getTypeSignature() local
145 if (TYPE_MAP.containsKey(kind)) { in getTypeSignature()
146 return TYPE_MAP.get(kind); in getTypeSignature()
148 switch (kind) { in getTypeSignature()
168 throw new SignatureConverterException("Can't handle type of kind " + kind); in getTypeSignature()
/tools/security/remote_provisioning/hwtrust/cxxbridge/
Dlib.rs39 fn verify_dice_chain(chain: &[u8], kind: DiceChainKind) -> VerifyDiceChainResult; in verify_dice_chain()
52 fn verify_dice_chain(chain: &[u8], kind: ffi::DiceChainKind) -> ffi::VerifyDiceChainResult { in verify_dice_chain()
54 options: match kind { in verify_dice_chain()
Dhwtrust.cpp19 Result<DiceChain> DiceChain::Verify(const std::vector<uint8_t>& chain, DiceChain::Kind kind) noexce… in Verify() argument
21 switch (kind) { in Verify()
/tools/netsim/rust/daemon/src/wireless/
Dmocked.rs41 proto_chip.kind = EnumOrUnknown::new(self.chip_kind); in get()
49 stats.kind = Some(EnumOrUnknown::new(match self.chip_kind { in get_stats()
/tools/metalava/metalava/src/test/java/com/android/tools/metalava/
DSignatureInputOutputTest.kt204 assertThat((method.returnType() as PrimitiveTypeItem).kind) in <lambda>()
232 assertThat((method.returnType() as PrimitiveTypeItem).kind) in <lambda>()
260 assertThat((param.type() as PrimitiveTypeItem).kind) in <lambda>()
284 assertThat((param.type() as PrimitiveTypeItem).kind) in <lambda>()
312 assertThat((param.type() as PrimitiveTypeItem).kind) in <lambda>()
367 assertThat((param.type() as PrimitiveTypeItem).kind) in <lambda>()
417 assertThat((p0.type() as PrimitiveTypeItem).kind) in <lambda>()
459 assertThat((p0.type() as PrimitiveTypeItem).kind) in <lambda>()
/tools/netsim/ui/ts/netsim/
Dmodel.ts49 kind: ChipKind; property
212 kind: ChipKind; property
/tools/netsim/rust/proto/src/
Dstartup.rs441 pub kind: ::protobuf::EnumOrUnknown<super::common::ChipKind>, field
479 |m: &Chip| { &m.kind }, in generated_message_descriptor_data()
480 |m: &mut Chip| { &mut m.kind }, in generated_message_descriptor_data()
541 self.kind = is.read_enum_or_unknown()?; in merge_from()
579 if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) { in compute_size()
580 my_size += ::protobuf::rt::int32_size(1, self.kind.value()); in compute_size()
613 if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) { in write_to_with_cached_sizes()
614 os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.kind))?; in write_to_with_cached_sizes()
657 self.kind = ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED); in clear()
671 kind: ::protobuf::EnumOrUnknown::from_i32(0), in default_instance()
/tools/netsim/rust/cli/src/
Dargs.rs108 chip.kind = ChipKind::WIFI.into(); in get_request_bytes()
113 chip.kind = ChipKind::UWB.into(); in get_request_bytes()
123 chip.kind = ChipKind::BLUETOOTH.into(); in get_request_bytes()
165 Beacon::Create(kind) => match kind { in get_request_bytes()
171 kind: ChipKind::BLUETOOTH_BEACON.into(), in get_request_bytes()
192 Beacon::Patch(kind) => match kind { in get_request_bytes()
198 kind: ChipKind::BLUETOOTH_BEACON.into(), in get_request_bytes()
Drequests.rs108 chip.kind = ChipKind::WIFI.into(); in get_expected_radio()
113 chip.kind = ChipKind::UWB.into(); in get_expected_radio()
123 chip.kind = ChipKind::BLUETOOTH.into(); in get_expected_radio()
293 kind: ChipKind::BLUETOOTH_BEACON.into(), in get_create_device_req_bytes()
319 kind: ChipKind::BLUETOOTH_BEACON.into(), in get_patch_device_req_bytes()
560 kind: ChipKind::BLUETOOTH_BEACON.into(), in test_beacon_create_ble_with_address()
594 kind: ChipKind::BLUETOOTH_BEACON.into(), in test_beacon_patch_ble_with_address()
Dresponse.rs94 Beacon::Create(kind) => match kind { in print_response()
113 Beacon::Patch(kind) => { in print_response()
114 match kind { in print_response()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DTypeItem.kt450 append(type.kind.primitiveName) in hashCode()
628 is PrimitiveTypeItem -> append(type.kind.primitiveName) in hashCode()
790 val kind: Primitive constant
809 override fun defaultValue(): Any? = kind.defaultValue in defaultValue()
811 override fun defaultValueString(): String = kind.defaultValueString in defaultValue()
828 return (other as? PrimitiveTypeItem)?.kind == kind in equalToType()
831 override fun hashCodeForType(): Int = kind.hashCode() in hashCodeForType()
/tools/netsim/testing/netsim-grpc/src/netsim_grpc/
Dnetsim_client.py125 chip.kind = common.ChipKind.WIFI
128 chip.kind = common.ChipKind.UWB
134 chip.kind = common.ChipKind.BLUETOOTH
/tools/metalava/metalava-model-psi/src/main/java/com/android/tools/metalava/model/psi/
DPsiTypeItem.kt58 override val kind: PrimitiveTypeItem.Primitive, constant
62 PsiPrimitiveTypeItem(psiType = psiType, kind = kind, modifiers = modifiers.duplicate()) in duplicate()
/tools/asuite/atest/unittest_data/
Dmy_cc_test.cc13 std::get<1>(info.param).kind; in __anonae09276f0102()
26 std::get<1>(info.param).kind; in __anonae09276f0202()

12