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

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

Snap for 12695596 from 2a249a79 to 25Q1-release

Change-Id: Iee396a42648cf32c239d90245c55fdfe27400d69
parents 6f0d96ad 2a249a79
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -518,7 +518,7 @@ int ASessionCreationConfig_setPreferPowerEfficiency(
                  pipeline is reached.
 */
int ASessionCreationConfig_setGraphicsPipeline(
        ASessionCreationConfig* _Nonnull confi, bool enabled)  __INTRODUCED_IN(36);
        ASessionCreationConfig* _Nonnull config, bool enabled)  __INTRODUCED_IN(36);

__END_DECLS

+10 −0
Original line number Diff line number Diff line
@@ -22,6 +22,7 @@
#include <bitset>
#include <cstdint>
#include <iterator>
#include <initializer_list>
#include <string>
#include <type_traits>

@@ -40,6 +41,7 @@ class Flags {

public:
    constexpr Flags(F f) : mFlags(static_cast<U>(f)) {}
    constexpr Flags(std::initializer_list<F> fs) : mFlags(combine(fs)) {}
    constexpr Flags() : mFlags(0) {}
    constexpr Flags(const Flags<F>& f) : mFlags(f.mFlags) {}

@@ -197,6 +199,14 @@ public:
private:
    U mFlags;

    static constexpr U combine(std::initializer_list<F> fs) {
        U result = 0;
        for (const F f : fs) {
            result |= static_cast<U>(f);
        }
        return result;
    }

    static void appendFlag(std::string& str, const std::string_view& flag, bool& first) {
        if (first) {
            first = false;
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ public:
     * the previous call.
     * @param coords Coordinates to be overwritten by the corresponding filtered coordinates.
     */
    void filter(std::chrono::duration<float> timestamp, PointerCoords& coords);
    void filter(std::chrono::nanoseconds timestamp, PointerCoords& coords);

private:
    OneEuroFilter mXFilter;
+5 −5
Original line number Diff line number Diff line
@@ -56,7 +56,7 @@ public:
     * provided in the previous call.
     * @param rawPosition Position to be filtered.
     */
    float filter(std::chrono::duration<float> timestamp, float rawPosition);
    float filter(std::chrono::nanoseconds timestamp, float rawPosition);

private:
    /**
@@ -67,7 +67,7 @@ private:

    /**
     * Slope of the cutoff frequency criterion. This is the term scaling the absolute value of the
     * filtered signal's speed. The data member is dimensionless, that is, it does not have units.
     * filtered signal's speed. Units are 1 / position.
     */
    const float mBeta;

@@ -78,9 +78,9 @@ private:
    const float mSpeedCutoffFreq;

    /**
     * The timestamp from the previous call. Units are seconds.
     * The timestamp from the previous call.
     */
    std::optional<std::chrono::duration<float>> mPrevTimestamp;
    std::optional<std::chrono::nanoseconds> mPrevTimestamp;

    /**
     * The raw position from the previous call.
@@ -88,7 +88,7 @@ private:
    std::optional<float> mPrevRawPosition;

    /**
     * The filtered velocity from the previous call. Units are position per second.
     * The filtered velocity from the previous call. Units are position per nanosecond.
     */
    std::optional<float> mPrevFilteredVelocity;

+1 −9
Original line number Diff line number Diff line
@@ -67,15 +67,7 @@
      "name": "fuzz_service_test"
    },
    {
      "name": "CtsOsTestCases",
      "options": [
        {
          "include-filter": "android.os.cts.BinderTest"
        },
        {
          "include-filter": "android.os.cts.ParcelTest"
        }
      ]
      "name": "CtsOsTestCases_ParcelAndBinderTests"
    },
    {
      "name": "libbinder_rs-internal_test"
Loading