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

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

Snap for 11617975 from 030337de to 24Q3-release

Change-Id: I810477f4a78d7e799a3ef8fc7fd9507b39073500
parents edb797c9 030337de
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -66,14 +66,14 @@ public:
        Parcel data, reply;
        data.writeInterfaceToken(IBatteryStats::getInterfaceDescriptor());
        data.writeInt32(uid);
        remote()->transact(NOTE_START_AUDIO_TRANSACTION, data, &reply);
        remote()->transact(NOTE_START_AUDIO_TRANSACTION, data, &reply, IBinder::FLAG_ONEWAY);
    }

    virtual void noteStopAudio(int uid) {
        Parcel data, reply;
        data.writeInterfaceToken(IBatteryStats::getInterfaceDescriptor());
        data.writeInt32(uid);
        remote()->transact(NOTE_STOP_AUDIO_TRANSACTION, data, &reply);
        remote()->transact(NOTE_STOP_AUDIO_TRANSACTION, data, &reply, IBinder::FLAG_ONEWAY);
    }

    virtual void noteResetVideo() {
@@ -85,7 +85,7 @@ public:
    virtual void noteResetAudio() {
        Parcel data, reply;
        data.writeInterfaceToken(IBatteryStats::getInterfaceDescriptor());
        remote()->transact(NOTE_RESET_AUDIO_TRANSACTION, data, &reply);
        remote()->transact(NOTE_RESET_AUDIO_TRANSACTION, data, &reply, IBinder::FLAG_ONEWAY);
    }

    virtual void noteFlashlightOn(int uid) {
+20 −0
Original line number Diff line number Diff line
@@ -41,6 +41,17 @@ parcelable DisplayModeSpecs {
        RefreshRateRange render;
    }

    /**
     * Refers to the time after which the idle screen's refresh rate is to be reduced
     */
    parcelable IdleScreenRefreshRateConfig {

        /**
         *  The timeout value in milli seconds
         */
        int timeoutMillis;
    }

    /**
     * Base mode ID. This is what system defaults to for all other settings, or
     * if the refresh rate range is not available.
@@ -72,4 +83,13 @@ parcelable DisplayModeSpecs {
     * never smaller.
     */
    RefreshRateRanges appRequestRanges;

    /**
     * The config to represent the maximum time (in ms) for which the display can remain in an idle
     * state before reducing the refresh rate to conserve power.
     * Null value refers that the device is not configured to dynamically reduce the refresh rate
     * based on external conditions.
     * -1 refers to the current conditions requires no timeout
     */
    @nullable IdleScreenRefreshRateConfig idleScreenRefreshRateConfig;
}
+1 −0
Original line number Diff line number Diff line
@@ -198,6 +198,7 @@ private:
    }

    void produceAtomsLocked(AStatsEventList& outEventList) const REQUIRES(mLock) {
        ALOGI("Producing touchpad usage atoms for %zu counters", mCounters.size());
        for (auto& [id, counters] : mCounters) {
            auto [busId, vendorId, productId, versionId] = id;
            addAStatsEvent(&outEventList, android::util::TOUCHPAD_USAGE, vendorId, productId,
+2 −0
Original line number Diff line number Diff line
@@ -321,7 +321,9 @@ protected:
            const Region& flashRegion,
            std::vector<LayerFE::LayerSettings>& clientCompositionLayers) = 0;
    virtual void setExpensiveRenderingExpected(bool enabled) = 0;
    virtual void setHintSessionGpuStart(TimePoint startTime) = 0;
    virtual void setHintSessionGpuFence(std::unique_ptr<FenceTime>&& gpuFence) = 0;
    virtual void setHintSessionRequiresRenderEngine(bool requiresRenderEngine) = 0;
    virtual bool isPowerHintSessionEnabled() = 0;
    virtual void cacheClientCompositionRequests(uint32_t cacheSize) = 0;
    virtual bool canPredictCompositionStrategy(const CompositionRefreshArgs&) = 0;
+2 −0
Original line number Diff line number Diff line
@@ -93,7 +93,9 @@ public:

private:
    bool isPowerHintSessionEnabled() override;
    void setHintSessionGpuStart(TimePoint startTime) override;
    void setHintSessionGpuFence(std::unique_ptr<FenceTime>&& gpuFence) override;
    void setHintSessionRequiresRenderEngine(bool requiresRenderEngine) override;
    DisplayId mId;
    bool mIsDisconnected = false;
    Hwc2::PowerAdvisor* mPowerAdvisor = nullptr;
Loading