Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 698) sorted by relevance

12345678910>>...28

/system/core/include/utils/
DBitSet.h31 uint32_t value; member
33 inline BitSet32() : value(0UL) { } in BitSet32()
34 explicit inline BitSet32(uint32_t value) : value(value) { } in BitSet32()
40 inline void clear() { clear(value); } in clear()
42 static inline void clear(uint32_t& value) { value = 0UL; } in clear()
45 inline uint32_t count() const { return count(value); } in count()
47 static inline uint32_t count(uint32_t value) { return __builtin_popcountl(value); } in count()
50 inline bool isEmpty() const { return isEmpty(value); } in isEmpty()
52 static inline bool isEmpty(uint32_t value) { return ! value; } in isEmpty()
55 inline bool isFull() const { return isFull(value); } in isFull()
[all …]
/system/tpm/attestation/common/
Dprint_interface_proto.cc30 std::string GetProtoDebugString(AttestationStatus value) { in GetProtoDebugString() argument
31 return GetProtoDebugStringWithIndent(value, 0); in GetProtoDebugString()
34 std::string GetProtoDebugStringWithIndent(AttestationStatus value, in GetProtoDebugStringWithIndent() argument
36 if (value == STATUS_SUCCESS) { in GetProtoDebugStringWithIndent()
39 if (value == STATUS_UNEXPECTED_DEVICE_ERROR) { in GetProtoDebugStringWithIndent()
42 if (value == STATUS_NOT_AVAILABLE) { in GetProtoDebugStringWithIndent()
45 if (value == STATUS_NOT_READY) { in GetProtoDebugStringWithIndent()
48 if (value == STATUS_NOT_ALLOWED) { in GetProtoDebugStringWithIndent()
51 if (value == STATUS_INVALID_PARAMETER) { in GetProtoDebugStringWithIndent()
54 if (value == STATUS_REQUEST_DENIED_BY_CA) { in GetProtoDebugStringWithIndent()
[all …]
Dprint_common_proto.cc28 std::string GetProtoDebugString(KeyType value) { in GetProtoDebugString() argument
29 return GetProtoDebugStringWithIndent(value, 0); in GetProtoDebugString()
32 std::string GetProtoDebugStringWithIndent(KeyType value, int indent_size) { in GetProtoDebugStringWithIndent() argument
33 if (value == KEY_TYPE_RSA) { in GetProtoDebugStringWithIndent()
36 if (value == KEY_TYPE_ECC) { in GetProtoDebugStringWithIndent()
42 std::string GetProtoDebugString(KeyUsage value) { in GetProtoDebugString() argument
43 return GetProtoDebugStringWithIndent(value, 0); in GetProtoDebugString()
46 std::string GetProtoDebugStringWithIndent(KeyUsage value, int indent_size) { in GetProtoDebugStringWithIndent() argument
47 if (value == KEY_USAGE_SIGN) { in GetProtoDebugStringWithIndent()
50 if (value == KEY_USAGE_DECRYPT) { in GetProtoDebugStringWithIndent()
[all …]
Dprint_interface_proto.h28 std::string GetProtoDebugStringWithIndent(AttestationStatus value,
30 std::string GetProtoDebugString(AttestationStatus value);
32 const CreateGoogleAttestedKeyRequest& value,
34 std::string GetProtoDebugString(const CreateGoogleAttestedKeyRequest& value);
36 const CreateGoogleAttestedKeyReply& value,
38 std::string GetProtoDebugString(const CreateGoogleAttestedKeyReply& value);
39 std::string GetProtoDebugStringWithIndent(const GetKeyInfoRequest& value,
41 std::string GetProtoDebugString(const GetKeyInfoRequest& value);
42 std::string GetProtoDebugStringWithIndent(const GetKeyInfoReply& value,
44 std::string GetProtoDebugString(const GetKeyInfoReply& value);
[all …]
Dprint_common_proto.h28 std::string GetProtoDebugStringWithIndent(KeyType value, int indent_size);
29 std::string GetProtoDebugString(KeyType value);
30 std::string GetProtoDebugStringWithIndent(KeyUsage value, int indent_size);
31 std::string GetProtoDebugString(KeyUsage value);
32 std::string GetProtoDebugStringWithIndent(CertificateProfile value,
34 std::string GetProtoDebugString(CertificateProfile value);
35 std::string GetProtoDebugStringWithIndent(const Quote& value, int indent_size);
36 std::string GetProtoDebugString(const Quote& value);
37 std::string GetProtoDebugStringWithIndent(const EncryptedData& value,
39 std::string GetProtoDebugString(const EncryptedData& value);
[all …]
/system/tpm/tpm_manager/common/
Dprint_tpm_nvram_interface_proto.cc30 std::string GetProtoDebugString(const DefineNvramRequest& value) { in GetProtoDebugString() argument
31 return GetProtoDebugStringWithIndent(value, 0); in GetProtoDebugString()
34 std::string GetProtoDebugStringWithIndent(const DefineNvramRequest& value, in GetProtoDebugStringWithIndent() argument
38 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); in GetProtoDebugStringWithIndent()
40 if (value.has_index()) { in GetProtoDebugStringWithIndent()
42 base::StringAppendF(&output, "%d", value.index()); in GetProtoDebugStringWithIndent()
45 if (value.has_length()) { in GetProtoDebugStringWithIndent()
47 base::StringAppendF(&output, "%d", value.length()); in GetProtoDebugStringWithIndent()
54 std::string GetProtoDebugString(const DefineNvramReply& value) { in GetProtoDebugString() argument
55 return GetProtoDebugStringWithIndent(value, 0); in GetProtoDebugString()
[all …]
Dprint_tpm_ownership_interface_proto.cc31 std::string GetProtoDebugString(const GetTpmStatusRequest& value) { in GetProtoDebugString() argument
32 return GetProtoDebugStringWithIndent(value, 0); in GetProtoDebugString()
35 std::string GetProtoDebugStringWithIndent(const GetTpmStatusRequest& value, in GetProtoDebugStringWithIndent() argument
39 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); in GetProtoDebugStringWithIndent()
45 std::string GetProtoDebugString(const GetTpmStatusReply& value) { in GetProtoDebugString() argument
46 return GetProtoDebugStringWithIndent(value, 0); in GetProtoDebugString()
49 std::string GetProtoDebugStringWithIndent(const GetTpmStatusReply& value, in GetProtoDebugStringWithIndent() argument
53 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); in GetProtoDebugStringWithIndent()
55 if (value.has_status()) { in GetProtoDebugStringWithIndent()
59 GetProtoDebugStringWithIndent(value.status(), indent_size + 2).c_str()); in GetProtoDebugStringWithIndent()
[all …]
Dprint_tpm_nvram_interface_proto.h28 std::string GetProtoDebugStringWithIndent(const DefineNvramRequest& value,
30 std::string GetProtoDebugString(const DefineNvramRequest& value);
31 std::string GetProtoDebugStringWithIndent(const DefineNvramReply& value,
33 std::string GetProtoDebugString(const DefineNvramReply& value);
34 std::string GetProtoDebugStringWithIndent(const DestroyNvramRequest& value,
36 std::string GetProtoDebugString(const DestroyNvramRequest& value);
37 std::string GetProtoDebugStringWithIndent(const DestroyNvramReply& value,
39 std::string GetProtoDebugString(const DestroyNvramReply& value);
40 std::string GetProtoDebugStringWithIndent(const WriteNvramRequest& value,
42 std::string GetProtoDebugString(const WriteNvramRequest& value);
[all …]
Dprint_local_data_proto.cc27 std::string GetProtoDebugString(const LocalData& value) { in GetProtoDebugString() argument
28 return GetProtoDebugStringWithIndent(value, 0); in GetProtoDebugString()
31 std::string GetProtoDebugStringWithIndent(const LocalData& value, in GetProtoDebugStringWithIndent() argument
35 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); in GetProtoDebugStringWithIndent()
37 if (value.has_owner_password()) { in GetProtoDebugStringWithIndent()
40 base::HexEncode(value.owner_password().data(), in GetProtoDebugStringWithIndent()
41 value.owner_password().size()) in GetProtoDebugStringWithIndent()
46 for (int i = 0; i < value.owner_dependency_size(); ++i) { in GetProtoDebugStringWithIndent()
47 base::StringAppendF(&output, "%s", value.owner_dependency(i).c_str()); in GetProtoDebugStringWithIndent()
50 if (value.has_endorsement_password()) { in GetProtoDebugStringWithIndent()
[all …]
Dprint_tpm_ownership_interface_proto.h28 std::string GetProtoDebugStringWithIndent(const GetTpmStatusRequest& value,
30 std::string GetProtoDebugString(const GetTpmStatusRequest& value);
31 std::string GetProtoDebugStringWithIndent(const GetTpmStatusReply& value,
33 std::string GetProtoDebugString(const GetTpmStatusReply& value);
34 std::string GetProtoDebugStringWithIndent(const TakeOwnershipRequest& value,
36 std::string GetProtoDebugString(const TakeOwnershipRequest& value);
37 std::string GetProtoDebugStringWithIndent(const TakeOwnershipReply& value,
39 std::string GetProtoDebugString(const TakeOwnershipReply& value);
41 const RemoveOwnerDependencyRequest& value,
43 std::string GetProtoDebugString(const RemoveOwnerDependencyRequest& value);
[all …]
/system/update_engine/update_manager/
Dboxed_value.cc40 string BoxedValue::ValuePrinter<string>(const void* value) { in ValuePrinter() argument
41 const string* val = reinterpret_cast<const string*>(value); in ValuePrinter()
46 string BoxedValue::ValuePrinter<int>(const void* value) { in ValuePrinter() argument
47 const int* val = reinterpret_cast<const int*>(value); in ValuePrinter()
52 string BoxedValue::ValuePrinter<unsigned int>(const void* value) { in ValuePrinter() argument
53 const unsigned int* val = reinterpret_cast<const unsigned int*>(value); in ValuePrinter()
58 string BoxedValue::ValuePrinter<int64_t>(const void* value) { in ValuePrinter() argument
59 const int64_t* val = reinterpret_cast<const int64_t*>(value); in ValuePrinter()
64 string BoxedValue::ValuePrinter<uint64_t>(const void* value) { in ValuePrinter() argument
66 reinterpret_cast<const uint64_t*>(value); in ValuePrinter()
[all …]
/system/connectivity/shill/
Dkey_file_store_unittest.cc99 EXPECT_EQ(test_file_.value(), file_enumerator.Next().value()); in TEST_F()
134 EXPECT_TRUE(base::PathExists(FilePath(test_file_.value() + ".corrupted"))); in TEST_F()
333 string value; in TEST_F() local
334 EXPECT_TRUE(store_->GetString(kGroup, kKey, &value)); in TEST_F()
335 EXPECT_EQ(kValue, value); in TEST_F()
336 EXPECT_FALSE(store_->GetString("something-else", kKey, &value)); in TEST_F()
337 EXPECT_FALSE(store_->GetString(kGroup, "bar", &value)); in TEST_F()
371 bool value = true; in TEST_F() local
372 EXPECT_TRUE(store_->GetBool(kGroup, kKeyFalse, &value)); in TEST_F()
373 EXPECT_FALSE(value); in TEST_F()
[all …]
Dadaptor_interfaces.h40 virtual void EmitBoolChanged(const std::string& name, bool value) = 0;
41 virtual void EmitUintChanged(const std::string& name, uint32_t value) = 0;
42 virtual void EmitUint16Changed(const std::string& name, uint16_t value) = 0;
43 virtual void EmitIntChanged(const std::string& name, int value) = 0;
45 const std::string& value) = 0;
47 const Stringmap& value) = 0;
49 const Stringmaps& value) = 0;
51 const Strings& value) = 0;
53 const KeyValueStore& value) = 0;
55 const std::string& value) = 0;
[all …]
Dkey_file_store.cc88 LOG(INFO) << "Creating a new key file at " << path_.value(); in Open()
94 path_.value().c_str(), in Open()
100 LOG(ERROR) << "Failed to load key file from " << path_.value() << ": " in Open()
128 LOG(ERROR) << "Failed to store key file: " << path_.value(); in Flush()
136 LOG(INFO) << "In " << __func__ << " for " << path_.value(); in MarkAsCorrupted()
137 string corrupted_path = path_.value() + kCorruptSuffix; in MarkAsCorrupted()
138 int ret = rename(path_.value().c_str(), corrupted_path.c_str()); in MarkAsCorrupted()
226 string* value) const { in GetString()
236 if (value) { in GetString()
237 *value = data; in GetString()
[all …]
/system/update_engine/common/
Dprefs_unittest.cc52 bool SetValue(const string& key, const string& value) { in SetValue() argument
53 return base::WriteFile(prefs_dir_.Append(key), value.data(), in SetValue()
54 value.length()) == static_cast<int>(value.length()); in SetValue()
66 EXPECT_EQ(prefs_dir_.Append(kAllvalidCharsKey).value(), path.value()); in TEST_F()
82 string value; in TEST_F() local
83 EXPECT_TRUE(prefs_.GetString(kKey, &value)); in TEST_F()
84 EXPECT_EQ(test_data, value); in TEST_F()
88 string value; in TEST_F() local
89 EXPECT_FALSE(prefs_.GetString(",bad", &value)); in TEST_F()
93 string value; in TEST_F() local
[all …]
/system/connectivity/shill/net/
Dnetlink_message_unittest.cc392 vector<uint32_t>* value) { in GetScanFrequenciesFromMessage() argument
393 if (!value) { in GetScanFrequenciesFromMessage()
406 value->clear(); in GetScanFrequenciesFromMessage()
410 value->push_back(freq); in GetScanFrequenciesFromMessage()
419 vector<string>* value) { in GetScanSsidsFromMessage() argument
420 if (!value) { in GetScanSsidsFromMessage()
433 value->clear(); in GetScanSsidsFromMessage()
437 value->push_back(ssid); in GetScanSsidsFromMessage()
462 uint32_t value; in TEST_F() local
464 NL80211_ATTR_WIPHY, &value)); in TEST_F()
[all …]
Dnetlink_attribute.h77 virtual bool GetU8Value(uint8_t* value) const;
80 virtual bool GetU16Value(uint16_t* value) const;
81 virtual bool SetU16Value(uint16_t value);
83 virtual bool GetU32Value(uint32_t* value) const;
84 virtual bool SetU32Value(uint32_t value);
86 virtual bool GetU64Value(uint64_t* value) const;
87 virtual bool SetU64Value(uint64_t value);
89 virtual bool GetFlagValue(bool* value) const;
90 virtual bool SetFlagValue(bool value);
92 virtual bool GetStringValue(std::string* value) const;
[all …]
Dnetlink_attribute_unittest.cc43 std::string value; in TEST_F() local
44 EXPECT_TRUE(attr.GetStringValue(&value)); in TEST_F()
45 EXPECT_EQ("", value); in TEST_F()
51 EXPECT_TRUE(attr.GetStringValue(&value)); in TEST_F()
52 EXPECT_EQ("hello", value); in TEST_F()
53 EXPECT_EQ(5, value.size()); in TEST_F()
59 EXPECT_TRUE(attr.GetStringValue(&value)); in TEST_F()
60 EXPECT_EQ("hello", value); in TEST_F()
61 EXPECT_EQ(5, value.size()); in TEST_F()
67 EXPECT_TRUE(attr.GetStringValue(&value)); in TEST_F()
[all …]
Dattribute_list.cc63 int id, const ByteString& value) { in CreateAndInitAttribute() argument
67 return InitAttributeFromValue(id, value); in CreateAndInitAttribute()
70 bool AttributeList::InitAttributeFromValue(int id, const ByteString& value) { in InitAttributeFromValue() argument
74 return attribute->InitFromValue(value); in InitAttributeFromValue()
102 ByteString value; in IterateAttributes() local
104 value = ByteString(ptr + NLA_HDRLEN, attribute->nla_len - NLA_HDRLEN); in IterateAttributes()
106 if (!method.Run(attribute->nla_type, value)) { in IterateAttributes()
137 bool AttributeList::GetU8AttributeValue(int id, uint8_t* value) const { in GetU8AttributeValue()
141 return attribute->GetU8Value(value); in GetU8AttributeValue()
154 bool AttributeList::SetU8AttributeValue(int id, uint8_t value) { in SetU8AttributeValue() argument
[all …]
/system/connectivity/dhcp_client/
Ddhcp_options_parser_unittest.cc79 uint8_t value; in TEST_F() local
82 &value)); in TEST_F()
83 EXPECT_EQ(*kFakeUInt8Option, value); in TEST_F()
88 uint16_t value; in TEST_F() local
94 &value)); in TEST_F()
95 EXPECT_EQ(target_value, value); in TEST_F()
100 uint32_t value; in TEST_F() local
106 &value)); in TEST_F()
107 EXPECT_EQ(target_value, value); in TEST_F()
112 std::vector<uint8_t> value; in TEST_F() local
[all …]
Ddhcp_options_writer.cc44 uint8_t value) { in WriteUInt8Option() argument
50 buffer->Append(ByteString(reinterpret_cast<const char*>(&value), in WriteUInt8Option()
57 uint16_t value) { in WriteUInt16Option() argument
59 uint16_t value_net = htons(value); in WriteUInt16Option()
71 uint32_t value) { in WriteUInt32Option() argument
73 uint32_t value_net = htonl(value); in WriteUInt32Option()
85 const std::vector<uint8_t>& value) { in WriteUInt8ListOption() argument
86 if (value.size() == 0) { in WriteUInt8ListOption()
91 uint8_t length = value.size() * sizeof(uint8_t); in WriteUInt8ListOption()
96 buffer->Append(ByteString(reinterpret_cast<const char*>(&value.front()), in WriteUInt8ListOption()
[all …]
Dservice.cc101 const auto& value = key_and_value.second; in ParseConfigs() local
102 if (key == kConstantInterfaceName && value.IsTypeCompatible<string>()) { in ParseConfigs()
103 interface_name_ = value.Get<string>(); in ParseConfigs()
104 } else if (key == kConstantDHCPType && value.IsTypeCompatible<int32_t>()) { in ParseConfigs()
105 type_ = static_cast<DHCP::ServiceType>(value.Get<int32_t>()); in ParseConfigs()
107 value.IsTypeCompatible<string>()) { in ParseConfigs()
108 network_id_ = value.Get<string>(); in ParseConfigs()
110 value.IsTypeCompatible<bool>()) { in ParseConfigs()
111 request_hostname_ = value.Get<bool>(); in ParseConfigs()
112 } else if (key == kConstantArpGateway && value.IsTypeCompatible<bool>()) { in ParseConfigs()
[all …]
/system/extras/simpleperf/
Dsample_tree.cpp39 SampleEntry value(ip, time, period, 0, 1, thread, map, symbol); in AddSample() local
41 if (IsFilteredOut(value)) { in AddSample()
44 return InsertSample(value); in AddSample()
61 SampleEntry value(to_ip, time, period, 0, 1, thread, to_map, to_symbol); in AddBranchSample() local
62 value.branch_from.ip = from_ip; in AddBranchSample()
63 value.branch_from.map = from_map; in AddBranchSample()
64 value.branch_from.symbol = from_symbol; in AddBranchSample()
65 value.branch_from.flags = branch_flags; in AddBranchSample()
67 if (IsFilteredOut(value)) { in AddBranchSample()
70 InsertSample(value); in AddBranchSample()
[all …]
/system/core/libcutils/
Dstr_parms.c96 static bool remove_pair(void *key, void *value, void *context) in remove_pair() argument
122 free(value); in remove_pair()
167 char *value; in str_parms_create_str() local
177 value = strdup(eq); in str_parms_create_str()
179 value = strdup(""); in str_parms_create_str()
182 value = strdup(""); in str_parms_create_str()
186 old_val = hashmapPut(str_parms->map, key, value); in str_parms_create_str()
187 RELEASE_OWNERSHIP(value); in str_parms_create_str()
214 const char *value) in str_parms_add_str() argument
230 tmp_val = strdup(value); in str_parms_add_str()
[all …]
/system/netd/server/
DInterfaceController.cpp54 const char* value) { in writeValueToPath() argument
56 return WriteStringToFile(value, path) ? 0 : -1; in writeValueToPath()
59 void setOnAllInterfaces(const char* dirname, const char* basename, const char* value) { in setOnAllInterfaces() argument
61 writeValueToPath(dirname, "default", basename, value); in setOnAllInterfaces()
74 writeValueToPath(dirname, d->d_name, basename, value); in setOnAllInterfaces()
79 void setIPv6UseOutgoingInterfaceAddrsOnly(const char *value) { in setIPv6UseOutgoingInterfaceAddrsOnly() argument
80 setOnAllInterfaces(ipv6_proc_path, "use_oif_addrs_only", value); in setIPv6UseOutgoingInterfaceAddrsOnly()
154 void InterfaceController::setAcceptRA(const char *value) { in setAcceptRA() argument
155 setOnAllInterfaces(ipv6_proc_path, "accept_ra", value); in setAcceptRA()
165 std::string value(StringPrintf("%d", tableOrOffset)); in setAcceptRARouteTable() local
[all …]

12345678910>>...28