/system/chre/apps/chqts/src/shared/ |
H A D | nano_endian.h | 56 static inline T hostToLittleEndian(T value) { argument 58 swapBytes(reinterpret_cast<uint8_t*>(&value), sizeof(T)); 60 return value; 64 static inline T littleEndianToHost(T value) { argument 67 return hostToLittleEndian(value);
|
H A D | nano_endian_le_test.cc | 37 uint32_t value; local 38 ::memcpy(&value, kLittleEndianRepresentation, sizeof(value)); 40 value = nanoapp_testing::littleEndianToHost(value); 41 EXPECT_EQ(0, ::memcmp(&value, kLittleEndianRepresentation, sizeof(value))); 45 uint32_t value; local 46 ::memcpy(&value, kLittleEndianRepresentation, sizeof(value)); [all...] |
H A D | nano_endian_be_test.cc | 39 uint32_t value; local 40 ::memcpy(&value, kLittleEndianRepresentation, sizeof(value)); 42 value = nanoapp_testing::littleEndianToHost(value); 43 EXPECT_EQ(0, ::memcmp(&value, kBigEndianRepresentation, sizeof(value))); 47 uint32_t value; local 48 ::memcpy(&value, kBigEndianRepresentation, sizeof(value)); [all...] |
H A D | nano_endian_test.cc | 84 uint32_t value; local 85 ::memcpy(&value, kLittleEndianRepresentation, sizeof(value)); 87 value = nanoapp_testing::littleEndianToHost(value); 88 EXPECT_EQ(kValue, value); 92 uint32_t value = kValue; local 93 value = nanoapp_testing::hostToLittleEndian(value); 95 const uint8_t *bytes = reinterpret_cast<uint8_t*>(&value); [all...] |
/system/core/libunwindstack/tests/ |
H A D | MemoryLocalTest.cpp | 67 uint64_t value; local 68 ASSERT_FALSE(local.ReadFully(reinterpret_cast<uint64_t>(&value), dst.data(), SIZE_MAX));
|
H A D | MemoryFake.cpp | 29 auto value = data_.find(addr); local 30 if (value != data_.end()) { 31 value->second = src[i]; 41 auto value = data_.find(addr); local 42 if (value == data_.end()) { 45 dst[i] = value->second;
|
/system/bt/osi/test/ |
H A D | properties_test.cc | 28 char value[PROPERTY_VALUE_MAX] = {0}; local 29 osi_property_get("very.useful.test", value, "very_useful_value"); 30 ASSERT_STREQ(value, "very_useful_value"); 34 char value[PROPERTY_VALUE_MAX] = "nothing_interesting"; local 35 int ret = osi_property_set("very.useful.set.test", value); 44 int32_t value = 42; local 45 int32_t rvalue = osi_property_get_int32("very.useful.test", value); 46 ASSERT_EQ(rvalue, value); 50 char value[PROPERTY_VALUE_MAX] = "42"; local 51 int ret = osi_property_set("very.useful.set.test", value); [all...] |
/system/bt/packet/base/ |
H A D | packet_builder.cc | 31 size_t octets, uint64_t value) { 35 pkt->data_->push_back(value & 0xff); 37 value = value >> 8; 30 AddPayloadOctets(const std::shared_ptr<Packet>& pkt, size_t octets, uint64_t value) argument
|
H A D | packet_builder.h | 35 bool AddPayloadOctets1(const std::shared_ptr<Packet>& pkt, uint8_t value) { argument 36 return AddPayloadOctets(pkt, 1, value); 38 bool AddPayloadOctets2(const std::shared_ptr<Packet>& pkt, uint16_t value) { argument 39 return AddPayloadOctets(pkt, 2, value); 41 bool AddPayloadOctets3(const std::shared_ptr<Packet>& pkt, uint32_t value) { argument 42 return AddPayloadOctets(pkt, 3, value); 44 bool AddPayloadOctets4(const std::shared_ptr<Packet>& pkt, uint32_t value) { argument 45 return AddPayloadOctets(pkt, 4, value); 47 bool AddPayloadOctets6(const std::shared_ptr<Packet>& pkt, uint64_t value) { argument 48 return AddPayloadOctets(pkt, 6, value); 50 AddPayloadOctets8(const std::shared_ptr<Packet>& pkt, uint64_t value) argument [all...] |
/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);
|
/system/core/libcutils/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);
|
/system/core/libcutils/include_vndk/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);
|
/system/core/libcutils/ |
H A D | threads.cpp | 60 void* value, 73 pthread_setspecific( store->tls, value ); 86 void* value, 109 TlsSetValue( store->tls, value ); 59 thread_store_set( thread_store_t* store, void* value, thread_store_destruct_t destroy) argument 85 thread_store_set( thread_store_t* store, void* value, thread_store_destruct_t ) 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 127 GetProtoDebugString(const EncryptedData& value) argument 131 GetProtoDebugStringWithIndent(const EncryptedData& value, int indent_size) argument 179 GetProtoDebugString(const SignedData& value) argument 183 GetProtoDebugStringWithIndent(const SignedData& value, int indent_size) argument 207 GetProtoDebugString(const EncryptedIdentityCredential& value) argument 211 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 115 GetProtoDebugString(const CreateGoogleAttestedKeyReply& value) argument 119 GetProtoDebugStringWithIndent( const CreateGoogleAttestedKeyReply& value, int indent_size) argument 147 GetProtoDebugString(const GetKeyInfoRequest& value) argument 151 GetProtoDebugStringWithIndent(const GetKeyInfoRequest& value, int indent_size) argument 171 GetProtoDebugString(const GetKeyInfoReply& value) argument 175 GetProtoDebugStringWithIndent(const GetKeyInfoReply& value, int indent_size) argument 238 GetProtoDebugString(const GetEndorsementInfoRequest& value) argument 242 GetProtoDebugStringWithIndent( const GetEndorsementInfoRequest& value, int indent_size) argument 260 GetProtoDebugString(const GetEndorsementInfoReply& value) argument 264 GetProtoDebugStringWithIndent(const GetEndorsementInfoReply& value, int indent_size) argument 297 GetProtoDebugString(const GetAttestationKeyInfoRequest& value) argument 301 GetProtoDebugStringWithIndent( const GetAttestationKeyInfoRequest& value, int indent_size) argument 319 GetProtoDebugString(const GetAttestationKeyInfoReply& value) argument 323 GetProtoDebugStringWithIndent( const GetAttestationKeyInfoReply& value, int indent_size) argument 379 GetProtoDebugString(const ActivateAttestationKeyRequest& value) argument 383 GetProtoDebugStringWithIndent( const ActivateAttestationKeyRequest& value, int indent_size) argument 415 GetProtoDebugString(const ActivateAttestationKeyReply& value) argument 419 GetProtoDebugStringWithIndent( const ActivateAttestationKeyReply& value, int indent_size) argument 445 GetProtoDebugString(const CreateCertifiableKeyRequest& value) argument 449 GetProtoDebugStringWithIndent( const CreateCertifiableKeyRequest& value, int indent_size) argument 484 GetProtoDebugString(const CreateCertifiableKeyReply& value) argument 488 GetProtoDebugStringWithIndent( const CreateCertifiableKeyReply& value, int indent_size) argument 530 GetProtoDebugString(const DecryptRequest& value) argument 534 GetProtoDebugStringWithIndent(const DecryptRequest& value, int indent_size) argument 562 GetProtoDebugString(const DecryptReply& value) argument 566 GetProtoDebugStringWithIndent(const DecryptReply& value, int indent_size) argument 591 GetProtoDebugString(const SignRequest& value) argument 595 GetProtoDebugStringWithIndent(const SignRequest& value, int indent_size) argument 623 GetProtoDebugString(const SignReply& value) argument 627 GetProtoDebugStringWithIndent(const SignReply& value, int indent_size) argument 651 GetProtoDebugString(const RegisterKeyWithChapsTokenRequest& value) argument 655 GetProtoDebugStringWithIndent( const RegisterKeyWithChapsTokenRequest& value, int indent_size) argument 676 GetProtoDebugString(const RegisterKeyWithChapsTokenReply& value) argument 680 GetProtoDebugStringWithIndent( const RegisterKeyWithChapsTokenReply& value, int indent_size) argument [all...] |
/system/tpm/tpm_manager/common/ |
H A D | print_tpm_manager_proto.cc | 16 std::string GetProtoDebugString(TpmManagerStatus value) { argument 17 return GetProtoDebugStringWithIndent(value, 0); 20 std::string GetProtoDebugStringWithIndent(TpmManagerStatus value, argument 22 if (value == STATUS_SUCCESS) { 25 if (value == STATUS_DEVICE_ERROR) { 28 if (value == STATUS_NOT_AVAILABLE) { 34 std::string GetProtoDebugString(NvramResult value) { argument 35 return GetProtoDebugStringWithIndent(value, 0); 38 std::string GetProtoDebugStringWithIndent(NvramResult value, int indent_size) { argument 39 if (value 69 GetProtoDebugString(NvramSpaceAttribute value) argument 73 GetProtoDebugStringWithIndent(NvramSpaceAttribute value, int indent_size) argument 108 GetProtoDebugString(NvramSpacePolicy value) argument 112 GetProtoDebugStringWithIndent(NvramSpacePolicy value, int indent_size) argument 123 GetProtoDebugString(const NvramPolicyRecord& value) argument 127 GetProtoDebugStringWithIndent(const NvramPolicyRecord& value, int indent_size) argument 172 GetProtoDebugString(const LocalData& value) argument 176 GetProtoDebugStringWithIndent(const LocalData& value, int indent_size) argument 229 GetProtoDebugString(const DefineSpaceRequest& value) argument 233 GetProtoDebugStringWithIndent(const DefineSpaceRequest& value, int indent_size) argument 278 GetProtoDebugString(const DefineSpaceReply& value) argument 282 GetProtoDebugStringWithIndent(const DefineSpaceReply& value, int indent_size) argument 299 GetProtoDebugString(const DestroySpaceRequest& value) argument 303 GetProtoDebugStringWithIndent(const DestroySpaceRequest& value, int indent_size) argument 318 GetProtoDebugString(const DestroySpaceReply& value) argument 322 GetProtoDebugStringWithIndent(const DestroySpaceReply& value, int indent_size) argument 339 GetProtoDebugString(const WriteSpaceRequest& value) argument 343 GetProtoDebugStringWithIndent(const WriteSpaceRequest& value, int indent_size) argument 379 GetProtoDebugString(const WriteSpaceReply& value) argument 383 GetProtoDebugStringWithIndent(const WriteSpaceReply& value, int indent_size) argument 400 GetProtoDebugString(const ReadSpaceRequest& value) argument 404 GetProtoDebugStringWithIndent(const ReadSpaceRequest& value, int indent_size) argument 433 GetProtoDebugString(const ReadSpaceReply& value) argument 437 GetProtoDebugStringWithIndent(const ReadSpaceReply& value, int indent_size) argument 461 GetProtoDebugString(const LockSpaceRequest& value) argument 465 GetProtoDebugStringWithIndent(const LockSpaceRequest& value, int indent_size) argument 504 GetProtoDebugString(const LockSpaceReply& value) argument 508 GetProtoDebugStringWithIndent(const LockSpaceReply& value, int indent_size) argument 525 GetProtoDebugString(const ListSpacesRequest& value) argument 529 GetProtoDebugStringWithIndent(const ListSpacesRequest& value, int indent_size) argument 539 GetProtoDebugString(const ListSpacesReply& value) argument 543 GetProtoDebugStringWithIndent(const ListSpacesReply& value, int indent_size) argument 569 GetProtoDebugString(const GetSpaceInfoRequest& value) argument 573 GetProtoDebugStringWithIndent(const GetSpaceInfoRequest& value, int indent_size) argument 588 GetProtoDebugString(const GetSpaceInfoReply& value) argument 592 GetProtoDebugStringWithIndent(const GetSpaceInfoReply& value, int indent_size) argument 643 GetProtoDebugString(const GetTpmStatusRequest& value) argument 647 GetProtoDebugStringWithIndent(const GetTpmStatusRequest& value, int indent_size) argument 657 GetProtoDebugString(const GetTpmStatusReply& value) argument 661 GetProtoDebugStringWithIndent(const GetTpmStatusReply& value, int indent_size) argument 723 GetProtoDebugString(const TakeOwnershipRequest& value) argument 727 GetProtoDebugStringWithIndent(const TakeOwnershipRequest& value, int indent_size) argument 737 GetProtoDebugString(const TakeOwnershipReply& value) argument 741 GetProtoDebugStringWithIndent(const TakeOwnershipReply& value, int indent_size) argument 758 GetProtoDebugString(const RemoveOwnerDependencyRequest& value) argument 762 GetProtoDebugStringWithIndent( const RemoveOwnerDependencyRequest& value, int indent_size) argument 781 GetProtoDebugString(const RemoveOwnerDependencyReply& value) argument 785 GetProtoDebugStringWithIndent( const RemoveOwnerDependencyReply& value, int indent_size) argument [all...] |
/system/update_engine/update_manager/ |
H A D | boxed_value.cc | 44 string BoxedValue::ValuePrinter<string>(const void* value) { argument 45 const string* val = reinterpret_cast<const string*>(value); 50 string BoxedValue::ValuePrinter<int>(const void* value) { argument 51 const int* val = reinterpret_cast<const int*>(value); 56 string BoxedValue::ValuePrinter<unsigned int>(const void* value) { argument 57 const unsigned int* val = reinterpret_cast<const unsigned int*>(value); 62 string BoxedValue::ValuePrinter<int64_t>(const void* value) { argument 63 const int64_t* val = reinterpret_cast<const int64_t*>(value); 68 string BoxedValue::ValuePrinter<uint64_t>(const void* value) { argument 70 reinterpret_cast<const uint64_t*>(value); 75 ValuePrinter(const void* value) argument 81 ValuePrinter(const void* value) argument 87 ValuePrinter(const void* value) argument 93 ValuePrinter(const void* value) argument 99 ValuePrinter(const void* value) argument 105 ValuePrinter(const void* value) argument 119 ValuePrinter(const void* value) argument 137 ValuePrinter(const void* value) argument 164 ValuePrinter(const void* value) argument 180 ValuePrinter(const void* value) argument [all...] |
/system/bt/btif/src/ |
H A D | btif_config_transcode.cc | 55 const char* value = k->GetText(); local 56 if (section && key && value) 57 config_set_string(config.get(), section, key, value);
|
/system/bt/osi/include/ |
H A D | config.h | 9 // - Key/value pairs that are not within a section are assumed to be under 13 // - Empty sections with no key/value pairs will be treated as if they do 24 // The default section name to use if a key/value pair is not defined within 30 std::string value; member in struct:entry_t 60 // the section has no key/value pairs in it, this function will return false. 68 // Returns the integral value for a given |key| in |section|. If |section| 69 // or |key| do not exist, or the value cannot be fully converted to an integer, 74 // Returns the uint64_t value for a given |key| in |section|. If |section| 75 // or |key| do not exist, or the value cannot be fully converted to an integer, 80 // Returns the boolean value fo [all...] |
/system/bt/osi/src/ |
H A D | properties.cc | 27 #error "PROPERTY_VALUE_MAX from osi/include/properties.h != the Android value" 31 int osi_property_get(const char* key, char* value, const char* default_value) { argument 33 /* For linux right now just return default value, if present */ 40 memcpy(value, default_value, len); 41 value[len] = '\0'; 44 return property_get(key, value, default_value); 48 int osi_property_set(const char* key, const char* value) { argument 52 return property_set(key, value);
|
/system/bt/service/common/android/bluetooth/ |
H A D | advertise_settings.cc | 39 int32_t value; local 40 status_t status = parcel->readInt32(&value); 43 mode_ = static_cast<AdvertiseSettings::Mode>(value); 45 status = parcel->readInt32(&value); 48 tx_power_level_ = static_cast<AdvertiseSettings::TxPowerLevel>(value); 50 status = parcel->readInt32(&value); 53 connectable_ = static_cast<bool>(value); 55 status = parcel->readInt32(&value); 58 timeout_ = ::base::TimeDelta::FromMilliseconds(value);
|
H A D | scan_settings.cc | 51 int value; local 52 status_t status = parcel->readInt32(&value); 54 mode_ = static_cast<ScanSettings::Mode>(value); 56 status = parcel->readInt32(&value); 58 callback_type_ = static_cast<ScanSettings::CallbackType>(value); 60 status = parcel->readInt32(&value); 62 result_type_ = static_cast<ScanSettings::ResultType>(value); 68 status = parcel->readInt32(&value); 70 match_mode_ = static_cast<ScanSettings::MatchMode>(value); 72 status = parcel->readInt32(&value); [all...] |
/system/core/base/ |
H A D | properties_test.cpp | 48 // keep the default value (like cutils' property_get did). 54 static void CheckGetBoolProperty(bool expected, const std::string& value, bool default_value) { argument 55 android::base::SetProperty("debug.libbase.property_test", value.c_str()); 87 // Default value. 107 // Default value.
|
/system/core/init/ |
H A D | property_type.cpp | 31 bool CheckType(const std::string& type_string, const std::string& value) { argument 42 return value == "true" || value == "false" || value == "1" || value == "0"; 46 return ParseInt(value, &parsed); 50 if (value.empty() || value.front() == '-') { 53 return ParseUint(value, &parsed); 57 return ParseDouble(value [all...] |
/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...] |