Home
last modified time | relevance | path

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

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTraceBufferTest.java91 final int bufferCapacity = objectSize * 2 + 1; in test_addItemMustOverwriteOne() local
92 mBuffer.setCapacity(bufferCapacity); in test_addItemMustOverwriteOne()
116 assertEquals(String.format("Buffer is full, used space should be %d", bufferCapacity), in test_addItemMustOverwriteOne()
117 mBuffer.getBufferSize(), bufferCapacity - 1); in test_addItemMustOverwriteOne()
127 final int bufferCapacity = objectSize * 2; in test_addItemMustOverwriteMultiple() local
128 mBuffer.setCapacity(bufferCapacity); in test_addItemMustOverwriteMultiple()
157 assertEquals(String.format(" Buffer is full, used space should be %d", bufferCapacity), in test_addItemMustOverwriteMultiple()
158 mBuffer.getBufferSize(), bufferCapacity); in test_addItemMustOverwriteMultiple()
/frameworks/av/media/libaaudio/tests/
Dtest_various.cpp419 int32_t bufferCapacity; in TEST() local
439 bufferCapacity = AAudioStream_getBufferCapacityInFrames(aaudioStream); in TEST()
441 bufferCapacity, bufferCapacity % framesPerBurst); in TEST()
445 EXPECT_LE(actualSize, bufferCapacity); in TEST()
449 EXPECT_LE(actualSize, bufferCapacity); in TEST()
451 actualSize = AAudioStream_setBufferSizeInFrames(aaudioStream, bufferCapacity - 1); in TEST()
453 EXPECT_LE(actualSize, bufferCapacity); in TEST()
455 actualSize = AAudioStream_setBufferSizeInFrames(aaudioStream, bufferCapacity); in TEST()
457 EXPECT_LE(actualSize, bufferCapacity); in TEST()
459 actualSize = AAudioStream_setBufferSizeInFrames(aaudioStream, bufferCapacity + 1); in TEST()
[all …]
Dtest_open_params.cpp49 int32_t bufferCapacity; in testOpenOptions() local
108 bufferCapacity = AAudioStream_getBufferCapacityInFrames(aaudioStream); in testOpenOptions()
110 bufferCapacity, bufferCapacity % framesPerBurst); in testOpenOptions()
Dtest_recovery.cpp33 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.java77 int bufferCapacity) { in WindowTracing() argument
78 this(file, service, choreographer, service.mGlobalLock, bufferCapacity); in WindowTracing()
82 WindowManagerGlobalLock globalLock, int bufferCapacity) { in WindowTracing() argument
87 mBuffer = new WindowTraceBuffer(bufferCapacity); in WindowTracing()
DWindowTraceBuffer.java47 WindowTraceBuffer(int bufferCapacity) { in WindowTraceBuffer() argument
48 mBufferCapacity = bufferCapacity; in WindowTraceBuffer()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityMetrics.java149 public int bufferCapacity() { in bufferCapacity() method in IpConnectivityMetrics
156 mCapacity = bufferCapacity(); in initBuffer()