/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 …]
|
/system/core/mkbootimg/include/bootimg/ |
D | bootimg.h | 52 uint32_t os_version; member 56 os_version &= ((1 << 11) - 1); in SetOsVersion() 57 os_version |= (((major & 0x7f) << 25) | ((minor & 0x7f) << 18) | ((patch & 0x7f) << 11)); in SetOsVersion() 61 os_version &= ~((1 << 11) - 1); in SetOsPatchLevel() 62 os_version |= (((year - 2000) & 0x7f) << 4) | ((month & 0xf) << 0); in SetOsPatchLevel()
|
/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()
|
D | soft_keymaster_device.cpp | 619 if (!params_copy.GetTagValue(TAG_OS_VERSION, &request.os_version) || in configure()
|
/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 297 sw_enforced->push_back(TAG_OS_VERSION, os_version); in SetKeyBlobAuthorizations() 305 const uint32_t os_version, const uint32_t os_patchlevel, in UpgradeSoftKeyBlob() argument 310 if (os_version == 0) { in UpgradeSoftKeyBlob() 318 key->sw_enforced()[key_os_version_pos].integer = os_version; in UpgradeSoftKeyBlob() 324 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 | 52 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override; 53 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 | 82 ASN1_INTEGER* os_version; member 127 ASN1_EXP_OPT(KM_AUTH_LIST, os_version, ASN1_INTEGER, TAG_OS_VERSION.masked_tag()),
|
D | android_keymaster_messages.h | 669 size_t SerializedSize() const override { return sizeof(os_version) + sizeof(os_patchlevel); } in SerializedSize() 671 buf = append_uint32_to_buf(buf, end, os_version); in Serialize() 675 return copy_uint32_from_buf(buf_ptr, end, &os_version) && in Deserialize() 679 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() 466 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 | 185 integer_ptr = &record->os_version; in build_auth_list() 655 if (record->os_version && in extract_auth_list() 656 !auth_list->push_back(TAG_OS_VERSION, ASN1_INTEGER_get(record->os_version))) in extract_auth_list()
|
/system/update_engine/ |
D | omaha_request_params.h | 64 inline std::string os_version() const { return os_version_; } in os_version() function
|
D | omaha_request_action.cc | 397 XmlEncodeWithDefault(params->os_version(), "") + "\" " + "platform=\"" + in GetOsXml()
|
/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/core/mkbootimg/ |
D | mkbootimg.py | 83 (args.os_version << 11) | args.os_patch_level)) # os version and patch level
|
/system/core/trusty/keymaster/legacy/ |
D | trusty_keymaster_device.cpp | 147 if (!params_copy.GetTagValue(TAG_OS_VERSION, &request.os_version) || in configure()
|