/system/tools/mkbootimg/include/bootimg/ |
D | bootimg.h | 83 uint32_t os_version; member 87 os_version &= ((1 << 11) - 1); in SetOsVersion() 88 os_version |= (((major & 0x7f) << 25) | ((minor & 0x7f) << 18) | ((patch & 0x7f) << 11)); in SetOsVersion() 92 os_version &= ~((1 << 11) - 1); in SetOsPatchLevel() 93 os_version |= (((year - 2000) & 0x7f) << 4) | ((month & 0xf) << 0); in SetOsPatchLevel() 253 uint32_t os_version; member 257 os_version &= ((1 << 11) - 1); in SetOsVersion() 258 os_version |= (((major & 0x7f) << 25) | ((minor & 0x7f) << 18) | ((patch & 0x7f) << 11)); in SetOsVersion() 262 os_version &= ~((1 << 11) - 1); in SetOsPatchLevel() 263 os_version |= (((year - 2000) & 0x7f) << 4) | ((month & 0xf) << 0); in SetOsPatchLevel()
|
/system/core/fastboot/ |
D | fastboot_test.cpp | 27 ASSERT_EQ(2018U, 2000U + ((hdr.os_version >> 4) & 0x7f)); in TEST() 28 ASSERT_EQ(1U, ((hdr.os_version >> 0) & 0xf)); in TEST() 42 ASSERT_EQ(1U, ((hdr.os_version >> 25) & 0x7f)); in TEST() 43 ASSERT_EQ(2U, ((hdr.os_version >> 18) & 0x7f)); in TEST() 44 ASSERT_EQ(3U, ((hdr.os_version >> 11) & 0x7f)); in TEST() 47 ASSERT_EQ(1U, ((hdr.os_version >> 25) & 0x7f)); in TEST() 48 ASSERT_EQ(2U, ((hdr.os_version >> 18) & 0x7f)); in TEST() 49 ASSERT_EQ(0U, ((hdr.os_version >> 11) & 0x7f)); in TEST() 52 ASSERT_EQ(1U, ((hdr.os_version >> 25) & 0x7f)); in TEST() 53 ASSERT_EQ(0U, ((hdr.os_version >> 18) & 0x7f)); in TEST() [all …]
|
D | bootimg_utils.cpp | 66 hdr->os_version = src.os_version; in mkbootimg_v3()
|
/system/keymaster/contexts/ |
D | keymaster2_passthrough_context.cpp | 30 keymaster_error_t Keymaster2PassthroughContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument 32 os_version_ = os_version; in SetSystemVersion() 37 void Keymaster2PassthroughContext::GetSystemVersion(uint32_t* os_version, in GetSystemVersion() argument 39 if (os_version) *os_version = os_version_; in GetSystemVersion()
|
D | keymaster1_passthrough_context.cpp | 42 keymaster_error_t Keymaster1PassthroughContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument 44 os_version_ = os_version; in SetSystemVersion() 49 void Keymaster1PassthroughContext::GetSystemVersion(uint32_t* os_version, in GetSystemVersion() argument 51 if (os_version) *os_version = os_version_; in GetSystemVersion()
|
D | soft_keymaster_context.cpp | 97 keymaster_error_t SoftKeymasterContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument 99 os_version_ = os_version; in SetSystemVersion() 104 void SoftKeymasterContext::GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const { in GetSystemVersion() argument 105 *os_version = os_version_; in GetSystemVersion() 156 keymaster_key_origin_t origin, uint32_t os_version, in SetAuthorizations() argument 190 sw_enforced->push_back(TAG_OS_VERSION, os_version); in SetAuthorizations()
|
D | pure_soft_keymaster_context.cpp | 62 keymaster_error_t PureSoftKeymasterContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument 64 os_version_ = os_version; in SetSystemVersion() 69 void PureSoftKeymasterContext::GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) cons… in GetSystemVersion() argument 70 *os_version = os_version_; in GetSystemVersion()
|
/system/tools/mkbootimg/ |
D | unpack_bootimg.py | 52 def format_os_version(os_version): argument 53 a = os_version >> 14 54 b = os_version >> 7 & ((1<<7) - 1) 55 c = os_version & ((1<<7) - 1) 67 os_version = value >> 11 69 print('os version: %s' % format_os_version(os_version))
|
D | mkbootimg.py | 75 (args.os_version << 11) | args.os_patch_level, # os version and patch level 130 (args.os_version << 11) | args.os_patch_level)) # os version and patch level
|
/system/keymaster/include/keymaster/key_blob_utils/ |
D | software_keyblobs.h | 54 keymaster_key_origin_t origin, uint32_t os_version, 58 const uint32_t os_version, const uint32_t os_patchlevel,
|
/system/keymaster/key_blob_utils/ |
D | software_keyblobs.cpp | 263 keymaster_key_origin_t origin, uint32_t os_version, in SetKeyBlobAuthorizations() argument 298 pseudo_hw_enforced->push_back(TAG_OS_VERSION, os_version); in SetKeyBlobAuthorizations() 311 const uint32_t os_version, const uint32_t os_patchlevel, in UpgradeSoftKeyBlob() argument 316 if (os_version == 0) { in UpgradeSoftKeyBlob() 324 key->sw_enforced()[key_os_version_pos].integer = os_version; in UpgradeSoftKeyBlob() 330 if (!UpgradeIntegerTag(TAG_OS_VERSION, os_version, &key->sw_enforced(), &set_changed) || in UpgradeSoftKeyBlob()
|
/system/keymaster/include/keymaster/contexts/ |
D | keymaster2_passthrough_context.h | 44 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override; 51 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
|
D | keymaster1_passthrough_context.h | 51 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override; 58 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
|
D | pure_soft_keymaster_context.h | 54 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override; 55 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
|
D | soft_keymaster_context.h | 66 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override; 67 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
|
/system/keymaster/include/keymaster/ |
D | keymaster_context.h | 77 virtual keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) = 0; 84 virtual void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const = 0;
|
D | attestation_record.h | 87 ASN1_INTEGER* os_version; member 137 ASN1_EXP_OPT(KM_AUTH_LIST, os_version, ASN1_INTEGER, TAG_OS_VERSION.masked_tag()),
|
D | android_keymaster_messages.h | 675 size_t SerializedSize() const override { return sizeof(os_version) + sizeof(os_patchlevel); } in SerializedSize() 677 buf = append_uint32_to_buf(buf, end, os_version); in Serialize() 681 return copy_uint32_from_buf(buf_ptr, end, &os_version) && in Deserialize() 685 uint32_t os_version; member
|
/system/keymaster/android_keymaster/ |
D | keymaster_configuration.cpp | 70 keymaster_error_t ConfigureDevice(keymaster2_device_t* dev, uint32_t os_version, in ConfigureDevice() argument 73 .Authorization(keymaster::TAG_OS_VERSION, os_version) in ConfigureDevice()
|
D | android_keymaster.cpp | 45 uint32_t os_version; in CheckVersionInfo() local 47 context.GetSystemVersion(&os_version, &os_patchlevel); in CheckVersionInfo() 470 response->error = context_->SetSystemVersion(request.os_version, request.os_patchlevel); in Configure()
|
/system/core/trusty/keymaster/ |
D | TrustyKeymaster.cpp | 35 req.os_version = GetOsVersion(); in Initialize()
|
/system/keymaster/km_openssl/ |
D | attestation_record.cpp | 188 integer_ptr = &record->os_version; in build_auth_list() 674 if (record->os_version && in extract_auth_list() 675 !auth_list->push_back(TAG_OS_VERSION, ASN1_INTEGER_get(record->os_version))) in extract_auth_list()
|
/system/keymaster/tests/ |
D | android_keymaster_messages_test.cpp | 516 req.os_version = 1; in TEST() 520 EXPECT_EQ(deserialized->os_version, req.os_version); in TEST()
|
/system/update_engine/ |
D | omaha_request_params.h | 85 inline std::string os_version() const { return os_version_; } in os_version() function
|
D | omaha_request_builder_xml.cc | 372 XmlEncodeWithDefault(params_->os_version()) + "\" " + "platform=\"" + in GetOs()
|