Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/util/
DEventLog.java78 private static final int TAG_LENGTH = 4; field in EventLog.Event
141 if ((offset + TAG_LENGTH) >= mBuffer.limit()) { in getData()
145 mBuffer.position(offset + TAG_LENGTH); // Just after the tag. in getData()
165 if (payload.length > 65535 - TAG_LENGTH) { in withNewData()
169 byte[] newBytes = new byte[headerLength + TAG_LENGTH + payload.length]; in withNewData()
171 System.arraycopy(mBuffer.array(), 0, newBytes, 0, headerLength + TAG_LENGTH); in withNewData() local
173 System.arraycopy(payload, 0, newBytes, headerLength + TAG_LENGTH, payload.length); in withNewData()
176 result.mBuffer.putShort(LENGTH_OFFSET, (short) (payload.length + TAG_LENGTH)); in withNewData()