Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/utils/
DTraceBufferTest.java92 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()
/frameworks/base/core/java/com/android/internal/util/
DTraceBuffer.java104 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()
/frameworks/av/media/libaaudio/tests/
Dtest_open_params.cpp49 int32_t bufferCapacity; in testOpenOptions() local
108 bufferCapacity = AAudioStream_getBufferCapacityInFrames(aaudioStream); in testOpenOptions()
110 bufferCapacity, bufferCapacity % framesPerBurst); in testOpenOptions()
Dtest_various.cpp650 int32_t bufferCapacity; in TEST() local
670 bufferCapacity = AAudioStream_getBufferCapacityInFrames(aaudioStream); in TEST()
672 bufferCapacity, bufferCapacity % framesPerBurst); in TEST()
676 EXPECT_LE(actualSize, bufferCapacity); in TEST()
680 EXPECT_LE(actualSize, bufferCapacity); in TEST()
682 actualSize = AAudioStream_setBufferSizeInFrames(aaudioStream, bufferCapacity - 1); in TEST()
684 EXPECT_LE(actualSize, bufferCapacity); in TEST()
686 actualSize = AAudioStream_setBufferSizeInFrames(aaudioStream, bufferCapacity); in TEST()
688 EXPECT_LE(actualSize, bufferCapacity); in TEST()
690 actualSize = AAudioStream_setBufferSizeInFrames(aaudioStream, bufferCapacity + 1); in TEST()
[all …]
Dtest_recovery.cpp34 int32_t bufferCapacity; in main() local
81 bufferCapacity = AAudioStream_getBufferCapacityInFrames(aaudioStream); in main()
83 bufferCapacity, framesPerBurst); in main()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowTracing.java91 int bufferCapacity) { in WindowTracing() argument
92 this(file, service, choreographer, service.mGlobalLock, bufferCapacity); in WindowTracing()
96 WindowManagerGlobalLock globalLock, int bufferCapacity) { in WindowTracing() argument
101 mBuffer = new TraceBuffer(bufferCapacity); in WindowTracing()
/frameworks/av/media/libaaudio/src/binding/aidl/aaudio/
DStreamParameters.aidl33 int bufferCapacity; // = AAUDIO_UNSPECIFIED;
/frameworks/av/media/libaaudio/src/binding/
DAAudioStreamConfiguration.cpp61 setBufferCapacity(parcelable.bufferCapacity); in AAudioStreamConfiguration()
115 result.bufferCapacity = getBufferCapacity(); in parcelable()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityMetrics.java156 public int bufferCapacity() { in bufferCapacity() method in IpConnectivityMetrics
163 mCapacity = bufferCapacity(); in initBuffer()
/frameworks/av/media/libaaudio/src/core/
DAudioStream.h586 void setBufferCapacity(int32_t bufferCapacity) { in setBufferCapacity() argument
587 mBufferCapacity = bufferCapacity; in setBufferCapacity()
/frameworks/base/core/java/com/android/internal/protolog/
DLegacyProtoLogImpl.java82 public LegacyProtoLogImpl(File file, String viewerConfigFilename, int bufferCapacity, in LegacyProtoLogImpl() argument
86 mBuffer = new TraceBuffer(bufferCapacity); in LegacyProtoLogImpl()
/frameworks/base/services/
Dart-wear-profile9182 PLcom/android/server/connectivity/IpConnectivityMetrics;->bufferCapacity()I