/system/connectivity/shill/net/ |
H A D | netlink_attribute_unittest.cc | 43 std::string value; local 44 EXPECT_TRUE(attr.GetStringValue(&value)); 45 EXPECT_EQ("", value); 51 EXPECT_TRUE(attr.GetStringValue(&value)); 52 EXPECT_EQ("hello", value); 53 EXPECT_EQ(5, value.size()); 59 EXPECT_TRUE(attr.GetStringValue(&value)); 60 EXPECT_EQ("hello", value); 61 EXPECT_EQ(5, value.size()); 67 EXPECT_TRUE(attr.GetStringValue(&value)); [all...] |
/system/nativepower/daemon/ |
H A D | system_property_setter.cc | 28 const std::string& value) { 29 return property_set(key.c_str(), value.c_str()) == 0; 27 SetProperty(const std::string& key, const std::string& value) argument
|
H A D | system_property_setter_stub.cc | 32 const std::string& value) { 33 properties_[key] = value; 31 SetProperty(const std::string& key, const std::string& value) argument
|
/system/bt/osi/test/ |
H A D | properties_test.cpp | 30 char value[PROPERTY_VALUE_MAX] = {0}; local 31 osi_property_get("very.useful.test", value, "very_useful_value"); 32 ASSERT_STREQ(value, "very_useful_value"); 36 char value[PROPERTY_VALUE_MAX] = "nothing_interesting"; local 37 int ret = osi_property_set("very.useful.set.test", value);
|
/system/tpm/tpm_manager/common/ |
H A D | print_tpm_manager_status_proto.cc | 28 std::string GetProtoDebugString(TpmManagerStatus value) { argument 29 return GetProtoDebugStringWithIndent(value, 0); 32 std::string GetProtoDebugStringWithIndent(TpmManagerStatus value, argument 34 if (value == STATUS_SUCCESS) { 37 if (value == STATUS_UNEXPECTED_DEVICE_ERROR) { 40 if (value == STATUS_NOT_AVAILABLE) {
|
H A D | print_local_data_proto.cc | 27 std::string GetProtoDebugString(const LocalData& value) { argument 28 return GetProtoDebugStringWithIndent(value, 0); 31 std::string GetProtoDebugStringWithIndent(const LocalData& value, argument 35 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); 37 if (value.has_owner_password()) { 40 base::HexEncode(value.owner_password().data(), 41 value.owner_password().size()) 46 for (int i = 0; i < value.owner_dependency_size(); ++i) { 47 base::StringAppendF(&output, "%s", value.owner_dependency(i).c_str()); 50 if (value [all...] |
H A D | print_tpm_nvram_interface_proto.cc | 30 std::string GetProtoDebugString(const DefineNvramRequest& value) { argument 31 return GetProtoDebugStringWithIndent(value, 0); 34 std::string GetProtoDebugStringWithIndent(const DefineNvramRequest& value, argument 38 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); 40 if (value.has_index()) { 42 base::StringAppendF(&output, "%d", value.index()); 45 if (value.has_length()) { 47 base::StringAppendF(&output, "%d", value.length()); 54 std::string GetProtoDebugString(const DefineNvramReply& value) { argument 55 return GetProtoDebugStringWithIndent(value, 58 GetProtoDebugStringWithIndent(const DefineNvramReply& value, int indent_size) argument 75 GetProtoDebugString(const DestroyNvramRequest& value) argument 79 GetProtoDebugStringWithIndent(const DestroyNvramRequest& value, int indent_size) argument 94 GetProtoDebugString(const DestroyNvramReply& value) argument 98 GetProtoDebugStringWithIndent(const DestroyNvramReply& value, int indent_size) argument 115 GetProtoDebugString(const WriteNvramRequest& value) argument 119 GetProtoDebugStringWithIndent(const WriteNvramRequest& value, int indent_size) argument 141 GetProtoDebugString(const WriteNvramReply& value) argument 145 GetProtoDebugStringWithIndent(const WriteNvramReply& value, int indent_size) argument 162 GetProtoDebugString(const ReadNvramRequest& value) argument 166 GetProtoDebugStringWithIndent(const ReadNvramRequest& value, int indent_size) argument 181 GetProtoDebugString(const ReadNvramReply& value) argument 185 GetProtoDebugStringWithIndent(const ReadNvramReply& value, int indent_size) argument 209 GetProtoDebugString(const IsNvramDefinedRequest& value) argument 213 GetProtoDebugStringWithIndent(const IsNvramDefinedRequest& value, int indent_size) argument 228 GetProtoDebugString(const IsNvramDefinedReply& value) argument 232 GetProtoDebugStringWithIndent(const IsNvramDefinedReply& value, int indent_size) argument 254 GetProtoDebugString(const IsNvramLockedRequest& value) argument 258 GetProtoDebugStringWithIndent(const IsNvramLockedRequest& value, int indent_size) argument 273 GetProtoDebugString(const IsNvramLockedReply& value) argument 277 GetProtoDebugStringWithIndent(const IsNvramLockedReply& value, int indent_size) argument 299 GetProtoDebugString(const GetNvramSizeRequest& value) argument 303 GetProtoDebugStringWithIndent(const GetNvramSizeRequest& value, int indent_size) argument 318 GetProtoDebugString(const GetNvramSizeReply& value) argument 322 GetProtoDebugStringWithIndent(const GetNvramSizeReply& value, int indent_size) argument [all...] |
H A D | print_tpm_ownership_interface_proto.cc | 31 std::string GetProtoDebugString(const GetTpmStatusRequest& value) { argument 32 return GetProtoDebugStringWithIndent(value, 0); 35 std::string GetProtoDebugStringWithIndent(const GetTpmStatusRequest& value, argument 39 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); 45 std::string GetProtoDebugString(const GetTpmStatusReply& value) { argument 46 return GetProtoDebugStringWithIndent(value, 0); 49 std::string GetProtoDebugStringWithIndent(const GetTpmStatusReply& value, argument 53 base::StringPrintf("[%s] {\n", value.GetTypeName().c_str()); 55 if (value.has_status()) { 59 GetProtoDebugStringWithIndent(value 106 GetProtoDebugString(const TakeOwnershipRequest& value) argument 110 GetProtoDebugStringWithIndent(const TakeOwnershipRequest& value, int indent_size) argument 120 GetProtoDebugString(const TakeOwnershipReply& value) argument 124 GetProtoDebugStringWithIndent(const TakeOwnershipReply& value, int indent_size) argument 141 GetProtoDebugString(const RemoveOwnerDependencyRequest& value) argument 145 GetProtoDebugStringWithIndent( const RemoveOwnerDependencyRequest& value, int indent_size) argument 164 GetProtoDebugString(const RemoveOwnerDependencyReply& value) argument 168 GetProtoDebugStringWithIndent( const RemoveOwnerDependencyReply& value, int indent_size) argument [all...] |
/system/bt/osi/src/ |
H A D | properties.c | 23 int osi_property_get(const char *key, char *value, const char *default_value) { argument 25 /* For linux right now just return default value, if present */ 34 memcpy(value, default_value, len); 35 value[len] = '\0'; 38 return property_get(key, value, default_value); 42 int osi_property_set(const char *key, const char *value) { argument 46 return property_set(key, value);
|
/system/core/debuggerd/test/ |
H A D | property_fake.cpp | 26 extern "C" int property_set(const char* name, const char* value) { argument 30 g_properties[name] = value; 34 extern "C" int property_get(const char* key, char* value, const char* default_value) { argument 39 strncpy(value, default_value, PROP_VALUE_MAX-1); 41 strncpy(value, g_properties[key].c_str(), PROP_VALUE_MAX-1); 43 value[PROP_VALUE_MAX-1] = '\0'; 44 return strlen(value);
|
/system/core/include/cutils/ |
H A D | config_utils.h | 33 const char *value; member in struct:cnode 43 cnode* config_node(const char *name, const char *value); 48 /* look up a child by name and return the boolean value */ 51 /* look up a child by name and return the string value */ 55 void config_set(cnode *root, const char *name, const char *value);
|
H A D | properties.h | 29 /* System properties are *small* name value pairs managed by the 39 /* property_get: returns the length of the value which will never be 43 ** If the property read fails or returns an empty value, the default 44 ** value is used (if nonnull). 46 int property_get(const char *key, char *value, const char *default_value); 48 /* property_get_bool: returns the value of key coerced into a 49 ** boolean. If the property is not set, then the default value is returned. 60 ** conversion fails, the default value is returned. 64 /* property_get_int64: returns the value of key truncated and coerced into a 65 ** int64_t. If the property is not set, then the default value i 119 property_get(const char *key, char *value, const char *default_value) argument [all...] |
/system/core/libcutils/ |
H A D | threads.c | 58 void* value, 71 pthread_setspecific( store->tls, value ); 84 void* value, 107 TlsSetValue( store->tls, value ); 57 thread_store_set( thread_store_t* store, void* value, thread_store_destruct_t destroy) argument 83 thread_store_set( thread_store_t* store, void* value, thread_store_destruct_t destroy ) argument
|
/system/tpm/attestation/common/ |
H A D | print_common_proto.cc | 28 std::string GetProtoDebugString(KeyType value) { argument 29 return GetProtoDebugStringWithIndent(value, 0); 32 std::string GetProtoDebugStringWithIndent(KeyType value, int indent_size) { argument 33 if (value == KEY_TYPE_RSA) { 36 if (value == KEY_TYPE_ECC) { 42 std::string GetProtoDebugString(KeyUsage value) { argument 43 return GetProtoDebugStringWithIndent(value, 0); 46 std::string GetProtoDebugStringWithIndent(KeyUsage value, int indent_size) { argument 47 if (value == KEY_USAGE_SIGN) { 50 if (value 56 GetProtoDebugString(CertificateProfile value) argument 60 GetProtoDebugStringWithIndent(CertificateProfile value, int indent_size) argument 83 GetProtoDebugString(const Quote& value) argument 87 GetProtoDebugStringWithIndent(const Quote& value, int indent_size) argument 125 GetProtoDebugString(const EncryptedData& value) argument 129 GetProtoDebugStringWithIndent(const EncryptedData& value, int indent_size) argument 174 GetProtoDebugString(const SignedData& value) argument 178 GetProtoDebugStringWithIndent(const SignedData& value, int indent_size) argument 202 GetProtoDebugString(const EncryptedIdentityCredential& value) argument 206 GetProtoDebugStringWithIndent( const EncryptedIdentityCredential& value, int indent_size) argument [all...] |
H A D | print_interface_proto.cc | 30 std::string GetProtoDebugString(AttestationStatus value) { argument 31 return GetProtoDebugStringWithIndent(value, 0); 34 std::string GetProtoDebugStringWithIndent(AttestationStatus value, argument 36 if (value == STATUS_SUCCESS) { 39 if (value == STATUS_UNEXPECTED_DEVICE_ERROR) { 42 if (value == STATUS_NOT_AVAILABLE) { 45 if (value == STATUS_NOT_READY) { 48 if (value == STATUS_NOT_ALLOWED) { 51 if (value == STATUS_INVALID_PARAMETER) { 54 if (value 63 GetProtoDebugString(const CreateGoogleAttestedKeyRequest& value) argument 67 GetProtoDebugStringWithIndent( const CreateGoogleAttestedKeyRequest& value, int indent_size) argument 114 GetProtoDebugString(const CreateGoogleAttestedKeyReply& value) argument 118 GetProtoDebugStringWithIndent( const CreateGoogleAttestedKeyReply& value, int indent_size) argument 146 GetProtoDebugString(const GetKeyInfoRequest& value) argument 150 GetProtoDebugStringWithIndent(const GetKeyInfoRequest& value, int indent_size) argument 170 GetProtoDebugString(const GetKeyInfoReply& value) argument 174 GetProtoDebugStringWithIndent(const GetKeyInfoReply& value, int indent_size) argument 234 GetProtoDebugString(const GetEndorsementInfoRequest& value) argument 238 GetProtoDebugStringWithIndent( const GetEndorsementInfoRequest& value, int indent_size) argument 256 GetProtoDebugString(const GetEndorsementInfoReply& value) argument 260 GetProtoDebugStringWithIndent(const GetEndorsementInfoReply& value, int indent_size) argument 291 GetProtoDebugString(const GetAttestationKeyInfoRequest& value) argument 295 GetProtoDebugStringWithIndent( const GetAttestationKeyInfoRequest& value, int indent_size) argument 313 GetProtoDebugString(const GetAttestationKeyInfoReply& value) argument 317 GetProtoDebugStringWithIndent( const GetAttestationKeyInfoReply& value, int indent_size) argument 371 GetProtoDebugString(const ActivateAttestationKeyRequest& value) argument 375 GetProtoDebugStringWithIndent( const ActivateAttestationKeyRequest& value, int indent_size) argument 406 GetProtoDebugString(const ActivateAttestationKeyReply& value) argument 410 GetProtoDebugStringWithIndent( const ActivateAttestationKeyReply& value, int indent_size) argument 435 GetProtoDebugString(const CreateCertifiableKeyRequest& value) argument 439 GetProtoDebugStringWithIndent( const CreateCertifiableKeyRequest& value, int indent_size) argument 474 GetProtoDebugString(const CreateCertifiableKeyReply& value) argument 478 GetProtoDebugStringWithIndent( const CreateCertifiableKeyReply& value, int indent_size) argument 518 GetProtoDebugString(const DecryptRequest& value) argument 522 GetProtoDebugStringWithIndent(const DecryptRequest& value, int indent_size) argument 549 GetProtoDebugString(const DecryptReply& value) argument 553 GetProtoDebugStringWithIndent(const DecryptReply& value, int indent_size) argument 577 GetProtoDebugString(const SignRequest& value) argument 581 GetProtoDebugStringWithIndent(const SignRequest& value, int indent_size) argument 608 GetProtoDebugString(const SignReply& value) argument 612 GetProtoDebugStringWithIndent(const SignReply& value, int indent_size) argument 636 GetProtoDebugString(const RegisterKeyWithChapsTokenRequest& value) argument 640 GetProtoDebugStringWithIndent( const RegisterKeyWithChapsTokenRequest& value, int indent_size) argument 661 GetProtoDebugString(const RegisterKeyWithChapsTokenReply& value) argument 665 GetProtoDebugStringWithIndent( const RegisterKeyWithChapsTokenReply& value, int indent_size) argument [all...] |
/system/update_engine/update_manager/ |
H A D | boxed_value.cc | 40 string BoxedValue::ValuePrinter<string>(const void* value) { argument 41 const string* val = reinterpret_cast<const string*>(value); 46 string BoxedValue::ValuePrinter<int>(const void* value) { argument 47 const int* val = reinterpret_cast<const int*>(value); 52 string BoxedValue::ValuePrinter<unsigned int>(const void* value) { argument 53 const unsigned int* val = reinterpret_cast<const unsigned int*>(value); 58 string BoxedValue::ValuePrinter<int64_t>(const void* value) { argument 59 const int64_t* val = reinterpret_cast<const int64_t*>(value); 64 string BoxedValue::ValuePrinter<uint64_t>(const void* value) { argument 66 reinterpret_cast<const uint64_t*>(value); 71 ValuePrinter(const void* value) argument 77 ValuePrinter(const void* value) argument 83 ValuePrinter(const void* value) argument 89 ValuePrinter(const void* value) argument 114 ValuePrinter(const void* value) argument 120 ValuePrinter(const void* value) argument 134 ValuePrinter(const void* value) argument 152 ValuePrinter(const void* value) argument 179 ValuePrinter(const void* value) argument [all...] |
/system/weaved/common/ |
H A D | binder_utils.h | 47 inline std::string ToString(const android::String16& value) { argument 48 return android::String8{value}.string(); 52 inline android::String16 ToString16(const std::string& value) { argument 53 return android::String16{value.c_str()}; 57 android::String16 ToString16(const base::Value& value);
|
/system/bt/btif/src/ |
H A D | btif_config_transcode.cpp | 55 const char *value = k->GetText(); local 56 if (section && key && value) 57 config_set_string(config, section, key, value);
|
/system/connectivity/shill/ |
H A D | geolocation_info.cc | 32 const string& value) { 33 properties_[key] = value; 31 AddField(const string& key, const string& value) argument
|
/system/connectivity/shill/shims/ |
H A D | environment_unittest.cc | 46 string value; local 47 EXPECT_TRUE(environment_->GetVariable(kVarName, &value)) << kVarValues[i]; 48 EXPECT_EQ(kVarValues[i], value);
|
/system/connectivity/shill/test-rpc-proxy/ |
H A D | proxy_rpc_out_data_types.cc | 37 XmlRpc::XmlRpcValue value; local 38 value["discovery_time"] = discovery_time_; 39 value["association_time"] = association_time_; 40 value["configuration_time"] = configuration_time_; 41 value["failure_reason"] = failure_reason_; 42 value["success"] = success_; 43 value[kXmlRpcStructTypeKey] = "AssociationResult"; 44 return value;
|
/system/connectivity/shill/test-scripts/ |
H A D | configure-service | 8 print "Usage: %s <GUID> [<property> <value>]" % (sys.argv[0]) 19 value = argv[1] variable 21 params[property_key] = int(value) 24 params[property_key] = dbus.Boolean(value.lower() in ("true", "1")) 26 params[property_key] = value
|
H A D | get-service | 8 print "Usage: %s <GUID> [<property> <value>]" % (sys.argv[0]) 19 value = argv[1] variable 21 params[property_key] = int(value) 24 params[property_key] = dbus.Boolean(value.lower() in ("true", "1")) 26 params[property_key] = value
|
/system/core/libcutils/arch-mips/ |
H A D | android_memset.c | 36 void android_memset16(uint16_t* dst, uint16_t value, size_t size) argument 41 *dst++ = value; 47 *dst++ = value; 52 uint32_t value32 = (((uint32_t)value) << 16) | ((uint32_t)value); 55 dst[size-1] = value; /* fill unpaired last elem */ 63 void android_memset32(uint32_t* dst, uint32_t value, size_t size) argument 68 *dst++ = value; 74 *dst++ = value; 79 uint64_t value64 = (((uint64_t)value) << 3 [all...] |
/system/core/metricsd/uploader/ |
H A D | metrics_hashes.cc | 27 // Converts the 8-byte prefix of an MD5 hash into a uint64 value. 29 uint64_t value; local 30 DCHECK_GE(hash.size(), sizeof(value)); 31 memcpy(&value, hash.data(), sizeof(value)); 32 return base::HostToNet64(value);
|