Loading contexthub/aidl/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ package { aidl_interface { name: "android.hardware.contexthub", vendor_available: true, host_supported: true, srcs: ["android/hardware/contexthub/*.aidl"], stability: "vintf", backend: { Loading gnss/aidl/vts/gnss_hal_test_cases.cpp +28 −28 Original line number Diff line number Diff line Loading @@ -345,7 +345,7 @@ TEST_P(GnssHalTest, TestGnssPowerIndication) { auto powerStats1 = gnssPowerIndicationCallback->last_gnss_power_stats_; // Get a location and request another GnssPowerStats if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->location_cbq_.reset(); } else { aidl_gnss_cb_->location_cbq_.reset(); Loading Loading @@ -424,18 +424,18 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { const int kLocationsToAwait = 3; const int kRetriesToUnBlocklist = 10; if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->location_cbq_.reset(); } else { aidl_gnss_cb_->location_cbq_.reset(); } StartAndCheckLocations(kLocationsToAwait); int location_called_count = (aidl_gnss_hal_->getInterfaceVersion() == 1) int location_called_count = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->location_cbq_.calledCount() : aidl_gnss_cb_->location_cbq_.calledCount(); // Tolerate 1 less sv status to handle edge cases in reporting. int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() == 1) int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->sv_info_list_cbq_.size() : aidl_gnss_cb_->sv_info_list_cbq_.size(); EXPECT_GE(sv_info_list_cbq_size + 1, kLocationsToAwait); Loading @@ -450,7 +450,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { const int kGnssSvInfoListTimeout = 2; BlocklistedSource source_to_blocklist; if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { std::list<hidl_vec<IGnssCallback_2_1::GnssSvInfo>> sv_info_vec_list; int count = gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec_list, sv_info_list_cbq_size, kGnssSvInfoListTimeout); Loading Loading @@ -488,7 +488,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { ASSERT_TRUE(status.isOk()); // retry and ensure satellite not used if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->sv_info_list_cbq_.reset(); gnss_cb_->location_cbq_.reset(); } else { Loading @@ -499,7 +499,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { StartAndCheckLocations(kLocationsToAwait); // early exit if test is being run with insufficient signal location_called_count = (aidl_gnss_hal_->getInterfaceVersion() == 1) location_called_count = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->location_cbq_.calledCount() : aidl_gnss_cb_->location_cbq_.calledCount(); if (location_called_count == 0) { Loading @@ -508,14 +508,14 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { ASSERT_TRUE(location_called_count > 0); // Tolerate 1 less sv status to handle edge cases in reporting. sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() == 1) sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->sv_info_list_cbq_.size() : aidl_gnss_cb_->sv_info_list_cbq_.size(); EXPECT_GE(sv_info_list_cbq_size + 1, kLocationsToAwait); ALOGD("Observed %d GnssSvInfo, while awaiting %d Locations (%d received)", sv_info_list_cbq_size, kLocationsToAwait, location_called_count); for (int i = 0; i < sv_info_list_cbq_size; ++i) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { hidl_vec<IGnssCallback_2_1::GnssSvInfo> sv_info_vec; gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec, kGnssSvInfoListTimeout); for (uint32_t iSv = 0; iSv < sv_info_vec.size(); iSv++) { Loading Loading @@ -550,7 +550,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { while (!strongest_sv_is_reobserved && (unblocklist_loops_remaining-- > 0)) { StopAndClearLocations(); if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->sv_info_list_cbq_.reset(); gnss_cb_->location_cbq_.reset(); } else { Loading @@ -560,7 +560,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { StartAndCheckLocations(kLocationsToAwait); // early exit loop if test is being run with insufficient signal location_called_count = (aidl_gnss_hal_->getInterfaceVersion() == 1) location_called_count = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->location_cbq_.calledCount() : aidl_gnss_cb_->location_cbq_.calledCount(); if (location_called_count == 0) { Loading @@ -569,7 +569,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { ASSERT_TRUE(location_called_count > 0); // Tolerate 1 less sv status to handle edge cases in reporting. sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() == 1) sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->sv_info_list_cbq_.size() : aidl_gnss_cb_->sv_info_list_cbq_.size(); EXPECT_GE(sv_info_list_cbq_size + 1, kLocationsToAwait); Loading @@ -578,7 +578,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { sv_info_list_cbq_size, kLocationsToAwait, unblocklist_loops_remaining); for (int i = 0; i < sv_info_list_cbq_size; ++i) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { hidl_vec<IGnssCallback_2_1::GnssSvInfo> sv_info_vec; gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec, kGnssSvInfoListTimeout); for (uint32_t iSv = 0; iSv < sv_info_vec.size(); iSv++) { Loading Loading @@ -663,7 +663,7 @@ TEST_P(GnssHalTest, BlocklistConstellationLocationOff) { ASSERT_TRUE(status.isOk()); // retry and ensure constellation not used if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->sv_info_list_cbq_.reset(); gnss_cb_->location_cbq_.reset(); } else { Loading @@ -673,14 +673,14 @@ TEST_P(GnssHalTest, BlocklistConstellationLocationOff) { StartAndCheckLocations(kLocationsToAwait); // Tolerate 1 less sv status to handle edge cases in reporting. int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() == 1) int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->sv_info_list_cbq_.size() : aidl_gnss_cb_->sv_info_list_cbq_.size(); EXPECT_GE(sv_info_list_cbq_size + 1, kLocationsToAwait); ALOGD("Observed %d GnssSvInfo, while awaiting %d Locations", sv_info_list_cbq_size, kLocationsToAwait); for (int i = 0; i < sv_info_list_cbq_size; ++i) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { hidl_vec<IGnssCallback_2_1::GnssSvInfo> sv_info_vec; gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec, kGnssSvInfoListTimeout); for (uint32_t iSv = 0; iSv < sv_info_vec.size(); iSv++) { Loading Loading @@ -766,7 +766,7 @@ TEST_P(GnssHalTest, BlocklistConstellationLocationOn) { StopAndClearLocations(); // retry and ensure constellation not used if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->sv_info_list_cbq_.reset(); gnss_cb_->location_cbq_.reset(); } else { Loading @@ -776,14 +776,14 @@ TEST_P(GnssHalTest, BlocklistConstellationLocationOn) { StartAndCheckLocations(kLocationsToAwait); // Tolerate 1 less sv status to handle edge cases in reporting. int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() == 1) int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->sv_info_list_cbq_.size() : aidl_gnss_cb_->sv_info_list_cbq_.size(); EXPECT_GE(sv_info_list_cbq_size + 1, kLocationsToAwait); ALOGD("Observed %d GnssSvInfo, while awaiting %d Locations", sv_info_list_cbq_size, kLocationsToAwait); for (int i = 0; i < sv_info_list_cbq_size; ++i) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { hidl_vec<IGnssCallback_2_1::GnssSvInfo> sv_info_vec; gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec, kGnssSvInfoListTimeout); for (uint32_t iSv = 0; iSv < sv_info_vec.size(); iSv++) { Loading Loading @@ -821,7 +821,7 @@ TEST_P(GnssHalTest, BlocklistConstellationLocationOn) { * TestAllExtensions. */ TEST_P(GnssHalTest, TestAllExtensions) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } Loading Loading @@ -863,7 +863,7 @@ TEST_P(GnssHalTest, TestAllExtensions) { * 3. Sets SUPL server host/port. */ TEST_P(GnssHalTest, TestAGnssExtension) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } sp<IAGnss> iAGnss; Loading @@ -887,7 +887,7 @@ TEST_P(GnssHalTest, TestAGnssExtension) { * 3. Sets reference location. */ TEST_P(GnssHalTest, TestAGnssRilExtension) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } sp<IAGnssRil> iAGnssRil; Loading Loading @@ -921,7 +921,7 @@ TEST_P(GnssHalTest, TestAGnssRilExtension) { * Ensures that GnssDebug values make sense. */ TEST_P(GnssHalTest, GnssDebugValuesSanityTest) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } sp<IGnssDebug> iGnssDebug; Loading Loading @@ -970,7 +970,7 @@ TEST_P(GnssHalTest, GnssDebugValuesSanityTest) { * 3. Sets proxy apps */ TEST_P(GnssHalTest, TestGnssVisibilityControlExtension) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } sp<IGnssVisibilityControl> iGnssVisibilityControl; Loading @@ -994,7 +994,7 @@ TEST_P(GnssHalTest, TestGnssVisibilityControlExtension) { * and verifies mandatory fields are valid. */ TEST_P(GnssHalTest, TestGnssMeasurementSetCallbackWithOptions) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } const int kFirstGnssMeasurementTimeoutSeconds = 10; Loading Loading @@ -1032,7 +1032,7 @@ TEST_P(GnssHalTest, TestGnssMeasurementSetCallbackWithOptions) { * 2. Sets a GnssMeasurementCallback, waits for a measurement. */ TEST_P(GnssHalTest, TestGnssAgcInGnssMeasurement) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } const int kFirstGnssMeasurementTimeoutSeconds = 10; Loading Loading @@ -1078,7 +1078,7 @@ TEST_P(GnssHalTest, TestGnssAgcInGnssMeasurement) { TEST_P(GnssHalTest, TestGnssAntennaInfo) { const int kAntennaInfoTimeoutSeconds = 2; if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } Loading Loading @@ -1156,7 +1156,7 @@ TEST_P(GnssHalTest, TestGnssAntennaInfo) { * capability flag is set. */ TEST_P(GnssHalTest, TestGnssMeasurementCorrections) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } if (!(aidl_gnss_cb_->last_capabilities_ & Loading identity/aidl/vts/src/com/android/tests/security/identity/IdentityCredentialImplementedTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -42,14 +42,14 @@ public class IdentityCredentialImplementedTest extends BaseHostJUnit4Test { return Integer.parseInt(vendorApiLevelString); } // As of Android 13 (API level 31), Identity Credential is required at feature version 202201 // As of Android 13 (API level 32), Identity Credential is required at feature version 202201 // or newer. // @RequiresDevice @Test public void testIdentityCredentialIsImplemented() throws Exception { int vendorApiLevel = getVendorApiLevel(); assumeTrue(vendorApiLevel >= 31); assumeTrue(vendorApiLevel >= 32); final String minimumFeatureVersionNeeded = "202201"; Loading security/keymint/aidl/android/hardware/security/keymint/DeviceInfo.aidl +16 −20 Original line number Diff line number Diff line Loading @@ -30,26 +30,22 @@ parcelable DeviceInfo { * DeviceInfo is a CBOR Map structure described by the following CDDL. * * DeviceInfo = { * ? "brand" : tstr, * ? "manufacturer" : tstr, * ? "product" : tstr, * ? "model" : tstr, * ? "board" : tstr, * ? "vb_state" : "green" / "yellow" / "orange", // Taken from the AVB values * ? "bootloader_state" : "locked" / "unlocked", // Taken from the AVB values * ? "vbmeta_digest": bstr, // Taken from the AVB values * ? "os_version" : tstr, // Same as android.os.Build.VERSION.release * ? "system_patch_level" : uint, // YYYYMMDD * ? "boot_patch_level" : uint, // YYYYMMDD * ? "vendor_patch_level" : uint, // YYYYMMDD * "version" : 1, // The CDDL schema version. * "security_level" : "tee" / "strongbox" * "att_id_state": "locked" / "open", // Attestation IDs State. If "locked", this * // indicates a device's attestable IDs are * // factory-locked and immutable. If "open", * // this indicates the device is still in a * // provisionable state and the attestable IDs * // are not yet frozen. * "brand" : tstr, * "manufacturer" : tstr, * "product" : tstr, * "model" : tstr, * "device" : tstr, * "vb_state" : "green" / "yellow" / "orange", // Taken from the AVB values * "bootloader_state" : "locked" / "unlocked", // Taken from the AVB values * "vbmeta_digest": bstr, // Taken from the AVB values * "os_version" : tstr, // Same as android.os.Build.VERSION.release * "system_patch_level" : uint, // YYYYMMDD * "boot_patch_level" : uint, // YYYYMMDD * "vendor_patch_level" : uint, // YYYYMMDD * "version" : 2, // The CDDL schema version. * "security_level" : "tee" / "strongbox", * "fused": 1 / 0, // 1 if secure boot is enforced for the processor that the IRPC * // implementation is contained in. 0 otherwise. * } */ byte[] deviceInfo; Loading security/keymint/aidl/android/hardware/security/keymint/ProtectedData.aidl +0 −2 Original line number Diff line number Diff line Loading @@ -169,7 +169,6 @@ parcelable ProtectedData { * PubKeyEd25519 = { // COSE_Key * 1 : 1, // Key type : octet key pair * 3 : AlgorithmEdDSA, // Algorithm : EdDSA * 4 : 2, // Ops: Verify * -1 : 6, // Curve : Ed25519 * -2 : bstr // X coordinate, little-endian * } Loading @@ -184,7 +183,6 @@ parcelable ProtectedData { * PubKeyECDSA256 = { // COSE_Key * 1 : 2, // Key type : EC2 * 3 : AlgorithmES256, // Algorithm : ECDSA w/ SHA-256 * 4 : 2, // Ops: Verify * -1 : 1, // Curve: P256 * -2 : bstr, // X coordinate * -3 : bstr // Y coordinate Loading Loading
contexthub/aidl/Android.bp +1 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ package { aidl_interface { name: "android.hardware.contexthub", vendor_available: true, host_supported: true, srcs: ["android/hardware/contexthub/*.aidl"], stability: "vintf", backend: { Loading
gnss/aidl/vts/gnss_hal_test_cases.cpp +28 −28 Original line number Diff line number Diff line Loading @@ -345,7 +345,7 @@ TEST_P(GnssHalTest, TestGnssPowerIndication) { auto powerStats1 = gnssPowerIndicationCallback->last_gnss_power_stats_; // Get a location and request another GnssPowerStats if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->location_cbq_.reset(); } else { aidl_gnss_cb_->location_cbq_.reset(); Loading Loading @@ -424,18 +424,18 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { const int kLocationsToAwait = 3; const int kRetriesToUnBlocklist = 10; if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->location_cbq_.reset(); } else { aidl_gnss_cb_->location_cbq_.reset(); } StartAndCheckLocations(kLocationsToAwait); int location_called_count = (aidl_gnss_hal_->getInterfaceVersion() == 1) int location_called_count = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->location_cbq_.calledCount() : aidl_gnss_cb_->location_cbq_.calledCount(); // Tolerate 1 less sv status to handle edge cases in reporting. int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() == 1) int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->sv_info_list_cbq_.size() : aidl_gnss_cb_->sv_info_list_cbq_.size(); EXPECT_GE(sv_info_list_cbq_size + 1, kLocationsToAwait); Loading @@ -450,7 +450,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { const int kGnssSvInfoListTimeout = 2; BlocklistedSource source_to_blocklist; if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { std::list<hidl_vec<IGnssCallback_2_1::GnssSvInfo>> sv_info_vec_list; int count = gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec_list, sv_info_list_cbq_size, kGnssSvInfoListTimeout); Loading Loading @@ -488,7 +488,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { ASSERT_TRUE(status.isOk()); // retry and ensure satellite not used if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->sv_info_list_cbq_.reset(); gnss_cb_->location_cbq_.reset(); } else { Loading @@ -499,7 +499,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { StartAndCheckLocations(kLocationsToAwait); // early exit if test is being run with insufficient signal location_called_count = (aidl_gnss_hal_->getInterfaceVersion() == 1) location_called_count = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->location_cbq_.calledCount() : aidl_gnss_cb_->location_cbq_.calledCount(); if (location_called_count == 0) { Loading @@ -508,14 +508,14 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { ASSERT_TRUE(location_called_count > 0); // Tolerate 1 less sv status to handle edge cases in reporting. sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() == 1) sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->sv_info_list_cbq_.size() : aidl_gnss_cb_->sv_info_list_cbq_.size(); EXPECT_GE(sv_info_list_cbq_size + 1, kLocationsToAwait); ALOGD("Observed %d GnssSvInfo, while awaiting %d Locations (%d received)", sv_info_list_cbq_size, kLocationsToAwait, location_called_count); for (int i = 0; i < sv_info_list_cbq_size; ++i) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { hidl_vec<IGnssCallback_2_1::GnssSvInfo> sv_info_vec; gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec, kGnssSvInfoListTimeout); for (uint32_t iSv = 0; iSv < sv_info_vec.size(); iSv++) { Loading Loading @@ -550,7 +550,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { while (!strongest_sv_is_reobserved && (unblocklist_loops_remaining-- > 0)) { StopAndClearLocations(); if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->sv_info_list_cbq_.reset(); gnss_cb_->location_cbq_.reset(); } else { Loading @@ -560,7 +560,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { StartAndCheckLocations(kLocationsToAwait); // early exit loop if test is being run with insufficient signal location_called_count = (aidl_gnss_hal_->getInterfaceVersion() == 1) location_called_count = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->location_cbq_.calledCount() : aidl_gnss_cb_->location_cbq_.calledCount(); if (location_called_count == 0) { Loading @@ -569,7 +569,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { ASSERT_TRUE(location_called_count > 0); // Tolerate 1 less sv status to handle edge cases in reporting. sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() == 1) sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->sv_info_list_cbq_.size() : aidl_gnss_cb_->sv_info_list_cbq_.size(); EXPECT_GE(sv_info_list_cbq_size + 1, kLocationsToAwait); Loading @@ -578,7 +578,7 @@ TEST_P(GnssHalTest, BlocklistIndividualSatellites) { sv_info_list_cbq_size, kLocationsToAwait, unblocklist_loops_remaining); for (int i = 0; i < sv_info_list_cbq_size; ++i) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { hidl_vec<IGnssCallback_2_1::GnssSvInfo> sv_info_vec; gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec, kGnssSvInfoListTimeout); for (uint32_t iSv = 0; iSv < sv_info_vec.size(); iSv++) { Loading Loading @@ -663,7 +663,7 @@ TEST_P(GnssHalTest, BlocklistConstellationLocationOff) { ASSERT_TRUE(status.isOk()); // retry and ensure constellation not used if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->sv_info_list_cbq_.reset(); gnss_cb_->location_cbq_.reset(); } else { Loading @@ -673,14 +673,14 @@ TEST_P(GnssHalTest, BlocklistConstellationLocationOff) { StartAndCheckLocations(kLocationsToAwait); // Tolerate 1 less sv status to handle edge cases in reporting. int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() == 1) int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->sv_info_list_cbq_.size() : aidl_gnss_cb_->sv_info_list_cbq_.size(); EXPECT_GE(sv_info_list_cbq_size + 1, kLocationsToAwait); ALOGD("Observed %d GnssSvInfo, while awaiting %d Locations", sv_info_list_cbq_size, kLocationsToAwait); for (int i = 0; i < sv_info_list_cbq_size; ++i) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { hidl_vec<IGnssCallback_2_1::GnssSvInfo> sv_info_vec; gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec, kGnssSvInfoListTimeout); for (uint32_t iSv = 0; iSv < sv_info_vec.size(); iSv++) { Loading Loading @@ -766,7 +766,7 @@ TEST_P(GnssHalTest, BlocklistConstellationLocationOn) { StopAndClearLocations(); // retry and ensure constellation not used if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { gnss_cb_->sv_info_list_cbq_.reset(); gnss_cb_->location_cbq_.reset(); } else { Loading @@ -776,14 +776,14 @@ TEST_P(GnssHalTest, BlocklistConstellationLocationOn) { StartAndCheckLocations(kLocationsToAwait); // Tolerate 1 less sv status to handle edge cases in reporting. int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() == 1) int sv_info_list_cbq_size = (aidl_gnss_hal_->getInterfaceVersion() <= 1) ? gnss_cb_->sv_info_list_cbq_.size() : aidl_gnss_cb_->sv_info_list_cbq_.size(); EXPECT_GE(sv_info_list_cbq_size + 1, kLocationsToAwait); ALOGD("Observed %d GnssSvInfo, while awaiting %d Locations", sv_info_list_cbq_size, kLocationsToAwait); for (int i = 0; i < sv_info_list_cbq_size; ++i) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { hidl_vec<IGnssCallback_2_1::GnssSvInfo> sv_info_vec; gnss_cb_->sv_info_list_cbq_.retrieve(sv_info_vec, kGnssSvInfoListTimeout); for (uint32_t iSv = 0; iSv < sv_info_vec.size(); iSv++) { Loading Loading @@ -821,7 +821,7 @@ TEST_P(GnssHalTest, BlocklistConstellationLocationOn) { * TestAllExtensions. */ TEST_P(GnssHalTest, TestAllExtensions) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } Loading Loading @@ -863,7 +863,7 @@ TEST_P(GnssHalTest, TestAllExtensions) { * 3. Sets SUPL server host/port. */ TEST_P(GnssHalTest, TestAGnssExtension) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } sp<IAGnss> iAGnss; Loading @@ -887,7 +887,7 @@ TEST_P(GnssHalTest, TestAGnssExtension) { * 3. Sets reference location. */ TEST_P(GnssHalTest, TestAGnssRilExtension) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } sp<IAGnssRil> iAGnssRil; Loading Loading @@ -921,7 +921,7 @@ TEST_P(GnssHalTest, TestAGnssRilExtension) { * Ensures that GnssDebug values make sense. */ TEST_P(GnssHalTest, GnssDebugValuesSanityTest) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } sp<IGnssDebug> iGnssDebug; Loading Loading @@ -970,7 +970,7 @@ TEST_P(GnssHalTest, GnssDebugValuesSanityTest) { * 3. Sets proxy apps */ TEST_P(GnssHalTest, TestGnssVisibilityControlExtension) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } sp<IGnssVisibilityControl> iGnssVisibilityControl; Loading @@ -994,7 +994,7 @@ TEST_P(GnssHalTest, TestGnssVisibilityControlExtension) { * and verifies mandatory fields are valid. */ TEST_P(GnssHalTest, TestGnssMeasurementSetCallbackWithOptions) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } const int kFirstGnssMeasurementTimeoutSeconds = 10; Loading Loading @@ -1032,7 +1032,7 @@ TEST_P(GnssHalTest, TestGnssMeasurementSetCallbackWithOptions) { * 2. Sets a GnssMeasurementCallback, waits for a measurement. */ TEST_P(GnssHalTest, TestGnssAgcInGnssMeasurement) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } const int kFirstGnssMeasurementTimeoutSeconds = 10; Loading Loading @@ -1078,7 +1078,7 @@ TEST_P(GnssHalTest, TestGnssAgcInGnssMeasurement) { TEST_P(GnssHalTest, TestGnssAntennaInfo) { const int kAntennaInfoTimeoutSeconds = 2; if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } Loading Loading @@ -1156,7 +1156,7 @@ TEST_P(GnssHalTest, TestGnssAntennaInfo) { * capability flag is set. */ TEST_P(GnssHalTest, TestGnssMeasurementCorrections) { if (aidl_gnss_hal_->getInterfaceVersion() == 1) { if (aidl_gnss_hal_->getInterfaceVersion() <= 1) { return; } if (!(aidl_gnss_cb_->last_capabilities_ & Loading
identity/aidl/vts/src/com/android/tests/security/identity/IdentityCredentialImplementedTest.java +2 −2 Original line number Diff line number Diff line Loading @@ -42,14 +42,14 @@ public class IdentityCredentialImplementedTest extends BaseHostJUnit4Test { return Integer.parseInt(vendorApiLevelString); } // As of Android 13 (API level 31), Identity Credential is required at feature version 202201 // As of Android 13 (API level 32), Identity Credential is required at feature version 202201 // or newer. // @RequiresDevice @Test public void testIdentityCredentialIsImplemented() throws Exception { int vendorApiLevel = getVendorApiLevel(); assumeTrue(vendorApiLevel >= 31); assumeTrue(vendorApiLevel >= 32); final String minimumFeatureVersionNeeded = "202201"; Loading
security/keymint/aidl/android/hardware/security/keymint/DeviceInfo.aidl +16 −20 Original line number Diff line number Diff line Loading @@ -30,26 +30,22 @@ parcelable DeviceInfo { * DeviceInfo is a CBOR Map structure described by the following CDDL. * * DeviceInfo = { * ? "brand" : tstr, * ? "manufacturer" : tstr, * ? "product" : tstr, * ? "model" : tstr, * ? "board" : tstr, * ? "vb_state" : "green" / "yellow" / "orange", // Taken from the AVB values * ? "bootloader_state" : "locked" / "unlocked", // Taken from the AVB values * ? "vbmeta_digest": bstr, // Taken from the AVB values * ? "os_version" : tstr, // Same as android.os.Build.VERSION.release * ? "system_patch_level" : uint, // YYYYMMDD * ? "boot_patch_level" : uint, // YYYYMMDD * ? "vendor_patch_level" : uint, // YYYYMMDD * "version" : 1, // The CDDL schema version. * "security_level" : "tee" / "strongbox" * "att_id_state": "locked" / "open", // Attestation IDs State. If "locked", this * // indicates a device's attestable IDs are * // factory-locked and immutable. If "open", * // this indicates the device is still in a * // provisionable state and the attestable IDs * // are not yet frozen. * "brand" : tstr, * "manufacturer" : tstr, * "product" : tstr, * "model" : tstr, * "device" : tstr, * "vb_state" : "green" / "yellow" / "orange", // Taken from the AVB values * "bootloader_state" : "locked" / "unlocked", // Taken from the AVB values * "vbmeta_digest": bstr, // Taken from the AVB values * "os_version" : tstr, // Same as android.os.Build.VERSION.release * "system_patch_level" : uint, // YYYYMMDD * "boot_patch_level" : uint, // YYYYMMDD * "vendor_patch_level" : uint, // YYYYMMDD * "version" : 2, // The CDDL schema version. * "security_level" : "tee" / "strongbox", * "fused": 1 / 0, // 1 if secure boot is enforced for the processor that the IRPC * // implementation is contained in. 0 otherwise. * } */ byte[] deviceInfo; Loading
security/keymint/aidl/android/hardware/security/keymint/ProtectedData.aidl +0 −2 Original line number Diff line number Diff line Loading @@ -169,7 +169,6 @@ parcelable ProtectedData { * PubKeyEd25519 = { // COSE_Key * 1 : 1, // Key type : octet key pair * 3 : AlgorithmEdDSA, // Algorithm : EdDSA * 4 : 2, // Ops: Verify * -1 : 6, // Curve : Ed25519 * -2 : bstr // X coordinate, little-endian * } Loading @@ -184,7 +183,6 @@ parcelable ProtectedData { * PubKeyECDSA256 = { // COSE_Key * 1 : 2, // Key type : EC2 * 3 : AlgorithmES256, // Algorithm : ECDSA w/ SHA-256 * 4 : 2, // Ops: Verify * -1 : 1, // Curve: P256 * -2 : bstr, // X coordinate * -3 : bstr // Y coordinate Loading