Home
last modified time | relevance | path

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

12

/system/tools/mkbootimg/include/bootimg/
Dbootimg.h90 uint32_t os_version; member
94 os_version &= ((1 << 11) - 1); in SetOsVersion()
95 os_version |= (((major & 0x7f) << 25) | ((minor & 0x7f) << 18) | ((patch & 0x7f) << 11)); in SetOsVersion()
99 os_version &= ~((1 << 11) - 1); in SetOsPatchLevel()
100 os_version |= (((year - 2000) & 0x7f) << 4) | ((month & 0xf) << 0); in SetOsPatchLevel()
261 uint32_t os_version; member
265 os_version &= ((1 << 11) - 1); in SetOsVersion()
266 os_version |= (((major & 0x7f) << 25) | ((minor & 0x7f) << 18) | ((patch & 0x7f) << 11)); in SetOsVersion()
270 os_version &= ~((1 << 11) - 1); in SetOsPatchLevel()
271 os_version |= (((year - 2000) & 0x7f) << 4) | ((month & 0xf) << 0); in SetOsPatchLevel()
/system/keymint/hal/src/
Denv.rs107 let os_version = (major * 10000) + (minor * 100) + sub; in populate_hal_info_from() localVariable
110 os_version, in populate_hal_info_from()
140 os_version: 120000, in test_hal_info()
150 os_version: 120500, in test_hal_info()
160 os_version: 120507, in test_hal_info()
166 for (os_version, os_patch, vendor_patch, want) in tests { in test_hal_info()
167 let got = populate_hal_info_from(os_version, os_patch, vendor_patch).unwrap(); in test_hal_info()
171 os_version, os_patch, vendor_patch in test_hal_info()
189 for (os_version, os_patch, vendor_patch, want_err) in tests { in test_invalid_hal_info()
190 let result = populate_hal_info_from(os_version, os_patch, vendor_patch); in test_invalid_hal_info()
[all …]
/system/core/fastboot/
Dfastboot_test.cpp28 ASSERT_EQ(2018U, 2000U + ((hdr.os_version >> 4) & 0x7f)); in TEST()
29 ASSERT_EQ(1U, ((hdr.os_version >> 0) & 0xf)); in TEST()
43 ASSERT_EQ(1U, ((hdr.os_version >> 25) & 0x7f)); in TEST()
44 ASSERT_EQ(2U, ((hdr.os_version >> 18) & 0x7f)); in TEST()
45 ASSERT_EQ(3U, ((hdr.os_version >> 11) & 0x7f)); in TEST()
48 ASSERT_EQ(1U, ((hdr.os_version >> 25) & 0x7f)); in TEST()
49 ASSERT_EQ(2U, ((hdr.os_version >> 18) & 0x7f)); in TEST()
50 ASSERT_EQ(0U, ((hdr.os_version >> 11) & 0x7f)); in TEST()
53 ASSERT_EQ(1U, ((hdr.os_version >> 25) & 0x7f)); in TEST()
54 ASSERT_EQ(0U, ((hdr.os_version >> 18) & 0x7f)); in TEST()
[all …]
Dbootimg_utils.cpp66 hdr->os_version = src.os_version; in mkbootimg_v3_and_above()
/system/keymaster/contexts/
Dkeymaster2_passthrough_context.cpp31 keymaster_error_t Keymaster2PassthroughContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument
33 os_version_ = os_version; in SetSystemVersion()
38 void Keymaster2PassthroughContext::GetSystemVersion(uint32_t* os_version, in GetSystemVersion() argument
40 if (os_version) *os_version = os_version_; in GetSystemVersion()
Dkeymaster1_passthrough_context.cpp45 keymaster_error_t Keymaster1PassthroughContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument
47 os_version_ = os_version; in SetSystemVersion()
52 void Keymaster1PassthroughContext::GetSystemVersion(uint32_t* os_version, in GetSystemVersion() argument
54 if (os_version) *os_version = os_version_; in GetSystemVersion()
Dsoft_keymaster_context.cpp85 keymaster_error_t SoftKeymasterContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument
87 os_version_ = os_version; in SetSystemVersion()
92 void SoftKeymasterContext::GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const { in GetSystemVersion() argument
93 *os_version = os_version_; in GetSystemVersion()
143 keymaster_key_origin_t origin, uint32_t os_version, in SetAuthorizations() argument
176 sw_enforced->push_back(TAG_OS_VERSION, os_version); in SetAuthorizations()
Dpure_soft_keymaster_context.cpp81 keymaster_error_t PureSoftKeymasterContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument
83 os_version_ = os_version; in SetSystemVersion()
86 pure_soft_remote_provisioning_context_->SetSystemVersion(os_version, os_patchlevel); in SetSystemVersion()
91 void PureSoftKeymasterContext::GetSystemVersion(uint32_t* os_version, in GetSystemVersion() argument
93 *os_version = os_version_; in GetSystemVersion()
Dpure_soft_remote_provisioning_context.cpp228 void PureSoftRemoteProvisioningContext::SetSystemVersion(uint32_t os_version, in SetSystemVersion() argument
230 os_version_ = os_version; in SetSystemVersion()
/system/keymaster/include/keymaster/key_blob_utils/
Dsoftware_keyblobs.h55 keymaster_key_origin_t origin, uint32_t os_version,
65 keymaster_error_t UpgradeSoftKeyBlob(const UniquePtr<Key>& key, const uint32_t os_version,
70 keymaster_error_t FullUpgradeSoftKeyBlob(const UniquePtr<Key>& key, const uint32_t os_version,
/system/keymaster/key_blob_utils/
Dsoftware_keyblobs.cpp256 keymaster_key_origin_t origin, uint32_t os_version, in SetKeyBlobAuthorizations() argument
378 pseudo_hw_enforced->push_back(TAG_OS_VERSION, os_version); in SetKeyBlobAuthorizations()
405 keymaster_error_t UpgradeSoftKeyBlob(const UniquePtr<Key>& key, const uint32_t os_version, in UpgradeSoftKeyBlob() argument
409 return FullUpgradeSoftKeyBlob(key, os_version, os_patchlevel, in UpgradeSoftKeyBlob()
415 keymaster_error_t FullUpgradeSoftKeyBlob(const UniquePtr<Key>& key, const uint32_t os_version, in FullUpgradeSoftKeyBlob() argument
423 if (os_version == 0) { in FullUpgradeSoftKeyBlob()
431 key->sw_enforced()[key_os_version_pos].integer = os_version; in FullUpgradeSoftKeyBlob()
437 if (!UpgradeIntegerTag(TAG_OS_VERSION, os_version, &key->sw_enforced(), &set_changed) || in FullUpgradeSoftKeyBlob()
/system/tools/mkbootimg/
Dunpack_bootimg.py55 def format_os_version(os_version): argument
56 if os_version == 0:
58 a = os_version >> 14
59 b = os_version >> 7 & ((1<<7) - 1)
60 c = os_version & ((1<<7) - 1)
75 os_version = os_version_patch_level >> 11
77 return (format_os_version(os_version),
137 if self.os_version:
138 args.extend(['--os_version', self.os_version])
210 info.os_version, info.os_patch_level = decode_os_version_patch_level(
Dmkbootimg.py126 args.output.write(pack('I', (args.os_version << 11) | args.os_patch_level))
224 args.output.write(pack('I', (args.os_version << 11) | args.os_patch_level))
/system/keymaster/include/keymaster/contexts/
Dkeymaster2_passthrough_context.h47 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override;
54 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
Dkeymaster1_passthrough_context.h53 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override;
60 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
Dsoft_keymaster_context.h64 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override;
65 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
Dpure_soft_keymaster_context.h59 keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) override;
60 void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const override;
Dpure_soft_remote_provisioning_context.h52 void SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel);
/system/keymaster/include/keymaster/
Dkeymaster_context.h96 virtual keymaster_error_t SetSystemVersion(uint32_t os_version, uint32_t os_patchlevel) = 0;
103 virtual void GetSystemVersion(uint32_t* os_version, uint32_t* os_patchlevel) const = 0;
/system/tools/mkbootimg/rust/
Dbootimg_priv.rs47 pub os_version: u32, field
118 unsafe { ::core::ptr::addr_of!((*ptr).os_version) as usize - ptr as usize }, in bindgen_test_layout_boot_img_hdr_v0()
120 concat!("Offset of field: ", stringify!(boot_img_hdr_v0), "::", stringify!(os_version)) in bindgen_test_layout_boot_img_hdr_v0()
257 pub os_version: u32, field
293 unsafe { ::core::ptr::addr_of!((*ptr).os_version) as usize - ptr as usize }, in bindgen_test_layout_boot_img_hdr_v3()
295 concat!("Offset of field: ", stringify!(boot_img_hdr_v3), "::", stringify!(os_version)) in bindgen_test_layout_boot_img_hdr_v3()
/system/keymaster/android_keymaster/
Dkeymaster_configuration.cpp115 keymaster_error_t ConfigureDevice(keymaster2_device_t* dev, uint32_t os_version, in ConfigureDevice() argument
118 .Authorization(keymaster::TAG_OS_VERSION, os_version) in ConfigureDevice()
/system/keymint/ta/src/
Dlib.rs283 pub os_version: u32, field
445 if hal_info.os_version == 0 { in keyblob_parse_decrypt()
456 check(v, hal_info.os_version, "OS version")?; in keyblob_parse_decrypt()
702 os_version: req.os_version, in process_req()
1157 KeyParam::OsVersion(hal_info.os_version), in add_keymint_tags()
Dkeys.rs751 if hal_info.os_version == 0 { in upgrade_key()
757 modified |= upgrade(v, hal_info.os_version, "OS version")?; in upgrade_key()
/system/keymaster/include/keymaster/km_openssl/
Dattestation_record.h109 ASN1_INTEGER* os_version; member
169 ASN1_EXP_OPT(KM_AUTH_LIST, os_version, ASN1_INTEGER, TAG_OS_VERSION.masked_tag()),
/system/core/trusty/keymaster/
DTrustyKeymaster.cpp71 req.os_version = GetOsVersion(); in Initialize()

12