From 9a1b226d536a10256d1877390eddb9ccbf484f7c Mon Sep 17 00:00:00 2001 From: Kweku Adams Date: Mon, 16 Mar 2020 09:17:49 -0700 Subject: Remove DurationQuotaTrackerProto message. DurationQuotaTracker isn't checked in right now, so there's no need to have the proto definition saved. We can add the proto back when we're checking in the actual tracker. Bug: 151625245 Test: Android builds Change-Id: Ic53aa65d8225634c31716d424b99b34e4fc55c76 (cherry picked from commit 15169feef83578c02f8d1194554a3bccac55bd05) --- core/proto/android/util/quotatracker.proto | 90 ------------------------------ 1 file changed, 90 deletions(-) diff --git a/core/proto/android/util/quotatracker.proto b/core/proto/android/util/quotatracker.proto index 5d022ed6327b..d98e5eea30d2 100644 --- a/core/proto/android/util/quotatracker.proto +++ b/core/proto/android/util/quotatracker.proto @@ -131,93 +131,3 @@ message CountQuotaTrackerProto { // Next tag: 4 } - -// A com.android.util.quota.DurationQuotaTracker object. -message DurationQuotaTrackerProto { - option (.android.msg_privacy).dest = DEST_AUTOMATIC; - - optional QuotaTrackerProto base_quota_data = 1; - - message DurationLimit { - option (.android.msg_privacy).dest = DEST_AUTOMATIC; - - optional CategoryProto category = 1; - optional int64 limit_ms = 2; - optional int64 window_size_ms = 3; - } - repeated DurationLimit duration_limit = 2; - - message ExecutionStats { - option (.android.msg_privacy).dest = DEST_AUTOMATIC; - - // The time after which this record should be considered invalid (out of date), in the - // elapsed realtime timebase. - optional int64 expiration_time_elapsed = 1; - - optional int32 window_size_ms = 2; - optional int64 duration_limit_ms = 3; - - // The overall session duration in the window. - optional int64 session_duration_in_window_ms = 4; - // The number of individual long-running events in the window. - optional int32 event_count_in_window = 5; - - // The time after which the app will be under the bucket quota. This is only valid if - // session_duration_in_window_ms >= duration_limit_ms. - optional int64 in_quota_time_elapsed = 6; - } - - message Timer { - option (.android.msg_privacy).dest = DEST_AUTOMATIC; - - // True if the Timer is actively tracking long-running events. - optional bool is_active = 1; - // The time this timer last became active. Only valid if is_active is true. - optional int64 start_time_elapsed = 2; - // How many long-running events are currently running. Valid only if is_active is true. - optional int32 event_count = 3; - } - - message TimingSession { - option (.android.msg_privacy).dest = DEST_AUTOMATIC; - - optional int64 start_time_elapsed = 1; - optional int64 end_time_elapsed = 2; - // How many events started during this session. This only count long-running events, not - // instantaneous events. - optional int32 event_count = 3; - } - - message UptcStats { - option (.android.msg_privacy).dest = DEST_AUTOMATIC; - - optional UptcProto uptc = 1; - - // True if the UPTC has been given free quota. - optional bool is_quota_free = 2; - - optional Timer timer = 3; - - repeated TimingSession saved_sessions = 4; - - repeated ExecutionStats execution_stats = 5; - } - repeated UptcStats uptc_stats = 3; - - message ReachedQuotaAlarmListener { - option (.android.msg_privacy).dest = DEST_AUTOMATIC; - - optional int64 trigger_time_elapsed = 1; - - message UptcTimes { - option (.android.msg_privacy).dest = DEST_AUTOMATIC; - - optional UptcProto uptc = 1; - optional int64 out_of_quota_time_elapsed = 2; - } - repeated UptcTimes uptc_times = 2; - } - optional ReachedQuotaAlarmListener reached_quota_alarm_listener = 4; - - // Next tag: 5 -} -- cgit v1.2.3-59-g8ed1b