Home
last modified time | relevance | path

Searched refs:attrs (Results 1 – 25 of 28) sorted by relevance

12

/tools/netsim/rust/daemon/src/wifi/
Dframe.rs42 pub attrs: HwsimAttrSet, field
54 let attrs = HwsimAttrSet::parse(&msg.attributes).context("HwsimAttrSet")?; in parse() localVariable
55 let frame = attrs.frame.clone().context("Frame")?; in parse()
60 transmitter: attrs.transmitter, in parse()
61 flags: attrs.flags, in parse()
62 tx_info: attrs.tx_info.clone(), in parse()
63 cookie: attrs.cookie, in parse()
64 signal: attrs.signal, in parse()
65 freq: attrs.freq, in parse()
69 attrs, in parse()
Dhwsim_attr_set.rs302 let attrs = HwsimAttrSet::parse(hwsim_msg.attributes()).unwrap(); in test_attr_set_parse() localVariable
305 assert_eq!(attrs.transmitter, MacAddress::try_from(11670786u64).ok()); in test_attr_set_parse()
306 assert!(attrs.receiver.is_none()); in test_attr_set_parse()
307 assert!(attrs.frame.is_some()); in test_attr_set_parse()
308 assert_eq!(attrs.flags, Some(2)); in test_attr_set_parse()
309 assert!(attrs.rx_rate_idx.is_none()); in test_attr_set_parse()
310 assert!(attrs.signal.is_none()); in test_attr_set_parse()
311 assert_eq!(attrs.cookie, Some(201)); in test_attr_set_parse()
312 assert_eq!(attrs.freq, Some(2422)); in test_attr_set_parse()
313 assert!(attrs.tx_info.is_some()); in test_attr_set_parse()
[all …]
Dmedium.rs270 if frame.attrs.receiver.context("receiver")? == destination.hwsim_addr { in send_from_ds_frame()
284 let attrs = HwsimAttrSet::parse(&hwsim_msg.attributes).context("HwsimAttrSet")?; in send_tx_info_response() localVariable
285 let hwsim_addr = attrs.transmitter.context("missing transmitter")?; in send_tx_info_response()
414 let attrs = &frame.attrs; in create_hwsim_attr() localVariable
420 false => attrs.frame.clone().unwrap(), in create_hwsim_attr()
429 builder.rx_rate(attrs.rx_rate_idx.unwrap_or(RX_RATE)); in create_hwsim_attr()
430 builder.signal(attrs.signal.unwrap_or(SIGNAL)); in create_hwsim_attr()
432 attrs.flags.map(|v| builder.flags(v)); in create_hwsim_attr()
433 attrs.freq.map(|v| builder.freq(v)); in create_hwsim_attr()
434 attrs.tx_info.as_ref().map(|v| builder.tx_info(v)); in create_hwsim_attr()
[all …]
/tools/test/graphicsbenchmark/functional_tests/java/src/com/android/game/qualification/tests/
DChoreoTestActivity.java73 public ChoreoTestView(Context context, AttributeSet attrs) { in ChoreoTestView() argument
74 super(context, attrs); in ChoreoTestView()
77 public ChoreoTestView(Context context, AttributeSet attrs, int defStyleAttr) { in ChoreoTestView() argument
78 super(context, attrs, defStyleAttr); in ChoreoTestView()
81 … public ChoreoTestView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ChoreoTestView() argument
82 super(context, attrs, defStyleAttr, defStyleRes); in ChoreoTestView()
DSurfaceFlingerTestActivity.java97 public TestView(Context context, AttributeSet attrs) { in TestView() argument
98 super(context, attrs); in TestView()
101 public TestView(Context context, AttributeSet attrs, int defStyleAttr) { in TestView() argument
102 super(context, attrs, defStyleAttr); in TestView()
105 public TestView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in TestView() argument
106 super(context, attrs, defStyleAttr, defStyleRes); in TestView()
/tools/apksig/src/main/java/com/android/apksig/internal/jar/
DManifestParser.java84 List<Attribute> attrs = new ArrayList<>(); in readSection() local
85 attrs.add(parseAttr(attr)); in readSection()
94 attrs.add(parseAttr(attr)); in readSection()
100 return new Section(sectionStartOffset, sectionSizeBytes, attrs); in readSection()
301 public Section(int startOffset, int sizeBytes, List<Attribute> attrs) { in Section() argument
305 if (!attrs.isEmpty()) { in Section()
306 Attribute firstAttr = attrs.get(0); in Section()
312 mAttributes = Collections.unmodifiableList(new ArrayList<>(attrs)); in Section()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DJarSigningTest.java101 Attributes attrs = manifest.getAttributes("directory/file"); in signJarWithPrexistingSimpleTextFilePre18() local
102 assertNotNull(attrs); in signJarWithPrexistingSimpleTextFilePre18()
103 assertEquals(1, attrs.size()); in signJarWithPrexistingSimpleTextFilePre18()
104 assertEquals("OOQgIEXBissIvva3ydRoaXk29Rk=", attrs.getValue("SHA1-Digest")); in signJarWithPrexistingSimpleTextFilePre18()
158 Attributes attrs = manifest.getAttributes("directory/file"); in signJarWithPrexistingSimpleTextFilePos18() local
159 assertNotNull(attrs); in signJarWithPrexistingSimpleTextFilePos18()
160 assertEquals(1, attrs.size()); in signJarWithPrexistingSimpleTextFilePos18()
162 attrs.getValue("SHA-256-Digest")); in signJarWithPrexistingSimpleTextFilePos18()
/tools/test/connectivity/acts_tests/tests/google/power/wifi/
DPowerWiFibaselineTest.py35 attrs = ['screen_status', 'wifi_status']
37 self.decode_test_configs(attrs, indices)
DPowerWiFiscanTest.py105 attrs = [
110 self.decode_test_configs(attrs, indices)
127 attrs = [
131 self.decode_test_configs(attrs, indices)
DPowerWiFidtimTest.py34 attrs = ['screen_status', 'wifi_band', 'dtim']
36 self.decode_test_configs(attrs, indices)
DPowerWiFiHotspotTest.py206 attrs = ['screen_status', 'band', 'client_connect', 'wifi_sharing']
208 self.decode_test_configs(attrs, indices)
226 attrs = [
231 self.decode_test_configs(attrs, indices)
DPowerWiFitrafficTest.py31 attrs = [
36 self.decode_test_configs(attrs, indices)
DPowerWiFimulticastTest.py54 attrs = ['screen_status', 'wifi_band']
56 self.decode_test_configs(attrs, indices)
/tools/test/connectivity/acts_tests/tests/google/power/coex/
DPowerCoexbaselineTest.py30 attrs = [
35 self.decode_test_configs(attrs, indices)
DPowerCoexscanTest.py44 attrs = [
50 self.decode_test_configs(attrs, indices)
/tools/asuite/atest/bazel/resources/rules/
Dtradefed_test.bzl128 attrs = _add_dicts(
170 attrs = _add_dicts(
218 attrs = _add_dicts(
258 **attrs):
264 **attrs
271 def tradefed_host_driven_device_test(test, tradefed_deps = [], suites = [], **attrs):
275 **attrs
Ddevice_test.bzl61 attrs = {
Dcommon_settings.bzl42 attrs = {
Dsoong_prebuilt.bzl109 attrs = {
154 attrs = {
/tools/asuite/atest/bazel/resources/rules/device/
Dsingle_local_device.bzl16 attrs = {
Dcuttlefish_device.bzl59 attrs = {
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/
DV1SchemeSigner.java480 Attributes attrs = new Attributes(); in generateSignatureFile() local
481 attrs.putValue( in generateSignatureFile()
486 SignatureFileWriter.writeIndividualSection(out, sectionName, attrs); in generateSignatureFile()
DV1SchemeVerifier.java1513 public SignedAttributes(Collection<Attribute> attrs) throws Pkcs7DecodingException { in SignedAttributes() argument
1514 Map<String, List<Asn1OpaqueObject>> result = new HashMap<>(attrs.size()); in SignedAttributes()
1515 for (Attribute attr : attrs) { in SignedAttributes()
/tools/metalava/metalava-model-turbine/src/main/java/com/android/tools/metalava/model/turbine/
DTurbineCodebaseInitialiser.kt427 attrs: ImmutableMap<String, Const>, in <lambda>()
441 createAttrValue(attrs[name]!!, assignExp) in <lambda>()
448 DefaultAnnotationAttribute(name, createAttrValue(attrs[name]!!, exp)) in <lambda>()
454 for ((name, value) in attrs) { in <lambda>()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/
DPowerBaseTest.py355 def decode_test_configs(self, attrs, indices): argument
366 config_dict = dict(zip(attrs, values))

12