Home
last modified time | relevance | path

Searched refs:os_version (Results 1 – 25 of 26) sorted by relevance

12

/system/core/fastboot/
Dfastboot_test.cpp27 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/
Dbootimg.h52 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/
Dkeymaster2_passthrough_context.cpp30 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()
Dkeymaster1_passthrough_context.cpp42 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()
Dsoft_keymaster_context.cpp97 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()
Dpure_soft_keymaster_context.cpp62 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()
Dsoft_keymaster_device.cpp619 if (!params_copy.GetTagValue(TAG_OS_VERSION, &request.os_version) || in configure()
/system/keymaster/include/keymaster/key_blob_utils/
Dsoftware_keyblobs.h54 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/
Dsoftware_keyblobs.cpp263 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/
Dkeymaster2_passthrough_context.h44 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;
Dkeymaster1_passthrough_context.h51 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;
Dpure_soft_keymaster_context.h52 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;
Dsoft_keymaster_context.h66 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/
Dkeymaster_context.h77 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;
Dattestation_record.h82 ASN1_INTEGER* os_version; member
127 ASN1_EXP_OPT(KM_AUTH_LIST, os_version, ASN1_INTEGER, TAG_OS_VERSION.masked_tag()),
Dandroid_keymaster_messages.h669 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/
Dkeymaster_configuration.cpp70 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()
Dandroid_keymaster.cpp45 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/
DTrustyKeymaster.cpp35 req.os_version = GetOsVersion(); in Initialize()
/system/keymaster/km_openssl/
Dattestation_record.cpp185 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/
Domaha_request_params.h64 inline std::string os_version() const { return os_version_; } in os_version() function
Domaha_request_action.cc397 XmlEncodeWithDefault(params->os_version(), "") + "\" " + "platform=\"" + in GetOsXml()
/system/keymaster/tests/
Dandroid_keymaster_messages_test.cpp516 req.os_version = 1; in TEST()
520 EXPECT_EQ(deserialized->os_version, req.os_version); in TEST()
/system/core/mkbootimg/
Dmkbootimg.py83 (args.os_version << 11) | args.os_patch_level)) # os version and patch level
/system/core/trusty/keymaster/legacy/
Dtrusty_keymaster_device.cpp147 if (!params_copy.GetTagValue(TAG_OS_VERSION, &request.os_version) || in configure()

12