Home
last modified time | relevance | path

Searched refs:statsEvent (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/util/
DStatsEventTest.java47 final StatsEvent statsEvent = StatsEvent.newBuilder().usePooledBuffer().build(); in testNoFields() local
51 assertThat(statsEvent.getAtomId()).isEqualTo(expectedAtomId); in testNoFields()
54 ByteBuffer.wrap(statsEvent.getBytes()).order(ByteOrder.LITTLE_ENDIAN); in testNoFields()
82 assertThat(statsEvent.getNumBytes()).isEqualTo(buffer.position()); in testNoFields()
84 statsEvent.release(); in testNoFields()
96 final StatsEvent statsEvent = StatsEvent.newBuilder() in testIntBooleanIntInt() local
106 assertThat(statsEvent.getAtomId()).isEqualTo(expectedAtomId); in testIntBooleanIntInt()
109 ByteBuffer.wrap(statsEvent.getBytes()).order(ByteOrder.LITTLE_ENDIAN); in testIntBooleanIntInt()
153 assertThat(statsEvent.getNumBytes()).isEqualTo(buffer.position()); in testIntBooleanIntInt()
155 statsEvent.release(); in testIntBooleanIntInt()
[all …]
/frameworks/base/core/java/android/util/
DStatsLog.java257 public static void write(@NonNull final StatsEvent statsEvent) { in write() argument
258 writeImpl(statsEvent.getBytes(), statsEvent.getNumBytes(), statsEvent.getAtomId()); in write()
259 statsEvent.release(); in write()