Searched refs:bufferCapacity (Results 1 – 6 of 6) sorted by relevance
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/utils/ |
H A D | TraceBufferTest.java | 92 final int bufferCapacity = objectSize * 2 + 1; in test_addItemMustOverwriteOne() local 93 mBuffer.setCapacity(bufferCapacity); in test_addItemMustOverwriteOne() 117 assertEquals(String.format("Buffer is full, used space should be %d", bufferCapacity), in test_addItemMustOverwriteOne() 118 mBuffer.getBufferSize(), bufferCapacity - 1); in test_addItemMustOverwriteOne() 128 final int bufferCapacity = objectSize * 2; in test_addItemMustOverwriteMultiple() local 129 mBuffer.setCapacity(bufferCapacity); in test_addItemMustOverwriteMultiple() 158 assertEquals(String.format(" Buffer is full, used space should be %d", bufferCapacity), in test_addItemMustOverwriteMultiple() 159 mBuffer.getBufferSize(), bufferCapacity); in test_addItemMustOverwriteMultiple()
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | TraceBuffer.java | 104 public TraceBuffer(int bufferCapacity) { in TraceBuffer() argument 105 this(bufferCapacity, new ProtoOutputStreamProvider(), null); in TraceBuffer() 108 public TraceBuffer(int bufferCapacity, Consumer<T> protoDequeuedCallback) { in TraceBuffer() argument 109 this(bufferCapacity, new ProtoOutputStreamProvider(), protoDequeuedCallback); in TraceBuffer() 112 public TraceBuffer(int bufferCapacity, ProtoProvider protoProvider, in TraceBuffer() argument 114 mBufferCapacity = bufferCapacity; in TraceBuffer()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | WindowTracing.java | 87 int bufferCapacity) { in WindowTracing() argument 88 this(file, service, choreographer, service.mGlobalLock, bufferCapacity); in WindowTracing() 92 WindowManagerGlobalLock globalLock, int bufferCapacity) { in WindowTracing() argument 97 mBuffer = new TraceBuffer(bufferCapacity); in WindowTracing()
|
/aosp14/frameworks/base/core/java/com/android/internal/protolog/ |
H A D | ProtoLogImpl.java | 111 public ProtoLogImpl(File logFile, int bufferCapacity, in ProtoLogImpl() argument 113 super(logFile, VIEWER_CONFIG_FILENAME, bufferCapacity, viewConfigReader, perChunkSize); in ProtoLogImpl()
|
H A D | BaseProtoLogImpl.java | 222 public BaseProtoLogImpl(File file, String viewerConfigFilename, int bufferCapacity, in BaseProtoLogImpl() argument 224 this(file, viewerConfigFilename, bufferCapacity, viewerConfig, DEFAULT_PER_CHUNK_SIZE); in BaseProtoLogImpl() 227 public BaseProtoLogImpl(File file, String viewerConfigFilename, int bufferCapacity, in BaseProtoLogImpl() argument 230 mBuffer = new TraceBuffer(bufferCapacity); in BaseProtoLogImpl()
|
/aosp14/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | IpConnectivityMetrics.java | 156 public int bufferCapacity() { in bufferCapacity() method in IpConnectivityMetrics 163 mCapacity = bufferCapacity(); in initBuffer()
|