Searched refs:StatsEvent (Results 1 – 3 of 3) sorted by relevance
47 final StatsEvent statsEvent = StatsEvent.newBuilder().usePooledBuffer().build(); in testNoFields()57 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_OBJECT); in testNoFields()63 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_LONG); in testNoFields()69 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_INT); in testNoFields()75 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_ERRORS); in testNoFields()80 .that(errorMask).isEqualTo(StatsEvent.ERROR_NO_ATOM_ID); in testNoFields()96 final StatsEvent statsEvent = StatsEvent.newBuilder() in testIntBooleanIntInt()112 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_OBJECT); in testIntBooleanIntInt()118 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_LONG); in testIntBooleanIntInt()124 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_INT); in testIntBooleanIntInt()[all …]
54 public final class StatsEvent { class226 private StatsEvent(final int atomId, @Nullable final Buffer buffer, in StatsEvent() method in StatsEvent238 public static StatsEvent.Builder newBuilder() { in newBuilder()239 return new StatsEvent.Builder(Buffer.obtain()); in newBuilder()614 public StatsEvent build() { in build()642 return new StatsEvent(mAtomId, mBuffer, mBuffer.getBytes(), size); in build()651 return new StatsEvent(mAtomId, null, payload, size); in build()
257 public static void write(@NonNull final StatsEvent statsEvent) { in write()