1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: frameworks/native/services/surfaceflinger/TimeStats/timestatsatomsproto/timestats_atoms.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_frameworks_2fnative_2fservices_2fsurfaceflinger_2fTimeStats_2ftimestatsatomsproto_2ftimestats_5fatoms_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_frameworks_2fnative_2fservices_2fsurfaceflinger_2fTimeStats_2ftimestatsatomsproto_2ftimestats_5fatoms_2eproto
6 
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10 
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22 
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
32 #include <google/protobuf/generated_enum_util.h>
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_frameworks_2fnative_2fservices_2fsurfaceflinger_2fTimeStats_2ftimestatsatomsproto_2ftimestats_5fatoms_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 }  // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41 
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_frameworks_2fnative_2fservices_2fsurfaceflinger_2fTimeStats_2ftimestatsatomsproto_2ftimestats_5fatoms_2eproto {
44   static const ::uint32_t offsets[];
45 };
46 namespace android {
47 namespace surfaceflinger {
48 class FrameTimingHistogram;
49 struct FrameTimingHistogramDefaultTypeInternal;
50 extern FrameTimingHistogramDefaultTypeInternal _FrameTimingHistogram_default_instance_;
51 class SurfaceflingerStatsGlobalInfo;
52 struct SurfaceflingerStatsGlobalInfoDefaultTypeInternal;
53 extern SurfaceflingerStatsGlobalInfoDefaultTypeInternal _SurfaceflingerStatsGlobalInfo_default_instance_;
54 class SurfaceflingerStatsGlobalInfoWrapper;
55 struct SurfaceflingerStatsGlobalInfoWrapperDefaultTypeInternal;
56 extern SurfaceflingerStatsGlobalInfoWrapperDefaultTypeInternal _SurfaceflingerStatsGlobalInfoWrapper_default_instance_;
57 class SurfaceflingerStatsLayerInfo;
58 struct SurfaceflingerStatsLayerInfoDefaultTypeInternal;
59 extern SurfaceflingerStatsLayerInfoDefaultTypeInternal _SurfaceflingerStatsLayerInfo_default_instance_;
60 class SurfaceflingerStatsLayerInfoWrapper;
61 struct SurfaceflingerStatsLayerInfoWrapperDefaultTypeInternal;
62 extern SurfaceflingerStatsLayerInfoWrapperDefaultTypeInternal _SurfaceflingerStatsLayerInfoWrapper_default_instance_;
63 class SurfaceflingerStatsLayerInfo_SetFrameRateVote;
64 struct SurfaceflingerStatsLayerInfo_SetFrameRateVoteDefaultTypeInternal;
65 extern SurfaceflingerStatsLayerInfo_SetFrameRateVoteDefaultTypeInternal _SurfaceflingerStatsLayerInfo_SetFrameRateVote_default_instance_;
66 }  // namespace surfaceflinger
67 }  // namespace android
68 PROTOBUF_NAMESPACE_OPEN
69 template<> ::android::surfaceflinger::FrameTimingHistogram* Arena::CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(Arena*);
70 template<> ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo* Arena::CreateMaybeMessage<::android::surfaceflinger::SurfaceflingerStatsGlobalInfo>(Arena*);
71 template<> ::android::surfaceflinger::SurfaceflingerStatsGlobalInfoWrapper* Arena::CreateMaybeMessage<::android::surfaceflinger::SurfaceflingerStatsGlobalInfoWrapper>(Arena*);
72 template<> ::android::surfaceflinger::SurfaceflingerStatsLayerInfo* Arena::CreateMaybeMessage<::android::surfaceflinger::SurfaceflingerStatsLayerInfo>(Arena*);
73 template<> ::android::surfaceflinger::SurfaceflingerStatsLayerInfoWrapper* Arena::CreateMaybeMessage<::android::surfaceflinger::SurfaceflingerStatsLayerInfoWrapper>(Arena*);
74 template<> ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* Arena::CreateMaybeMessage<::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote>(Arena*);
75 PROTOBUF_NAMESPACE_CLOSE
76 namespace android {
77 namespace surfaceflinger {
78 
79 enum SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility : int {
80   SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FRAME_RATE_UNDEFINED = 0,
81   SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FRAME_RATE_DEFAULT = 1,
82   SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FRAME_RATE_EXACT_OR_MULTIPLE = 2
83 };
84 bool SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_IsValid(int value);
85 constexpr SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FrameRateCompatibility_MIN = SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FRAME_RATE_UNDEFINED;
86 constexpr SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FrameRateCompatibility_MAX = SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FRAME_RATE_EXACT_OR_MULTIPLE;
87 constexpr int SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FrameRateCompatibility_ARRAYSIZE = SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FrameRateCompatibility_MAX + 1;
88 
89 const std::string& SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_Name(SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility value);
90 template<typename T>
SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_Name(T enum_t_value)91 inline const std::string& SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_Name(T enum_t_value) {
92   static_assert(::std::is_same<T, SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility>::value ||
93     ::std::is_integral<T>::value,
94     "Incorrect type passed to function SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_Name.");
95   return SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_Name(static_cast<SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility>(enum_t_value));
96 }
97 bool SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_Parse(
98     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility* value);
99 enum SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness : int {
100   SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_SEAMLESS_UNDEFINED = 0,
101   SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_SEAMLESS_SHOULD_BE_SEAMLESS = 1,
102   SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_SEAMLESS_NOT_REQUIRED = 2
103 };
104 bool SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_IsValid(int value);
105 constexpr SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Seamlessness_MIN = SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_SEAMLESS_UNDEFINED;
106 constexpr SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Seamlessness_MAX = SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_SEAMLESS_NOT_REQUIRED;
107 constexpr int SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Seamlessness_ARRAYSIZE = SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Seamlessness_MAX + 1;
108 
109 const std::string& SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Name(SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness value);
110 template<typename T>
SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Name(T enum_t_value)111 inline const std::string& SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Name(T enum_t_value) {
112   static_assert(::std::is_same<T, SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness>::value ||
113     ::std::is_integral<T>::value,
114     "Incorrect type passed to function SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Name.");
115   return SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Name(static_cast<SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness>(enum_t_value));
116 }
117 bool SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Parse(
118     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness* value);
119 enum SurfaceflingerStatsLayerInfo_GameMode : int {
120   SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_UNSPECIFIED = 0,
121   SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_UNSUPPORTED = 1,
122   SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_STANDARD = 2,
123   SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_PERFORMANCE = 3,
124   SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_BATTERY = 4,
125   SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_CUSTOM = 5
126 };
127 bool SurfaceflingerStatsLayerInfo_GameMode_IsValid(int value);
128 constexpr SurfaceflingerStatsLayerInfo_GameMode SurfaceflingerStatsLayerInfo_GameMode_GameMode_MIN = SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_UNSPECIFIED;
129 constexpr SurfaceflingerStatsLayerInfo_GameMode SurfaceflingerStatsLayerInfo_GameMode_GameMode_MAX = SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_CUSTOM;
130 constexpr int SurfaceflingerStatsLayerInfo_GameMode_GameMode_ARRAYSIZE = SurfaceflingerStatsLayerInfo_GameMode_GameMode_MAX + 1;
131 
132 const std::string& SurfaceflingerStatsLayerInfo_GameMode_Name(SurfaceflingerStatsLayerInfo_GameMode value);
133 template<typename T>
SurfaceflingerStatsLayerInfo_GameMode_Name(T enum_t_value)134 inline const std::string& SurfaceflingerStatsLayerInfo_GameMode_Name(T enum_t_value) {
135   static_assert(::std::is_same<T, SurfaceflingerStatsLayerInfo_GameMode>::value ||
136     ::std::is_integral<T>::value,
137     "Incorrect type passed to function SurfaceflingerStatsLayerInfo_GameMode_Name.");
138   return SurfaceflingerStatsLayerInfo_GameMode_Name(static_cast<SurfaceflingerStatsLayerInfo_GameMode>(enum_t_value));
139 }
140 bool SurfaceflingerStatsLayerInfo_GameMode_Parse(
141     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SurfaceflingerStatsLayerInfo_GameMode* value);
142 // ===================================================================
143 
144 class SurfaceflingerStatsGlobalInfoWrapper final :
145     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.surfaceflinger.SurfaceflingerStatsGlobalInfoWrapper) */ {
146  public:
SurfaceflingerStatsGlobalInfoWrapper()147   inline SurfaceflingerStatsGlobalInfoWrapper() : SurfaceflingerStatsGlobalInfoWrapper(nullptr) {}
148   ~SurfaceflingerStatsGlobalInfoWrapper() override;
149   explicit PROTOBUF_CONSTEXPR SurfaceflingerStatsGlobalInfoWrapper(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
150 
151   SurfaceflingerStatsGlobalInfoWrapper(const SurfaceflingerStatsGlobalInfoWrapper& from);
SurfaceflingerStatsGlobalInfoWrapper(SurfaceflingerStatsGlobalInfoWrapper && from)152   SurfaceflingerStatsGlobalInfoWrapper(SurfaceflingerStatsGlobalInfoWrapper&& from) noexcept
153     : SurfaceflingerStatsGlobalInfoWrapper() {
154     *this = ::std::move(from);
155   }
156 
157   inline SurfaceflingerStatsGlobalInfoWrapper& operator=(const SurfaceflingerStatsGlobalInfoWrapper& from) {
158     if (this == &from) return *this;
159     CopyFrom(from);
160     return *this;
161   }
162   inline SurfaceflingerStatsGlobalInfoWrapper& operator=(SurfaceflingerStatsGlobalInfoWrapper&& from) noexcept {
163     if (this == &from) return *this;
164     if (GetOwningArena() == from.GetOwningArena()
165   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
166         && GetOwningArena() != nullptr
167   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
168     ) {
169       InternalSwap(&from);
170     } else {
171       CopyFrom(from);
172     }
173     return *this;
174   }
175 
unknown_fields()176   inline const std::string& unknown_fields() const {
177     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
178   }
mutable_unknown_fields()179   inline std::string* mutable_unknown_fields() {
180     return _internal_metadata_.mutable_unknown_fields<std::string>();
181   }
182 
default_instance()183   static const SurfaceflingerStatsGlobalInfoWrapper& default_instance() {
184     return *internal_default_instance();
185   }
internal_default_instance()186   static inline const SurfaceflingerStatsGlobalInfoWrapper* internal_default_instance() {
187     return reinterpret_cast<const SurfaceflingerStatsGlobalInfoWrapper*>(
188                &_SurfaceflingerStatsGlobalInfoWrapper_default_instance_);
189   }
190   static constexpr int kIndexInFileMessages =
191     0;
192 
swap(SurfaceflingerStatsGlobalInfoWrapper & a,SurfaceflingerStatsGlobalInfoWrapper & b)193   friend void swap(SurfaceflingerStatsGlobalInfoWrapper& a, SurfaceflingerStatsGlobalInfoWrapper& b) {
194     a.Swap(&b);
195   }
Swap(SurfaceflingerStatsGlobalInfoWrapper * other)196   inline void Swap(SurfaceflingerStatsGlobalInfoWrapper* other) {
197     if (other == this) return;
198   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
199     if (GetOwningArena() != nullptr &&
200         GetOwningArena() == other->GetOwningArena()) {
201    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
202     if (GetOwningArena() == other->GetOwningArena()) {
203   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
204       InternalSwap(other);
205     } else {
206       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
207     }
208   }
209   void UnsafeArenaSwap(SurfaceflingerStatsGlobalInfoWrapper* other) {
210     if (other == this) return;
211     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
212     InternalSwap(other);
213   }
214 
215   // implements Message ----------------------------------------------
216 
217   SurfaceflingerStatsGlobalInfoWrapper* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
218     return CreateMaybeMessage<SurfaceflingerStatsGlobalInfoWrapper>(arena);
219   }
220   SurfaceflingerStatsGlobalInfoWrapper* New() const {
221     return New(nullptr);
222   }
223   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
224   void CopyFrom(const SurfaceflingerStatsGlobalInfoWrapper& from);
225   void MergeFrom(const SurfaceflingerStatsGlobalInfoWrapper& from);
226   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
227   bool IsInitialized() const final;
228 
229   size_t ByteSizeLong() const final;
230   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
231   ::uint8_t* _InternalSerialize(
232       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
233   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
234 
235   private:
236   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
237   void SharedDtor();
238   void SetCachedSize(int size) const;
239   void InternalSwap(SurfaceflingerStatsGlobalInfoWrapper* other);
240 
241   private:
242   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
243   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
244     return "android.surfaceflinger.SurfaceflingerStatsGlobalInfoWrapper";
245   }
246   protected:
247   explicit SurfaceflingerStatsGlobalInfoWrapper(::PROTOBUF_NAMESPACE_ID::Arena* arena,
248                        bool is_message_owned = false);
249   public:
250 
251   std::string GetTypeName() const final;
252 
253   // nested types ----------------------------------------------------
254 
255   // accessors -------------------------------------------------------
256 
257   enum : int {
258     kAtomFieldNumber = 1,
259   };
260   // repeated .android.surfaceflinger.SurfaceflingerStatsGlobalInfo atom = 1;
261   int atom_size() const;
262   private:
263   int _internal_atom_size() const;
264   public:
265   void clear_atom();
266   ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo* mutable_atom(int index);
267   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo >*
268       mutable_atom();
269   private:
270   const ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo& _internal_atom(int index) const;
271   ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo* _internal_add_atom();
272   public:
273   const ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo& atom(int index) const;
274   ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo* add_atom();
275   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo >&
276       atom() const;
277 
278   // @@protoc_insertion_point(class_scope:android.surfaceflinger.SurfaceflingerStatsGlobalInfoWrapper)
279  private:
280   class _Internal;
281 
282   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
283   typedef void InternalArenaConstructable_;
284   typedef void DestructorSkippable_;
285   struct Impl_ {
286     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo > atom_;
287     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
288   };
289   union { Impl_ _impl_; };
290   friend struct ::TableStruct_frameworks_2fnative_2fservices_2fsurfaceflinger_2fTimeStats_2ftimestatsatomsproto_2ftimestats_5fatoms_2eproto;
291 };
292 // -------------------------------------------------------------------
293 
294 class SurfaceflingerStatsLayerInfoWrapper final :
295     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.surfaceflinger.SurfaceflingerStatsLayerInfoWrapper) */ {
296  public:
SurfaceflingerStatsLayerInfoWrapper()297   inline SurfaceflingerStatsLayerInfoWrapper() : SurfaceflingerStatsLayerInfoWrapper(nullptr) {}
298   ~SurfaceflingerStatsLayerInfoWrapper() override;
299   explicit PROTOBUF_CONSTEXPR SurfaceflingerStatsLayerInfoWrapper(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
300 
301   SurfaceflingerStatsLayerInfoWrapper(const SurfaceflingerStatsLayerInfoWrapper& from);
SurfaceflingerStatsLayerInfoWrapper(SurfaceflingerStatsLayerInfoWrapper && from)302   SurfaceflingerStatsLayerInfoWrapper(SurfaceflingerStatsLayerInfoWrapper&& from) noexcept
303     : SurfaceflingerStatsLayerInfoWrapper() {
304     *this = ::std::move(from);
305   }
306 
307   inline SurfaceflingerStatsLayerInfoWrapper& operator=(const SurfaceflingerStatsLayerInfoWrapper& from) {
308     if (this == &from) return *this;
309     CopyFrom(from);
310     return *this;
311   }
312   inline SurfaceflingerStatsLayerInfoWrapper& operator=(SurfaceflingerStatsLayerInfoWrapper&& from) noexcept {
313     if (this == &from) return *this;
314     if (GetOwningArena() == from.GetOwningArena()
315   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
316         && GetOwningArena() != nullptr
317   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
318     ) {
319       InternalSwap(&from);
320     } else {
321       CopyFrom(from);
322     }
323     return *this;
324   }
325 
unknown_fields()326   inline const std::string& unknown_fields() const {
327     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
328   }
mutable_unknown_fields()329   inline std::string* mutable_unknown_fields() {
330     return _internal_metadata_.mutable_unknown_fields<std::string>();
331   }
332 
default_instance()333   static const SurfaceflingerStatsLayerInfoWrapper& default_instance() {
334     return *internal_default_instance();
335   }
internal_default_instance()336   static inline const SurfaceflingerStatsLayerInfoWrapper* internal_default_instance() {
337     return reinterpret_cast<const SurfaceflingerStatsLayerInfoWrapper*>(
338                &_SurfaceflingerStatsLayerInfoWrapper_default_instance_);
339   }
340   static constexpr int kIndexInFileMessages =
341     1;
342 
swap(SurfaceflingerStatsLayerInfoWrapper & a,SurfaceflingerStatsLayerInfoWrapper & b)343   friend void swap(SurfaceflingerStatsLayerInfoWrapper& a, SurfaceflingerStatsLayerInfoWrapper& b) {
344     a.Swap(&b);
345   }
Swap(SurfaceflingerStatsLayerInfoWrapper * other)346   inline void Swap(SurfaceflingerStatsLayerInfoWrapper* other) {
347     if (other == this) return;
348   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
349     if (GetOwningArena() != nullptr &&
350         GetOwningArena() == other->GetOwningArena()) {
351    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
352     if (GetOwningArena() == other->GetOwningArena()) {
353   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
354       InternalSwap(other);
355     } else {
356       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
357     }
358   }
359   void UnsafeArenaSwap(SurfaceflingerStatsLayerInfoWrapper* other) {
360     if (other == this) return;
361     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
362     InternalSwap(other);
363   }
364 
365   // implements Message ----------------------------------------------
366 
367   SurfaceflingerStatsLayerInfoWrapper* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
368     return CreateMaybeMessage<SurfaceflingerStatsLayerInfoWrapper>(arena);
369   }
370   SurfaceflingerStatsLayerInfoWrapper* New() const {
371     return New(nullptr);
372   }
373   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
374   void CopyFrom(const SurfaceflingerStatsLayerInfoWrapper& from);
375   void MergeFrom(const SurfaceflingerStatsLayerInfoWrapper& from);
376   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
377   bool IsInitialized() const final;
378 
379   size_t ByteSizeLong() const final;
380   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
381   ::uint8_t* _InternalSerialize(
382       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
383   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
384 
385   private:
386   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
387   void SharedDtor();
388   void SetCachedSize(int size) const;
389   void InternalSwap(SurfaceflingerStatsLayerInfoWrapper* other);
390 
391   private:
392   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
393   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
394     return "android.surfaceflinger.SurfaceflingerStatsLayerInfoWrapper";
395   }
396   protected:
397   explicit SurfaceflingerStatsLayerInfoWrapper(::PROTOBUF_NAMESPACE_ID::Arena* arena,
398                        bool is_message_owned = false);
399   public:
400 
401   std::string GetTypeName() const final;
402 
403   // nested types ----------------------------------------------------
404 
405   // accessors -------------------------------------------------------
406 
407   enum : int {
408     kAtomFieldNumber = 1,
409   };
410   // repeated .android.surfaceflinger.SurfaceflingerStatsLayerInfo atom = 1;
411   int atom_size() const;
412   private:
413   int _internal_atom_size() const;
414   public:
415   void clear_atom();
416   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo* mutable_atom(int index);
417   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::surfaceflinger::SurfaceflingerStatsLayerInfo >*
418       mutable_atom();
419   private:
420   const ::android::surfaceflinger::SurfaceflingerStatsLayerInfo& _internal_atom(int index) const;
421   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo* _internal_add_atom();
422   public:
423   const ::android::surfaceflinger::SurfaceflingerStatsLayerInfo& atom(int index) const;
424   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo* add_atom();
425   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::surfaceflinger::SurfaceflingerStatsLayerInfo >&
426       atom() const;
427 
428   // @@protoc_insertion_point(class_scope:android.surfaceflinger.SurfaceflingerStatsLayerInfoWrapper)
429  private:
430   class _Internal;
431 
432   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
433   typedef void InternalArenaConstructable_;
434   typedef void DestructorSkippable_;
435   struct Impl_ {
436     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::surfaceflinger::SurfaceflingerStatsLayerInfo > atom_;
437     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
438   };
439   union { Impl_ _impl_; };
440   friend struct ::TableStruct_frameworks_2fnative_2fservices_2fsurfaceflinger_2fTimeStats_2ftimestatsatomsproto_2ftimestats_5fatoms_2eproto;
441 };
442 // -------------------------------------------------------------------
443 
444 class SurfaceflingerStatsGlobalInfo final :
445     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.surfaceflinger.SurfaceflingerStatsGlobalInfo) */ {
446  public:
SurfaceflingerStatsGlobalInfo()447   inline SurfaceflingerStatsGlobalInfo() : SurfaceflingerStatsGlobalInfo(nullptr) {}
448   ~SurfaceflingerStatsGlobalInfo() override;
449   explicit PROTOBUF_CONSTEXPR SurfaceflingerStatsGlobalInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
450 
451   SurfaceflingerStatsGlobalInfo(const SurfaceflingerStatsGlobalInfo& from);
SurfaceflingerStatsGlobalInfo(SurfaceflingerStatsGlobalInfo && from)452   SurfaceflingerStatsGlobalInfo(SurfaceflingerStatsGlobalInfo&& from) noexcept
453     : SurfaceflingerStatsGlobalInfo() {
454     *this = ::std::move(from);
455   }
456 
457   inline SurfaceflingerStatsGlobalInfo& operator=(const SurfaceflingerStatsGlobalInfo& from) {
458     if (this == &from) return *this;
459     CopyFrom(from);
460     return *this;
461   }
462   inline SurfaceflingerStatsGlobalInfo& operator=(SurfaceflingerStatsGlobalInfo&& from) noexcept {
463     if (this == &from) return *this;
464     if (GetOwningArena() == from.GetOwningArena()
465   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
466         && GetOwningArena() != nullptr
467   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
468     ) {
469       InternalSwap(&from);
470     } else {
471       CopyFrom(from);
472     }
473     return *this;
474   }
475 
unknown_fields()476   inline const std::string& unknown_fields() const {
477     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
478   }
mutable_unknown_fields()479   inline std::string* mutable_unknown_fields() {
480     return _internal_metadata_.mutable_unknown_fields<std::string>();
481   }
482 
default_instance()483   static const SurfaceflingerStatsGlobalInfo& default_instance() {
484     return *internal_default_instance();
485   }
internal_default_instance()486   static inline const SurfaceflingerStatsGlobalInfo* internal_default_instance() {
487     return reinterpret_cast<const SurfaceflingerStatsGlobalInfo*>(
488                &_SurfaceflingerStatsGlobalInfo_default_instance_);
489   }
490   static constexpr int kIndexInFileMessages =
491     2;
492 
swap(SurfaceflingerStatsGlobalInfo & a,SurfaceflingerStatsGlobalInfo & b)493   friend void swap(SurfaceflingerStatsGlobalInfo& a, SurfaceflingerStatsGlobalInfo& b) {
494     a.Swap(&b);
495   }
Swap(SurfaceflingerStatsGlobalInfo * other)496   inline void Swap(SurfaceflingerStatsGlobalInfo* other) {
497     if (other == this) return;
498   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
499     if (GetOwningArena() != nullptr &&
500         GetOwningArena() == other->GetOwningArena()) {
501    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
502     if (GetOwningArena() == other->GetOwningArena()) {
503   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
504       InternalSwap(other);
505     } else {
506       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
507     }
508   }
509   void UnsafeArenaSwap(SurfaceflingerStatsGlobalInfo* other) {
510     if (other == this) return;
511     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
512     InternalSwap(other);
513   }
514 
515   // implements Message ----------------------------------------------
516 
517   SurfaceflingerStatsGlobalInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
518     return CreateMaybeMessage<SurfaceflingerStatsGlobalInfo>(arena);
519   }
520   SurfaceflingerStatsGlobalInfo* New() const {
521     return New(nullptr);
522   }
523   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
524   void CopyFrom(const SurfaceflingerStatsGlobalInfo& from);
525   void MergeFrom(const SurfaceflingerStatsGlobalInfo& from);
526   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
527   bool IsInitialized() const final;
528 
529   size_t ByteSizeLong() const final;
530   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
531   ::uint8_t* _InternalSerialize(
532       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
533   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
534 
535   private:
536   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
537   void SharedDtor();
538   void SetCachedSize(int size) const;
539   void InternalSwap(SurfaceflingerStatsGlobalInfo* other);
540 
541   private:
542   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
543   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
544     return "android.surfaceflinger.SurfaceflingerStatsGlobalInfo";
545   }
546   protected:
547   explicit SurfaceflingerStatsGlobalInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
548                        bool is_message_owned = false);
549   public:
550 
551   std::string GetTypeName() const final;
552 
553   // nested types ----------------------------------------------------
554 
555   // accessors -------------------------------------------------------
556 
557   enum : int {
558     kFrameDurationFieldNumber = 7,
559     kRenderEngineTimingFieldNumber = 8,
560     kSfDeadlineMissesFieldNumber = 19,
561     kSfPredictionErrorsFieldNumber = 20,
562     kTotalFramesFieldNumber = 1,
563     kMissedFramesFieldNumber = 2,
564     kClientCompositionFramesFieldNumber = 3,
565     kDisplayOnMillisFieldNumber = 4,
566     kAnimationMillisFieldNumber = 5,
567     kEventConnectionCountFieldNumber = 6,
568     kTotalTimelineFramesFieldNumber = 9,
569     kTotalJankyFramesFieldNumber = 10,
570     kTotalJankyFramesWithLongCpuFieldNumber = 11,
571     kTotalJankyFramesWithLongGpuFieldNumber = 12,
572     kTotalJankyFramesSfUnattributedFieldNumber = 13,
573     kTotalJankyFramesAppUnattributedFieldNumber = 14,
574     kTotalJankyFramesSfSchedulingFieldNumber = 15,
575     kTotalJankFramesSfPredictionErrorFieldNumber = 16,
576     kTotalJankFramesAppBufferStuffingFieldNumber = 17,
577     kDisplayRefreshRateBucketFieldNumber = 18,
578     kRenderRateBucketFieldNumber = 21,
579   };
580   // optional .android.surfaceflinger.FrameTimingHistogram frame_duration = 7;
581   bool has_frame_duration() const;
582   private:
583   bool _internal_has_frame_duration() const;
584   public:
585   void clear_frame_duration();
586   const ::android::surfaceflinger::FrameTimingHistogram& frame_duration() const;
587   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_frame_duration();
588   ::android::surfaceflinger::FrameTimingHistogram* mutable_frame_duration();
589   void set_allocated_frame_duration(::android::surfaceflinger::FrameTimingHistogram* frame_duration);
590   private:
591   const ::android::surfaceflinger::FrameTimingHistogram& _internal_frame_duration() const;
592   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_frame_duration();
593   public:
594   void unsafe_arena_set_allocated_frame_duration(
595       ::android::surfaceflinger::FrameTimingHistogram* frame_duration);
596   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_frame_duration();
597 
598   // optional .android.surfaceflinger.FrameTimingHistogram render_engine_timing = 8;
599   bool has_render_engine_timing() const;
600   private:
601   bool _internal_has_render_engine_timing() const;
602   public:
603   void clear_render_engine_timing();
604   const ::android::surfaceflinger::FrameTimingHistogram& render_engine_timing() const;
605   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_render_engine_timing();
606   ::android::surfaceflinger::FrameTimingHistogram* mutable_render_engine_timing();
607   void set_allocated_render_engine_timing(::android::surfaceflinger::FrameTimingHistogram* render_engine_timing);
608   private:
609   const ::android::surfaceflinger::FrameTimingHistogram& _internal_render_engine_timing() const;
610   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_render_engine_timing();
611   public:
612   void unsafe_arena_set_allocated_render_engine_timing(
613       ::android::surfaceflinger::FrameTimingHistogram* render_engine_timing);
614   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_render_engine_timing();
615 
616   // optional .android.surfaceflinger.FrameTimingHistogram sf_deadline_misses = 19;
617   bool has_sf_deadline_misses() const;
618   private:
619   bool _internal_has_sf_deadline_misses() const;
620   public:
621   void clear_sf_deadline_misses();
622   const ::android::surfaceflinger::FrameTimingHistogram& sf_deadline_misses() const;
623   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_sf_deadline_misses();
624   ::android::surfaceflinger::FrameTimingHistogram* mutable_sf_deadline_misses();
625   void set_allocated_sf_deadline_misses(::android::surfaceflinger::FrameTimingHistogram* sf_deadline_misses);
626   private:
627   const ::android::surfaceflinger::FrameTimingHistogram& _internal_sf_deadline_misses() const;
628   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_sf_deadline_misses();
629   public:
630   void unsafe_arena_set_allocated_sf_deadline_misses(
631       ::android::surfaceflinger::FrameTimingHistogram* sf_deadline_misses);
632   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_sf_deadline_misses();
633 
634   // optional .android.surfaceflinger.FrameTimingHistogram sf_prediction_errors = 20;
635   bool has_sf_prediction_errors() const;
636   private:
637   bool _internal_has_sf_prediction_errors() const;
638   public:
639   void clear_sf_prediction_errors();
640   const ::android::surfaceflinger::FrameTimingHistogram& sf_prediction_errors() const;
641   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_sf_prediction_errors();
642   ::android::surfaceflinger::FrameTimingHistogram* mutable_sf_prediction_errors();
643   void set_allocated_sf_prediction_errors(::android::surfaceflinger::FrameTimingHistogram* sf_prediction_errors);
644   private:
645   const ::android::surfaceflinger::FrameTimingHistogram& _internal_sf_prediction_errors() const;
646   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_sf_prediction_errors();
647   public:
648   void unsafe_arena_set_allocated_sf_prediction_errors(
649       ::android::surfaceflinger::FrameTimingHistogram* sf_prediction_errors);
650   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_sf_prediction_errors();
651 
652   // optional int64 total_frames = 1;
653   bool has_total_frames() const;
654   private:
655   bool _internal_has_total_frames() const;
656   public:
657   void clear_total_frames();
658   ::int64_t total_frames() const;
659   void set_total_frames(::int64_t value);
660   private:
661   ::int64_t _internal_total_frames() const;
662   void _internal_set_total_frames(::int64_t value);
663   public:
664 
665   // optional int64 missed_frames = 2;
666   bool has_missed_frames() const;
667   private:
668   bool _internal_has_missed_frames() const;
669   public:
670   void clear_missed_frames();
671   ::int64_t missed_frames() const;
672   void set_missed_frames(::int64_t value);
673   private:
674   ::int64_t _internal_missed_frames() const;
675   void _internal_set_missed_frames(::int64_t value);
676   public:
677 
678   // optional int64 client_composition_frames = 3;
679   bool has_client_composition_frames() const;
680   private:
681   bool _internal_has_client_composition_frames() const;
682   public:
683   void clear_client_composition_frames();
684   ::int64_t client_composition_frames() const;
685   void set_client_composition_frames(::int64_t value);
686   private:
687   ::int64_t _internal_client_composition_frames() const;
688   void _internal_set_client_composition_frames(::int64_t value);
689   public:
690 
691   // optional int64 display_on_millis = 4;
692   bool has_display_on_millis() const;
693   private:
694   bool _internal_has_display_on_millis() const;
695   public:
696   void clear_display_on_millis();
697   ::int64_t display_on_millis() const;
698   void set_display_on_millis(::int64_t value);
699   private:
700   ::int64_t _internal_display_on_millis() const;
701   void _internal_set_display_on_millis(::int64_t value);
702   public:
703 
704   // optional int64 animation_millis = 5;
705   bool has_animation_millis() const;
706   private:
707   bool _internal_has_animation_millis() const;
708   public:
709   void clear_animation_millis();
710   ::int64_t animation_millis() const;
711   void set_animation_millis(::int64_t value);
712   private:
713   ::int64_t _internal_animation_millis() const;
714   void _internal_set_animation_millis(::int64_t value);
715   public:
716 
717   // optional int32 event_connection_count = 6;
718   bool has_event_connection_count() const;
719   private:
720   bool _internal_has_event_connection_count() const;
721   public:
722   void clear_event_connection_count();
723   ::int32_t event_connection_count() const;
724   void set_event_connection_count(::int32_t value);
725   private:
726   ::int32_t _internal_event_connection_count() const;
727   void _internal_set_event_connection_count(::int32_t value);
728   public:
729 
730   // optional int32 total_timeline_frames = 9;
731   bool has_total_timeline_frames() const;
732   private:
733   bool _internal_has_total_timeline_frames() const;
734   public:
735   void clear_total_timeline_frames();
736   ::int32_t total_timeline_frames() const;
737   void set_total_timeline_frames(::int32_t value);
738   private:
739   ::int32_t _internal_total_timeline_frames() const;
740   void _internal_set_total_timeline_frames(::int32_t value);
741   public:
742 
743   // optional int32 total_janky_frames = 10;
744   bool has_total_janky_frames() const;
745   private:
746   bool _internal_has_total_janky_frames() const;
747   public:
748   void clear_total_janky_frames();
749   ::int32_t total_janky_frames() const;
750   void set_total_janky_frames(::int32_t value);
751   private:
752   ::int32_t _internal_total_janky_frames() const;
753   void _internal_set_total_janky_frames(::int32_t value);
754   public:
755 
756   // optional int32 total_janky_frames_with_long_cpu = 11;
757   bool has_total_janky_frames_with_long_cpu() const;
758   private:
759   bool _internal_has_total_janky_frames_with_long_cpu() const;
760   public:
761   void clear_total_janky_frames_with_long_cpu();
762   ::int32_t total_janky_frames_with_long_cpu() const;
763   void set_total_janky_frames_with_long_cpu(::int32_t value);
764   private:
765   ::int32_t _internal_total_janky_frames_with_long_cpu() const;
766   void _internal_set_total_janky_frames_with_long_cpu(::int32_t value);
767   public:
768 
769   // optional int32 total_janky_frames_with_long_gpu = 12;
770   bool has_total_janky_frames_with_long_gpu() const;
771   private:
772   bool _internal_has_total_janky_frames_with_long_gpu() const;
773   public:
774   void clear_total_janky_frames_with_long_gpu();
775   ::int32_t total_janky_frames_with_long_gpu() const;
776   void set_total_janky_frames_with_long_gpu(::int32_t value);
777   private:
778   ::int32_t _internal_total_janky_frames_with_long_gpu() const;
779   void _internal_set_total_janky_frames_with_long_gpu(::int32_t value);
780   public:
781 
782   // optional int32 total_janky_frames_sf_unattributed = 13;
783   bool has_total_janky_frames_sf_unattributed() const;
784   private:
785   bool _internal_has_total_janky_frames_sf_unattributed() const;
786   public:
787   void clear_total_janky_frames_sf_unattributed();
788   ::int32_t total_janky_frames_sf_unattributed() const;
789   void set_total_janky_frames_sf_unattributed(::int32_t value);
790   private:
791   ::int32_t _internal_total_janky_frames_sf_unattributed() const;
792   void _internal_set_total_janky_frames_sf_unattributed(::int32_t value);
793   public:
794 
795   // optional int32 total_janky_frames_app_unattributed = 14;
796   bool has_total_janky_frames_app_unattributed() const;
797   private:
798   bool _internal_has_total_janky_frames_app_unattributed() const;
799   public:
800   void clear_total_janky_frames_app_unattributed();
801   ::int32_t total_janky_frames_app_unattributed() const;
802   void set_total_janky_frames_app_unattributed(::int32_t value);
803   private:
804   ::int32_t _internal_total_janky_frames_app_unattributed() const;
805   void _internal_set_total_janky_frames_app_unattributed(::int32_t value);
806   public:
807 
808   // optional int32 total_janky_frames_sf_scheduling = 15;
809   bool has_total_janky_frames_sf_scheduling() const;
810   private:
811   bool _internal_has_total_janky_frames_sf_scheduling() const;
812   public:
813   void clear_total_janky_frames_sf_scheduling();
814   ::int32_t total_janky_frames_sf_scheduling() const;
815   void set_total_janky_frames_sf_scheduling(::int32_t value);
816   private:
817   ::int32_t _internal_total_janky_frames_sf_scheduling() const;
818   void _internal_set_total_janky_frames_sf_scheduling(::int32_t value);
819   public:
820 
821   // optional int32 total_jank_frames_sf_prediction_error = 16;
822   bool has_total_jank_frames_sf_prediction_error() const;
823   private:
824   bool _internal_has_total_jank_frames_sf_prediction_error() const;
825   public:
826   void clear_total_jank_frames_sf_prediction_error();
827   ::int32_t total_jank_frames_sf_prediction_error() const;
828   void set_total_jank_frames_sf_prediction_error(::int32_t value);
829   private:
830   ::int32_t _internal_total_jank_frames_sf_prediction_error() const;
831   void _internal_set_total_jank_frames_sf_prediction_error(::int32_t value);
832   public:
833 
834   // optional int32 total_jank_frames_app_buffer_stuffing = 17;
835   bool has_total_jank_frames_app_buffer_stuffing() const;
836   private:
837   bool _internal_has_total_jank_frames_app_buffer_stuffing() const;
838   public:
839   void clear_total_jank_frames_app_buffer_stuffing();
840   ::int32_t total_jank_frames_app_buffer_stuffing() const;
841   void set_total_jank_frames_app_buffer_stuffing(::int32_t value);
842   private:
843   ::int32_t _internal_total_jank_frames_app_buffer_stuffing() const;
844   void _internal_set_total_jank_frames_app_buffer_stuffing(::int32_t value);
845   public:
846 
847   // optional int32 display_refresh_rate_bucket = 18;
848   bool has_display_refresh_rate_bucket() const;
849   private:
850   bool _internal_has_display_refresh_rate_bucket() const;
851   public:
852   void clear_display_refresh_rate_bucket();
853   ::int32_t display_refresh_rate_bucket() const;
854   void set_display_refresh_rate_bucket(::int32_t value);
855   private:
856   ::int32_t _internal_display_refresh_rate_bucket() const;
857   void _internal_set_display_refresh_rate_bucket(::int32_t value);
858   public:
859 
860   // optional int32 render_rate_bucket = 21;
861   bool has_render_rate_bucket() const;
862   private:
863   bool _internal_has_render_rate_bucket() const;
864   public:
865   void clear_render_rate_bucket();
866   ::int32_t render_rate_bucket() const;
867   void set_render_rate_bucket(::int32_t value);
868   private:
869   ::int32_t _internal_render_rate_bucket() const;
870   void _internal_set_render_rate_bucket(::int32_t value);
871   public:
872 
873   // @@protoc_insertion_point(class_scope:android.surfaceflinger.SurfaceflingerStatsGlobalInfo)
874  private:
875   class _Internal;
876 
877   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
878   typedef void InternalArenaConstructable_;
879   typedef void DestructorSkippable_;
880   struct Impl_ {
881     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
882     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
883     ::android::surfaceflinger::FrameTimingHistogram* frame_duration_;
884     ::android::surfaceflinger::FrameTimingHistogram* render_engine_timing_;
885     ::android::surfaceflinger::FrameTimingHistogram* sf_deadline_misses_;
886     ::android::surfaceflinger::FrameTimingHistogram* sf_prediction_errors_;
887     ::int64_t total_frames_;
888     ::int64_t missed_frames_;
889     ::int64_t client_composition_frames_;
890     ::int64_t display_on_millis_;
891     ::int64_t animation_millis_;
892     ::int32_t event_connection_count_;
893     ::int32_t total_timeline_frames_;
894     ::int32_t total_janky_frames_;
895     ::int32_t total_janky_frames_with_long_cpu_;
896     ::int32_t total_janky_frames_with_long_gpu_;
897     ::int32_t total_janky_frames_sf_unattributed_;
898     ::int32_t total_janky_frames_app_unattributed_;
899     ::int32_t total_janky_frames_sf_scheduling_;
900     ::int32_t total_jank_frames_sf_prediction_error_;
901     ::int32_t total_jank_frames_app_buffer_stuffing_;
902     ::int32_t display_refresh_rate_bucket_;
903     ::int32_t render_rate_bucket_;
904   };
905   union { Impl_ _impl_; };
906   friend struct ::TableStruct_frameworks_2fnative_2fservices_2fsurfaceflinger_2fTimeStats_2ftimestatsatomsproto_2ftimestats_5fatoms_2eproto;
907 };
908 // -------------------------------------------------------------------
909 
910 class SurfaceflingerStatsLayerInfo_SetFrameRateVote final :
911     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote) */ {
912  public:
SurfaceflingerStatsLayerInfo_SetFrameRateVote()913   inline SurfaceflingerStatsLayerInfo_SetFrameRateVote() : SurfaceflingerStatsLayerInfo_SetFrameRateVote(nullptr) {}
914   ~SurfaceflingerStatsLayerInfo_SetFrameRateVote() override;
915   explicit PROTOBUF_CONSTEXPR SurfaceflingerStatsLayerInfo_SetFrameRateVote(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
916 
917   SurfaceflingerStatsLayerInfo_SetFrameRateVote(const SurfaceflingerStatsLayerInfo_SetFrameRateVote& from);
SurfaceflingerStatsLayerInfo_SetFrameRateVote(SurfaceflingerStatsLayerInfo_SetFrameRateVote && from)918   SurfaceflingerStatsLayerInfo_SetFrameRateVote(SurfaceflingerStatsLayerInfo_SetFrameRateVote&& from) noexcept
919     : SurfaceflingerStatsLayerInfo_SetFrameRateVote() {
920     *this = ::std::move(from);
921   }
922 
923   inline SurfaceflingerStatsLayerInfo_SetFrameRateVote& operator=(const SurfaceflingerStatsLayerInfo_SetFrameRateVote& from) {
924     if (this == &from) return *this;
925     CopyFrom(from);
926     return *this;
927   }
928   inline SurfaceflingerStatsLayerInfo_SetFrameRateVote& operator=(SurfaceflingerStatsLayerInfo_SetFrameRateVote&& from) noexcept {
929     if (this == &from) return *this;
930     if (GetOwningArena() == from.GetOwningArena()
931   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
932         && GetOwningArena() != nullptr
933   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
934     ) {
935       InternalSwap(&from);
936     } else {
937       CopyFrom(from);
938     }
939     return *this;
940   }
941 
unknown_fields()942   inline const std::string& unknown_fields() const {
943     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
944   }
mutable_unknown_fields()945   inline std::string* mutable_unknown_fields() {
946     return _internal_metadata_.mutable_unknown_fields<std::string>();
947   }
948 
default_instance()949   static const SurfaceflingerStatsLayerInfo_SetFrameRateVote& default_instance() {
950     return *internal_default_instance();
951   }
internal_default_instance()952   static inline const SurfaceflingerStatsLayerInfo_SetFrameRateVote* internal_default_instance() {
953     return reinterpret_cast<const SurfaceflingerStatsLayerInfo_SetFrameRateVote*>(
954                &_SurfaceflingerStatsLayerInfo_SetFrameRateVote_default_instance_);
955   }
956   static constexpr int kIndexInFileMessages =
957     3;
958 
swap(SurfaceflingerStatsLayerInfo_SetFrameRateVote & a,SurfaceflingerStatsLayerInfo_SetFrameRateVote & b)959   friend void swap(SurfaceflingerStatsLayerInfo_SetFrameRateVote& a, SurfaceflingerStatsLayerInfo_SetFrameRateVote& b) {
960     a.Swap(&b);
961   }
Swap(SurfaceflingerStatsLayerInfo_SetFrameRateVote * other)962   inline void Swap(SurfaceflingerStatsLayerInfo_SetFrameRateVote* other) {
963     if (other == this) return;
964   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
965     if (GetOwningArena() != nullptr &&
966         GetOwningArena() == other->GetOwningArena()) {
967    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
968     if (GetOwningArena() == other->GetOwningArena()) {
969   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
970       InternalSwap(other);
971     } else {
972       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
973     }
974   }
975   void UnsafeArenaSwap(SurfaceflingerStatsLayerInfo_SetFrameRateVote* other) {
976     if (other == this) return;
977     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
978     InternalSwap(other);
979   }
980 
981   // implements Message ----------------------------------------------
982 
983   SurfaceflingerStatsLayerInfo_SetFrameRateVote* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
984     return CreateMaybeMessage<SurfaceflingerStatsLayerInfo_SetFrameRateVote>(arena);
985   }
986   SurfaceflingerStatsLayerInfo_SetFrameRateVote* New() const {
987     return New(nullptr);
988   }
989   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
990   void CopyFrom(const SurfaceflingerStatsLayerInfo_SetFrameRateVote& from);
991   void MergeFrom(const SurfaceflingerStatsLayerInfo_SetFrameRateVote& from);
992   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
993   bool IsInitialized() const final;
994 
995   size_t ByteSizeLong() const final;
996   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
997   ::uint8_t* _InternalSerialize(
998       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
999   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1000 
1001   private:
1002   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1003   void SharedDtor();
1004   void SetCachedSize(int size) const;
1005   void InternalSwap(SurfaceflingerStatsLayerInfo_SetFrameRateVote* other);
1006 
1007   private:
1008   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1009   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1010     return "android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote";
1011   }
1012   protected:
1013   explicit SurfaceflingerStatsLayerInfo_SetFrameRateVote(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1014                        bool is_message_owned = false);
1015   public:
1016 
1017   std::string GetTypeName() const final;
1018 
1019   // nested types ----------------------------------------------------
1020 
1021   typedef SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility FrameRateCompatibility;
1022   static constexpr FrameRateCompatibility FRAME_RATE_UNDEFINED =
1023     SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FRAME_RATE_UNDEFINED;
1024   static constexpr FrameRateCompatibility FRAME_RATE_DEFAULT =
1025     SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FRAME_RATE_DEFAULT;
1026   static constexpr FrameRateCompatibility FRAME_RATE_EXACT_OR_MULTIPLE =
1027     SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FRAME_RATE_EXACT_OR_MULTIPLE;
1028   static inline bool FrameRateCompatibility_IsValid(int value) {
1029     return SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_IsValid(value);
1030   }
1031   static constexpr FrameRateCompatibility FrameRateCompatibility_MIN =
1032     SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FrameRateCompatibility_MIN;
1033   static constexpr FrameRateCompatibility FrameRateCompatibility_MAX =
1034     SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FrameRateCompatibility_MAX;
1035   static constexpr int FrameRateCompatibility_ARRAYSIZE =
1036     SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_FrameRateCompatibility_ARRAYSIZE;
1037   template<typename T>
1038   static inline const std::string& FrameRateCompatibility_Name(T enum_t_value) {
1039     static_assert(::std::is_same<T, FrameRateCompatibility>::value ||
1040       ::std::is_integral<T>::value,
1041       "Incorrect type passed to function FrameRateCompatibility_Name.");
1042     return SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_Name(enum_t_value);
1043   }
1044   static inline bool FrameRateCompatibility_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1045       FrameRateCompatibility* value) {
1046     return SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_Parse(name, value);
1047   }
1048 
1049   typedef SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness Seamlessness;
1050   static constexpr Seamlessness SEAMLESS_UNDEFINED =
1051     SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_SEAMLESS_UNDEFINED;
1052   static constexpr Seamlessness SEAMLESS_SHOULD_BE_SEAMLESS =
1053     SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_SEAMLESS_SHOULD_BE_SEAMLESS;
1054   static constexpr Seamlessness SEAMLESS_NOT_REQUIRED =
1055     SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_SEAMLESS_NOT_REQUIRED;
1056   static inline bool Seamlessness_IsValid(int value) {
1057     return SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_IsValid(value);
1058   }
1059   static constexpr Seamlessness Seamlessness_MIN =
1060     SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Seamlessness_MIN;
1061   static constexpr Seamlessness Seamlessness_MAX =
1062     SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Seamlessness_MAX;
1063   static constexpr int Seamlessness_ARRAYSIZE =
1064     SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Seamlessness_ARRAYSIZE;
1065   template<typename T>
1066   static inline const std::string& Seamlessness_Name(T enum_t_value) {
1067     static_assert(::std::is_same<T, Seamlessness>::value ||
1068       ::std::is_integral<T>::value,
1069       "Incorrect type passed to function Seamlessness_Name.");
1070     return SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Name(enum_t_value);
1071   }
1072   static inline bool Seamlessness_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1073       Seamlessness* value) {
1074     return SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_Parse(name, value);
1075   }
1076 
1077   // accessors -------------------------------------------------------
1078 
1079   enum : int {
1080     kFrameRateFieldNumber = 1,
1081     kFrameRateCompatibilityFieldNumber = 2,
1082     kSeamlessnessFieldNumber = 3,
1083   };
1084   // optional float frame_rate = 1;
1085   bool has_frame_rate() const;
1086   private:
1087   bool _internal_has_frame_rate() const;
1088   public:
1089   void clear_frame_rate();
1090   float frame_rate() const;
1091   void set_frame_rate(float value);
1092   private:
1093   float _internal_frame_rate() const;
1094   void _internal_set_frame_rate(float value);
1095   public:
1096 
1097   // optional .android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote.FrameRateCompatibility frame_rate_compatibility = 2;
1098   bool has_frame_rate_compatibility() const;
1099   private:
1100   bool _internal_has_frame_rate_compatibility() const;
1101   public:
1102   void clear_frame_rate_compatibility();
1103   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility frame_rate_compatibility() const;
1104   void set_frame_rate_compatibility(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility value);
1105   private:
1106   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility _internal_frame_rate_compatibility() const;
1107   void _internal_set_frame_rate_compatibility(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility value);
1108   public:
1109 
1110   // optional .android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote.Seamlessness seamlessness = 3;
1111   bool has_seamlessness() const;
1112   private:
1113   bool _internal_has_seamlessness() const;
1114   public:
1115   void clear_seamlessness();
1116   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness seamlessness() const;
1117   void set_seamlessness(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness value);
1118   private:
1119   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness _internal_seamlessness() const;
1120   void _internal_set_seamlessness(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness value);
1121   public:
1122 
1123   // @@protoc_insertion_point(class_scope:android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote)
1124  private:
1125   class _Internal;
1126 
1127   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1128   typedef void InternalArenaConstructable_;
1129   typedef void DestructorSkippable_;
1130   struct Impl_ {
1131     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1132     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1133     float frame_rate_;
1134     int frame_rate_compatibility_;
1135     int seamlessness_;
1136   };
1137   union { Impl_ _impl_; };
1138   friend struct ::TableStruct_frameworks_2fnative_2fservices_2fsurfaceflinger_2fTimeStats_2ftimestatsatomsproto_2ftimestats_5fatoms_2eproto;
1139 };
1140 // -------------------------------------------------------------------
1141 
1142 class SurfaceflingerStatsLayerInfo final :
1143     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.surfaceflinger.SurfaceflingerStatsLayerInfo) */ {
1144  public:
SurfaceflingerStatsLayerInfo()1145   inline SurfaceflingerStatsLayerInfo() : SurfaceflingerStatsLayerInfo(nullptr) {}
1146   ~SurfaceflingerStatsLayerInfo() override;
1147   explicit PROTOBUF_CONSTEXPR SurfaceflingerStatsLayerInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1148 
1149   SurfaceflingerStatsLayerInfo(const SurfaceflingerStatsLayerInfo& from);
SurfaceflingerStatsLayerInfo(SurfaceflingerStatsLayerInfo && from)1150   SurfaceflingerStatsLayerInfo(SurfaceflingerStatsLayerInfo&& from) noexcept
1151     : SurfaceflingerStatsLayerInfo() {
1152     *this = ::std::move(from);
1153   }
1154 
1155   inline SurfaceflingerStatsLayerInfo& operator=(const SurfaceflingerStatsLayerInfo& from) {
1156     if (this == &from) return *this;
1157     CopyFrom(from);
1158     return *this;
1159   }
1160   inline SurfaceflingerStatsLayerInfo& operator=(SurfaceflingerStatsLayerInfo&& from) noexcept {
1161     if (this == &from) return *this;
1162     if (GetOwningArena() == from.GetOwningArena()
1163   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1164         && GetOwningArena() != nullptr
1165   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
1166     ) {
1167       InternalSwap(&from);
1168     } else {
1169       CopyFrom(from);
1170     }
1171     return *this;
1172   }
1173 
unknown_fields()1174   inline const std::string& unknown_fields() const {
1175     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
1176   }
mutable_unknown_fields()1177   inline std::string* mutable_unknown_fields() {
1178     return _internal_metadata_.mutable_unknown_fields<std::string>();
1179   }
1180 
default_instance()1181   static const SurfaceflingerStatsLayerInfo& default_instance() {
1182     return *internal_default_instance();
1183   }
internal_default_instance()1184   static inline const SurfaceflingerStatsLayerInfo* internal_default_instance() {
1185     return reinterpret_cast<const SurfaceflingerStatsLayerInfo*>(
1186                &_SurfaceflingerStatsLayerInfo_default_instance_);
1187   }
1188   static constexpr int kIndexInFileMessages =
1189     4;
1190 
swap(SurfaceflingerStatsLayerInfo & a,SurfaceflingerStatsLayerInfo & b)1191   friend void swap(SurfaceflingerStatsLayerInfo& a, SurfaceflingerStatsLayerInfo& b) {
1192     a.Swap(&b);
1193   }
Swap(SurfaceflingerStatsLayerInfo * other)1194   inline void Swap(SurfaceflingerStatsLayerInfo* other) {
1195     if (other == this) return;
1196   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1197     if (GetOwningArena() != nullptr &&
1198         GetOwningArena() == other->GetOwningArena()) {
1199    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
1200     if (GetOwningArena() == other->GetOwningArena()) {
1201   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
1202       InternalSwap(other);
1203     } else {
1204       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1205     }
1206   }
1207   void UnsafeArenaSwap(SurfaceflingerStatsLayerInfo* other) {
1208     if (other == this) return;
1209     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1210     InternalSwap(other);
1211   }
1212 
1213   // implements Message ----------------------------------------------
1214 
1215   SurfaceflingerStatsLayerInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1216     return CreateMaybeMessage<SurfaceflingerStatsLayerInfo>(arena);
1217   }
1218   SurfaceflingerStatsLayerInfo* New() const {
1219     return New(nullptr);
1220   }
1221   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
1222   void CopyFrom(const SurfaceflingerStatsLayerInfo& from);
1223   void MergeFrom(const SurfaceflingerStatsLayerInfo& from);
1224   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1225   bool IsInitialized() const final;
1226 
1227   size_t ByteSizeLong() const final;
1228   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1229   ::uint8_t* _InternalSerialize(
1230       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1231   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1232 
1233   private:
1234   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1235   void SharedDtor();
1236   void SetCachedSize(int size) const;
1237   void InternalSwap(SurfaceflingerStatsLayerInfo* other);
1238 
1239   private:
1240   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1241   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1242     return "android.surfaceflinger.SurfaceflingerStatsLayerInfo";
1243   }
1244   protected:
1245   explicit SurfaceflingerStatsLayerInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1246                        bool is_message_owned = false);
1247   public:
1248 
1249   std::string GetTypeName() const final;
1250 
1251   // nested types ----------------------------------------------------
1252 
1253   typedef SurfaceflingerStatsLayerInfo_SetFrameRateVote SetFrameRateVote;
1254 
1255   typedef SurfaceflingerStatsLayerInfo_GameMode GameMode;
1256   static constexpr GameMode GAME_MODE_UNSPECIFIED =
1257     SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_UNSPECIFIED;
1258   static constexpr GameMode GAME_MODE_UNSUPPORTED =
1259     SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_UNSUPPORTED;
1260   static constexpr GameMode GAME_MODE_STANDARD =
1261     SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_STANDARD;
1262   static constexpr GameMode GAME_MODE_PERFORMANCE =
1263     SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_PERFORMANCE;
1264   static constexpr GameMode GAME_MODE_BATTERY =
1265     SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_BATTERY;
1266   static constexpr GameMode GAME_MODE_CUSTOM =
1267     SurfaceflingerStatsLayerInfo_GameMode_GAME_MODE_CUSTOM;
1268   static inline bool GameMode_IsValid(int value) {
1269     return SurfaceflingerStatsLayerInfo_GameMode_IsValid(value);
1270   }
1271   static constexpr GameMode GameMode_MIN =
1272     SurfaceflingerStatsLayerInfo_GameMode_GameMode_MIN;
1273   static constexpr GameMode GameMode_MAX =
1274     SurfaceflingerStatsLayerInfo_GameMode_GameMode_MAX;
1275   static constexpr int GameMode_ARRAYSIZE =
1276     SurfaceflingerStatsLayerInfo_GameMode_GameMode_ARRAYSIZE;
1277   template<typename T>
1278   static inline const std::string& GameMode_Name(T enum_t_value) {
1279     static_assert(::std::is_same<T, GameMode>::value ||
1280       ::std::is_integral<T>::value,
1281       "Incorrect type passed to function GameMode_Name.");
1282     return SurfaceflingerStatsLayerInfo_GameMode_Name(enum_t_value);
1283   }
1284   static inline bool GameMode_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
1285       GameMode* value) {
1286     return SurfaceflingerStatsLayerInfo_GameMode_Parse(name, value);
1287   }
1288 
1289   // accessors -------------------------------------------------------
1290 
1291   enum : int {
1292     kLayerNameFieldNumber = 1,
1293     kPresentToPresentFieldNumber = 4,
1294     kPostToPresentFieldNumber = 5,
1295     kAcquireToPresentFieldNumber = 6,
1296     kLatchToPresentFieldNumber = 7,
1297     kDesiredToPresentFieldNumber = 8,
1298     kPostToAcquireFieldNumber = 9,
1299     kSetFrameRateVoteFieldNumber = 24,
1300     kAppDeadlineMissesFieldNumber = 25,
1301     kPresentToPresentDeltaFieldNumber = 27,
1302     kTotalFramesFieldNumber = 2,
1303     kDroppedFramesFieldNumber = 3,
1304     kLateAcquireFramesFieldNumber = 10,
1305     kBadDesiredPresentFramesFieldNumber = 11,
1306     kUidFieldNumber = 12,
1307     kTotalTimelineFramesFieldNumber = 13,
1308     kTotalJankyFramesFieldNumber = 14,
1309     kTotalJankyFramesWithLongCpuFieldNumber = 15,
1310     kTotalJankyFramesWithLongGpuFieldNumber = 16,
1311     kTotalJankyFramesSfUnattributedFieldNumber = 17,
1312     kTotalJankyFramesAppUnattributedFieldNumber = 18,
1313     kTotalJankyFramesSfSchedulingFieldNumber = 19,
1314     kTotalJankFramesSfPredictionErrorFieldNumber = 20,
1315     kTotalJankFramesAppBufferStuffingFieldNumber = 21,
1316     kDisplayRefreshRateBucketFieldNumber = 22,
1317     kRenderRateBucketFieldNumber = 23,
1318     kGameModeFieldNumber = 26,
1319   };
1320   // optional string layer_name = 1;
1321   bool has_layer_name() const;
1322   private:
1323   bool _internal_has_layer_name() const;
1324   public:
1325   void clear_layer_name();
1326   const std::string& layer_name() const;
1327   template <typename ArgT0 = const std::string&, typename... ArgT>
1328   void set_layer_name(ArgT0&& arg0, ArgT... args);
1329   std::string* mutable_layer_name();
1330   PROTOBUF_NODISCARD std::string* release_layer_name();
1331   void set_allocated_layer_name(std::string* layer_name);
1332   private:
1333   const std::string& _internal_layer_name() const;
1334   inline PROTOBUF_ALWAYS_INLINE void _internal_set_layer_name(const std::string& value);
1335   std::string* _internal_mutable_layer_name();
1336   public:
1337 
1338   // optional .android.surfaceflinger.FrameTimingHistogram present_to_present = 4;
1339   bool has_present_to_present() const;
1340   private:
1341   bool _internal_has_present_to_present() const;
1342   public:
1343   void clear_present_to_present();
1344   const ::android::surfaceflinger::FrameTimingHistogram& present_to_present() const;
1345   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_present_to_present();
1346   ::android::surfaceflinger::FrameTimingHistogram* mutable_present_to_present();
1347   void set_allocated_present_to_present(::android::surfaceflinger::FrameTimingHistogram* present_to_present);
1348   private:
1349   const ::android::surfaceflinger::FrameTimingHistogram& _internal_present_to_present() const;
1350   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_present_to_present();
1351   public:
1352   void unsafe_arena_set_allocated_present_to_present(
1353       ::android::surfaceflinger::FrameTimingHistogram* present_to_present);
1354   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_present_to_present();
1355 
1356   // optional .android.surfaceflinger.FrameTimingHistogram post_to_present = 5;
1357   bool has_post_to_present() const;
1358   private:
1359   bool _internal_has_post_to_present() const;
1360   public:
1361   void clear_post_to_present();
1362   const ::android::surfaceflinger::FrameTimingHistogram& post_to_present() const;
1363   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_post_to_present();
1364   ::android::surfaceflinger::FrameTimingHistogram* mutable_post_to_present();
1365   void set_allocated_post_to_present(::android::surfaceflinger::FrameTimingHistogram* post_to_present);
1366   private:
1367   const ::android::surfaceflinger::FrameTimingHistogram& _internal_post_to_present() const;
1368   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_post_to_present();
1369   public:
1370   void unsafe_arena_set_allocated_post_to_present(
1371       ::android::surfaceflinger::FrameTimingHistogram* post_to_present);
1372   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_post_to_present();
1373 
1374   // optional .android.surfaceflinger.FrameTimingHistogram acquire_to_present = 6;
1375   bool has_acquire_to_present() const;
1376   private:
1377   bool _internal_has_acquire_to_present() const;
1378   public:
1379   void clear_acquire_to_present();
1380   const ::android::surfaceflinger::FrameTimingHistogram& acquire_to_present() const;
1381   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_acquire_to_present();
1382   ::android::surfaceflinger::FrameTimingHistogram* mutable_acquire_to_present();
1383   void set_allocated_acquire_to_present(::android::surfaceflinger::FrameTimingHistogram* acquire_to_present);
1384   private:
1385   const ::android::surfaceflinger::FrameTimingHistogram& _internal_acquire_to_present() const;
1386   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_acquire_to_present();
1387   public:
1388   void unsafe_arena_set_allocated_acquire_to_present(
1389       ::android::surfaceflinger::FrameTimingHistogram* acquire_to_present);
1390   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_acquire_to_present();
1391 
1392   // optional .android.surfaceflinger.FrameTimingHistogram latch_to_present = 7;
1393   bool has_latch_to_present() const;
1394   private:
1395   bool _internal_has_latch_to_present() const;
1396   public:
1397   void clear_latch_to_present();
1398   const ::android::surfaceflinger::FrameTimingHistogram& latch_to_present() const;
1399   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_latch_to_present();
1400   ::android::surfaceflinger::FrameTimingHistogram* mutable_latch_to_present();
1401   void set_allocated_latch_to_present(::android::surfaceflinger::FrameTimingHistogram* latch_to_present);
1402   private:
1403   const ::android::surfaceflinger::FrameTimingHistogram& _internal_latch_to_present() const;
1404   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_latch_to_present();
1405   public:
1406   void unsafe_arena_set_allocated_latch_to_present(
1407       ::android::surfaceflinger::FrameTimingHistogram* latch_to_present);
1408   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_latch_to_present();
1409 
1410   // optional .android.surfaceflinger.FrameTimingHistogram desired_to_present = 8;
1411   bool has_desired_to_present() const;
1412   private:
1413   bool _internal_has_desired_to_present() const;
1414   public:
1415   void clear_desired_to_present();
1416   const ::android::surfaceflinger::FrameTimingHistogram& desired_to_present() const;
1417   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_desired_to_present();
1418   ::android::surfaceflinger::FrameTimingHistogram* mutable_desired_to_present();
1419   void set_allocated_desired_to_present(::android::surfaceflinger::FrameTimingHistogram* desired_to_present);
1420   private:
1421   const ::android::surfaceflinger::FrameTimingHistogram& _internal_desired_to_present() const;
1422   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_desired_to_present();
1423   public:
1424   void unsafe_arena_set_allocated_desired_to_present(
1425       ::android::surfaceflinger::FrameTimingHistogram* desired_to_present);
1426   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_desired_to_present();
1427 
1428   // optional .android.surfaceflinger.FrameTimingHistogram post_to_acquire = 9;
1429   bool has_post_to_acquire() const;
1430   private:
1431   bool _internal_has_post_to_acquire() const;
1432   public:
1433   void clear_post_to_acquire();
1434   const ::android::surfaceflinger::FrameTimingHistogram& post_to_acquire() const;
1435   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_post_to_acquire();
1436   ::android::surfaceflinger::FrameTimingHistogram* mutable_post_to_acquire();
1437   void set_allocated_post_to_acquire(::android::surfaceflinger::FrameTimingHistogram* post_to_acquire);
1438   private:
1439   const ::android::surfaceflinger::FrameTimingHistogram& _internal_post_to_acquire() const;
1440   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_post_to_acquire();
1441   public:
1442   void unsafe_arena_set_allocated_post_to_acquire(
1443       ::android::surfaceflinger::FrameTimingHistogram* post_to_acquire);
1444   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_post_to_acquire();
1445 
1446   // optional .android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote set_frame_rate_vote = 24;
1447   bool has_set_frame_rate_vote() const;
1448   private:
1449   bool _internal_has_set_frame_rate_vote() const;
1450   public:
1451   void clear_set_frame_rate_vote();
1452   const ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote& set_frame_rate_vote() const;
1453   PROTOBUF_NODISCARD ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* release_set_frame_rate_vote();
1454   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* mutable_set_frame_rate_vote();
1455   void set_allocated_set_frame_rate_vote(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* set_frame_rate_vote);
1456   private:
1457   const ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote& _internal_set_frame_rate_vote() const;
1458   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* _internal_mutable_set_frame_rate_vote();
1459   public:
1460   void unsafe_arena_set_allocated_set_frame_rate_vote(
1461       ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* set_frame_rate_vote);
1462   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* unsafe_arena_release_set_frame_rate_vote();
1463 
1464   // optional .android.surfaceflinger.FrameTimingHistogram app_deadline_misses = 25;
1465   bool has_app_deadline_misses() const;
1466   private:
1467   bool _internal_has_app_deadline_misses() const;
1468   public:
1469   void clear_app_deadline_misses();
1470   const ::android::surfaceflinger::FrameTimingHistogram& app_deadline_misses() const;
1471   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_app_deadline_misses();
1472   ::android::surfaceflinger::FrameTimingHistogram* mutable_app_deadline_misses();
1473   void set_allocated_app_deadline_misses(::android::surfaceflinger::FrameTimingHistogram* app_deadline_misses);
1474   private:
1475   const ::android::surfaceflinger::FrameTimingHistogram& _internal_app_deadline_misses() const;
1476   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_app_deadline_misses();
1477   public:
1478   void unsafe_arena_set_allocated_app_deadline_misses(
1479       ::android::surfaceflinger::FrameTimingHistogram* app_deadline_misses);
1480   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_app_deadline_misses();
1481 
1482   // optional .android.surfaceflinger.FrameTimingHistogram present_to_present_delta = 27;
1483   bool has_present_to_present_delta() const;
1484   private:
1485   bool _internal_has_present_to_present_delta() const;
1486   public:
1487   void clear_present_to_present_delta();
1488   const ::android::surfaceflinger::FrameTimingHistogram& present_to_present_delta() const;
1489   PROTOBUF_NODISCARD ::android::surfaceflinger::FrameTimingHistogram* release_present_to_present_delta();
1490   ::android::surfaceflinger::FrameTimingHistogram* mutable_present_to_present_delta();
1491   void set_allocated_present_to_present_delta(::android::surfaceflinger::FrameTimingHistogram* present_to_present_delta);
1492   private:
1493   const ::android::surfaceflinger::FrameTimingHistogram& _internal_present_to_present_delta() const;
1494   ::android::surfaceflinger::FrameTimingHistogram* _internal_mutable_present_to_present_delta();
1495   public:
1496   void unsafe_arena_set_allocated_present_to_present_delta(
1497       ::android::surfaceflinger::FrameTimingHistogram* present_to_present_delta);
1498   ::android::surfaceflinger::FrameTimingHistogram* unsafe_arena_release_present_to_present_delta();
1499 
1500   // optional int64 total_frames = 2;
1501   bool has_total_frames() const;
1502   private:
1503   bool _internal_has_total_frames() const;
1504   public:
1505   void clear_total_frames();
1506   ::int64_t total_frames() const;
1507   void set_total_frames(::int64_t value);
1508   private:
1509   ::int64_t _internal_total_frames() const;
1510   void _internal_set_total_frames(::int64_t value);
1511   public:
1512 
1513   // optional int64 dropped_frames = 3;
1514   bool has_dropped_frames() const;
1515   private:
1516   bool _internal_has_dropped_frames() const;
1517   public:
1518   void clear_dropped_frames();
1519   ::int64_t dropped_frames() const;
1520   void set_dropped_frames(::int64_t value);
1521   private:
1522   ::int64_t _internal_dropped_frames() const;
1523   void _internal_set_dropped_frames(::int64_t value);
1524   public:
1525 
1526   // optional int64 late_acquire_frames = 10;
1527   bool has_late_acquire_frames() const;
1528   private:
1529   bool _internal_has_late_acquire_frames() const;
1530   public:
1531   void clear_late_acquire_frames();
1532   ::int64_t late_acquire_frames() const;
1533   void set_late_acquire_frames(::int64_t value);
1534   private:
1535   ::int64_t _internal_late_acquire_frames() const;
1536   void _internal_set_late_acquire_frames(::int64_t value);
1537   public:
1538 
1539   // optional int64 bad_desired_present_frames = 11;
1540   bool has_bad_desired_present_frames() const;
1541   private:
1542   bool _internal_has_bad_desired_present_frames() const;
1543   public:
1544   void clear_bad_desired_present_frames();
1545   ::int64_t bad_desired_present_frames() const;
1546   void set_bad_desired_present_frames(::int64_t value);
1547   private:
1548   ::int64_t _internal_bad_desired_present_frames() const;
1549   void _internal_set_bad_desired_present_frames(::int64_t value);
1550   public:
1551 
1552   // optional int32 uid = 12;
1553   bool has_uid() const;
1554   private:
1555   bool _internal_has_uid() const;
1556   public:
1557   void clear_uid();
1558   ::int32_t uid() const;
1559   void set_uid(::int32_t value);
1560   private:
1561   ::int32_t _internal_uid() const;
1562   void _internal_set_uid(::int32_t value);
1563   public:
1564 
1565   // optional int32 total_timeline_frames = 13;
1566   bool has_total_timeline_frames() const;
1567   private:
1568   bool _internal_has_total_timeline_frames() const;
1569   public:
1570   void clear_total_timeline_frames();
1571   ::int32_t total_timeline_frames() const;
1572   void set_total_timeline_frames(::int32_t value);
1573   private:
1574   ::int32_t _internal_total_timeline_frames() const;
1575   void _internal_set_total_timeline_frames(::int32_t value);
1576   public:
1577 
1578   // optional int32 total_janky_frames = 14;
1579   bool has_total_janky_frames() const;
1580   private:
1581   bool _internal_has_total_janky_frames() const;
1582   public:
1583   void clear_total_janky_frames();
1584   ::int32_t total_janky_frames() const;
1585   void set_total_janky_frames(::int32_t value);
1586   private:
1587   ::int32_t _internal_total_janky_frames() const;
1588   void _internal_set_total_janky_frames(::int32_t value);
1589   public:
1590 
1591   // optional int32 total_janky_frames_with_long_cpu = 15;
1592   bool has_total_janky_frames_with_long_cpu() const;
1593   private:
1594   bool _internal_has_total_janky_frames_with_long_cpu() const;
1595   public:
1596   void clear_total_janky_frames_with_long_cpu();
1597   ::int32_t total_janky_frames_with_long_cpu() const;
1598   void set_total_janky_frames_with_long_cpu(::int32_t value);
1599   private:
1600   ::int32_t _internal_total_janky_frames_with_long_cpu() const;
1601   void _internal_set_total_janky_frames_with_long_cpu(::int32_t value);
1602   public:
1603 
1604   // optional int32 total_janky_frames_with_long_gpu = 16;
1605   bool has_total_janky_frames_with_long_gpu() const;
1606   private:
1607   bool _internal_has_total_janky_frames_with_long_gpu() const;
1608   public:
1609   void clear_total_janky_frames_with_long_gpu();
1610   ::int32_t total_janky_frames_with_long_gpu() const;
1611   void set_total_janky_frames_with_long_gpu(::int32_t value);
1612   private:
1613   ::int32_t _internal_total_janky_frames_with_long_gpu() const;
1614   void _internal_set_total_janky_frames_with_long_gpu(::int32_t value);
1615   public:
1616 
1617   // optional int32 total_janky_frames_sf_unattributed = 17;
1618   bool has_total_janky_frames_sf_unattributed() const;
1619   private:
1620   bool _internal_has_total_janky_frames_sf_unattributed() const;
1621   public:
1622   void clear_total_janky_frames_sf_unattributed();
1623   ::int32_t total_janky_frames_sf_unattributed() const;
1624   void set_total_janky_frames_sf_unattributed(::int32_t value);
1625   private:
1626   ::int32_t _internal_total_janky_frames_sf_unattributed() const;
1627   void _internal_set_total_janky_frames_sf_unattributed(::int32_t value);
1628   public:
1629 
1630   // optional int32 total_janky_frames_app_unattributed = 18;
1631   bool has_total_janky_frames_app_unattributed() const;
1632   private:
1633   bool _internal_has_total_janky_frames_app_unattributed() const;
1634   public:
1635   void clear_total_janky_frames_app_unattributed();
1636   ::int32_t total_janky_frames_app_unattributed() const;
1637   void set_total_janky_frames_app_unattributed(::int32_t value);
1638   private:
1639   ::int32_t _internal_total_janky_frames_app_unattributed() const;
1640   void _internal_set_total_janky_frames_app_unattributed(::int32_t value);
1641   public:
1642 
1643   // optional int32 total_janky_frames_sf_scheduling = 19;
1644   bool has_total_janky_frames_sf_scheduling() const;
1645   private:
1646   bool _internal_has_total_janky_frames_sf_scheduling() const;
1647   public:
1648   void clear_total_janky_frames_sf_scheduling();
1649   ::int32_t total_janky_frames_sf_scheduling() const;
1650   void set_total_janky_frames_sf_scheduling(::int32_t value);
1651   private:
1652   ::int32_t _internal_total_janky_frames_sf_scheduling() const;
1653   void _internal_set_total_janky_frames_sf_scheduling(::int32_t value);
1654   public:
1655 
1656   // optional int32 total_jank_frames_sf_prediction_error = 20;
1657   bool has_total_jank_frames_sf_prediction_error() const;
1658   private:
1659   bool _internal_has_total_jank_frames_sf_prediction_error() const;
1660   public:
1661   void clear_total_jank_frames_sf_prediction_error();
1662   ::int32_t total_jank_frames_sf_prediction_error() const;
1663   void set_total_jank_frames_sf_prediction_error(::int32_t value);
1664   private:
1665   ::int32_t _internal_total_jank_frames_sf_prediction_error() const;
1666   void _internal_set_total_jank_frames_sf_prediction_error(::int32_t value);
1667   public:
1668 
1669   // optional int32 total_jank_frames_app_buffer_stuffing = 21;
1670   bool has_total_jank_frames_app_buffer_stuffing() const;
1671   private:
1672   bool _internal_has_total_jank_frames_app_buffer_stuffing() const;
1673   public:
1674   void clear_total_jank_frames_app_buffer_stuffing();
1675   ::int32_t total_jank_frames_app_buffer_stuffing() const;
1676   void set_total_jank_frames_app_buffer_stuffing(::int32_t value);
1677   private:
1678   ::int32_t _internal_total_jank_frames_app_buffer_stuffing() const;
1679   void _internal_set_total_jank_frames_app_buffer_stuffing(::int32_t value);
1680   public:
1681 
1682   // optional int32 display_refresh_rate_bucket = 22;
1683   bool has_display_refresh_rate_bucket() const;
1684   private:
1685   bool _internal_has_display_refresh_rate_bucket() const;
1686   public:
1687   void clear_display_refresh_rate_bucket();
1688   ::int32_t display_refresh_rate_bucket() const;
1689   void set_display_refresh_rate_bucket(::int32_t value);
1690   private:
1691   ::int32_t _internal_display_refresh_rate_bucket() const;
1692   void _internal_set_display_refresh_rate_bucket(::int32_t value);
1693   public:
1694 
1695   // optional int32 render_rate_bucket = 23;
1696   bool has_render_rate_bucket() const;
1697   private:
1698   bool _internal_has_render_rate_bucket() const;
1699   public:
1700   void clear_render_rate_bucket();
1701   ::int32_t render_rate_bucket() const;
1702   void set_render_rate_bucket(::int32_t value);
1703   private:
1704   ::int32_t _internal_render_rate_bucket() const;
1705   void _internal_set_render_rate_bucket(::int32_t value);
1706   public:
1707 
1708   // optional .android.surfaceflinger.SurfaceflingerStatsLayerInfo.GameMode game_mode = 26;
1709   bool has_game_mode() const;
1710   private:
1711   bool _internal_has_game_mode() const;
1712   public:
1713   void clear_game_mode();
1714   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode game_mode() const;
1715   void set_game_mode(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode value);
1716   private:
1717   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode _internal_game_mode() const;
1718   void _internal_set_game_mode(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode value);
1719   public:
1720 
1721   // @@protoc_insertion_point(class_scope:android.surfaceflinger.SurfaceflingerStatsLayerInfo)
1722  private:
1723   class _Internal;
1724 
1725   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1726   typedef void InternalArenaConstructable_;
1727   typedef void DestructorSkippable_;
1728   struct Impl_ {
1729     ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1730     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1731     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr layer_name_;
1732     ::android::surfaceflinger::FrameTimingHistogram* present_to_present_;
1733     ::android::surfaceflinger::FrameTimingHistogram* post_to_present_;
1734     ::android::surfaceflinger::FrameTimingHistogram* acquire_to_present_;
1735     ::android::surfaceflinger::FrameTimingHistogram* latch_to_present_;
1736     ::android::surfaceflinger::FrameTimingHistogram* desired_to_present_;
1737     ::android::surfaceflinger::FrameTimingHistogram* post_to_acquire_;
1738     ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* set_frame_rate_vote_;
1739     ::android::surfaceflinger::FrameTimingHistogram* app_deadline_misses_;
1740     ::android::surfaceflinger::FrameTimingHistogram* present_to_present_delta_;
1741     ::int64_t total_frames_;
1742     ::int64_t dropped_frames_;
1743     ::int64_t late_acquire_frames_;
1744     ::int64_t bad_desired_present_frames_;
1745     ::int32_t uid_;
1746     ::int32_t total_timeline_frames_;
1747     ::int32_t total_janky_frames_;
1748     ::int32_t total_janky_frames_with_long_cpu_;
1749     ::int32_t total_janky_frames_with_long_gpu_;
1750     ::int32_t total_janky_frames_sf_unattributed_;
1751     ::int32_t total_janky_frames_app_unattributed_;
1752     ::int32_t total_janky_frames_sf_scheduling_;
1753     ::int32_t total_jank_frames_sf_prediction_error_;
1754     ::int32_t total_jank_frames_app_buffer_stuffing_;
1755     ::int32_t display_refresh_rate_bucket_;
1756     ::int32_t render_rate_bucket_;
1757     int game_mode_;
1758   };
1759   union { Impl_ _impl_; };
1760   friend struct ::TableStruct_frameworks_2fnative_2fservices_2fsurfaceflinger_2fTimeStats_2ftimestatsatomsproto_2ftimestats_5fatoms_2eproto;
1761 };
1762 // -------------------------------------------------------------------
1763 
1764 class FrameTimingHistogram final :
1765     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:android.surfaceflinger.FrameTimingHistogram) */ {
1766  public:
FrameTimingHistogram()1767   inline FrameTimingHistogram() : FrameTimingHistogram(nullptr) {}
1768   ~FrameTimingHistogram() override;
1769   explicit PROTOBUF_CONSTEXPR FrameTimingHistogram(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
1770 
1771   FrameTimingHistogram(const FrameTimingHistogram& from);
FrameTimingHistogram(FrameTimingHistogram && from)1772   FrameTimingHistogram(FrameTimingHistogram&& from) noexcept
1773     : FrameTimingHistogram() {
1774     *this = ::std::move(from);
1775   }
1776 
1777   inline FrameTimingHistogram& operator=(const FrameTimingHistogram& from) {
1778     if (this == &from) return *this;
1779     CopyFrom(from);
1780     return *this;
1781   }
1782   inline FrameTimingHistogram& operator=(FrameTimingHistogram&& from) noexcept {
1783     if (this == &from) return *this;
1784     if (GetOwningArena() == from.GetOwningArena()
1785   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
1786         && GetOwningArena() != nullptr
1787   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
1788     ) {
1789       InternalSwap(&from);
1790     } else {
1791       CopyFrom(from);
1792     }
1793     return *this;
1794   }
1795 
unknown_fields()1796   inline const std::string& unknown_fields() const {
1797     return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString);
1798   }
mutable_unknown_fields()1799   inline std::string* mutable_unknown_fields() {
1800     return _internal_metadata_.mutable_unknown_fields<std::string>();
1801   }
1802 
default_instance()1803   static const FrameTimingHistogram& default_instance() {
1804     return *internal_default_instance();
1805   }
internal_default_instance()1806   static inline const FrameTimingHistogram* internal_default_instance() {
1807     return reinterpret_cast<const FrameTimingHistogram*>(
1808                &_FrameTimingHistogram_default_instance_);
1809   }
1810   static constexpr int kIndexInFileMessages =
1811     5;
1812 
swap(FrameTimingHistogram & a,FrameTimingHistogram & b)1813   friend void swap(FrameTimingHistogram& a, FrameTimingHistogram& b) {
1814     a.Swap(&b);
1815   }
Swap(FrameTimingHistogram * other)1816   inline void Swap(FrameTimingHistogram* other) {
1817     if (other == this) return;
1818   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
1819     if (GetOwningArena() != nullptr &&
1820         GetOwningArena() == other->GetOwningArena()) {
1821    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
1822     if (GetOwningArena() == other->GetOwningArena()) {
1823   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
1824       InternalSwap(other);
1825     } else {
1826       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1827     }
1828   }
1829   void UnsafeArenaSwap(FrameTimingHistogram* other) {
1830     if (other == this) return;
1831     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
1832     InternalSwap(other);
1833   }
1834 
1835   // implements Message ----------------------------------------------
1836 
1837   FrameTimingHistogram* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1838     return CreateMaybeMessage<FrameTimingHistogram>(arena);
1839   }
1840   FrameTimingHistogram* New() const {
1841     return New(nullptr);
1842   }
1843   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
1844   void CopyFrom(const FrameTimingHistogram& from);
1845   void MergeFrom(const FrameTimingHistogram& from);
1846   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1847   bool IsInitialized() const final;
1848 
1849   size_t ByteSizeLong() const final;
1850   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1851   ::uint8_t* _InternalSerialize(
1852       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
1853   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
1854 
1855   private:
1856   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
1857   void SharedDtor();
1858   void SetCachedSize(int size) const;
1859   void InternalSwap(FrameTimingHistogram* other);
1860 
1861   private:
1862   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1863   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1864     return "android.surfaceflinger.FrameTimingHistogram";
1865   }
1866   protected:
1867   explicit FrameTimingHistogram(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1868                        bool is_message_owned = false);
1869   public:
1870 
1871   std::string GetTypeName() const final;
1872 
1873   // nested types ----------------------------------------------------
1874 
1875   // accessors -------------------------------------------------------
1876 
1877   enum : int {
1878     kTimeMillisBucketsFieldNumber = 1,
1879     kFrameCountsFieldNumber = 2,
1880   };
1881   // repeated int32 time_millis_buckets = 1;
1882   int time_millis_buckets_size() const;
1883   private:
1884   int _internal_time_millis_buckets_size() const;
1885   public:
1886   void clear_time_millis_buckets();
1887   private:
1888   ::int32_t _internal_time_millis_buckets(int index) const;
1889   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
1890       _internal_time_millis_buckets() const;
1891   void _internal_add_time_millis_buckets(::int32_t value);
1892   ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
1893       _internal_mutable_time_millis_buckets();
1894   public:
1895   ::int32_t time_millis_buckets(int index) const;
1896   void set_time_millis_buckets(int index, ::int32_t value);
1897   void add_time_millis_buckets(::int32_t value);
1898   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
1899       time_millis_buckets() const;
1900   ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
1901       mutable_time_millis_buckets();
1902 
1903   // repeated int64 frame_counts = 2;
1904   int frame_counts_size() const;
1905   private:
1906   int _internal_frame_counts_size() const;
1907   public:
1908   void clear_frame_counts();
1909   private:
1910   ::int64_t _internal_frame_counts(int index) const;
1911   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
1912       _internal_frame_counts() const;
1913   void _internal_add_frame_counts(::int64_t value);
1914   ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
1915       _internal_mutable_frame_counts();
1916   public:
1917   ::int64_t frame_counts(int index) const;
1918   void set_frame_counts(int index, ::int64_t value);
1919   void add_frame_counts(::int64_t value);
1920   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
1921       frame_counts() const;
1922   ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
1923       mutable_frame_counts();
1924 
1925   // @@protoc_insertion_point(class_scope:android.surfaceflinger.FrameTimingHistogram)
1926  private:
1927   class _Internal;
1928 
1929   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1930   typedef void InternalArenaConstructable_;
1931   typedef void DestructorSkippable_;
1932   struct Impl_ {
1933     ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t > time_millis_buckets_;
1934     ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t > frame_counts_;
1935     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1936   };
1937   union { Impl_ _impl_; };
1938   friend struct ::TableStruct_frameworks_2fnative_2fservices_2fsurfaceflinger_2fTimeStats_2ftimestatsatomsproto_2ftimestats_5fatoms_2eproto;
1939 };
1940 // ===================================================================
1941 
1942 
1943 // ===================================================================
1944 
1945 #ifdef __GNUC__
1946   #pragma GCC diagnostic push
1947   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1948 #endif  // __GNUC__
1949 // SurfaceflingerStatsGlobalInfoWrapper
1950 
1951 // repeated .android.surfaceflinger.SurfaceflingerStatsGlobalInfo atom = 1;
_internal_atom_size()1952 inline int SurfaceflingerStatsGlobalInfoWrapper::_internal_atom_size() const {
1953   return _impl_.atom_.size();
1954 }
atom_size()1955 inline int SurfaceflingerStatsGlobalInfoWrapper::atom_size() const {
1956   return _internal_atom_size();
1957 }
clear_atom()1958 inline void SurfaceflingerStatsGlobalInfoWrapper::clear_atom() {
1959   _impl_.atom_.Clear();
1960 }
mutable_atom(int index)1961 inline ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo* SurfaceflingerStatsGlobalInfoWrapper::mutable_atom(int index) {
1962   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsGlobalInfoWrapper.atom)
1963   return _impl_.atom_.Mutable(index);
1964 }
1965 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo >*
mutable_atom()1966 SurfaceflingerStatsGlobalInfoWrapper::mutable_atom() {
1967   // @@protoc_insertion_point(field_mutable_list:android.surfaceflinger.SurfaceflingerStatsGlobalInfoWrapper.atom)
1968   return &_impl_.atom_;
1969 }
_internal_atom(int index)1970 inline const ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo& SurfaceflingerStatsGlobalInfoWrapper::_internal_atom(int index) const {
1971   return _impl_.atom_.Get(index);
1972 }
atom(int index)1973 inline const ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo& SurfaceflingerStatsGlobalInfoWrapper::atom(int index) const {
1974   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfoWrapper.atom)
1975   return _internal_atom(index);
1976 }
_internal_add_atom()1977 inline ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo* SurfaceflingerStatsGlobalInfoWrapper::_internal_add_atom() {
1978   return _impl_.atom_.Add();
1979 }
add_atom()1980 inline ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo* SurfaceflingerStatsGlobalInfoWrapper::add_atom() {
1981   ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo* _add = _internal_add_atom();
1982   // @@protoc_insertion_point(field_add:android.surfaceflinger.SurfaceflingerStatsGlobalInfoWrapper.atom)
1983   return _add;
1984 }
1985 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::surfaceflinger::SurfaceflingerStatsGlobalInfo >&
atom()1986 SurfaceflingerStatsGlobalInfoWrapper::atom() const {
1987   // @@protoc_insertion_point(field_list:android.surfaceflinger.SurfaceflingerStatsGlobalInfoWrapper.atom)
1988   return _impl_.atom_;
1989 }
1990 
1991 // -------------------------------------------------------------------
1992 
1993 // SurfaceflingerStatsLayerInfoWrapper
1994 
1995 // repeated .android.surfaceflinger.SurfaceflingerStatsLayerInfo atom = 1;
_internal_atom_size()1996 inline int SurfaceflingerStatsLayerInfoWrapper::_internal_atom_size() const {
1997   return _impl_.atom_.size();
1998 }
atom_size()1999 inline int SurfaceflingerStatsLayerInfoWrapper::atom_size() const {
2000   return _internal_atom_size();
2001 }
clear_atom()2002 inline void SurfaceflingerStatsLayerInfoWrapper::clear_atom() {
2003   _impl_.atom_.Clear();
2004 }
mutable_atom(int index)2005 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo* SurfaceflingerStatsLayerInfoWrapper::mutable_atom(int index) {
2006   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsLayerInfoWrapper.atom)
2007   return _impl_.atom_.Mutable(index);
2008 }
2009 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::surfaceflinger::SurfaceflingerStatsLayerInfo >*
mutable_atom()2010 SurfaceflingerStatsLayerInfoWrapper::mutable_atom() {
2011   // @@protoc_insertion_point(field_mutable_list:android.surfaceflinger.SurfaceflingerStatsLayerInfoWrapper.atom)
2012   return &_impl_.atom_;
2013 }
_internal_atom(int index)2014 inline const ::android::surfaceflinger::SurfaceflingerStatsLayerInfo& SurfaceflingerStatsLayerInfoWrapper::_internal_atom(int index) const {
2015   return _impl_.atom_.Get(index);
2016 }
atom(int index)2017 inline const ::android::surfaceflinger::SurfaceflingerStatsLayerInfo& SurfaceflingerStatsLayerInfoWrapper::atom(int index) const {
2018   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfoWrapper.atom)
2019   return _internal_atom(index);
2020 }
_internal_add_atom()2021 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo* SurfaceflingerStatsLayerInfoWrapper::_internal_add_atom() {
2022   return _impl_.atom_.Add();
2023 }
add_atom()2024 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo* SurfaceflingerStatsLayerInfoWrapper::add_atom() {
2025   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo* _add = _internal_add_atom();
2026   // @@protoc_insertion_point(field_add:android.surfaceflinger.SurfaceflingerStatsLayerInfoWrapper.atom)
2027   return _add;
2028 }
2029 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::android::surfaceflinger::SurfaceflingerStatsLayerInfo >&
atom()2030 SurfaceflingerStatsLayerInfoWrapper::atom() const {
2031   // @@protoc_insertion_point(field_list:android.surfaceflinger.SurfaceflingerStatsLayerInfoWrapper.atom)
2032   return _impl_.atom_;
2033 }
2034 
2035 // -------------------------------------------------------------------
2036 
2037 // SurfaceflingerStatsGlobalInfo
2038 
2039 // optional int32 display_refresh_rate_bucket = 18;
_internal_has_display_refresh_rate_bucket()2040 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_display_refresh_rate_bucket() const {
2041   bool value = (_impl_._has_bits_[0] & 0x00080000u) != 0;
2042   return value;
2043 }
has_display_refresh_rate_bucket()2044 inline bool SurfaceflingerStatsGlobalInfo::has_display_refresh_rate_bucket() const {
2045   return _internal_has_display_refresh_rate_bucket();
2046 }
clear_display_refresh_rate_bucket()2047 inline void SurfaceflingerStatsGlobalInfo::clear_display_refresh_rate_bucket() {
2048   _impl_.display_refresh_rate_bucket_ = 0;
2049   _impl_._has_bits_[0] &= ~0x00080000u;
2050 }
_internal_display_refresh_rate_bucket()2051 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_display_refresh_rate_bucket() const {
2052   return _impl_.display_refresh_rate_bucket_;
2053 }
display_refresh_rate_bucket()2054 inline ::int32_t SurfaceflingerStatsGlobalInfo::display_refresh_rate_bucket() const {
2055   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.display_refresh_rate_bucket)
2056   return _internal_display_refresh_rate_bucket();
2057 }
_internal_set_display_refresh_rate_bucket(::int32_t value)2058 inline void SurfaceflingerStatsGlobalInfo::_internal_set_display_refresh_rate_bucket(::int32_t value) {
2059   _impl_._has_bits_[0] |= 0x00080000u;
2060   _impl_.display_refresh_rate_bucket_ = value;
2061 }
set_display_refresh_rate_bucket(::int32_t value)2062 inline void SurfaceflingerStatsGlobalInfo::set_display_refresh_rate_bucket(::int32_t value) {
2063   _internal_set_display_refresh_rate_bucket(value);
2064   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.display_refresh_rate_bucket)
2065 }
2066 
2067 // optional int32 render_rate_bucket = 21;
_internal_has_render_rate_bucket()2068 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_render_rate_bucket() const {
2069   bool value = (_impl_._has_bits_[0] & 0x00100000u) != 0;
2070   return value;
2071 }
has_render_rate_bucket()2072 inline bool SurfaceflingerStatsGlobalInfo::has_render_rate_bucket() const {
2073   return _internal_has_render_rate_bucket();
2074 }
clear_render_rate_bucket()2075 inline void SurfaceflingerStatsGlobalInfo::clear_render_rate_bucket() {
2076   _impl_.render_rate_bucket_ = 0;
2077   _impl_._has_bits_[0] &= ~0x00100000u;
2078 }
_internal_render_rate_bucket()2079 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_render_rate_bucket() const {
2080   return _impl_.render_rate_bucket_;
2081 }
render_rate_bucket()2082 inline ::int32_t SurfaceflingerStatsGlobalInfo::render_rate_bucket() const {
2083   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.render_rate_bucket)
2084   return _internal_render_rate_bucket();
2085 }
_internal_set_render_rate_bucket(::int32_t value)2086 inline void SurfaceflingerStatsGlobalInfo::_internal_set_render_rate_bucket(::int32_t value) {
2087   _impl_._has_bits_[0] |= 0x00100000u;
2088   _impl_.render_rate_bucket_ = value;
2089 }
set_render_rate_bucket(::int32_t value)2090 inline void SurfaceflingerStatsGlobalInfo::set_render_rate_bucket(::int32_t value) {
2091   _internal_set_render_rate_bucket(value);
2092   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.render_rate_bucket)
2093 }
2094 
2095 // optional int64 total_frames = 1;
_internal_has_total_frames()2096 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_total_frames() const {
2097   bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
2098   return value;
2099 }
has_total_frames()2100 inline bool SurfaceflingerStatsGlobalInfo::has_total_frames() const {
2101   return _internal_has_total_frames();
2102 }
clear_total_frames()2103 inline void SurfaceflingerStatsGlobalInfo::clear_total_frames() {
2104   _impl_.total_frames_ = ::int64_t{0};
2105   _impl_._has_bits_[0] &= ~0x00000010u;
2106 }
_internal_total_frames()2107 inline ::int64_t SurfaceflingerStatsGlobalInfo::_internal_total_frames() const {
2108   return _impl_.total_frames_;
2109 }
total_frames()2110 inline ::int64_t SurfaceflingerStatsGlobalInfo::total_frames() const {
2111   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_frames)
2112   return _internal_total_frames();
2113 }
_internal_set_total_frames(::int64_t value)2114 inline void SurfaceflingerStatsGlobalInfo::_internal_set_total_frames(::int64_t value) {
2115   _impl_._has_bits_[0] |= 0x00000010u;
2116   _impl_.total_frames_ = value;
2117 }
set_total_frames(::int64_t value)2118 inline void SurfaceflingerStatsGlobalInfo::set_total_frames(::int64_t value) {
2119   _internal_set_total_frames(value);
2120   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_frames)
2121 }
2122 
2123 // optional int64 missed_frames = 2;
_internal_has_missed_frames()2124 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_missed_frames() const {
2125   bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
2126   return value;
2127 }
has_missed_frames()2128 inline bool SurfaceflingerStatsGlobalInfo::has_missed_frames() const {
2129   return _internal_has_missed_frames();
2130 }
clear_missed_frames()2131 inline void SurfaceflingerStatsGlobalInfo::clear_missed_frames() {
2132   _impl_.missed_frames_ = ::int64_t{0};
2133   _impl_._has_bits_[0] &= ~0x00000020u;
2134 }
_internal_missed_frames()2135 inline ::int64_t SurfaceflingerStatsGlobalInfo::_internal_missed_frames() const {
2136   return _impl_.missed_frames_;
2137 }
missed_frames()2138 inline ::int64_t SurfaceflingerStatsGlobalInfo::missed_frames() const {
2139   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.missed_frames)
2140   return _internal_missed_frames();
2141 }
_internal_set_missed_frames(::int64_t value)2142 inline void SurfaceflingerStatsGlobalInfo::_internal_set_missed_frames(::int64_t value) {
2143   _impl_._has_bits_[0] |= 0x00000020u;
2144   _impl_.missed_frames_ = value;
2145 }
set_missed_frames(::int64_t value)2146 inline void SurfaceflingerStatsGlobalInfo::set_missed_frames(::int64_t value) {
2147   _internal_set_missed_frames(value);
2148   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.missed_frames)
2149 }
2150 
2151 // optional int64 client_composition_frames = 3;
_internal_has_client_composition_frames()2152 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_client_composition_frames() const {
2153   bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
2154   return value;
2155 }
has_client_composition_frames()2156 inline bool SurfaceflingerStatsGlobalInfo::has_client_composition_frames() const {
2157   return _internal_has_client_composition_frames();
2158 }
clear_client_composition_frames()2159 inline void SurfaceflingerStatsGlobalInfo::clear_client_composition_frames() {
2160   _impl_.client_composition_frames_ = ::int64_t{0};
2161   _impl_._has_bits_[0] &= ~0x00000040u;
2162 }
_internal_client_composition_frames()2163 inline ::int64_t SurfaceflingerStatsGlobalInfo::_internal_client_composition_frames() const {
2164   return _impl_.client_composition_frames_;
2165 }
client_composition_frames()2166 inline ::int64_t SurfaceflingerStatsGlobalInfo::client_composition_frames() const {
2167   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.client_composition_frames)
2168   return _internal_client_composition_frames();
2169 }
_internal_set_client_composition_frames(::int64_t value)2170 inline void SurfaceflingerStatsGlobalInfo::_internal_set_client_composition_frames(::int64_t value) {
2171   _impl_._has_bits_[0] |= 0x00000040u;
2172   _impl_.client_composition_frames_ = value;
2173 }
set_client_composition_frames(::int64_t value)2174 inline void SurfaceflingerStatsGlobalInfo::set_client_composition_frames(::int64_t value) {
2175   _internal_set_client_composition_frames(value);
2176   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.client_composition_frames)
2177 }
2178 
2179 // optional int64 display_on_millis = 4;
_internal_has_display_on_millis()2180 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_display_on_millis() const {
2181   bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
2182   return value;
2183 }
has_display_on_millis()2184 inline bool SurfaceflingerStatsGlobalInfo::has_display_on_millis() const {
2185   return _internal_has_display_on_millis();
2186 }
clear_display_on_millis()2187 inline void SurfaceflingerStatsGlobalInfo::clear_display_on_millis() {
2188   _impl_.display_on_millis_ = ::int64_t{0};
2189   _impl_._has_bits_[0] &= ~0x00000080u;
2190 }
_internal_display_on_millis()2191 inline ::int64_t SurfaceflingerStatsGlobalInfo::_internal_display_on_millis() const {
2192   return _impl_.display_on_millis_;
2193 }
display_on_millis()2194 inline ::int64_t SurfaceflingerStatsGlobalInfo::display_on_millis() const {
2195   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.display_on_millis)
2196   return _internal_display_on_millis();
2197 }
_internal_set_display_on_millis(::int64_t value)2198 inline void SurfaceflingerStatsGlobalInfo::_internal_set_display_on_millis(::int64_t value) {
2199   _impl_._has_bits_[0] |= 0x00000080u;
2200   _impl_.display_on_millis_ = value;
2201 }
set_display_on_millis(::int64_t value)2202 inline void SurfaceflingerStatsGlobalInfo::set_display_on_millis(::int64_t value) {
2203   _internal_set_display_on_millis(value);
2204   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.display_on_millis)
2205 }
2206 
2207 // optional int64 animation_millis = 5;
_internal_has_animation_millis()2208 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_animation_millis() const {
2209   bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
2210   return value;
2211 }
has_animation_millis()2212 inline bool SurfaceflingerStatsGlobalInfo::has_animation_millis() const {
2213   return _internal_has_animation_millis();
2214 }
clear_animation_millis()2215 inline void SurfaceflingerStatsGlobalInfo::clear_animation_millis() {
2216   _impl_.animation_millis_ = ::int64_t{0};
2217   _impl_._has_bits_[0] &= ~0x00000100u;
2218 }
_internal_animation_millis()2219 inline ::int64_t SurfaceflingerStatsGlobalInfo::_internal_animation_millis() const {
2220   return _impl_.animation_millis_;
2221 }
animation_millis()2222 inline ::int64_t SurfaceflingerStatsGlobalInfo::animation_millis() const {
2223   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.animation_millis)
2224   return _internal_animation_millis();
2225 }
_internal_set_animation_millis(::int64_t value)2226 inline void SurfaceflingerStatsGlobalInfo::_internal_set_animation_millis(::int64_t value) {
2227   _impl_._has_bits_[0] |= 0x00000100u;
2228   _impl_.animation_millis_ = value;
2229 }
set_animation_millis(::int64_t value)2230 inline void SurfaceflingerStatsGlobalInfo::set_animation_millis(::int64_t value) {
2231   _internal_set_animation_millis(value);
2232   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.animation_millis)
2233 }
2234 
2235 // optional int32 event_connection_count = 6;
_internal_has_event_connection_count()2236 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_event_connection_count() const {
2237   bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
2238   return value;
2239 }
has_event_connection_count()2240 inline bool SurfaceflingerStatsGlobalInfo::has_event_connection_count() const {
2241   return _internal_has_event_connection_count();
2242 }
clear_event_connection_count()2243 inline void SurfaceflingerStatsGlobalInfo::clear_event_connection_count() {
2244   _impl_.event_connection_count_ = 0;
2245   _impl_._has_bits_[0] &= ~0x00000200u;
2246 }
_internal_event_connection_count()2247 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_event_connection_count() const {
2248   return _impl_.event_connection_count_;
2249 }
event_connection_count()2250 inline ::int32_t SurfaceflingerStatsGlobalInfo::event_connection_count() const {
2251   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.event_connection_count)
2252   return _internal_event_connection_count();
2253 }
_internal_set_event_connection_count(::int32_t value)2254 inline void SurfaceflingerStatsGlobalInfo::_internal_set_event_connection_count(::int32_t value) {
2255   _impl_._has_bits_[0] |= 0x00000200u;
2256   _impl_.event_connection_count_ = value;
2257 }
set_event_connection_count(::int32_t value)2258 inline void SurfaceflingerStatsGlobalInfo::set_event_connection_count(::int32_t value) {
2259   _internal_set_event_connection_count(value);
2260   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.event_connection_count)
2261 }
2262 
2263 // optional .android.surfaceflinger.FrameTimingHistogram frame_duration = 7;
_internal_has_frame_duration()2264 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_frame_duration() const {
2265   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
2266   PROTOBUF_ASSUME(!value || _impl_.frame_duration_ != nullptr);
2267   return value;
2268 }
has_frame_duration()2269 inline bool SurfaceflingerStatsGlobalInfo::has_frame_duration() const {
2270   return _internal_has_frame_duration();
2271 }
clear_frame_duration()2272 inline void SurfaceflingerStatsGlobalInfo::clear_frame_duration() {
2273   if (_impl_.frame_duration_ != nullptr) _impl_.frame_duration_->Clear();
2274   _impl_._has_bits_[0] &= ~0x00000001u;
2275 }
_internal_frame_duration()2276 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsGlobalInfo::_internal_frame_duration() const {
2277   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.frame_duration_;
2278   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
2279       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
2280 }
frame_duration()2281 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsGlobalInfo::frame_duration() const {
2282   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.frame_duration)
2283   return _internal_frame_duration();
2284 }
unsafe_arena_set_allocated_frame_duration(::android::surfaceflinger::FrameTimingHistogram * frame_duration)2285 inline void SurfaceflingerStatsGlobalInfo::unsafe_arena_set_allocated_frame_duration(
2286     ::android::surfaceflinger::FrameTimingHistogram* frame_duration) {
2287   if (GetArenaForAllocation() == nullptr) {
2288     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.frame_duration_);
2289   }
2290   _impl_.frame_duration_ = frame_duration;
2291   if (frame_duration) {
2292     _impl_._has_bits_[0] |= 0x00000001u;
2293   } else {
2294     _impl_._has_bits_[0] &= ~0x00000001u;
2295   }
2296   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.frame_duration)
2297 }
release_frame_duration()2298 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::release_frame_duration() {
2299   _impl_._has_bits_[0] &= ~0x00000001u;
2300   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.frame_duration_;
2301   _impl_.frame_duration_ = nullptr;
2302 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
2303   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
2304   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2305   if (GetArenaForAllocation() == nullptr) { delete old; }
2306 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
2307   if (GetArenaForAllocation() != nullptr) {
2308     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2309   }
2310 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
2311   return temp;
2312 }
unsafe_arena_release_frame_duration()2313 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::unsafe_arena_release_frame_duration() {
2314   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.frame_duration)
2315   _impl_._has_bits_[0] &= ~0x00000001u;
2316   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.frame_duration_;
2317   _impl_.frame_duration_ = nullptr;
2318   return temp;
2319 }
_internal_mutable_frame_duration()2320 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::_internal_mutable_frame_duration() {
2321   _impl_._has_bits_[0] |= 0x00000001u;
2322   if (_impl_.frame_duration_ == nullptr) {
2323     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
2324     _impl_.frame_duration_ = p;
2325   }
2326   return _impl_.frame_duration_;
2327 }
mutable_frame_duration()2328 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::mutable_frame_duration() {
2329   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_frame_duration();
2330   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.frame_duration)
2331   return _msg;
2332 }
set_allocated_frame_duration(::android::surfaceflinger::FrameTimingHistogram * frame_duration)2333 inline void SurfaceflingerStatsGlobalInfo::set_allocated_frame_duration(::android::surfaceflinger::FrameTimingHistogram* frame_duration) {
2334   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
2335   if (message_arena == nullptr) {
2336     delete _impl_.frame_duration_;
2337   }
2338   if (frame_duration) {
2339     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2340         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(frame_duration);
2341     if (message_arena != submessage_arena) {
2342       frame_duration = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2343           message_arena, frame_duration, submessage_arena);
2344     }
2345     _impl_._has_bits_[0] |= 0x00000001u;
2346   } else {
2347     _impl_._has_bits_[0] &= ~0x00000001u;
2348   }
2349   _impl_.frame_duration_ = frame_duration;
2350   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.frame_duration)
2351 }
2352 
2353 // optional .android.surfaceflinger.FrameTimingHistogram render_engine_timing = 8;
_internal_has_render_engine_timing()2354 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_render_engine_timing() const {
2355   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
2356   PROTOBUF_ASSUME(!value || _impl_.render_engine_timing_ != nullptr);
2357   return value;
2358 }
has_render_engine_timing()2359 inline bool SurfaceflingerStatsGlobalInfo::has_render_engine_timing() const {
2360   return _internal_has_render_engine_timing();
2361 }
clear_render_engine_timing()2362 inline void SurfaceflingerStatsGlobalInfo::clear_render_engine_timing() {
2363   if (_impl_.render_engine_timing_ != nullptr) _impl_.render_engine_timing_->Clear();
2364   _impl_._has_bits_[0] &= ~0x00000002u;
2365 }
_internal_render_engine_timing()2366 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsGlobalInfo::_internal_render_engine_timing() const {
2367   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.render_engine_timing_;
2368   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
2369       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
2370 }
render_engine_timing()2371 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsGlobalInfo::render_engine_timing() const {
2372   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.render_engine_timing)
2373   return _internal_render_engine_timing();
2374 }
unsafe_arena_set_allocated_render_engine_timing(::android::surfaceflinger::FrameTimingHistogram * render_engine_timing)2375 inline void SurfaceflingerStatsGlobalInfo::unsafe_arena_set_allocated_render_engine_timing(
2376     ::android::surfaceflinger::FrameTimingHistogram* render_engine_timing) {
2377   if (GetArenaForAllocation() == nullptr) {
2378     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.render_engine_timing_);
2379   }
2380   _impl_.render_engine_timing_ = render_engine_timing;
2381   if (render_engine_timing) {
2382     _impl_._has_bits_[0] |= 0x00000002u;
2383   } else {
2384     _impl_._has_bits_[0] &= ~0x00000002u;
2385   }
2386   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.render_engine_timing)
2387 }
release_render_engine_timing()2388 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::release_render_engine_timing() {
2389   _impl_._has_bits_[0] &= ~0x00000002u;
2390   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.render_engine_timing_;
2391   _impl_.render_engine_timing_ = nullptr;
2392 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
2393   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
2394   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2395   if (GetArenaForAllocation() == nullptr) { delete old; }
2396 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
2397   if (GetArenaForAllocation() != nullptr) {
2398     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2399   }
2400 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
2401   return temp;
2402 }
unsafe_arena_release_render_engine_timing()2403 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::unsafe_arena_release_render_engine_timing() {
2404   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.render_engine_timing)
2405   _impl_._has_bits_[0] &= ~0x00000002u;
2406   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.render_engine_timing_;
2407   _impl_.render_engine_timing_ = nullptr;
2408   return temp;
2409 }
_internal_mutable_render_engine_timing()2410 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::_internal_mutable_render_engine_timing() {
2411   _impl_._has_bits_[0] |= 0x00000002u;
2412   if (_impl_.render_engine_timing_ == nullptr) {
2413     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
2414     _impl_.render_engine_timing_ = p;
2415   }
2416   return _impl_.render_engine_timing_;
2417 }
mutable_render_engine_timing()2418 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::mutable_render_engine_timing() {
2419   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_render_engine_timing();
2420   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.render_engine_timing)
2421   return _msg;
2422 }
set_allocated_render_engine_timing(::android::surfaceflinger::FrameTimingHistogram * render_engine_timing)2423 inline void SurfaceflingerStatsGlobalInfo::set_allocated_render_engine_timing(::android::surfaceflinger::FrameTimingHistogram* render_engine_timing) {
2424   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
2425   if (message_arena == nullptr) {
2426     delete _impl_.render_engine_timing_;
2427   }
2428   if (render_engine_timing) {
2429     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2430         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(render_engine_timing);
2431     if (message_arena != submessage_arena) {
2432       render_engine_timing = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2433           message_arena, render_engine_timing, submessage_arena);
2434     }
2435     _impl_._has_bits_[0] |= 0x00000002u;
2436   } else {
2437     _impl_._has_bits_[0] &= ~0x00000002u;
2438   }
2439   _impl_.render_engine_timing_ = render_engine_timing;
2440   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.render_engine_timing)
2441 }
2442 
2443 // optional int32 total_timeline_frames = 9;
_internal_has_total_timeline_frames()2444 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_total_timeline_frames() const {
2445   bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
2446   return value;
2447 }
has_total_timeline_frames()2448 inline bool SurfaceflingerStatsGlobalInfo::has_total_timeline_frames() const {
2449   return _internal_has_total_timeline_frames();
2450 }
clear_total_timeline_frames()2451 inline void SurfaceflingerStatsGlobalInfo::clear_total_timeline_frames() {
2452   _impl_.total_timeline_frames_ = 0;
2453   _impl_._has_bits_[0] &= ~0x00000400u;
2454 }
_internal_total_timeline_frames()2455 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_total_timeline_frames() const {
2456   return _impl_.total_timeline_frames_;
2457 }
total_timeline_frames()2458 inline ::int32_t SurfaceflingerStatsGlobalInfo::total_timeline_frames() const {
2459   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_timeline_frames)
2460   return _internal_total_timeline_frames();
2461 }
_internal_set_total_timeline_frames(::int32_t value)2462 inline void SurfaceflingerStatsGlobalInfo::_internal_set_total_timeline_frames(::int32_t value) {
2463   _impl_._has_bits_[0] |= 0x00000400u;
2464   _impl_.total_timeline_frames_ = value;
2465 }
set_total_timeline_frames(::int32_t value)2466 inline void SurfaceflingerStatsGlobalInfo::set_total_timeline_frames(::int32_t value) {
2467   _internal_set_total_timeline_frames(value);
2468   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_timeline_frames)
2469 }
2470 
2471 // optional int32 total_janky_frames = 10;
_internal_has_total_janky_frames()2472 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_total_janky_frames() const {
2473   bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0;
2474   return value;
2475 }
has_total_janky_frames()2476 inline bool SurfaceflingerStatsGlobalInfo::has_total_janky_frames() const {
2477   return _internal_has_total_janky_frames();
2478 }
clear_total_janky_frames()2479 inline void SurfaceflingerStatsGlobalInfo::clear_total_janky_frames() {
2480   _impl_.total_janky_frames_ = 0;
2481   _impl_._has_bits_[0] &= ~0x00000800u;
2482 }
_internal_total_janky_frames()2483 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_total_janky_frames() const {
2484   return _impl_.total_janky_frames_;
2485 }
total_janky_frames()2486 inline ::int32_t SurfaceflingerStatsGlobalInfo::total_janky_frames() const {
2487   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames)
2488   return _internal_total_janky_frames();
2489 }
_internal_set_total_janky_frames(::int32_t value)2490 inline void SurfaceflingerStatsGlobalInfo::_internal_set_total_janky_frames(::int32_t value) {
2491   _impl_._has_bits_[0] |= 0x00000800u;
2492   _impl_.total_janky_frames_ = value;
2493 }
set_total_janky_frames(::int32_t value)2494 inline void SurfaceflingerStatsGlobalInfo::set_total_janky_frames(::int32_t value) {
2495   _internal_set_total_janky_frames(value);
2496   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames)
2497 }
2498 
2499 // optional int32 total_janky_frames_with_long_cpu = 11;
_internal_has_total_janky_frames_with_long_cpu()2500 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_total_janky_frames_with_long_cpu() const {
2501   bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0;
2502   return value;
2503 }
has_total_janky_frames_with_long_cpu()2504 inline bool SurfaceflingerStatsGlobalInfo::has_total_janky_frames_with_long_cpu() const {
2505   return _internal_has_total_janky_frames_with_long_cpu();
2506 }
clear_total_janky_frames_with_long_cpu()2507 inline void SurfaceflingerStatsGlobalInfo::clear_total_janky_frames_with_long_cpu() {
2508   _impl_.total_janky_frames_with_long_cpu_ = 0;
2509   _impl_._has_bits_[0] &= ~0x00001000u;
2510 }
_internal_total_janky_frames_with_long_cpu()2511 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_total_janky_frames_with_long_cpu() const {
2512   return _impl_.total_janky_frames_with_long_cpu_;
2513 }
total_janky_frames_with_long_cpu()2514 inline ::int32_t SurfaceflingerStatsGlobalInfo::total_janky_frames_with_long_cpu() const {
2515   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames_with_long_cpu)
2516   return _internal_total_janky_frames_with_long_cpu();
2517 }
_internal_set_total_janky_frames_with_long_cpu(::int32_t value)2518 inline void SurfaceflingerStatsGlobalInfo::_internal_set_total_janky_frames_with_long_cpu(::int32_t value) {
2519   _impl_._has_bits_[0] |= 0x00001000u;
2520   _impl_.total_janky_frames_with_long_cpu_ = value;
2521 }
set_total_janky_frames_with_long_cpu(::int32_t value)2522 inline void SurfaceflingerStatsGlobalInfo::set_total_janky_frames_with_long_cpu(::int32_t value) {
2523   _internal_set_total_janky_frames_with_long_cpu(value);
2524   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames_with_long_cpu)
2525 }
2526 
2527 // optional int32 total_janky_frames_with_long_gpu = 12;
_internal_has_total_janky_frames_with_long_gpu()2528 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_total_janky_frames_with_long_gpu() const {
2529   bool value = (_impl_._has_bits_[0] & 0x00002000u) != 0;
2530   return value;
2531 }
has_total_janky_frames_with_long_gpu()2532 inline bool SurfaceflingerStatsGlobalInfo::has_total_janky_frames_with_long_gpu() const {
2533   return _internal_has_total_janky_frames_with_long_gpu();
2534 }
clear_total_janky_frames_with_long_gpu()2535 inline void SurfaceflingerStatsGlobalInfo::clear_total_janky_frames_with_long_gpu() {
2536   _impl_.total_janky_frames_with_long_gpu_ = 0;
2537   _impl_._has_bits_[0] &= ~0x00002000u;
2538 }
_internal_total_janky_frames_with_long_gpu()2539 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_total_janky_frames_with_long_gpu() const {
2540   return _impl_.total_janky_frames_with_long_gpu_;
2541 }
total_janky_frames_with_long_gpu()2542 inline ::int32_t SurfaceflingerStatsGlobalInfo::total_janky_frames_with_long_gpu() const {
2543   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames_with_long_gpu)
2544   return _internal_total_janky_frames_with_long_gpu();
2545 }
_internal_set_total_janky_frames_with_long_gpu(::int32_t value)2546 inline void SurfaceflingerStatsGlobalInfo::_internal_set_total_janky_frames_with_long_gpu(::int32_t value) {
2547   _impl_._has_bits_[0] |= 0x00002000u;
2548   _impl_.total_janky_frames_with_long_gpu_ = value;
2549 }
set_total_janky_frames_with_long_gpu(::int32_t value)2550 inline void SurfaceflingerStatsGlobalInfo::set_total_janky_frames_with_long_gpu(::int32_t value) {
2551   _internal_set_total_janky_frames_with_long_gpu(value);
2552   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames_with_long_gpu)
2553 }
2554 
2555 // optional int32 total_janky_frames_sf_unattributed = 13;
_internal_has_total_janky_frames_sf_unattributed()2556 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_total_janky_frames_sf_unattributed() const {
2557   bool value = (_impl_._has_bits_[0] & 0x00004000u) != 0;
2558   return value;
2559 }
has_total_janky_frames_sf_unattributed()2560 inline bool SurfaceflingerStatsGlobalInfo::has_total_janky_frames_sf_unattributed() const {
2561   return _internal_has_total_janky_frames_sf_unattributed();
2562 }
clear_total_janky_frames_sf_unattributed()2563 inline void SurfaceflingerStatsGlobalInfo::clear_total_janky_frames_sf_unattributed() {
2564   _impl_.total_janky_frames_sf_unattributed_ = 0;
2565   _impl_._has_bits_[0] &= ~0x00004000u;
2566 }
_internal_total_janky_frames_sf_unattributed()2567 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_total_janky_frames_sf_unattributed() const {
2568   return _impl_.total_janky_frames_sf_unattributed_;
2569 }
total_janky_frames_sf_unattributed()2570 inline ::int32_t SurfaceflingerStatsGlobalInfo::total_janky_frames_sf_unattributed() const {
2571   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames_sf_unattributed)
2572   return _internal_total_janky_frames_sf_unattributed();
2573 }
_internal_set_total_janky_frames_sf_unattributed(::int32_t value)2574 inline void SurfaceflingerStatsGlobalInfo::_internal_set_total_janky_frames_sf_unattributed(::int32_t value) {
2575   _impl_._has_bits_[0] |= 0x00004000u;
2576   _impl_.total_janky_frames_sf_unattributed_ = value;
2577 }
set_total_janky_frames_sf_unattributed(::int32_t value)2578 inline void SurfaceflingerStatsGlobalInfo::set_total_janky_frames_sf_unattributed(::int32_t value) {
2579   _internal_set_total_janky_frames_sf_unattributed(value);
2580   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames_sf_unattributed)
2581 }
2582 
2583 // optional int32 total_janky_frames_app_unattributed = 14;
_internal_has_total_janky_frames_app_unattributed()2584 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_total_janky_frames_app_unattributed() const {
2585   bool value = (_impl_._has_bits_[0] & 0x00008000u) != 0;
2586   return value;
2587 }
has_total_janky_frames_app_unattributed()2588 inline bool SurfaceflingerStatsGlobalInfo::has_total_janky_frames_app_unattributed() const {
2589   return _internal_has_total_janky_frames_app_unattributed();
2590 }
clear_total_janky_frames_app_unattributed()2591 inline void SurfaceflingerStatsGlobalInfo::clear_total_janky_frames_app_unattributed() {
2592   _impl_.total_janky_frames_app_unattributed_ = 0;
2593   _impl_._has_bits_[0] &= ~0x00008000u;
2594 }
_internal_total_janky_frames_app_unattributed()2595 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_total_janky_frames_app_unattributed() const {
2596   return _impl_.total_janky_frames_app_unattributed_;
2597 }
total_janky_frames_app_unattributed()2598 inline ::int32_t SurfaceflingerStatsGlobalInfo::total_janky_frames_app_unattributed() const {
2599   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames_app_unattributed)
2600   return _internal_total_janky_frames_app_unattributed();
2601 }
_internal_set_total_janky_frames_app_unattributed(::int32_t value)2602 inline void SurfaceflingerStatsGlobalInfo::_internal_set_total_janky_frames_app_unattributed(::int32_t value) {
2603   _impl_._has_bits_[0] |= 0x00008000u;
2604   _impl_.total_janky_frames_app_unattributed_ = value;
2605 }
set_total_janky_frames_app_unattributed(::int32_t value)2606 inline void SurfaceflingerStatsGlobalInfo::set_total_janky_frames_app_unattributed(::int32_t value) {
2607   _internal_set_total_janky_frames_app_unattributed(value);
2608   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames_app_unattributed)
2609 }
2610 
2611 // optional int32 total_janky_frames_sf_scheduling = 15;
_internal_has_total_janky_frames_sf_scheduling()2612 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_total_janky_frames_sf_scheduling() const {
2613   bool value = (_impl_._has_bits_[0] & 0x00010000u) != 0;
2614   return value;
2615 }
has_total_janky_frames_sf_scheduling()2616 inline bool SurfaceflingerStatsGlobalInfo::has_total_janky_frames_sf_scheduling() const {
2617   return _internal_has_total_janky_frames_sf_scheduling();
2618 }
clear_total_janky_frames_sf_scheduling()2619 inline void SurfaceflingerStatsGlobalInfo::clear_total_janky_frames_sf_scheduling() {
2620   _impl_.total_janky_frames_sf_scheduling_ = 0;
2621   _impl_._has_bits_[0] &= ~0x00010000u;
2622 }
_internal_total_janky_frames_sf_scheduling()2623 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_total_janky_frames_sf_scheduling() const {
2624   return _impl_.total_janky_frames_sf_scheduling_;
2625 }
total_janky_frames_sf_scheduling()2626 inline ::int32_t SurfaceflingerStatsGlobalInfo::total_janky_frames_sf_scheduling() const {
2627   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames_sf_scheduling)
2628   return _internal_total_janky_frames_sf_scheduling();
2629 }
_internal_set_total_janky_frames_sf_scheduling(::int32_t value)2630 inline void SurfaceflingerStatsGlobalInfo::_internal_set_total_janky_frames_sf_scheduling(::int32_t value) {
2631   _impl_._has_bits_[0] |= 0x00010000u;
2632   _impl_.total_janky_frames_sf_scheduling_ = value;
2633 }
set_total_janky_frames_sf_scheduling(::int32_t value)2634 inline void SurfaceflingerStatsGlobalInfo::set_total_janky_frames_sf_scheduling(::int32_t value) {
2635   _internal_set_total_janky_frames_sf_scheduling(value);
2636   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_janky_frames_sf_scheduling)
2637 }
2638 
2639 // optional int32 total_jank_frames_sf_prediction_error = 16;
_internal_has_total_jank_frames_sf_prediction_error()2640 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_total_jank_frames_sf_prediction_error() const {
2641   bool value = (_impl_._has_bits_[0] & 0x00020000u) != 0;
2642   return value;
2643 }
has_total_jank_frames_sf_prediction_error()2644 inline bool SurfaceflingerStatsGlobalInfo::has_total_jank_frames_sf_prediction_error() const {
2645   return _internal_has_total_jank_frames_sf_prediction_error();
2646 }
clear_total_jank_frames_sf_prediction_error()2647 inline void SurfaceflingerStatsGlobalInfo::clear_total_jank_frames_sf_prediction_error() {
2648   _impl_.total_jank_frames_sf_prediction_error_ = 0;
2649   _impl_._has_bits_[0] &= ~0x00020000u;
2650 }
_internal_total_jank_frames_sf_prediction_error()2651 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_total_jank_frames_sf_prediction_error() const {
2652   return _impl_.total_jank_frames_sf_prediction_error_;
2653 }
total_jank_frames_sf_prediction_error()2654 inline ::int32_t SurfaceflingerStatsGlobalInfo::total_jank_frames_sf_prediction_error() const {
2655   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_jank_frames_sf_prediction_error)
2656   return _internal_total_jank_frames_sf_prediction_error();
2657 }
_internal_set_total_jank_frames_sf_prediction_error(::int32_t value)2658 inline void SurfaceflingerStatsGlobalInfo::_internal_set_total_jank_frames_sf_prediction_error(::int32_t value) {
2659   _impl_._has_bits_[0] |= 0x00020000u;
2660   _impl_.total_jank_frames_sf_prediction_error_ = value;
2661 }
set_total_jank_frames_sf_prediction_error(::int32_t value)2662 inline void SurfaceflingerStatsGlobalInfo::set_total_jank_frames_sf_prediction_error(::int32_t value) {
2663   _internal_set_total_jank_frames_sf_prediction_error(value);
2664   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_jank_frames_sf_prediction_error)
2665 }
2666 
2667 // optional int32 total_jank_frames_app_buffer_stuffing = 17;
_internal_has_total_jank_frames_app_buffer_stuffing()2668 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_total_jank_frames_app_buffer_stuffing() const {
2669   bool value = (_impl_._has_bits_[0] & 0x00040000u) != 0;
2670   return value;
2671 }
has_total_jank_frames_app_buffer_stuffing()2672 inline bool SurfaceflingerStatsGlobalInfo::has_total_jank_frames_app_buffer_stuffing() const {
2673   return _internal_has_total_jank_frames_app_buffer_stuffing();
2674 }
clear_total_jank_frames_app_buffer_stuffing()2675 inline void SurfaceflingerStatsGlobalInfo::clear_total_jank_frames_app_buffer_stuffing() {
2676   _impl_.total_jank_frames_app_buffer_stuffing_ = 0;
2677   _impl_._has_bits_[0] &= ~0x00040000u;
2678 }
_internal_total_jank_frames_app_buffer_stuffing()2679 inline ::int32_t SurfaceflingerStatsGlobalInfo::_internal_total_jank_frames_app_buffer_stuffing() const {
2680   return _impl_.total_jank_frames_app_buffer_stuffing_;
2681 }
total_jank_frames_app_buffer_stuffing()2682 inline ::int32_t SurfaceflingerStatsGlobalInfo::total_jank_frames_app_buffer_stuffing() const {
2683   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_jank_frames_app_buffer_stuffing)
2684   return _internal_total_jank_frames_app_buffer_stuffing();
2685 }
_internal_set_total_jank_frames_app_buffer_stuffing(::int32_t value)2686 inline void SurfaceflingerStatsGlobalInfo::_internal_set_total_jank_frames_app_buffer_stuffing(::int32_t value) {
2687   _impl_._has_bits_[0] |= 0x00040000u;
2688   _impl_.total_jank_frames_app_buffer_stuffing_ = value;
2689 }
set_total_jank_frames_app_buffer_stuffing(::int32_t value)2690 inline void SurfaceflingerStatsGlobalInfo::set_total_jank_frames_app_buffer_stuffing(::int32_t value) {
2691   _internal_set_total_jank_frames_app_buffer_stuffing(value);
2692   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.total_jank_frames_app_buffer_stuffing)
2693 }
2694 
2695 // optional .android.surfaceflinger.FrameTimingHistogram sf_deadline_misses = 19;
_internal_has_sf_deadline_misses()2696 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_sf_deadline_misses() const {
2697   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
2698   PROTOBUF_ASSUME(!value || _impl_.sf_deadline_misses_ != nullptr);
2699   return value;
2700 }
has_sf_deadline_misses()2701 inline bool SurfaceflingerStatsGlobalInfo::has_sf_deadline_misses() const {
2702   return _internal_has_sf_deadline_misses();
2703 }
clear_sf_deadline_misses()2704 inline void SurfaceflingerStatsGlobalInfo::clear_sf_deadline_misses() {
2705   if (_impl_.sf_deadline_misses_ != nullptr) _impl_.sf_deadline_misses_->Clear();
2706   _impl_._has_bits_[0] &= ~0x00000004u;
2707 }
_internal_sf_deadline_misses()2708 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsGlobalInfo::_internal_sf_deadline_misses() const {
2709   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.sf_deadline_misses_;
2710   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
2711       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
2712 }
sf_deadline_misses()2713 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsGlobalInfo::sf_deadline_misses() const {
2714   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.sf_deadline_misses)
2715   return _internal_sf_deadline_misses();
2716 }
unsafe_arena_set_allocated_sf_deadline_misses(::android::surfaceflinger::FrameTimingHistogram * sf_deadline_misses)2717 inline void SurfaceflingerStatsGlobalInfo::unsafe_arena_set_allocated_sf_deadline_misses(
2718     ::android::surfaceflinger::FrameTimingHistogram* sf_deadline_misses) {
2719   if (GetArenaForAllocation() == nullptr) {
2720     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sf_deadline_misses_);
2721   }
2722   _impl_.sf_deadline_misses_ = sf_deadline_misses;
2723   if (sf_deadline_misses) {
2724     _impl_._has_bits_[0] |= 0x00000004u;
2725   } else {
2726     _impl_._has_bits_[0] &= ~0x00000004u;
2727   }
2728   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.sf_deadline_misses)
2729 }
release_sf_deadline_misses()2730 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::release_sf_deadline_misses() {
2731   _impl_._has_bits_[0] &= ~0x00000004u;
2732   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.sf_deadline_misses_;
2733   _impl_.sf_deadline_misses_ = nullptr;
2734 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
2735   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
2736   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2737   if (GetArenaForAllocation() == nullptr) { delete old; }
2738 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
2739   if (GetArenaForAllocation() != nullptr) {
2740     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2741   }
2742 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
2743   return temp;
2744 }
unsafe_arena_release_sf_deadline_misses()2745 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::unsafe_arena_release_sf_deadline_misses() {
2746   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.sf_deadline_misses)
2747   _impl_._has_bits_[0] &= ~0x00000004u;
2748   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.sf_deadline_misses_;
2749   _impl_.sf_deadline_misses_ = nullptr;
2750   return temp;
2751 }
_internal_mutable_sf_deadline_misses()2752 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::_internal_mutable_sf_deadline_misses() {
2753   _impl_._has_bits_[0] |= 0x00000004u;
2754   if (_impl_.sf_deadline_misses_ == nullptr) {
2755     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
2756     _impl_.sf_deadline_misses_ = p;
2757   }
2758   return _impl_.sf_deadline_misses_;
2759 }
mutable_sf_deadline_misses()2760 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::mutable_sf_deadline_misses() {
2761   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_sf_deadline_misses();
2762   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.sf_deadline_misses)
2763   return _msg;
2764 }
set_allocated_sf_deadline_misses(::android::surfaceflinger::FrameTimingHistogram * sf_deadline_misses)2765 inline void SurfaceflingerStatsGlobalInfo::set_allocated_sf_deadline_misses(::android::surfaceflinger::FrameTimingHistogram* sf_deadline_misses) {
2766   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
2767   if (message_arena == nullptr) {
2768     delete _impl_.sf_deadline_misses_;
2769   }
2770   if (sf_deadline_misses) {
2771     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2772         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sf_deadline_misses);
2773     if (message_arena != submessage_arena) {
2774       sf_deadline_misses = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2775           message_arena, sf_deadline_misses, submessage_arena);
2776     }
2777     _impl_._has_bits_[0] |= 0x00000004u;
2778   } else {
2779     _impl_._has_bits_[0] &= ~0x00000004u;
2780   }
2781   _impl_.sf_deadline_misses_ = sf_deadline_misses;
2782   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.sf_deadline_misses)
2783 }
2784 
2785 // optional .android.surfaceflinger.FrameTimingHistogram sf_prediction_errors = 20;
_internal_has_sf_prediction_errors()2786 inline bool SurfaceflingerStatsGlobalInfo::_internal_has_sf_prediction_errors() const {
2787   bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
2788   PROTOBUF_ASSUME(!value || _impl_.sf_prediction_errors_ != nullptr);
2789   return value;
2790 }
has_sf_prediction_errors()2791 inline bool SurfaceflingerStatsGlobalInfo::has_sf_prediction_errors() const {
2792   return _internal_has_sf_prediction_errors();
2793 }
clear_sf_prediction_errors()2794 inline void SurfaceflingerStatsGlobalInfo::clear_sf_prediction_errors() {
2795   if (_impl_.sf_prediction_errors_ != nullptr) _impl_.sf_prediction_errors_->Clear();
2796   _impl_._has_bits_[0] &= ~0x00000008u;
2797 }
_internal_sf_prediction_errors()2798 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsGlobalInfo::_internal_sf_prediction_errors() const {
2799   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.sf_prediction_errors_;
2800   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
2801       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
2802 }
sf_prediction_errors()2803 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsGlobalInfo::sf_prediction_errors() const {
2804   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.sf_prediction_errors)
2805   return _internal_sf_prediction_errors();
2806 }
unsafe_arena_set_allocated_sf_prediction_errors(::android::surfaceflinger::FrameTimingHistogram * sf_prediction_errors)2807 inline void SurfaceflingerStatsGlobalInfo::unsafe_arena_set_allocated_sf_prediction_errors(
2808     ::android::surfaceflinger::FrameTimingHistogram* sf_prediction_errors) {
2809   if (GetArenaForAllocation() == nullptr) {
2810     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sf_prediction_errors_);
2811   }
2812   _impl_.sf_prediction_errors_ = sf_prediction_errors;
2813   if (sf_prediction_errors) {
2814     _impl_._has_bits_[0] |= 0x00000008u;
2815   } else {
2816     _impl_._has_bits_[0] &= ~0x00000008u;
2817   }
2818   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.sf_prediction_errors)
2819 }
release_sf_prediction_errors()2820 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::release_sf_prediction_errors() {
2821   _impl_._has_bits_[0] &= ~0x00000008u;
2822   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.sf_prediction_errors_;
2823   _impl_.sf_prediction_errors_ = nullptr;
2824 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
2825   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
2826   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2827   if (GetArenaForAllocation() == nullptr) { delete old; }
2828 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
2829   if (GetArenaForAllocation() != nullptr) {
2830     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2831   }
2832 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
2833   return temp;
2834 }
unsafe_arena_release_sf_prediction_errors()2835 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::unsafe_arena_release_sf_prediction_errors() {
2836   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.sf_prediction_errors)
2837   _impl_._has_bits_[0] &= ~0x00000008u;
2838   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.sf_prediction_errors_;
2839   _impl_.sf_prediction_errors_ = nullptr;
2840   return temp;
2841 }
_internal_mutable_sf_prediction_errors()2842 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::_internal_mutable_sf_prediction_errors() {
2843   _impl_._has_bits_[0] |= 0x00000008u;
2844   if (_impl_.sf_prediction_errors_ == nullptr) {
2845     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
2846     _impl_.sf_prediction_errors_ = p;
2847   }
2848   return _impl_.sf_prediction_errors_;
2849 }
mutable_sf_prediction_errors()2850 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsGlobalInfo::mutable_sf_prediction_errors() {
2851   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_sf_prediction_errors();
2852   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.sf_prediction_errors)
2853   return _msg;
2854 }
set_allocated_sf_prediction_errors(::android::surfaceflinger::FrameTimingHistogram * sf_prediction_errors)2855 inline void SurfaceflingerStatsGlobalInfo::set_allocated_sf_prediction_errors(::android::surfaceflinger::FrameTimingHistogram* sf_prediction_errors) {
2856   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
2857   if (message_arena == nullptr) {
2858     delete _impl_.sf_prediction_errors_;
2859   }
2860   if (sf_prediction_errors) {
2861     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2862         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sf_prediction_errors);
2863     if (message_arena != submessage_arena) {
2864       sf_prediction_errors = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2865           message_arena, sf_prediction_errors, submessage_arena);
2866     }
2867     _impl_._has_bits_[0] |= 0x00000008u;
2868   } else {
2869     _impl_._has_bits_[0] &= ~0x00000008u;
2870   }
2871   _impl_.sf_prediction_errors_ = sf_prediction_errors;
2872   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsGlobalInfo.sf_prediction_errors)
2873 }
2874 
2875 // -------------------------------------------------------------------
2876 
2877 // SurfaceflingerStatsLayerInfo_SetFrameRateVote
2878 
2879 // optional float frame_rate = 1;
_internal_has_frame_rate()2880 inline bool SurfaceflingerStatsLayerInfo_SetFrameRateVote::_internal_has_frame_rate() const {
2881   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
2882   return value;
2883 }
has_frame_rate()2884 inline bool SurfaceflingerStatsLayerInfo_SetFrameRateVote::has_frame_rate() const {
2885   return _internal_has_frame_rate();
2886 }
clear_frame_rate()2887 inline void SurfaceflingerStatsLayerInfo_SetFrameRateVote::clear_frame_rate() {
2888   _impl_.frame_rate_ = 0;
2889   _impl_._has_bits_[0] &= ~0x00000001u;
2890 }
_internal_frame_rate()2891 inline float SurfaceflingerStatsLayerInfo_SetFrameRateVote::_internal_frame_rate() const {
2892   return _impl_.frame_rate_;
2893 }
frame_rate()2894 inline float SurfaceflingerStatsLayerInfo_SetFrameRateVote::frame_rate() const {
2895   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote.frame_rate)
2896   return _internal_frame_rate();
2897 }
_internal_set_frame_rate(float value)2898 inline void SurfaceflingerStatsLayerInfo_SetFrameRateVote::_internal_set_frame_rate(float value) {
2899   _impl_._has_bits_[0] |= 0x00000001u;
2900   _impl_.frame_rate_ = value;
2901 }
set_frame_rate(float value)2902 inline void SurfaceflingerStatsLayerInfo_SetFrameRateVote::set_frame_rate(float value) {
2903   _internal_set_frame_rate(value);
2904   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote.frame_rate)
2905 }
2906 
2907 // optional .android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote.FrameRateCompatibility frame_rate_compatibility = 2;
_internal_has_frame_rate_compatibility()2908 inline bool SurfaceflingerStatsLayerInfo_SetFrameRateVote::_internal_has_frame_rate_compatibility() const {
2909   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
2910   return value;
2911 }
has_frame_rate_compatibility()2912 inline bool SurfaceflingerStatsLayerInfo_SetFrameRateVote::has_frame_rate_compatibility() const {
2913   return _internal_has_frame_rate_compatibility();
2914 }
clear_frame_rate_compatibility()2915 inline void SurfaceflingerStatsLayerInfo_SetFrameRateVote::clear_frame_rate_compatibility() {
2916   _impl_.frame_rate_compatibility_ = 0;
2917   _impl_._has_bits_[0] &= ~0x00000002u;
2918 }
_internal_frame_rate_compatibility()2919 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility SurfaceflingerStatsLayerInfo_SetFrameRateVote::_internal_frame_rate_compatibility() const {
2920   return static_cast< ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility >(_impl_.frame_rate_compatibility_);
2921 }
frame_rate_compatibility()2922 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility SurfaceflingerStatsLayerInfo_SetFrameRateVote::frame_rate_compatibility() const {
2923   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote.frame_rate_compatibility)
2924   return _internal_frame_rate_compatibility();
2925 }
_internal_set_frame_rate_compatibility(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility value)2926 inline void SurfaceflingerStatsLayerInfo_SetFrameRateVote::_internal_set_frame_rate_compatibility(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility value) {
2927   assert(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility_IsValid(value));
2928   _impl_._has_bits_[0] |= 0x00000002u;
2929   _impl_.frame_rate_compatibility_ = value;
2930 }
set_frame_rate_compatibility(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility value)2931 inline void SurfaceflingerStatsLayerInfo_SetFrameRateVote::set_frame_rate_compatibility(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility value) {
2932   _internal_set_frame_rate_compatibility(value);
2933   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote.frame_rate_compatibility)
2934 }
2935 
2936 // optional .android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote.Seamlessness seamlessness = 3;
_internal_has_seamlessness()2937 inline bool SurfaceflingerStatsLayerInfo_SetFrameRateVote::_internal_has_seamlessness() const {
2938   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
2939   return value;
2940 }
has_seamlessness()2941 inline bool SurfaceflingerStatsLayerInfo_SetFrameRateVote::has_seamlessness() const {
2942   return _internal_has_seamlessness();
2943 }
clear_seamlessness()2944 inline void SurfaceflingerStatsLayerInfo_SetFrameRateVote::clear_seamlessness() {
2945   _impl_.seamlessness_ = 0;
2946   _impl_._has_bits_[0] &= ~0x00000004u;
2947 }
_internal_seamlessness()2948 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness SurfaceflingerStatsLayerInfo_SetFrameRateVote::_internal_seamlessness() const {
2949   return static_cast< ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness >(_impl_.seamlessness_);
2950 }
seamlessness()2951 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness SurfaceflingerStatsLayerInfo_SetFrameRateVote::seamlessness() const {
2952   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote.seamlessness)
2953   return _internal_seamlessness();
2954 }
_internal_set_seamlessness(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness value)2955 inline void SurfaceflingerStatsLayerInfo_SetFrameRateVote::_internal_set_seamlessness(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness value) {
2956   assert(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness_IsValid(value));
2957   _impl_._has_bits_[0] |= 0x00000004u;
2958   _impl_.seamlessness_ = value;
2959 }
set_seamlessness(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness value)2960 inline void SurfaceflingerStatsLayerInfo_SetFrameRateVote::set_seamlessness(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness value) {
2961   _internal_set_seamlessness(value);
2962   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote.seamlessness)
2963 }
2964 
2965 // -------------------------------------------------------------------
2966 
2967 // SurfaceflingerStatsLayerInfo
2968 
2969 // optional int32 uid = 12;
_internal_has_uid()2970 inline bool SurfaceflingerStatsLayerInfo::_internal_has_uid() const {
2971   bool value = (_impl_._has_bits_[0] & 0x00004000u) != 0;
2972   return value;
2973 }
has_uid()2974 inline bool SurfaceflingerStatsLayerInfo::has_uid() const {
2975   return _internal_has_uid();
2976 }
clear_uid()2977 inline void SurfaceflingerStatsLayerInfo::clear_uid() {
2978   _impl_.uid_ = 0;
2979   _impl_._has_bits_[0] &= ~0x00004000u;
2980 }
_internal_uid()2981 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_uid() const {
2982   return _impl_.uid_;
2983 }
uid()2984 inline ::int32_t SurfaceflingerStatsLayerInfo::uid() const {
2985   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.uid)
2986   return _internal_uid();
2987 }
_internal_set_uid(::int32_t value)2988 inline void SurfaceflingerStatsLayerInfo::_internal_set_uid(::int32_t value) {
2989   _impl_._has_bits_[0] |= 0x00004000u;
2990   _impl_.uid_ = value;
2991 }
set_uid(::int32_t value)2992 inline void SurfaceflingerStatsLayerInfo::set_uid(::int32_t value) {
2993   _internal_set_uid(value);
2994   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.uid)
2995 }
2996 
2997 // optional int32 display_refresh_rate_bucket = 22;
_internal_has_display_refresh_rate_bucket()2998 inline bool SurfaceflingerStatsLayerInfo::_internal_has_display_refresh_rate_bucket() const {
2999   bool value = (_impl_._has_bits_[0] & 0x01000000u) != 0;
3000   return value;
3001 }
has_display_refresh_rate_bucket()3002 inline bool SurfaceflingerStatsLayerInfo::has_display_refresh_rate_bucket() const {
3003   return _internal_has_display_refresh_rate_bucket();
3004 }
clear_display_refresh_rate_bucket()3005 inline void SurfaceflingerStatsLayerInfo::clear_display_refresh_rate_bucket() {
3006   _impl_.display_refresh_rate_bucket_ = 0;
3007   _impl_._has_bits_[0] &= ~0x01000000u;
3008 }
_internal_display_refresh_rate_bucket()3009 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_display_refresh_rate_bucket() const {
3010   return _impl_.display_refresh_rate_bucket_;
3011 }
display_refresh_rate_bucket()3012 inline ::int32_t SurfaceflingerStatsLayerInfo::display_refresh_rate_bucket() const {
3013   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.display_refresh_rate_bucket)
3014   return _internal_display_refresh_rate_bucket();
3015 }
_internal_set_display_refresh_rate_bucket(::int32_t value)3016 inline void SurfaceflingerStatsLayerInfo::_internal_set_display_refresh_rate_bucket(::int32_t value) {
3017   _impl_._has_bits_[0] |= 0x01000000u;
3018   _impl_.display_refresh_rate_bucket_ = value;
3019 }
set_display_refresh_rate_bucket(::int32_t value)3020 inline void SurfaceflingerStatsLayerInfo::set_display_refresh_rate_bucket(::int32_t value) {
3021   _internal_set_display_refresh_rate_bucket(value);
3022   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.display_refresh_rate_bucket)
3023 }
3024 
3025 // optional int32 render_rate_bucket = 23;
_internal_has_render_rate_bucket()3026 inline bool SurfaceflingerStatsLayerInfo::_internal_has_render_rate_bucket() const {
3027   bool value = (_impl_._has_bits_[0] & 0x02000000u) != 0;
3028   return value;
3029 }
has_render_rate_bucket()3030 inline bool SurfaceflingerStatsLayerInfo::has_render_rate_bucket() const {
3031   return _internal_has_render_rate_bucket();
3032 }
clear_render_rate_bucket()3033 inline void SurfaceflingerStatsLayerInfo::clear_render_rate_bucket() {
3034   _impl_.render_rate_bucket_ = 0;
3035   _impl_._has_bits_[0] &= ~0x02000000u;
3036 }
_internal_render_rate_bucket()3037 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_render_rate_bucket() const {
3038   return _impl_.render_rate_bucket_;
3039 }
render_rate_bucket()3040 inline ::int32_t SurfaceflingerStatsLayerInfo::render_rate_bucket() const {
3041   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.render_rate_bucket)
3042   return _internal_render_rate_bucket();
3043 }
_internal_set_render_rate_bucket(::int32_t value)3044 inline void SurfaceflingerStatsLayerInfo::_internal_set_render_rate_bucket(::int32_t value) {
3045   _impl_._has_bits_[0] |= 0x02000000u;
3046   _impl_.render_rate_bucket_ = value;
3047 }
set_render_rate_bucket(::int32_t value)3048 inline void SurfaceflingerStatsLayerInfo::set_render_rate_bucket(::int32_t value) {
3049   _internal_set_render_rate_bucket(value);
3050   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.render_rate_bucket)
3051 }
3052 
3053 // optional .android.surfaceflinger.SurfaceflingerStatsLayerInfo.GameMode game_mode = 26;
_internal_has_game_mode()3054 inline bool SurfaceflingerStatsLayerInfo::_internal_has_game_mode() const {
3055   bool value = (_impl_._has_bits_[0] & 0x04000000u) != 0;
3056   return value;
3057 }
has_game_mode()3058 inline bool SurfaceflingerStatsLayerInfo::has_game_mode() const {
3059   return _internal_has_game_mode();
3060 }
clear_game_mode()3061 inline void SurfaceflingerStatsLayerInfo::clear_game_mode() {
3062   _impl_.game_mode_ = 0;
3063   _impl_._has_bits_[0] &= ~0x04000000u;
3064 }
_internal_game_mode()3065 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode SurfaceflingerStatsLayerInfo::_internal_game_mode() const {
3066   return static_cast< ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode >(_impl_.game_mode_);
3067 }
game_mode()3068 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode SurfaceflingerStatsLayerInfo::game_mode() const {
3069   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.game_mode)
3070   return _internal_game_mode();
3071 }
_internal_set_game_mode(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode value)3072 inline void SurfaceflingerStatsLayerInfo::_internal_set_game_mode(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode value) {
3073   assert(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode_IsValid(value));
3074   _impl_._has_bits_[0] |= 0x04000000u;
3075   _impl_.game_mode_ = value;
3076 }
set_game_mode(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode value)3077 inline void SurfaceflingerStatsLayerInfo::set_game_mode(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode value) {
3078   _internal_set_game_mode(value);
3079   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.game_mode)
3080 }
3081 
3082 // optional string layer_name = 1;
_internal_has_layer_name()3083 inline bool SurfaceflingerStatsLayerInfo::_internal_has_layer_name() const {
3084   bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
3085   return value;
3086 }
has_layer_name()3087 inline bool SurfaceflingerStatsLayerInfo::has_layer_name() const {
3088   return _internal_has_layer_name();
3089 }
clear_layer_name()3090 inline void SurfaceflingerStatsLayerInfo::clear_layer_name() {
3091   _impl_.layer_name_.ClearToEmpty();
3092   _impl_._has_bits_[0] &= ~0x00000001u;
3093 }
layer_name()3094 inline const std::string& SurfaceflingerStatsLayerInfo::layer_name() const {
3095   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.layer_name)
3096   return _internal_layer_name();
3097 }
3098 template <typename ArgT0, typename... ArgT>
3099 inline PROTOBUF_ALWAYS_INLINE
set_layer_name(ArgT0 && arg0,ArgT...args)3100 void SurfaceflingerStatsLayerInfo::set_layer_name(ArgT0&& arg0, ArgT... args) {
3101  _impl_._has_bits_[0] |= 0x00000001u;
3102  _impl_.layer_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
3103   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.layer_name)
3104 }
mutable_layer_name()3105 inline std::string* SurfaceflingerStatsLayerInfo::mutable_layer_name() {
3106   std::string* _s = _internal_mutable_layer_name();
3107   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsLayerInfo.layer_name)
3108   return _s;
3109 }
_internal_layer_name()3110 inline const std::string& SurfaceflingerStatsLayerInfo::_internal_layer_name() const {
3111   return _impl_.layer_name_.Get();
3112 }
_internal_set_layer_name(const std::string & value)3113 inline void SurfaceflingerStatsLayerInfo::_internal_set_layer_name(const std::string& value) {
3114   _impl_._has_bits_[0] |= 0x00000001u;
3115   _impl_.layer_name_.Set(value, GetArenaForAllocation());
3116 }
_internal_mutable_layer_name()3117 inline std::string* SurfaceflingerStatsLayerInfo::_internal_mutable_layer_name() {
3118   _impl_._has_bits_[0] |= 0x00000001u;
3119   return _impl_.layer_name_.Mutable(GetArenaForAllocation());
3120 }
release_layer_name()3121 inline std::string* SurfaceflingerStatsLayerInfo::release_layer_name() {
3122   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsLayerInfo.layer_name)
3123   if (!_internal_has_layer_name()) {
3124     return nullptr;
3125   }
3126   _impl_._has_bits_[0] &= ~0x00000001u;
3127   auto* p = _impl_.layer_name_.Release();
3128 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3129   if (_impl_.layer_name_.IsDefault()) {
3130     _impl_.layer_name_.Set("", GetArenaForAllocation());
3131   }
3132 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3133   return p;
3134 }
set_allocated_layer_name(std::string * layer_name)3135 inline void SurfaceflingerStatsLayerInfo::set_allocated_layer_name(std::string* layer_name) {
3136   if (layer_name != nullptr) {
3137     _impl_._has_bits_[0] |= 0x00000001u;
3138   } else {
3139     _impl_._has_bits_[0] &= ~0x00000001u;
3140   }
3141   _impl_.layer_name_.SetAllocated(layer_name, GetArenaForAllocation());
3142 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
3143   if (_impl_.layer_name_.IsDefault()) {
3144     _impl_.layer_name_.Set("", GetArenaForAllocation());
3145   }
3146 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
3147   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.layer_name)
3148 }
3149 
3150 // optional int64 total_frames = 2;
_internal_has_total_frames()3151 inline bool SurfaceflingerStatsLayerInfo::_internal_has_total_frames() const {
3152   bool value = (_impl_._has_bits_[0] & 0x00000400u) != 0;
3153   return value;
3154 }
has_total_frames()3155 inline bool SurfaceflingerStatsLayerInfo::has_total_frames() const {
3156   return _internal_has_total_frames();
3157 }
clear_total_frames()3158 inline void SurfaceflingerStatsLayerInfo::clear_total_frames() {
3159   _impl_.total_frames_ = ::int64_t{0};
3160   _impl_._has_bits_[0] &= ~0x00000400u;
3161 }
_internal_total_frames()3162 inline ::int64_t SurfaceflingerStatsLayerInfo::_internal_total_frames() const {
3163   return _impl_.total_frames_;
3164 }
total_frames()3165 inline ::int64_t SurfaceflingerStatsLayerInfo::total_frames() const {
3166   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_frames)
3167   return _internal_total_frames();
3168 }
_internal_set_total_frames(::int64_t value)3169 inline void SurfaceflingerStatsLayerInfo::_internal_set_total_frames(::int64_t value) {
3170   _impl_._has_bits_[0] |= 0x00000400u;
3171   _impl_.total_frames_ = value;
3172 }
set_total_frames(::int64_t value)3173 inline void SurfaceflingerStatsLayerInfo::set_total_frames(::int64_t value) {
3174   _internal_set_total_frames(value);
3175   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_frames)
3176 }
3177 
3178 // optional int64 dropped_frames = 3;
_internal_has_dropped_frames()3179 inline bool SurfaceflingerStatsLayerInfo::_internal_has_dropped_frames() const {
3180   bool value = (_impl_._has_bits_[0] & 0x00000800u) != 0;
3181   return value;
3182 }
has_dropped_frames()3183 inline bool SurfaceflingerStatsLayerInfo::has_dropped_frames() const {
3184   return _internal_has_dropped_frames();
3185 }
clear_dropped_frames()3186 inline void SurfaceflingerStatsLayerInfo::clear_dropped_frames() {
3187   _impl_.dropped_frames_ = ::int64_t{0};
3188   _impl_._has_bits_[0] &= ~0x00000800u;
3189 }
_internal_dropped_frames()3190 inline ::int64_t SurfaceflingerStatsLayerInfo::_internal_dropped_frames() const {
3191   return _impl_.dropped_frames_;
3192 }
dropped_frames()3193 inline ::int64_t SurfaceflingerStatsLayerInfo::dropped_frames() const {
3194   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.dropped_frames)
3195   return _internal_dropped_frames();
3196 }
_internal_set_dropped_frames(::int64_t value)3197 inline void SurfaceflingerStatsLayerInfo::_internal_set_dropped_frames(::int64_t value) {
3198   _impl_._has_bits_[0] |= 0x00000800u;
3199   _impl_.dropped_frames_ = value;
3200 }
set_dropped_frames(::int64_t value)3201 inline void SurfaceflingerStatsLayerInfo::set_dropped_frames(::int64_t value) {
3202   _internal_set_dropped_frames(value);
3203   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.dropped_frames)
3204 }
3205 
3206 // optional .android.surfaceflinger.FrameTimingHistogram present_to_present = 4;
_internal_has_present_to_present()3207 inline bool SurfaceflingerStatsLayerInfo::_internal_has_present_to_present() const {
3208   bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
3209   PROTOBUF_ASSUME(!value || _impl_.present_to_present_ != nullptr);
3210   return value;
3211 }
has_present_to_present()3212 inline bool SurfaceflingerStatsLayerInfo::has_present_to_present() const {
3213   return _internal_has_present_to_present();
3214 }
clear_present_to_present()3215 inline void SurfaceflingerStatsLayerInfo::clear_present_to_present() {
3216   if (_impl_.present_to_present_ != nullptr) _impl_.present_to_present_->Clear();
3217   _impl_._has_bits_[0] &= ~0x00000002u;
3218 }
_internal_present_to_present()3219 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::_internal_present_to_present() const {
3220   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.present_to_present_;
3221   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
3222       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
3223 }
present_to_present()3224 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::present_to_present() const {
3225   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.present_to_present)
3226   return _internal_present_to_present();
3227 }
unsafe_arena_set_allocated_present_to_present(::android::surfaceflinger::FrameTimingHistogram * present_to_present)3228 inline void SurfaceflingerStatsLayerInfo::unsafe_arena_set_allocated_present_to_present(
3229     ::android::surfaceflinger::FrameTimingHistogram* present_to_present) {
3230   if (GetArenaForAllocation() == nullptr) {
3231     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.present_to_present_);
3232   }
3233   _impl_.present_to_present_ = present_to_present;
3234   if (present_to_present) {
3235     _impl_._has_bits_[0] |= 0x00000002u;
3236   } else {
3237     _impl_._has_bits_[0] &= ~0x00000002u;
3238   }
3239   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.present_to_present)
3240 }
release_present_to_present()3241 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::release_present_to_present() {
3242   _impl_._has_bits_[0] &= ~0x00000002u;
3243   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.present_to_present_;
3244   _impl_.present_to_present_ = nullptr;
3245 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
3246   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
3247   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3248   if (GetArenaForAllocation() == nullptr) { delete old; }
3249 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
3250   if (GetArenaForAllocation() != nullptr) {
3251     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3252   }
3253 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
3254   return temp;
3255 }
unsafe_arena_release_present_to_present()3256 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::unsafe_arena_release_present_to_present() {
3257   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsLayerInfo.present_to_present)
3258   _impl_._has_bits_[0] &= ~0x00000002u;
3259   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.present_to_present_;
3260   _impl_.present_to_present_ = nullptr;
3261   return temp;
3262 }
_internal_mutable_present_to_present()3263 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::_internal_mutable_present_to_present() {
3264   _impl_._has_bits_[0] |= 0x00000002u;
3265   if (_impl_.present_to_present_ == nullptr) {
3266     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
3267     _impl_.present_to_present_ = p;
3268   }
3269   return _impl_.present_to_present_;
3270 }
mutable_present_to_present()3271 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::mutable_present_to_present() {
3272   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_present_to_present();
3273   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsLayerInfo.present_to_present)
3274   return _msg;
3275 }
set_allocated_present_to_present(::android::surfaceflinger::FrameTimingHistogram * present_to_present)3276 inline void SurfaceflingerStatsLayerInfo::set_allocated_present_to_present(::android::surfaceflinger::FrameTimingHistogram* present_to_present) {
3277   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3278   if (message_arena == nullptr) {
3279     delete _impl_.present_to_present_;
3280   }
3281   if (present_to_present) {
3282     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3283         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(present_to_present);
3284     if (message_arena != submessage_arena) {
3285       present_to_present = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3286           message_arena, present_to_present, submessage_arena);
3287     }
3288     _impl_._has_bits_[0] |= 0x00000002u;
3289   } else {
3290     _impl_._has_bits_[0] &= ~0x00000002u;
3291   }
3292   _impl_.present_to_present_ = present_to_present;
3293   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.present_to_present)
3294 }
3295 
3296 // optional .android.surfaceflinger.FrameTimingHistogram post_to_present = 5;
_internal_has_post_to_present()3297 inline bool SurfaceflingerStatsLayerInfo::_internal_has_post_to_present() const {
3298   bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
3299   PROTOBUF_ASSUME(!value || _impl_.post_to_present_ != nullptr);
3300   return value;
3301 }
has_post_to_present()3302 inline bool SurfaceflingerStatsLayerInfo::has_post_to_present() const {
3303   return _internal_has_post_to_present();
3304 }
clear_post_to_present()3305 inline void SurfaceflingerStatsLayerInfo::clear_post_to_present() {
3306   if (_impl_.post_to_present_ != nullptr) _impl_.post_to_present_->Clear();
3307   _impl_._has_bits_[0] &= ~0x00000004u;
3308 }
_internal_post_to_present()3309 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::_internal_post_to_present() const {
3310   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.post_to_present_;
3311   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
3312       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
3313 }
post_to_present()3314 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::post_to_present() const {
3315   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.post_to_present)
3316   return _internal_post_to_present();
3317 }
unsafe_arena_set_allocated_post_to_present(::android::surfaceflinger::FrameTimingHistogram * post_to_present)3318 inline void SurfaceflingerStatsLayerInfo::unsafe_arena_set_allocated_post_to_present(
3319     ::android::surfaceflinger::FrameTimingHistogram* post_to_present) {
3320   if (GetArenaForAllocation() == nullptr) {
3321     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.post_to_present_);
3322   }
3323   _impl_.post_to_present_ = post_to_present;
3324   if (post_to_present) {
3325     _impl_._has_bits_[0] |= 0x00000004u;
3326   } else {
3327     _impl_._has_bits_[0] &= ~0x00000004u;
3328   }
3329   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.post_to_present)
3330 }
release_post_to_present()3331 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::release_post_to_present() {
3332   _impl_._has_bits_[0] &= ~0x00000004u;
3333   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.post_to_present_;
3334   _impl_.post_to_present_ = nullptr;
3335 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
3336   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
3337   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3338   if (GetArenaForAllocation() == nullptr) { delete old; }
3339 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
3340   if (GetArenaForAllocation() != nullptr) {
3341     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3342   }
3343 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
3344   return temp;
3345 }
unsafe_arena_release_post_to_present()3346 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::unsafe_arena_release_post_to_present() {
3347   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsLayerInfo.post_to_present)
3348   _impl_._has_bits_[0] &= ~0x00000004u;
3349   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.post_to_present_;
3350   _impl_.post_to_present_ = nullptr;
3351   return temp;
3352 }
_internal_mutable_post_to_present()3353 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::_internal_mutable_post_to_present() {
3354   _impl_._has_bits_[0] |= 0x00000004u;
3355   if (_impl_.post_to_present_ == nullptr) {
3356     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
3357     _impl_.post_to_present_ = p;
3358   }
3359   return _impl_.post_to_present_;
3360 }
mutable_post_to_present()3361 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::mutable_post_to_present() {
3362   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_post_to_present();
3363   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsLayerInfo.post_to_present)
3364   return _msg;
3365 }
set_allocated_post_to_present(::android::surfaceflinger::FrameTimingHistogram * post_to_present)3366 inline void SurfaceflingerStatsLayerInfo::set_allocated_post_to_present(::android::surfaceflinger::FrameTimingHistogram* post_to_present) {
3367   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3368   if (message_arena == nullptr) {
3369     delete _impl_.post_to_present_;
3370   }
3371   if (post_to_present) {
3372     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3373         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(post_to_present);
3374     if (message_arena != submessage_arena) {
3375       post_to_present = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3376           message_arena, post_to_present, submessage_arena);
3377     }
3378     _impl_._has_bits_[0] |= 0x00000004u;
3379   } else {
3380     _impl_._has_bits_[0] &= ~0x00000004u;
3381   }
3382   _impl_.post_to_present_ = post_to_present;
3383   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.post_to_present)
3384 }
3385 
3386 // optional .android.surfaceflinger.FrameTimingHistogram acquire_to_present = 6;
_internal_has_acquire_to_present()3387 inline bool SurfaceflingerStatsLayerInfo::_internal_has_acquire_to_present() const {
3388   bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0;
3389   PROTOBUF_ASSUME(!value || _impl_.acquire_to_present_ != nullptr);
3390   return value;
3391 }
has_acquire_to_present()3392 inline bool SurfaceflingerStatsLayerInfo::has_acquire_to_present() const {
3393   return _internal_has_acquire_to_present();
3394 }
clear_acquire_to_present()3395 inline void SurfaceflingerStatsLayerInfo::clear_acquire_to_present() {
3396   if (_impl_.acquire_to_present_ != nullptr) _impl_.acquire_to_present_->Clear();
3397   _impl_._has_bits_[0] &= ~0x00000008u;
3398 }
_internal_acquire_to_present()3399 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::_internal_acquire_to_present() const {
3400   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.acquire_to_present_;
3401   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
3402       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
3403 }
acquire_to_present()3404 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::acquire_to_present() const {
3405   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.acquire_to_present)
3406   return _internal_acquire_to_present();
3407 }
unsafe_arena_set_allocated_acquire_to_present(::android::surfaceflinger::FrameTimingHistogram * acquire_to_present)3408 inline void SurfaceflingerStatsLayerInfo::unsafe_arena_set_allocated_acquire_to_present(
3409     ::android::surfaceflinger::FrameTimingHistogram* acquire_to_present) {
3410   if (GetArenaForAllocation() == nullptr) {
3411     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.acquire_to_present_);
3412   }
3413   _impl_.acquire_to_present_ = acquire_to_present;
3414   if (acquire_to_present) {
3415     _impl_._has_bits_[0] |= 0x00000008u;
3416   } else {
3417     _impl_._has_bits_[0] &= ~0x00000008u;
3418   }
3419   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.acquire_to_present)
3420 }
release_acquire_to_present()3421 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::release_acquire_to_present() {
3422   _impl_._has_bits_[0] &= ~0x00000008u;
3423   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.acquire_to_present_;
3424   _impl_.acquire_to_present_ = nullptr;
3425 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
3426   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
3427   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3428   if (GetArenaForAllocation() == nullptr) { delete old; }
3429 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
3430   if (GetArenaForAllocation() != nullptr) {
3431     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3432   }
3433 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
3434   return temp;
3435 }
unsafe_arena_release_acquire_to_present()3436 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::unsafe_arena_release_acquire_to_present() {
3437   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsLayerInfo.acquire_to_present)
3438   _impl_._has_bits_[0] &= ~0x00000008u;
3439   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.acquire_to_present_;
3440   _impl_.acquire_to_present_ = nullptr;
3441   return temp;
3442 }
_internal_mutable_acquire_to_present()3443 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::_internal_mutable_acquire_to_present() {
3444   _impl_._has_bits_[0] |= 0x00000008u;
3445   if (_impl_.acquire_to_present_ == nullptr) {
3446     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
3447     _impl_.acquire_to_present_ = p;
3448   }
3449   return _impl_.acquire_to_present_;
3450 }
mutable_acquire_to_present()3451 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::mutable_acquire_to_present() {
3452   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_acquire_to_present();
3453   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsLayerInfo.acquire_to_present)
3454   return _msg;
3455 }
set_allocated_acquire_to_present(::android::surfaceflinger::FrameTimingHistogram * acquire_to_present)3456 inline void SurfaceflingerStatsLayerInfo::set_allocated_acquire_to_present(::android::surfaceflinger::FrameTimingHistogram* acquire_to_present) {
3457   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3458   if (message_arena == nullptr) {
3459     delete _impl_.acquire_to_present_;
3460   }
3461   if (acquire_to_present) {
3462     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3463         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(acquire_to_present);
3464     if (message_arena != submessage_arena) {
3465       acquire_to_present = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3466           message_arena, acquire_to_present, submessage_arena);
3467     }
3468     _impl_._has_bits_[0] |= 0x00000008u;
3469   } else {
3470     _impl_._has_bits_[0] &= ~0x00000008u;
3471   }
3472   _impl_.acquire_to_present_ = acquire_to_present;
3473   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.acquire_to_present)
3474 }
3475 
3476 // optional .android.surfaceflinger.FrameTimingHistogram latch_to_present = 7;
_internal_has_latch_to_present()3477 inline bool SurfaceflingerStatsLayerInfo::_internal_has_latch_to_present() const {
3478   bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0;
3479   PROTOBUF_ASSUME(!value || _impl_.latch_to_present_ != nullptr);
3480   return value;
3481 }
has_latch_to_present()3482 inline bool SurfaceflingerStatsLayerInfo::has_latch_to_present() const {
3483   return _internal_has_latch_to_present();
3484 }
clear_latch_to_present()3485 inline void SurfaceflingerStatsLayerInfo::clear_latch_to_present() {
3486   if (_impl_.latch_to_present_ != nullptr) _impl_.latch_to_present_->Clear();
3487   _impl_._has_bits_[0] &= ~0x00000010u;
3488 }
_internal_latch_to_present()3489 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::_internal_latch_to_present() const {
3490   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.latch_to_present_;
3491   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
3492       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
3493 }
latch_to_present()3494 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::latch_to_present() const {
3495   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.latch_to_present)
3496   return _internal_latch_to_present();
3497 }
unsafe_arena_set_allocated_latch_to_present(::android::surfaceflinger::FrameTimingHistogram * latch_to_present)3498 inline void SurfaceflingerStatsLayerInfo::unsafe_arena_set_allocated_latch_to_present(
3499     ::android::surfaceflinger::FrameTimingHistogram* latch_to_present) {
3500   if (GetArenaForAllocation() == nullptr) {
3501     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.latch_to_present_);
3502   }
3503   _impl_.latch_to_present_ = latch_to_present;
3504   if (latch_to_present) {
3505     _impl_._has_bits_[0] |= 0x00000010u;
3506   } else {
3507     _impl_._has_bits_[0] &= ~0x00000010u;
3508   }
3509   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.latch_to_present)
3510 }
release_latch_to_present()3511 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::release_latch_to_present() {
3512   _impl_._has_bits_[0] &= ~0x00000010u;
3513   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.latch_to_present_;
3514   _impl_.latch_to_present_ = nullptr;
3515 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
3516   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
3517   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3518   if (GetArenaForAllocation() == nullptr) { delete old; }
3519 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
3520   if (GetArenaForAllocation() != nullptr) {
3521     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3522   }
3523 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
3524   return temp;
3525 }
unsafe_arena_release_latch_to_present()3526 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::unsafe_arena_release_latch_to_present() {
3527   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsLayerInfo.latch_to_present)
3528   _impl_._has_bits_[0] &= ~0x00000010u;
3529   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.latch_to_present_;
3530   _impl_.latch_to_present_ = nullptr;
3531   return temp;
3532 }
_internal_mutable_latch_to_present()3533 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::_internal_mutable_latch_to_present() {
3534   _impl_._has_bits_[0] |= 0x00000010u;
3535   if (_impl_.latch_to_present_ == nullptr) {
3536     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
3537     _impl_.latch_to_present_ = p;
3538   }
3539   return _impl_.latch_to_present_;
3540 }
mutable_latch_to_present()3541 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::mutable_latch_to_present() {
3542   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_latch_to_present();
3543   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsLayerInfo.latch_to_present)
3544   return _msg;
3545 }
set_allocated_latch_to_present(::android::surfaceflinger::FrameTimingHistogram * latch_to_present)3546 inline void SurfaceflingerStatsLayerInfo::set_allocated_latch_to_present(::android::surfaceflinger::FrameTimingHistogram* latch_to_present) {
3547   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3548   if (message_arena == nullptr) {
3549     delete _impl_.latch_to_present_;
3550   }
3551   if (latch_to_present) {
3552     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3553         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(latch_to_present);
3554     if (message_arena != submessage_arena) {
3555       latch_to_present = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3556           message_arena, latch_to_present, submessage_arena);
3557     }
3558     _impl_._has_bits_[0] |= 0x00000010u;
3559   } else {
3560     _impl_._has_bits_[0] &= ~0x00000010u;
3561   }
3562   _impl_.latch_to_present_ = latch_to_present;
3563   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.latch_to_present)
3564 }
3565 
3566 // optional .android.surfaceflinger.FrameTimingHistogram desired_to_present = 8;
_internal_has_desired_to_present()3567 inline bool SurfaceflingerStatsLayerInfo::_internal_has_desired_to_present() const {
3568   bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0;
3569   PROTOBUF_ASSUME(!value || _impl_.desired_to_present_ != nullptr);
3570   return value;
3571 }
has_desired_to_present()3572 inline bool SurfaceflingerStatsLayerInfo::has_desired_to_present() const {
3573   return _internal_has_desired_to_present();
3574 }
clear_desired_to_present()3575 inline void SurfaceflingerStatsLayerInfo::clear_desired_to_present() {
3576   if (_impl_.desired_to_present_ != nullptr) _impl_.desired_to_present_->Clear();
3577   _impl_._has_bits_[0] &= ~0x00000020u;
3578 }
_internal_desired_to_present()3579 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::_internal_desired_to_present() const {
3580   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.desired_to_present_;
3581   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
3582       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
3583 }
desired_to_present()3584 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::desired_to_present() const {
3585   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.desired_to_present)
3586   return _internal_desired_to_present();
3587 }
unsafe_arena_set_allocated_desired_to_present(::android::surfaceflinger::FrameTimingHistogram * desired_to_present)3588 inline void SurfaceflingerStatsLayerInfo::unsafe_arena_set_allocated_desired_to_present(
3589     ::android::surfaceflinger::FrameTimingHistogram* desired_to_present) {
3590   if (GetArenaForAllocation() == nullptr) {
3591     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.desired_to_present_);
3592   }
3593   _impl_.desired_to_present_ = desired_to_present;
3594   if (desired_to_present) {
3595     _impl_._has_bits_[0] |= 0x00000020u;
3596   } else {
3597     _impl_._has_bits_[0] &= ~0x00000020u;
3598   }
3599   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.desired_to_present)
3600 }
release_desired_to_present()3601 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::release_desired_to_present() {
3602   _impl_._has_bits_[0] &= ~0x00000020u;
3603   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.desired_to_present_;
3604   _impl_.desired_to_present_ = nullptr;
3605 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
3606   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
3607   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3608   if (GetArenaForAllocation() == nullptr) { delete old; }
3609 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
3610   if (GetArenaForAllocation() != nullptr) {
3611     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3612   }
3613 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
3614   return temp;
3615 }
unsafe_arena_release_desired_to_present()3616 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::unsafe_arena_release_desired_to_present() {
3617   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsLayerInfo.desired_to_present)
3618   _impl_._has_bits_[0] &= ~0x00000020u;
3619   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.desired_to_present_;
3620   _impl_.desired_to_present_ = nullptr;
3621   return temp;
3622 }
_internal_mutable_desired_to_present()3623 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::_internal_mutable_desired_to_present() {
3624   _impl_._has_bits_[0] |= 0x00000020u;
3625   if (_impl_.desired_to_present_ == nullptr) {
3626     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
3627     _impl_.desired_to_present_ = p;
3628   }
3629   return _impl_.desired_to_present_;
3630 }
mutable_desired_to_present()3631 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::mutable_desired_to_present() {
3632   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_desired_to_present();
3633   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsLayerInfo.desired_to_present)
3634   return _msg;
3635 }
set_allocated_desired_to_present(::android::surfaceflinger::FrameTimingHistogram * desired_to_present)3636 inline void SurfaceflingerStatsLayerInfo::set_allocated_desired_to_present(::android::surfaceflinger::FrameTimingHistogram* desired_to_present) {
3637   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3638   if (message_arena == nullptr) {
3639     delete _impl_.desired_to_present_;
3640   }
3641   if (desired_to_present) {
3642     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3643         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(desired_to_present);
3644     if (message_arena != submessage_arena) {
3645       desired_to_present = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3646           message_arena, desired_to_present, submessage_arena);
3647     }
3648     _impl_._has_bits_[0] |= 0x00000020u;
3649   } else {
3650     _impl_._has_bits_[0] &= ~0x00000020u;
3651   }
3652   _impl_.desired_to_present_ = desired_to_present;
3653   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.desired_to_present)
3654 }
3655 
3656 // optional .android.surfaceflinger.FrameTimingHistogram post_to_acquire = 9;
_internal_has_post_to_acquire()3657 inline bool SurfaceflingerStatsLayerInfo::_internal_has_post_to_acquire() const {
3658   bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0;
3659   PROTOBUF_ASSUME(!value || _impl_.post_to_acquire_ != nullptr);
3660   return value;
3661 }
has_post_to_acquire()3662 inline bool SurfaceflingerStatsLayerInfo::has_post_to_acquire() const {
3663   return _internal_has_post_to_acquire();
3664 }
clear_post_to_acquire()3665 inline void SurfaceflingerStatsLayerInfo::clear_post_to_acquire() {
3666   if (_impl_.post_to_acquire_ != nullptr) _impl_.post_to_acquire_->Clear();
3667   _impl_._has_bits_[0] &= ~0x00000040u;
3668 }
_internal_post_to_acquire()3669 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::_internal_post_to_acquire() const {
3670   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.post_to_acquire_;
3671   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
3672       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
3673 }
post_to_acquire()3674 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::post_to_acquire() const {
3675   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.post_to_acquire)
3676   return _internal_post_to_acquire();
3677 }
unsafe_arena_set_allocated_post_to_acquire(::android::surfaceflinger::FrameTimingHistogram * post_to_acquire)3678 inline void SurfaceflingerStatsLayerInfo::unsafe_arena_set_allocated_post_to_acquire(
3679     ::android::surfaceflinger::FrameTimingHistogram* post_to_acquire) {
3680   if (GetArenaForAllocation() == nullptr) {
3681     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.post_to_acquire_);
3682   }
3683   _impl_.post_to_acquire_ = post_to_acquire;
3684   if (post_to_acquire) {
3685     _impl_._has_bits_[0] |= 0x00000040u;
3686   } else {
3687     _impl_._has_bits_[0] &= ~0x00000040u;
3688   }
3689   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.post_to_acquire)
3690 }
release_post_to_acquire()3691 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::release_post_to_acquire() {
3692   _impl_._has_bits_[0] &= ~0x00000040u;
3693   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.post_to_acquire_;
3694   _impl_.post_to_acquire_ = nullptr;
3695 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
3696   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
3697   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3698   if (GetArenaForAllocation() == nullptr) { delete old; }
3699 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
3700   if (GetArenaForAllocation() != nullptr) {
3701     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
3702   }
3703 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
3704   return temp;
3705 }
unsafe_arena_release_post_to_acquire()3706 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::unsafe_arena_release_post_to_acquire() {
3707   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsLayerInfo.post_to_acquire)
3708   _impl_._has_bits_[0] &= ~0x00000040u;
3709   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.post_to_acquire_;
3710   _impl_.post_to_acquire_ = nullptr;
3711   return temp;
3712 }
_internal_mutable_post_to_acquire()3713 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::_internal_mutable_post_to_acquire() {
3714   _impl_._has_bits_[0] |= 0x00000040u;
3715   if (_impl_.post_to_acquire_ == nullptr) {
3716     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
3717     _impl_.post_to_acquire_ = p;
3718   }
3719   return _impl_.post_to_acquire_;
3720 }
mutable_post_to_acquire()3721 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::mutable_post_to_acquire() {
3722   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_post_to_acquire();
3723   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsLayerInfo.post_to_acquire)
3724   return _msg;
3725 }
set_allocated_post_to_acquire(::android::surfaceflinger::FrameTimingHistogram * post_to_acquire)3726 inline void SurfaceflingerStatsLayerInfo::set_allocated_post_to_acquire(::android::surfaceflinger::FrameTimingHistogram* post_to_acquire) {
3727   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
3728   if (message_arena == nullptr) {
3729     delete _impl_.post_to_acquire_;
3730   }
3731   if (post_to_acquire) {
3732     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
3733         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(post_to_acquire);
3734     if (message_arena != submessage_arena) {
3735       post_to_acquire = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
3736           message_arena, post_to_acquire, submessage_arena);
3737     }
3738     _impl_._has_bits_[0] |= 0x00000040u;
3739   } else {
3740     _impl_._has_bits_[0] &= ~0x00000040u;
3741   }
3742   _impl_.post_to_acquire_ = post_to_acquire;
3743   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.post_to_acquire)
3744 }
3745 
3746 // optional int64 late_acquire_frames = 10;
_internal_has_late_acquire_frames()3747 inline bool SurfaceflingerStatsLayerInfo::_internal_has_late_acquire_frames() const {
3748   bool value = (_impl_._has_bits_[0] & 0x00001000u) != 0;
3749   return value;
3750 }
has_late_acquire_frames()3751 inline bool SurfaceflingerStatsLayerInfo::has_late_acquire_frames() const {
3752   return _internal_has_late_acquire_frames();
3753 }
clear_late_acquire_frames()3754 inline void SurfaceflingerStatsLayerInfo::clear_late_acquire_frames() {
3755   _impl_.late_acquire_frames_ = ::int64_t{0};
3756   _impl_._has_bits_[0] &= ~0x00001000u;
3757 }
_internal_late_acquire_frames()3758 inline ::int64_t SurfaceflingerStatsLayerInfo::_internal_late_acquire_frames() const {
3759   return _impl_.late_acquire_frames_;
3760 }
late_acquire_frames()3761 inline ::int64_t SurfaceflingerStatsLayerInfo::late_acquire_frames() const {
3762   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.late_acquire_frames)
3763   return _internal_late_acquire_frames();
3764 }
_internal_set_late_acquire_frames(::int64_t value)3765 inline void SurfaceflingerStatsLayerInfo::_internal_set_late_acquire_frames(::int64_t value) {
3766   _impl_._has_bits_[0] |= 0x00001000u;
3767   _impl_.late_acquire_frames_ = value;
3768 }
set_late_acquire_frames(::int64_t value)3769 inline void SurfaceflingerStatsLayerInfo::set_late_acquire_frames(::int64_t value) {
3770   _internal_set_late_acquire_frames(value);
3771   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.late_acquire_frames)
3772 }
3773 
3774 // optional int64 bad_desired_present_frames = 11;
_internal_has_bad_desired_present_frames()3775 inline bool SurfaceflingerStatsLayerInfo::_internal_has_bad_desired_present_frames() const {
3776   bool value = (_impl_._has_bits_[0] & 0x00002000u) != 0;
3777   return value;
3778 }
has_bad_desired_present_frames()3779 inline bool SurfaceflingerStatsLayerInfo::has_bad_desired_present_frames() const {
3780   return _internal_has_bad_desired_present_frames();
3781 }
clear_bad_desired_present_frames()3782 inline void SurfaceflingerStatsLayerInfo::clear_bad_desired_present_frames() {
3783   _impl_.bad_desired_present_frames_ = ::int64_t{0};
3784   _impl_._has_bits_[0] &= ~0x00002000u;
3785 }
_internal_bad_desired_present_frames()3786 inline ::int64_t SurfaceflingerStatsLayerInfo::_internal_bad_desired_present_frames() const {
3787   return _impl_.bad_desired_present_frames_;
3788 }
bad_desired_present_frames()3789 inline ::int64_t SurfaceflingerStatsLayerInfo::bad_desired_present_frames() const {
3790   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.bad_desired_present_frames)
3791   return _internal_bad_desired_present_frames();
3792 }
_internal_set_bad_desired_present_frames(::int64_t value)3793 inline void SurfaceflingerStatsLayerInfo::_internal_set_bad_desired_present_frames(::int64_t value) {
3794   _impl_._has_bits_[0] |= 0x00002000u;
3795   _impl_.bad_desired_present_frames_ = value;
3796 }
set_bad_desired_present_frames(::int64_t value)3797 inline void SurfaceflingerStatsLayerInfo::set_bad_desired_present_frames(::int64_t value) {
3798   _internal_set_bad_desired_present_frames(value);
3799   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.bad_desired_present_frames)
3800 }
3801 
3802 // optional int32 total_timeline_frames = 13;
_internal_has_total_timeline_frames()3803 inline bool SurfaceflingerStatsLayerInfo::_internal_has_total_timeline_frames() const {
3804   bool value = (_impl_._has_bits_[0] & 0x00008000u) != 0;
3805   return value;
3806 }
has_total_timeline_frames()3807 inline bool SurfaceflingerStatsLayerInfo::has_total_timeline_frames() const {
3808   return _internal_has_total_timeline_frames();
3809 }
clear_total_timeline_frames()3810 inline void SurfaceflingerStatsLayerInfo::clear_total_timeline_frames() {
3811   _impl_.total_timeline_frames_ = 0;
3812   _impl_._has_bits_[0] &= ~0x00008000u;
3813 }
_internal_total_timeline_frames()3814 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_total_timeline_frames() const {
3815   return _impl_.total_timeline_frames_;
3816 }
total_timeline_frames()3817 inline ::int32_t SurfaceflingerStatsLayerInfo::total_timeline_frames() const {
3818   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_timeline_frames)
3819   return _internal_total_timeline_frames();
3820 }
_internal_set_total_timeline_frames(::int32_t value)3821 inline void SurfaceflingerStatsLayerInfo::_internal_set_total_timeline_frames(::int32_t value) {
3822   _impl_._has_bits_[0] |= 0x00008000u;
3823   _impl_.total_timeline_frames_ = value;
3824 }
set_total_timeline_frames(::int32_t value)3825 inline void SurfaceflingerStatsLayerInfo::set_total_timeline_frames(::int32_t value) {
3826   _internal_set_total_timeline_frames(value);
3827   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_timeline_frames)
3828 }
3829 
3830 // optional int32 total_janky_frames = 14;
_internal_has_total_janky_frames()3831 inline bool SurfaceflingerStatsLayerInfo::_internal_has_total_janky_frames() const {
3832   bool value = (_impl_._has_bits_[0] & 0x00010000u) != 0;
3833   return value;
3834 }
has_total_janky_frames()3835 inline bool SurfaceflingerStatsLayerInfo::has_total_janky_frames() const {
3836   return _internal_has_total_janky_frames();
3837 }
clear_total_janky_frames()3838 inline void SurfaceflingerStatsLayerInfo::clear_total_janky_frames() {
3839   _impl_.total_janky_frames_ = 0;
3840   _impl_._has_bits_[0] &= ~0x00010000u;
3841 }
_internal_total_janky_frames()3842 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_total_janky_frames() const {
3843   return _impl_.total_janky_frames_;
3844 }
total_janky_frames()3845 inline ::int32_t SurfaceflingerStatsLayerInfo::total_janky_frames() const {
3846   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames)
3847   return _internal_total_janky_frames();
3848 }
_internal_set_total_janky_frames(::int32_t value)3849 inline void SurfaceflingerStatsLayerInfo::_internal_set_total_janky_frames(::int32_t value) {
3850   _impl_._has_bits_[0] |= 0x00010000u;
3851   _impl_.total_janky_frames_ = value;
3852 }
set_total_janky_frames(::int32_t value)3853 inline void SurfaceflingerStatsLayerInfo::set_total_janky_frames(::int32_t value) {
3854   _internal_set_total_janky_frames(value);
3855   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames)
3856 }
3857 
3858 // optional int32 total_janky_frames_with_long_cpu = 15;
_internal_has_total_janky_frames_with_long_cpu()3859 inline bool SurfaceflingerStatsLayerInfo::_internal_has_total_janky_frames_with_long_cpu() const {
3860   bool value = (_impl_._has_bits_[0] & 0x00020000u) != 0;
3861   return value;
3862 }
has_total_janky_frames_with_long_cpu()3863 inline bool SurfaceflingerStatsLayerInfo::has_total_janky_frames_with_long_cpu() const {
3864   return _internal_has_total_janky_frames_with_long_cpu();
3865 }
clear_total_janky_frames_with_long_cpu()3866 inline void SurfaceflingerStatsLayerInfo::clear_total_janky_frames_with_long_cpu() {
3867   _impl_.total_janky_frames_with_long_cpu_ = 0;
3868   _impl_._has_bits_[0] &= ~0x00020000u;
3869 }
_internal_total_janky_frames_with_long_cpu()3870 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_total_janky_frames_with_long_cpu() const {
3871   return _impl_.total_janky_frames_with_long_cpu_;
3872 }
total_janky_frames_with_long_cpu()3873 inline ::int32_t SurfaceflingerStatsLayerInfo::total_janky_frames_with_long_cpu() const {
3874   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames_with_long_cpu)
3875   return _internal_total_janky_frames_with_long_cpu();
3876 }
_internal_set_total_janky_frames_with_long_cpu(::int32_t value)3877 inline void SurfaceflingerStatsLayerInfo::_internal_set_total_janky_frames_with_long_cpu(::int32_t value) {
3878   _impl_._has_bits_[0] |= 0x00020000u;
3879   _impl_.total_janky_frames_with_long_cpu_ = value;
3880 }
set_total_janky_frames_with_long_cpu(::int32_t value)3881 inline void SurfaceflingerStatsLayerInfo::set_total_janky_frames_with_long_cpu(::int32_t value) {
3882   _internal_set_total_janky_frames_with_long_cpu(value);
3883   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames_with_long_cpu)
3884 }
3885 
3886 // optional int32 total_janky_frames_with_long_gpu = 16;
_internal_has_total_janky_frames_with_long_gpu()3887 inline bool SurfaceflingerStatsLayerInfo::_internal_has_total_janky_frames_with_long_gpu() const {
3888   bool value = (_impl_._has_bits_[0] & 0x00040000u) != 0;
3889   return value;
3890 }
has_total_janky_frames_with_long_gpu()3891 inline bool SurfaceflingerStatsLayerInfo::has_total_janky_frames_with_long_gpu() const {
3892   return _internal_has_total_janky_frames_with_long_gpu();
3893 }
clear_total_janky_frames_with_long_gpu()3894 inline void SurfaceflingerStatsLayerInfo::clear_total_janky_frames_with_long_gpu() {
3895   _impl_.total_janky_frames_with_long_gpu_ = 0;
3896   _impl_._has_bits_[0] &= ~0x00040000u;
3897 }
_internal_total_janky_frames_with_long_gpu()3898 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_total_janky_frames_with_long_gpu() const {
3899   return _impl_.total_janky_frames_with_long_gpu_;
3900 }
total_janky_frames_with_long_gpu()3901 inline ::int32_t SurfaceflingerStatsLayerInfo::total_janky_frames_with_long_gpu() const {
3902   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames_with_long_gpu)
3903   return _internal_total_janky_frames_with_long_gpu();
3904 }
_internal_set_total_janky_frames_with_long_gpu(::int32_t value)3905 inline void SurfaceflingerStatsLayerInfo::_internal_set_total_janky_frames_with_long_gpu(::int32_t value) {
3906   _impl_._has_bits_[0] |= 0x00040000u;
3907   _impl_.total_janky_frames_with_long_gpu_ = value;
3908 }
set_total_janky_frames_with_long_gpu(::int32_t value)3909 inline void SurfaceflingerStatsLayerInfo::set_total_janky_frames_with_long_gpu(::int32_t value) {
3910   _internal_set_total_janky_frames_with_long_gpu(value);
3911   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames_with_long_gpu)
3912 }
3913 
3914 // optional int32 total_janky_frames_sf_unattributed = 17;
_internal_has_total_janky_frames_sf_unattributed()3915 inline bool SurfaceflingerStatsLayerInfo::_internal_has_total_janky_frames_sf_unattributed() const {
3916   bool value = (_impl_._has_bits_[0] & 0x00080000u) != 0;
3917   return value;
3918 }
has_total_janky_frames_sf_unattributed()3919 inline bool SurfaceflingerStatsLayerInfo::has_total_janky_frames_sf_unattributed() const {
3920   return _internal_has_total_janky_frames_sf_unattributed();
3921 }
clear_total_janky_frames_sf_unattributed()3922 inline void SurfaceflingerStatsLayerInfo::clear_total_janky_frames_sf_unattributed() {
3923   _impl_.total_janky_frames_sf_unattributed_ = 0;
3924   _impl_._has_bits_[0] &= ~0x00080000u;
3925 }
_internal_total_janky_frames_sf_unattributed()3926 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_total_janky_frames_sf_unattributed() const {
3927   return _impl_.total_janky_frames_sf_unattributed_;
3928 }
total_janky_frames_sf_unattributed()3929 inline ::int32_t SurfaceflingerStatsLayerInfo::total_janky_frames_sf_unattributed() const {
3930   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames_sf_unattributed)
3931   return _internal_total_janky_frames_sf_unattributed();
3932 }
_internal_set_total_janky_frames_sf_unattributed(::int32_t value)3933 inline void SurfaceflingerStatsLayerInfo::_internal_set_total_janky_frames_sf_unattributed(::int32_t value) {
3934   _impl_._has_bits_[0] |= 0x00080000u;
3935   _impl_.total_janky_frames_sf_unattributed_ = value;
3936 }
set_total_janky_frames_sf_unattributed(::int32_t value)3937 inline void SurfaceflingerStatsLayerInfo::set_total_janky_frames_sf_unattributed(::int32_t value) {
3938   _internal_set_total_janky_frames_sf_unattributed(value);
3939   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames_sf_unattributed)
3940 }
3941 
3942 // optional int32 total_janky_frames_app_unattributed = 18;
_internal_has_total_janky_frames_app_unattributed()3943 inline bool SurfaceflingerStatsLayerInfo::_internal_has_total_janky_frames_app_unattributed() const {
3944   bool value = (_impl_._has_bits_[0] & 0x00100000u) != 0;
3945   return value;
3946 }
has_total_janky_frames_app_unattributed()3947 inline bool SurfaceflingerStatsLayerInfo::has_total_janky_frames_app_unattributed() const {
3948   return _internal_has_total_janky_frames_app_unattributed();
3949 }
clear_total_janky_frames_app_unattributed()3950 inline void SurfaceflingerStatsLayerInfo::clear_total_janky_frames_app_unattributed() {
3951   _impl_.total_janky_frames_app_unattributed_ = 0;
3952   _impl_._has_bits_[0] &= ~0x00100000u;
3953 }
_internal_total_janky_frames_app_unattributed()3954 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_total_janky_frames_app_unattributed() const {
3955   return _impl_.total_janky_frames_app_unattributed_;
3956 }
total_janky_frames_app_unattributed()3957 inline ::int32_t SurfaceflingerStatsLayerInfo::total_janky_frames_app_unattributed() const {
3958   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames_app_unattributed)
3959   return _internal_total_janky_frames_app_unattributed();
3960 }
_internal_set_total_janky_frames_app_unattributed(::int32_t value)3961 inline void SurfaceflingerStatsLayerInfo::_internal_set_total_janky_frames_app_unattributed(::int32_t value) {
3962   _impl_._has_bits_[0] |= 0x00100000u;
3963   _impl_.total_janky_frames_app_unattributed_ = value;
3964 }
set_total_janky_frames_app_unattributed(::int32_t value)3965 inline void SurfaceflingerStatsLayerInfo::set_total_janky_frames_app_unattributed(::int32_t value) {
3966   _internal_set_total_janky_frames_app_unattributed(value);
3967   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames_app_unattributed)
3968 }
3969 
3970 // optional int32 total_janky_frames_sf_scheduling = 19;
_internal_has_total_janky_frames_sf_scheduling()3971 inline bool SurfaceflingerStatsLayerInfo::_internal_has_total_janky_frames_sf_scheduling() const {
3972   bool value = (_impl_._has_bits_[0] & 0x00200000u) != 0;
3973   return value;
3974 }
has_total_janky_frames_sf_scheduling()3975 inline bool SurfaceflingerStatsLayerInfo::has_total_janky_frames_sf_scheduling() const {
3976   return _internal_has_total_janky_frames_sf_scheduling();
3977 }
clear_total_janky_frames_sf_scheduling()3978 inline void SurfaceflingerStatsLayerInfo::clear_total_janky_frames_sf_scheduling() {
3979   _impl_.total_janky_frames_sf_scheduling_ = 0;
3980   _impl_._has_bits_[0] &= ~0x00200000u;
3981 }
_internal_total_janky_frames_sf_scheduling()3982 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_total_janky_frames_sf_scheduling() const {
3983   return _impl_.total_janky_frames_sf_scheduling_;
3984 }
total_janky_frames_sf_scheduling()3985 inline ::int32_t SurfaceflingerStatsLayerInfo::total_janky_frames_sf_scheduling() const {
3986   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames_sf_scheduling)
3987   return _internal_total_janky_frames_sf_scheduling();
3988 }
_internal_set_total_janky_frames_sf_scheduling(::int32_t value)3989 inline void SurfaceflingerStatsLayerInfo::_internal_set_total_janky_frames_sf_scheduling(::int32_t value) {
3990   _impl_._has_bits_[0] |= 0x00200000u;
3991   _impl_.total_janky_frames_sf_scheduling_ = value;
3992 }
set_total_janky_frames_sf_scheduling(::int32_t value)3993 inline void SurfaceflingerStatsLayerInfo::set_total_janky_frames_sf_scheduling(::int32_t value) {
3994   _internal_set_total_janky_frames_sf_scheduling(value);
3995   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_janky_frames_sf_scheduling)
3996 }
3997 
3998 // optional int32 total_jank_frames_sf_prediction_error = 20;
_internal_has_total_jank_frames_sf_prediction_error()3999 inline bool SurfaceflingerStatsLayerInfo::_internal_has_total_jank_frames_sf_prediction_error() const {
4000   bool value = (_impl_._has_bits_[0] & 0x00400000u) != 0;
4001   return value;
4002 }
has_total_jank_frames_sf_prediction_error()4003 inline bool SurfaceflingerStatsLayerInfo::has_total_jank_frames_sf_prediction_error() const {
4004   return _internal_has_total_jank_frames_sf_prediction_error();
4005 }
clear_total_jank_frames_sf_prediction_error()4006 inline void SurfaceflingerStatsLayerInfo::clear_total_jank_frames_sf_prediction_error() {
4007   _impl_.total_jank_frames_sf_prediction_error_ = 0;
4008   _impl_._has_bits_[0] &= ~0x00400000u;
4009 }
_internal_total_jank_frames_sf_prediction_error()4010 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_total_jank_frames_sf_prediction_error() const {
4011   return _impl_.total_jank_frames_sf_prediction_error_;
4012 }
total_jank_frames_sf_prediction_error()4013 inline ::int32_t SurfaceflingerStatsLayerInfo::total_jank_frames_sf_prediction_error() const {
4014   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_jank_frames_sf_prediction_error)
4015   return _internal_total_jank_frames_sf_prediction_error();
4016 }
_internal_set_total_jank_frames_sf_prediction_error(::int32_t value)4017 inline void SurfaceflingerStatsLayerInfo::_internal_set_total_jank_frames_sf_prediction_error(::int32_t value) {
4018   _impl_._has_bits_[0] |= 0x00400000u;
4019   _impl_.total_jank_frames_sf_prediction_error_ = value;
4020 }
set_total_jank_frames_sf_prediction_error(::int32_t value)4021 inline void SurfaceflingerStatsLayerInfo::set_total_jank_frames_sf_prediction_error(::int32_t value) {
4022   _internal_set_total_jank_frames_sf_prediction_error(value);
4023   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_jank_frames_sf_prediction_error)
4024 }
4025 
4026 // optional int32 total_jank_frames_app_buffer_stuffing = 21;
_internal_has_total_jank_frames_app_buffer_stuffing()4027 inline bool SurfaceflingerStatsLayerInfo::_internal_has_total_jank_frames_app_buffer_stuffing() const {
4028   bool value = (_impl_._has_bits_[0] & 0x00800000u) != 0;
4029   return value;
4030 }
has_total_jank_frames_app_buffer_stuffing()4031 inline bool SurfaceflingerStatsLayerInfo::has_total_jank_frames_app_buffer_stuffing() const {
4032   return _internal_has_total_jank_frames_app_buffer_stuffing();
4033 }
clear_total_jank_frames_app_buffer_stuffing()4034 inline void SurfaceflingerStatsLayerInfo::clear_total_jank_frames_app_buffer_stuffing() {
4035   _impl_.total_jank_frames_app_buffer_stuffing_ = 0;
4036   _impl_._has_bits_[0] &= ~0x00800000u;
4037 }
_internal_total_jank_frames_app_buffer_stuffing()4038 inline ::int32_t SurfaceflingerStatsLayerInfo::_internal_total_jank_frames_app_buffer_stuffing() const {
4039   return _impl_.total_jank_frames_app_buffer_stuffing_;
4040 }
total_jank_frames_app_buffer_stuffing()4041 inline ::int32_t SurfaceflingerStatsLayerInfo::total_jank_frames_app_buffer_stuffing() const {
4042   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_jank_frames_app_buffer_stuffing)
4043   return _internal_total_jank_frames_app_buffer_stuffing();
4044 }
_internal_set_total_jank_frames_app_buffer_stuffing(::int32_t value)4045 inline void SurfaceflingerStatsLayerInfo::_internal_set_total_jank_frames_app_buffer_stuffing(::int32_t value) {
4046   _impl_._has_bits_[0] |= 0x00800000u;
4047   _impl_.total_jank_frames_app_buffer_stuffing_ = value;
4048 }
set_total_jank_frames_app_buffer_stuffing(::int32_t value)4049 inline void SurfaceflingerStatsLayerInfo::set_total_jank_frames_app_buffer_stuffing(::int32_t value) {
4050   _internal_set_total_jank_frames_app_buffer_stuffing(value);
4051   // @@protoc_insertion_point(field_set:android.surfaceflinger.SurfaceflingerStatsLayerInfo.total_jank_frames_app_buffer_stuffing)
4052 }
4053 
4054 // optional .android.surfaceflinger.SurfaceflingerStatsLayerInfo.SetFrameRateVote set_frame_rate_vote = 24;
_internal_has_set_frame_rate_vote()4055 inline bool SurfaceflingerStatsLayerInfo::_internal_has_set_frame_rate_vote() const {
4056   bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0;
4057   PROTOBUF_ASSUME(!value || _impl_.set_frame_rate_vote_ != nullptr);
4058   return value;
4059 }
has_set_frame_rate_vote()4060 inline bool SurfaceflingerStatsLayerInfo::has_set_frame_rate_vote() const {
4061   return _internal_has_set_frame_rate_vote();
4062 }
clear_set_frame_rate_vote()4063 inline void SurfaceflingerStatsLayerInfo::clear_set_frame_rate_vote() {
4064   if (_impl_.set_frame_rate_vote_ != nullptr) _impl_.set_frame_rate_vote_->Clear();
4065   _impl_._has_bits_[0] &= ~0x00000080u;
4066 }
_internal_set_frame_rate_vote()4067 inline const ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote& SurfaceflingerStatsLayerInfo::_internal_set_frame_rate_vote() const {
4068   const ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* p = _impl_.set_frame_rate_vote_;
4069   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote&>(
4070       ::android::surfaceflinger::_SurfaceflingerStatsLayerInfo_SetFrameRateVote_default_instance_);
4071 }
set_frame_rate_vote()4072 inline const ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote& SurfaceflingerStatsLayerInfo::set_frame_rate_vote() const {
4073   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.set_frame_rate_vote)
4074   return _internal_set_frame_rate_vote();
4075 }
unsafe_arena_set_allocated_set_frame_rate_vote(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote * set_frame_rate_vote)4076 inline void SurfaceflingerStatsLayerInfo::unsafe_arena_set_allocated_set_frame_rate_vote(
4077     ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* set_frame_rate_vote) {
4078   if (GetArenaForAllocation() == nullptr) {
4079     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.set_frame_rate_vote_);
4080   }
4081   _impl_.set_frame_rate_vote_ = set_frame_rate_vote;
4082   if (set_frame_rate_vote) {
4083     _impl_._has_bits_[0] |= 0x00000080u;
4084   } else {
4085     _impl_._has_bits_[0] &= ~0x00000080u;
4086   }
4087   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.set_frame_rate_vote)
4088 }
release_set_frame_rate_vote()4089 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* SurfaceflingerStatsLayerInfo::release_set_frame_rate_vote() {
4090   _impl_._has_bits_[0] &= ~0x00000080u;
4091   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* temp = _impl_.set_frame_rate_vote_;
4092   _impl_.set_frame_rate_vote_ = nullptr;
4093 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
4094   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
4095   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
4096   if (GetArenaForAllocation() == nullptr) { delete old; }
4097 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
4098   if (GetArenaForAllocation() != nullptr) {
4099     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
4100   }
4101 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
4102   return temp;
4103 }
unsafe_arena_release_set_frame_rate_vote()4104 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* SurfaceflingerStatsLayerInfo::unsafe_arena_release_set_frame_rate_vote() {
4105   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsLayerInfo.set_frame_rate_vote)
4106   _impl_._has_bits_[0] &= ~0x00000080u;
4107   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* temp = _impl_.set_frame_rate_vote_;
4108   _impl_.set_frame_rate_vote_ = nullptr;
4109   return temp;
4110 }
_internal_mutable_set_frame_rate_vote()4111 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* SurfaceflingerStatsLayerInfo::_internal_mutable_set_frame_rate_vote() {
4112   _impl_._has_bits_[0] |= 0x00000080u;
4113   if (_impl_.set_frame_rate_vote_ == nullptr) {
4114     auto* p = CreateMaybeMessage<::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote>(GetArenaForAllocation());
4115     _impl_.set_frame_rate_vote_ = p;
4116   }
4117   return _impl_.set_frame_rate_vote_;
4118 }
mutable_set_frame_rate_vote()4119 inline ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* SurfaceflingerStatsLayerInfo::mutable_set_frame_rate_vote() {
4120   ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* _msg = _internal_mutable_set_frame_rate_vote();
4121   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsLayerInfo.set_frame_rate_vote)
4122   return _msg;
4123 }
set_allocated_set_frame_rate_vote(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote * set_frame_rate_vote)4124 inline void SurfaceflingerStatsLayerInfo::set_allocated_set_frame_rate_vote(::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote* set_frame_rate_vote) {
4125   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
4126   if (message_arena == nullptr) {
4127     delete _impl_.set_frame_rate_vote_;
4128   }
4129   if (set_frame_rate_vote) {
4130     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
4131         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(set_frame_rate_vote);
4132     if (message_arena != submessage_arena) {
4133       set_frame_rate_vote = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
4134           message_arena, set_frame_rate_vote, submessage_arena);
4135     }
4136     _impl_._has_bits_[0] |= 0x00000080u;
4137   } else {
4138     _impl_._has_bits_[0] &= ~0x00000080u;
4139   }
4140   _impl_.set_frame_rate_vote_ = set_frame_rate_vote;
4141   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.set_frame_rate_vote)
4142 }
4143 
4144 // optional .android.surfaceflinger.FrameTimingHistogram app_deadline_misses = 25;
_internal_has_app_deadline_misses()4145 inline bool SurfaceflingerStatsLayerInfo::_internal_has_app_deadline_misses() const {
4146   bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0;
4147   PROTOBUF_ASSUME(!value || _impl_.app_deadline_misses_ != nullptr);
4148   return value;
4149 }
has_app_deadline_misses()4150 inline bool SurfaceflingerStatsLayerInfo::has_app_deadline_misses() const {
4151   return _internal_has_app_deadline_misses();
4152 }
clear_app_deadline_misses()4153 inline void SurfaceflingerStatsLayerInfo::clear_app_deadline_misses() {
4154   if (_impl_.app_deadline_misses_ != nullptr) _impl_.app_deadline_misses_->Clear();
4155   _impl_._has_bits_[0] &= ~0x00000100u;
4156 }
_internal_app_deadline_misses()4157 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::_internal_app_deadline_misses() const {
4158   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.app_deadline_misses_;
4159   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
4160       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
4161 }
app_deadline_misses()4162 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::app_deadline_misses() const {
4163   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.app_deadline_misses)
4164   return _internal_app_deadline_misses();
4165 }
unsafe_arena_set_allocated_app_deadline_misses(::android::surfaceflinger::FrameTimingHistogram * app_deadline_misses)4166 inline void SurfaceflingerStatsLayerInfo::unsafe_arena_set_allocated_app_deadline_misses(
4167     ::android::surfaceflinger::FrameTimingHistogram* app_deadline_misses) {
4168   if (GetArenaForAllocation() == nullptr) {
4169     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.app_deadline_misses_);
4170   }
4171   _impl_.app_deadline_misses_ = app_deadline_misses;
4172   if (app_deadline_misses) {
4173     _impl_._has_bits_[0] |= 0x00000100u;
4174   } else {
4175     _impl_._has_bits_[0] &= ~0x00000100u;
4176   }
4177   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.app_deadline_misses)
4178 }
release_app_deadline_misses()4179 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::release_app_deadline_misses() {
4180   _impl_._has_bits_[0] &= ~0x00000100u;
4181   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.app_deadline_misses_;
4182   _impl_.app_deadline_misses_ = nullptr;
4183 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
4184   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
4185   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
4186   if (GetArenaForAllocation() == nullptr) { delete old; }
4187 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
4188   if (GetArenaForAllocation() != nullptr) {
4189     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
4190   }
4191 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
4192   return temp;
4193 }
unsafe_arena_release_app_deadline_misses()4194 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::unsafe_arena_release_app_deadline_misses() {
4195   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsLayerInfo.app_deadline_misses)
4196   _impl_._has_bits_[0] &= ~0x00000100u;
4197   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.app_deadline_misses_;
4198   _impl_.app_deadline_misses_ = nullptr;
4199   return temp;
4200 }
_internal_mutable_app_deadline_misses()4201 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::_internal_mutable_app_deadline_misses() {
4202   _impl_._has_bits_[0] |= 0x00000100u;
4203   if (_impl_.app_deadline_misses_ == nullptr) {
4204     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
4205     _impl_.app_deadline_misses_ = p;
4206   }
4207   return _impl_.app_deadline_misses_;
4208 }
mutable_app_deadline_misses()4209 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::mutable_app_deadline_misses() {
4210   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_app_deadline_misses();
4211   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsLayerInfo.app_deadline_misses)
4212   return _msg;
4213 }
set_allocated_app_deadline_misses(::android::surfaceflinger::FrameTimingHistogram * app_deadline_misses)4214 inline void SurfaceflingerStatsLayerInfo::set_allocated_app_deadline_misses(::android::surfaceflinger::FrameTimingHistogram* app_deadline_misses) {
4215   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
4216   if (message_arena == nullptr) {
4217     delete _impl_.app_deadline_misses_;
4218   }
4219   if (app_deadline_misses) {
4220     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
4221         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(app_deadline_misses);
4222     if (message_arena != submessage_arena) {
4223       app_deadline_misses = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
4224           message_arena, app_deadline_misses, submessage_arena);
4225     }
4226     _impl_._has_bits_[0] |= 0x00000100u;
4227   } else {
4228     _impl_._has_bits_[0] &= ~0x00000100u;
4229   }
4230   _impl_.app_deadline_misses_ = app_deadline_misses;
4231   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.app_deadline_misses)
4232 }
4233 
4234 // optional .android.surfaceflinger.FrameTimingHistogram present_to_present_delta = 27;
_internal_has_present_to_present_delta()4235 inline bool SurfaceflingerStatsLayerInfo::_internal_has_present_to_present_delta() const {
4236   bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0;
4237   PROTOBUF_ASSUME(!value || _impl_.present_to_present_delta_ != nullptr);
4238   return value;
4239 }
has_present_to_present_delta()4240 inline bool SurfaceflingerStatsLayerInfo::has_present_to_present_delta() const {
4241   return _internal_has_present_to_present_delta();
4242 }
clear_present_to_present_delta()4243 inline void SurfaceflingerStatsLayerInfo::clear_present_to_present_delta() {
4244   if (_impl_.present_to_present_delta_ != nullptr) _impl_.present_to_present_delta_->Clear();
4245   _impl_._has_bits_[0] &= ~0x00000200u;
4246 }
_internal_present_to_present_delta()4247 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::_internal_present_to_present_delta() const {
4248   const ::android::surfaceflinger::FrameTimingHistogram* p = _impl_.present_to_present_delta_;
4249   return p != nullptr ? *p : reinterpret_cast<const ::android::surfaceflinger::FrameTimingHistogram&>(
4250       ::android::surfaceflinger::_FrameTimingHistogram_default_instance_);
4251 }
present_to_present_delta()4252 inline const ::android::surfaceflinger::FrameTimingHistogram& SurfaceflingerStatsLayerInfo::present_to_present_delta() const {
4253   // @@protoc_insertion_point(field_get:android.surfaceflinger.SurfaceflingerStatsLayerInfo.present_to_present_delta)
4254   return _internal_present_to_present_delta();
4255 }
unsafe_arena_set_allocated_present_to_present_delta(::android::surfaceflinger::FrameTimingHistogram * present_to_present_delta)4256 inline void SurfaceflingerStatsLayerInfo::unsafe_arena_set_allocated_present_to_present_delta(
4257     ::android::surfaceflinger::FrameTimingHistogram* present_to_present_delta) {
4258   if (GetArenaForAllocation() == nullptr) {
4259     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.present_to_present_delta_);
4260   }
4261   _impl_.present_to_present_delta_ = present_to_present_delta;
4262   if (present_to_present_delta) {
4263     _impl_._has_bits_[0] |= 0x00000200u;
4264   } else {
4265     _impl_._has_bits_[0] &= ~0x00000200u;
4266   }
4267   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.present_to_present_delta)
4268 }
release_present_to_present_delta()4269 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::release_present_to_present_delta() {
4270   _impl_._has_bits_[0] &= ~0x00000200u;
4271   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.present_to_present_delta_;
4272   _impl_.present_to_present_delta_ = nullptr;
4273 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
4274   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
4275   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
4276   if (GetArenaForAllocation() == nullptr) { delete old; }
4277 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
4278   if (GetArenaForAllocation() != nullptr) {
4279     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
4280   }
4281 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
4282   return temp;
4283 }
unsafe_arena_release_present_to_present_delta()4284 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::unsafe_arena_release_present_to_present_delta() {
4285   // @@protoc_insertion_point(field_release:android.surfaceflinger.SurfaceflingerStatsLayerInfo.present_to_present_delta)
4286   _impl_._has_bits_[0] &= ~0x00000200u;
4287   ::android::surfaceflinger::FrameTimingHistogram* temp = _impl_.present_to_present_delta_;
4288   _impl_.present_to_present_delta_ = nullptr;
4289   return temp;
4290 }
_internal_mutable_present_to_present_delta()4291 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::_internal_mutable_present_to_present_delta() {
4292   _impl_._has_bits_[0] |= 0x00000200u;
4293   if (_impl_.present_to_present_delta_ == nullptr) {
4294     auto* p = CreateMaybeMessage<::android::surfaceflinger::FrameTimingHistogram>(GetArenaForAllocation());
4295     _impl_.present_to_present_delta_ = p;
4296   }
4297   return _impl_.present_to_present_delta_;
4298 }
mutable_present_to_present_delta()4299 inline ::android::surfaceflinger::FrameTimingHistogram* SurfaceflingerStatsLayerInfo::mutable_present_to_present_delta() {
4300   ::android::surfaceflinger::FrameTimingHistogram* _msg = _internal_mutable_present_to_present_delta();
4301   // @@protoc_insertion_point(field_mutable:android.surfaceflinger.SurfaceflingerStatsLayerInfo.present_to_present_delta)
4302   return _msg;
4303 }
set_allocated_present_to_present_delta(::android::surfaceflinger::FrameTimingHistogram * present_to_present_delta)4304 inline void SurfaceflingerStatsLayerInfo::set_allocated_present_to_present_delta(::android::surfaceflinger::FrameTimingHistogram* present_to_present_delta) {
4305   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
4306   if (message_arena == nullptr) {
4307     delete _impl_.present_to_present_delta_;
4308   }
4309   if (present_to_present_delta) {
4310     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
4311         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(present_to_present_delta);
4312     if (message_arena != submessage_arena) {
4313       present_to_present_delta = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
4314           message_arena, present_to_present_delta, submessage_arena);
4315     }
4316     _impl_._has_bits_[0] |= 0x00000200u;
4317   } else {
4318     _impl_._has_bits_[0] &= ~0x00000200u;
4319   }
4320   _impl_.present_to_present_delta_ = present_to_present_delta;
4321   // @@protoc_insertion_point(field_set_allocated:android.surfaceflinger.SurfaceflingerStatsLayerInfo.present_to_present_delta)
4322 }
4323 
4324 // -------------------------------------------------------------------
4325 
4326 // FrameTimingHistogram
4327 
4328 // repeated int32 time_millis_buckets = 1;
_internal_time_millis_buckets_size()4329 inline int FrameTimingHistogram::_internal_time_millis_buckets_size() const {
4330   return _impl_.time_millis_buckets_.size();
4331 }
time_millis_buckets_size()4332 inline int FrameTimingHistogram::time_millis_buckets_size() const {
4333   return _internal_time_millis_buckets_size();
4334 }
clear_time_millis_buckets()4335 inline void FrameTimingHistogram::clear_time_millis_buckets() {
4336   _impl_.time_millis_buckets_.Clear();
4337 }
_internal_time_millis_buckets(int index)4338 inline ::int32_t FrameTimingHistogram::_internal_time_millis_buckets(int index) const {
4339   return _impl_.time_millis_buckets_.Get(index);
4340 }
time_millis_buckets(int index)4341 inline ::int32_t FrameTimingHistogram::time_millis_buckets(int index) const {
4342   // @@protoc_insertion_point(field_get:android.surfaceflinger.FrameTimingHistogram.time_millis_buckets)
4343   return _internal_time_millis_buckets(index);
4344 }
set_time_millis_buckets(int index,::int32_t value)4345 inline void FrameTimingHistogram::set_time_millis_buckets(int index, ::int32_t value) {
4346   _impl_.time_millis_buckets_.Set(index, value);
4347   // @@protoc_insertion_point(field_set:android.surfaceflinger.FrameTimingHistogram.time_millis_buckets)
4348 }
_internal_add_time_millis_buckets(::int32_t value)4349 inline void FrameTimingHistogram::_internal_add_time_millis_buckets(::int32_t value) {
4350   _impl_.time_millis_buckets_.Add(value);
4351 }
add_time_millis_buckets(::int32_t value)4352 inline void FrameTimingHistogram::add_time_millis_buckets(::int32_t value) {
4353   _internal_add_time_millis_buckets(value);
4354   // @@protoc_insertion_point(field_add:android.surfaceflinger.FrameTimingHistogram.time_millis_buckets)
4355 }
4356 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
_internal_time_millis_buckets()4357 FrameTimingHistogram::_internal_time_millis_buckets() const {
4358   return _impl_.time_millis_buckets_;
4359 }
4360 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
time_millis_buckets()4361 FrameTimingHistogram::time_millis_buckets() const {
4362   // @@protoc_insertion_point(field_list:android.surfaceflinger.FrameTimingHistogram.time_millis_buckets)
4363   return _internal_time_millis_buckets();
4364 }
4365 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
_internal_mutable_time_millis_buckets()4366 FrameTimingHistogram::_internal_mutable_time_millis_buckets() {
4367   return &_impl_.time_millis_buckets_;
4368 }
4369 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
mutable_time_millis_buckets()4370 FrameTimingHistogram::mutable_time_millis_buckets() {
4371   // @@protoc_insertion_point(field_mutable_list:android.surfaceflinger.FrameTimingHistogram.time_millis_buckets)
4372   return _internal_mutable_time_millis_buckets();
4373 }
4374 
4375 // repeated int64 frame_counts = 2;
_internal_frame_counts_size()4376 inline int FrameTimingHistogram::_internal_frame_counts_size() const {
4377   return _impl_.frame_counts_.size();
4378 }
frame_counts_size()4379 inline int FrameTimingHistogram::frame_counts_size() const {
4380   return _internal_frame_counts_size();
4381 }
clear_frame_counts()4382 inline void FrameTimingHistogram::clear_frame_counts() {
4383   _impl_.frame_counts_.Clear();
4384 }
_internal_frame_counts(int index)4385 inline ::int64_t FrameTimingHistogram::_internal_frame_counts(int index) const {
4386   return _impl_.frame_counts_.Get(index);
4387 }
frame_counts(int index)4388 inline ::int64_t FrameTimingHistogram::frame_counts(int index) const {
4389   // @@protoc_insertion_point(field_get:android.surfaceflinger.FrameTimingHistogram.frame_counts)
4390   return _internal_frame_counts(index);
4391 }
set_frame_counts(int index,::int64_t value)4392 inline void FrameTimingHistogram::set_frame_counts(int index, ::int64_t value) {
4393   _impl_.frame_counts_.Set(index, value);
4394   // @@protoc_insertion_point(field_set:android.surfaceflinger.FrameTimingHistogram.frame_counts)
4395 }
_internal_add_frame_counts(::int64_t value)4396 inline void FrameTimingHistogram::_internal_add_frame_counts(::int64_t value) {
4397   _impl_.frame_counts_.Add(value);
4398 }
add_frame_counts(::int64_t value)4399 inline void FrameTimingHistogram::add_frame_counts(::int64_t value) {
4400   _internal_add_frame_counts(value);
4401   // @@protoc_insertion_point(field_add:android.surfaceflinger.FrameTimingHistogram.frame_counts)
4402 }
4403 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
_internal_frame_counts()4404 FrameTimingHistogram::_internal_frame_counts() const {
4405   return _impl_.frame_counts_;
4406 }
4407 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >&
frame_counts()4408 FrameTimingHistogram::frame_counts() const {
4409   // @@protoc_insertion_point(field_list:android.surfaceflinger.FrameTimingHistogram.frame_counts)
4410   return _internal_frame_counts();
4411 }
4412 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
_internal_mutable_frame_counts()4413 FrameTimingHistogram::_internal_mutable_frame_counts() {
4414   return &_impl_.frame_counts_;
4415 }
4416 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int64_t >*
mutable_frame_counts()4417 FrameTimingHistogram::mutable_frame_counts() {
4418   // @@protoc_insertion_point(field_mutable_list:android.surfaceflinger.FrameTimingHistogram.frame_counts)
4419   return _internal_mutable_frame_counts();
4420 }
4421 
4422 #ifdef __GNUC__
4423   #pragma GCC diagnostic pop
4424 #endif  // __GNUC__
4425 // -------------------------------------------------------------------
4426 
4427 // -------------------------------------------------------------------
4428 
4429 // -------------------------------------------------------------------
4430 
4431 // -------------------------------------------------------------------
4432 
4433 // -------------------------------------------------------------------
4434 
4435 
4436 // @@protoc_insertion_point(namespace_scope)
4437 
4438 }  // namespace surfaceflinger
4439 }  // namespace android
4440 
4441 PROTOBUF_NAMESPACE_OPEN
4442 
4443 template <> struct is_proto_enum< ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_FrameRateCompatibility> : ::std::true_type {};
4444 template <> struct is_proto_enum< ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_SetFrameRateVote_Seamlessness> : ::std::true_type {};
4445 template <> struct is_proto_enum< ::android::surfaceflinger::SurfaceflingerStatsLayerInfo_GameMode> : ::std::true_type {};
4446 
4447 PROTOBUF_NAMESPACE_CLOSE
4448 
4449 // @@protoc_insertion_point(global_scope)
4450 
4451 #include <google/protobuf/port_undef.inc>
4452 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_frameworks_2fnative_2fservices_2fsurfaceflinger_2fTimeStats_2ftimestatsatomsproto_2ftimestats_5fatoms_2eproto
4453