Home
last modified time | relevance | path

Searched refs:attributes (Results 1 – 25 of 49) sorted by relevance

12

/system/connectivity/shill/
DNETLINK_MESSAGES.txt9 and attributes.
34 2.1.1 Add attributes to the message.
36 You'll want to set values for all the message's attributes. The message
37 object should have all of its legal attributes pre-instantiated so all
42 A message's attributes are accessed through the message's |attributes|
46 2.1.1.1 Regular attributes.
48 Netlink attributes are typed (e.g., String, U32, etc.). In order to
53 if (trigger_scan.attributes()->SetU32AttributeValue(
68 You can check the kernel code to determine the attributes each message is
69 expecting and the type of those attributes.
[all …]
/system/connectivity/apmanager/
Ddevice_info_unittest.cc200 message.attributes()->CreateNl80211Attribute( in TEST_F()
202 message.attributes()->SetStringAttributeValue(NL80211_ATTR_WIPHY_NAME, in TEST_F()
307 message.attributes()->CreateNl80211Attribute( in TEST_F()
309 message.attributes()->SetU32AttributeValue(NL80211_ATTR_IFINDEX, in TEST_F()
319 message.attributes()->CreateNl80211Attribute( in TEST_F()
321 message.attributes()->SetU32AttributeValue(NL80211_ATTR_IFTYPE, in TEST_F()
337 message.attributes()->CreateNl80211Attribute( in TEST_F()
339 message.attributes()->SetStringAttributeValue(NL80211_ATTR_WIPHY_NAME, in TEST_F()
371 message.attributes()->CreateNl80211Attribute( in TEST_F()
373 message.attributes()->SetStringAttributeValue(NL80211_ATTR_WIPHY_NAME, in TEST_F()
Ddevice_unittest.cc221 message.attributes()->CreateNestedAttribute( in TEST_F()
224 message.attributes()->GetNestedAttributeList( in TEST_F()
230 message.attributes()->SetNestedAttributeHasAValue( in TEST_F()
234 message.attributes()->CreateNestedAttribute( in TEST_F()
237 message.attributes()->GetNestedAttributeList( in TEST_F()
270 message.attributes()->SetNestedAttributeHasAValue(NL80211_ATTR_WIPHY_BANDS); in TEST_F()
Ddevice_info.cc96 get_wiphy.attributes()->SetFlagAttributeValue(NL80211_ATTR_SPLIT_WIPHY_DUMP, in EnumerateDevices()
220 if (!msg.attributes()->SetU32AttributeValue(NL80211_ATTR_IFINDEX, in GetWiFiInterfaceInfo()
269 get_wiphy.attributes()->SetU32AttributeValue(NL80211_ATTR_IFINDEX, in GetWiFiInterfacePhyInfo()
/system/tpm/attestation/server/
Dpkcs11_key_store_test.cc180 const std::vector<uint8_t>& attributes, in CreateObject() argument
183 std::string label = GetValue(attributes, CKA_LABEL); in CreateObject()
185 values_[label] = GetValue(attributes, CKA_VALUE); in CreateObject()
212 parsed.attributes()[0].type == CKA_LABEL) in GetAttributeValue()
215 (parsed.attributes()[0].type != CKA_VALUE && in GetAttributeValue()
216 parsed.attributes()[0].type != CKA_LABEL) || in GetAttributeValue()
217 (parsed.attributes()[0].pValue && in GetAttributeValue()
218 parsed.attributes()[0].ulValueLen != value.size())) in GetAttributeValue()
220 parsed.attributes()[0].ulValueLen = value.size(); in GetAttributeValue()
221 if (parsed.attributes()[0].pValue) in GetAttributeValue()
[all …]
Dpkcs11_key_store.cc160 CK_ATTRIBUTE attributes[] = { in Write() local
183 attributes, in Write()
184 arraysize(attributes), in Write()
461 CK_ATTRIBUTE attributes[] = { in FindObject() local
480 attributes, in FindObject()
481 arraysize(attributes)) != CKR_OK) || in FindObject()
540 CK_ATTRIBUTE attributes[] = { in EnumObjects() local
555 attributes, in EnumObjects()
556 arraysize(attributes)) != CKR_OK) || in EnumObjects()
663 CK_ATTRIBUTE attributes[] = { in DoesCertificateExist() local
[all …]
/system/connectivity/shill/wifi/
Dscan_session.cc167 trigger_scan.attributes()->CreateNl80211Attribute( in DoScan()
169 trigger_scan.attributes()->CreateNl80211Attribute( in DoScan()
171 trigger_scan.attributes()->SetU32AttributeValue(NL80211_ATTR_IFINDEX, in DoScan()
174 if (!trigger_scan.attributes()->GetNestedAttributeList( in DoScan()
178 trigger_scan.attributes()->SetNestedAttributeHasAValue( in DoScan()
194 if (!trigger_scan.attributes()->GetNestedAttributeList( in DoScan()
198 trigger_scan.attributes()->SetNestedAttributeHasAValue( in DoScan()
/system/extras/tests/net_test/
Dnetlink.py112 attributes = {}
127 if nla_name in attributes and nla_name != "INET_DIAG_NONE":
130 attributes[nla_name] = nla_data
133 return attributes
199 attributes = self._ParseAttributes(nlmsghdr.type, nlmsg.family,
202 return (nlmsg, attributes), data
Dmultinetwork_test.py748 rtmsg, attributes = route
750 metrics = attributes["RTA_METRICS"]
817 out = [(rule, attributes) for rule, attributes in rules
818 if attributes.get("FRA_PRIORITY", 0) == priority]
825 for _, attributes in rules:
826 self.assertNotIn("FRA_UID_START", attributes)
827 self.assertNotIn("FRA_UID_END", attributes)
849 _, attributes = rules[-1]
850 self.assertEquals(priority, attributes["FRA_PRIORITY"])
851 self.assertEquals(start, attributes["FRA_UID_START"])
[all …]
/system/connectivity/shill/net/
Dnetlink_message_unittest.cc727 EXPECT_TRUE(message.attributes()->CreateNl80211Attribute( in TEST_F()
730 message.attributes()->SetU32AttributeValue(NL80211_ATTR_WIPHY, kWiPhy)); in TEST_F()
732 EXPECT_TRUE(message.attributes()->CreateNl80211Attribute( in TEST_F()
734 EXPECT_TRUE(message.attributes()->SetU32AttributeValue( in TEST_F()
737 EXPECT_TRUE(message.attributes()->CreateNl80211Attribute( in TEST_F()
739 EXPECT_TRUE(message.attributes()->SetRawAttributeValue(NL80211_ATTR_MAC, in TEST_F()
743 EXPECT_TRUE(message.attributes()->CreateNl80211Attribute( in TEST_F()
746 EXPECT_TRUE(message.attributes()->CreateNl80211Attribute( in TEST_F()
748 EXPECT_TRUE(message.attributes()->SetU16AttributeValue( in TEST_F()
751 EXPECT_TRUE(message.attributes()->CreateNl80211Attribute( in TEST_F()
[all …]
Dnetlink_packet.cc74 const AttributeListRefPtr& attributes) { in ConsumeAttributes() argument
75 bool result = attributes->Decode(GetPayload(), consumed_bytes_, factory); in ConsumeAttributes()
Dnl80211_message.cc481 attributes()->CreateAttribute( in GetStationMessage()
484 attributes()->CreateAttribute( in GetStationMessage()
501 attributes()->CreateAttribute( in GetWiphyMessage()
553 attributes()->CreateAttribute( in GetScanMessage()
563 attributes()->CreateAttribute( in TriggerScanMessage()
580 attributes()->CreateAttribute( in GetInterfaceMessage()
596 attributes()->CreateAttribute( in GetSurveyMessage()
Dnetlink_packet.h63 const AttributeListRefPtr& attributes);
Drtnl_message.cc387 ByteString attributes; in Encode() local
400 attributes.Append(attr_header); in Encode()
404 attributes.Append(attr_data); in Encode()
408 packet.Append(attributes); in Encode()
Dnetlink_manager_unittest.cc344 new_family_message.attributes()->CreateControlAttribute( in TEST_F()
346 new_family_message.attributes()->SetU16AttributeValue( in TEST_F()
348 new_family_message.attributes()->CreateControlAttribute( in TEST_F()
350 new_family_message.attributes()->SetStringAttributeValue( in TEST_F()
374 new_family_message.attributes()->CreateControlAttribute( in TEST_F()
376 new_family_message.attributes()->SetU16AttributeValue( in TEST_F()
378 new_family_message.attributes()->CreateControlAttribute( in TEST_F()
380 new_family_message.attributes()->SetStringAttributeValue( in TEST_F()
Dgeneric_netlink_message.h83 AttributeListRefPtr attributes() { return attributes_; } in attributes() function
Dgeneric_netlink_message.cc134 attributes()->CreateStringAttribute(CTRL_ATTR_FAMILY_NAME, in GetFamilyMessage()
/system/bt/service/
Dgatt_server.cpp102 pending_decl_->attributes.push_back(entry); in BeginServiceDeclaration()
131 pending_decl_->attributes.push_back(entry); in AddCharacteristic()
161 pending_decl_->attributes.push_back(entry); in AddDescriptor()
190 CHECK(!pending_decl_->attributes.empty()); in EndServiceDeclaration()
240 for (const auto& entry : pending_decl_->attributes) { in GetIdForCharacteristic()
263 CHECK(!pending_decl_->attributes.empty()); in GetIdForDescriptor()
267 for (auto iter = pending_decl_->attributes.end() - 1; in GetIdForDescriptor()
268 iter != pending_decl_->attributes.begin(); // Begin is always a service in GetIdForDescriptor()
936 if (pending_decl_->attributes.empty()) in PopNextEntry()
939 const auto& next = pending_decl_->attributes.front(); in PopNextEntry()
[all …]
/system/sepolicy/tools/
Dcheckfc.c80 static bool ebitmap_attribute_assertion_init(ebitmap_t *assertions, const char * const attributes[]) in ebitmap_attribute_assertion_init() argument
83 while (*attributes) { in ebitmap_attribute_assertion_init()
85 int bit_pos = get_attr_bit(global_state.sepolicy.pdb, *attributes); in ebitmap_attribute_assertion_init()
96 attributes++; in ebitmap_attribute_assertion_init()
/system/core/adf/libadfhwc/
Dadfhwc.cpp146 uint32_t config, const uint32_t *attributes, int32_t *values) in adf_getDisplayAttributes() argument
161 for (int i = 0; attributes[i] != HWC_DISPLAY_NO_ATTRIBUTE; i++) in adf_getDisplayAttributes()
163 attributes[i]); in adf_getDisplayAttributes()
/system/core/adf/libadfhwc/include/adfhwc/
Dadfhwc.h125 uint32_t config, const uint32_t *attributes, int32_t *values);
/system/tpm/trunks/
Dresource_manager.cc559 BYTE attributes; in ParseCommand() local
560 result = Parse_BYTE(&buffer, &attributes, nullptr); in ParseCommand()
570 command_info->session_continued.push_back((attributes & 1) == 1); in ParseCommand()
633 BYTE attributes; in ParseResponse() local
634 result = Parse_BYTE(&buffer, &attributes, nullptr); in ParseResponse()
643 response_info->session_continued.push_back((attributes & 1) == 1); in ParseResponse()
/system/sepolicy/tools/sepolicy-analyze/
DREADME11 rules via attributes and default-enabled conditional rules
40 terms of attributes associated with those same types. The rule
84 The -w or --warn option may be used to warn on any types, attributes,
/system/tpm/tpm_manager/server/
Dtpm2_nvram_test.cc221 nvram_public.attributes = trunks::TPMA_NV_WRITELOCKED; in TEST_F()
233 nvram_public.attributes = 0; in TEST_F()
/system/sepolicy/
Dupdate_engine.te46 # postinstall_file regardless of its attributes in the new system.

12