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

Commit c36d8a4d authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 4781566 from 6d084215 to pi-release

Change-Id: I955158db12398c9411ee02ebdba108dba88bf971
parents 46021576 6d084215
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -897,6 +897,14 @@ package android.service.quicksettings {

}

package android.telecom {

  public final class CallAudioState implements android.os.Parcelable {
    ctor public CallAudioState(boolean, int, int, android.bluetooth.BluetoothDevice, java.util.Collection<android.bluetooth.BluetoothDevice>);
  }

}

package android.telephony {

  public class MbmsDownloadSession implements java.lang.AutoCloseable {
+11 −5
Original line number Diff line number Diff line
@@ -87,7 +87,8 @@ ValueMetricProducer::ValueMetricProducer(const ConfigKey& key, const ValueMetric
      mDimensionHardLimit(StatsdStats::kAtomDimensionKeySizeLimitMap.find(pullTagId) !=
                                          StatsdStats::kAtomDimensionKeySizeLimitMap.end()
                                  ? StatsdStats::kAtomDimensionKeySizeLimitMap.at(pullTagId).second
                                  : StatsdStats::kDimensionKeySizeHardLimit) {
                                  : StatsdStats::kDimensionKeySizeHardLimit),
      mUseAbsoluteValueOnReset(metric.use_absolute_value_on_reset()) {
    // TODO: valuemetric for pushed events may need unlimited bucket length
    int64_t bucketSizeMills = 0;
    if (metric.has_bucket()) {
@@ -393,15 +394,20 @@ void ValueMetricProducer::onMatchedLogEventInternalLocked(
            }
        } else {
            // Generally we expect value to be monotonically increasing.
            // If not, there was a reset event. We take the absolute value as
            // diff in this case.
            // If not, take absolute value or drop it, based on config.
            if (interval.startUpdated) {
                if (value >= interval.start) {
                    interval.sum += (value - interval.start);
                    interval.hasValue = true;
                } else {
                    if (mUseAbsoluteValueOnReset) {
                        interval.sum += value;
                }
                        interval.hasValue = true;
                    } else {
                        VLOG("Dropping data for atom %d, prev: %lld, now: %lld", mPullTagId,
                             (long long)interval.start, (long long)value);
                    }
                }
                interval.startUpdated = false;
            } else {
                VLOG("No start for matching end %lld", (long long)value);
+2 −0
Original line number Diff line number Diff line
@@ -164,6 +164,8 @@ private:

    const size_t mDimensionHardLimit;

    const bool mUseAbsoluteValueOnReset;

    FRIEND_TEST(ValueMetricProducerTest, TestNonDimensionalEvents);
    FRIEND_TEST(ValueMetricProducerTest, TestEventsWithNonSlicedCondition);
    FRIEND_TEST(ValueMetricProducerTest, TestPushedEventsWithUpgrade);
+2 −0
Original line number Diff line number Diff line
@@ -265,6 +265,8 @@ message ValueMetric {
  optional AggregationType aggregation_type = 8 [default = SUM];

  optional int64 min_bucket_size_nanos = 10;

  optional bool use_absolute_value_on_reset = 11 [default = false];
}

message Alert {
+21477 −24792

File changed.

Preview size limit exceeded, changes collapsed.

Loading