Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ab41b5ea authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 8115127 from 208491d2 to tm-d1-release

Change-Id: Id9f34346820f6962f5802dbb133ccb5a4726d73c
parents caa01e9b 208491d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8,7 +8,7 @@ package {
}

cc_library_shared {
    name: "android.hardware.bluetooth.audio-V1-impl",
    name: "android.hardware.bluetooth.audio-impl",
    vendor: true,
    vintf_fragments: ["bluetooth_audio.xml"],
    srcs: [
+15 −8
Original line number Diff line number Diff line
@@ -191,6 +191,14 @@ class GraphicsComposerAidlTest : public ::testing::TestWithParam<std::string> {
        resourceIt->second.layers.erase(layer);
    }

    bool hasCapability(Capability capability) {
        std::vector<Capability> capabilities;
        EXPECT_TRUE(mComposer->getCapabilities(&capabilities).isOk());
        return std::any_of(
                capabilities.begin(), capabilities.end(),
                [&](const Capability& activeCapability) { return activeCapability == capability; });
    }

    // returns an invalid display id (one that has not been registered to a
    // display.  Currently assuming that a device will never have close to
    // std::numeric_limit<uint64_t>::max() displays registered while running tests
@@ -1477,6 +1485,11 @@ class GraphicsComposerAidlCommandTest : public GraphicsComposerAidlTest {
    }

    void Test_expectedPresentTime(std::optional<int> framesDelay) {
        if (hasCapability(Capability::PRESENT_FENCE_IS_NOT_RELIABLE)) {
            GTEST_SUCCEED() << "Device has unreliable present fences capability, skipping";
            return;
        }

        ASSERT_TRUE(mComposerClient->setPowerMode(mPrimaryDisplay, PowerMode::ON).isOk());

        const auto vsyncPeriod = getVsyncPeriod();
@@ -1653,10 +1666,7 @@ TEST_P(GraphicsComposerAidlCommandTest, PRESENT_DISPLAY) {
 */
// TODO(b/208441745) fix the test failure
TEST_P(GraphicsComposerAidlCommandTest, PRESENT_DISPLAY_NO_LAYER_STATE_CHANGES) {
    std::vector<Capability> capabilities;
    EXPECT_TRUE(mComposer->getCapabilities(&capabilities).isOk());
    if (none_of(capabilities.begin(), capabilities.end(),
                [&](auto item) { return item == Capability::SKIP_VALIDATE; })) {
    if (!hasCapability(Capability::SKIP_VALIDATE)) {
        GTEST_SUCCEED() << "Device does not have skip validate capability, skipping";
        return;
    }
@@ -1884,10 +1894,7 @@ TEST_P(GraphicsComposerAidlCommandTest, SET_LAYER_PLANE_ALPHA) {
}

TEST_P(GraphicsComposerAidlCommandTest, SET_LAYER_SIDEBAND_STREAM) {
    std::vector<Capability> capabilities;
    EXPECT_TRUE(mComposer->getCapabilities(&capabilities).isOk());
    if (none_of(capabilities.begin(), capabilities.end(),
                [&](auto& item) { return item == Capability::SIDEBAND_STREAM; })) {
    if (!hasCapability(Capability::SIDEBAND_STREAM)) {
        GTEST_SUCCEED() << "no sideband stream support";
        return;
    }
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ parcelable HealthInfo {
  boolean chargerAcOnline;
  boolean chargerUsbOnline;
  boolean chargerWirelessOnline;
  boolean chargerDockOnline;
  int maxChargingCurrentMicroamps;
  int maxChargingVoltageMicrovolts;
  android.hardware.health.BatteryStatus batteryStatus;
+4 −0
Original line number Diff line number Diff line
@@ -39,6 +39,10 @@ parcelable HealthInfo {
     * Wireless charger state - 'true' if online
     */
    boolean chargerWirelessOnline;
    /**
     * Dock charger state - 'true' if online
     */
    boolean chargerDockOnline;
    /**
     * Maximum charging current supported by charger in µA
     */
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ void HalHealthLoop::OnHealthInfoChanged(const HealthInfo& health_info) {

void HalHealthLoop::set_charger_online(const HealthInfo& health_info) {
    charger_online_ = health_info.chargerAcOnline || health_info.chargerUsbOnline ||
                      health_info.chargerWirelessOnline;
                      health_info.chargerWirelessOnline || health_info.chargerDockOnline;
}

}  // namespace aidl::android::hardware::health
Loading