Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/tests/coretests/src/android/view/contentcapture/
H A DContentCaptureManagerTest.java43 private static final int BUFFER_SIZE = 100; field in ContentCaptureManagerTest
72 /* enableReceiver= */ false, BUFFER_SIZE)); in testConstructor_contentProtection_disabled_bufferNotCreated()
98 /* enableReceiver= */ true, BUFFER_SIZE)); in testConstructor_contentProtection_enabled_bufferCreated()
105 ContentCaptureEvent[] expected = new ContentCaptureEvent[BUFFER_SIZE]; in testConstructor_contentProtection_enabled_bufferCreated()
107 for (int i = 0; i < BUFFER_SIZE + offset; i++) { in testConstructor_contentProtection_enabled_bufferCreated()
110 expected[(i + BUFFER_SIZE - offset) % BUFFER_SIZE] = event; in testConstructor_contentProtection_enabled_bufferCreated()
H A DMainContentCaptureSessionTest.java62 private static final int BUFFER_SIZE = 100; field in MainContentCaptureSessionTest
115 /* enableReceiver= */ true, -BUFFER_SIZE)); in onSessionStarted_contentProtectionNoBuffer_processorNotCreated()
301 BUFFER_SIZE, in createOptions()
316 enableContentProtectionReceiver, BUFFER_SIZE)); in createOptions()
/aosp14/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/
H A DMemoryAccessTask.java26 private final static int BUFFER_SIZE = 32 * 1024 * 1024; field in MemoryAccessTask
34 byte[] memory = new byte[BUFFER_SIZE]; in run()
42 for (int index = 0; index < BUFFER_SIZE; index += BUFFER_STEP) { in run()
/aosp14/frameworks/base/cmds/incidentd/src/
H A DFdBuffer.cpp34 const ssize_t BUFFER_SIZE = 16 * 1024; // 16 KB variable
161 uint8_t cirBuf[BUFFER_SIZE]; in readProcessedDataInStream()
208 if (cirSize != BUFFER_SIZE && pfds[0].fd != -1) { in readProcessedDataInStream()
211 amt = TEMP_FAILURE_RETRY(::read(fd, cirBuf + rpos, BUFFER_SIZE - rpos)); in readProcessedDataInStream()
235 amt = TEMP_FAILURE_RETRY(::write(toFd.get(), cirBuf + wpos, BUFFER_SIZE - wpos)); in readProcessedDataInStream()
256 if (rpos >= BUFFER_SIZE) { in readProcessedDataInStream()
259 if (wpos >= BUFFER_SIZE) { in readProcessedDataInStream()
/aosp14/frameworks/base/services/core/java/com/android/server/integrity/model/
H A DBitOutputStream.java28 private static final int BUFFER_SIZE = 4 * 1024; field in BitOutputStream
36 mBuffer = new byte[BUFFER_SIZE]; in BitOutputStream()
68 if (byteToWrite == BUFFER_SIZE) { in setNext()
/aosp14/frameworks/base/libs/usb/tests/accessorytest/
H A Daudio.c36 #define BUFFER_SIZE 16384 macro
150 if (pcm_read(pcm, buffers[index], BUFFER_SIZE)) { in capture_thread()
174 err = pcm_write(pcm, buffers[index], BUFFER_SIZE); in play_thread()
198 buffers[i] = malloc(BUFFER_SIZE); in init_audio()
/aosp14/frameworks/base/core/java/android/util/
H A DBase64InputStream.java32 private static final int BUFFER_SIZE = 2048; field in Base64InputStream
64 inputBuffer = new byte[BUFFER_SIZE]; in Base64InputStream()
70 coder.output = new byte[coder.maxOutputSize(BUFFER_SIZE)]; in Base64InputStream()
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
H A DUtils.java27 public static final int BUFFER_SIZE = 8192; field in Utils
30 transferStreamedData(in, out, BUFFER_SIZE); in transferStreamedData()
/aosp14/frameworks/base/libs/protoutil/src/
H A DEncodedBuffer.cpp28 const size_t BUFFER_SIZE = 8 * 1024; // 8 KB variable
30 EncodedBuffer::Pointer::Pointer() : Pointer(BUFFER_SIZE) in Pointer()
38 mChunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in Pointer()
86 EncodedBuffer::EncodedBuffer() : EncodedBuffer(BUFFER_SIZE) in EncodedBuffer()
94 chunkSize = chunkSize == 0 ? BUFFER_SIZE : chunkSize; in EncodedBuffer()
/aosp14/frameworks/base/apct-tests/perftests/core/src/com/android/internal/util/
H A DFastDataPerfTest.java49 private static final int BUFFER_SIZE = 4096; field in FastDataPerfTest
57 final BufferedOutputStream bos = new BufferedOutputStream(os, BUFFER_SIZE); in timeWrite_Upstream()
106 final BufferedInputStream bis = new BufferedInputStream(is, BUFFER_SIZE); in timeRead_Upstream()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
H A DScreenRecordingMuxer.java35 private static final int BUFFER_SIZE = 1024 * 4096; field in ScreenRecordingMuxer
86 ByteBuffer buffer = ByteBuffer.allocate(BUFFER_SIZE); in mux()
/aosp14/frameworks/base/core/java/android/util/apk/
H A DVerityBuilder.java178 private static final int BUFFER_SIZE = CHUNK_SIZE_BYTES; field in VerityBuilder.BufferedDigester
216 int allowance = (int) Math.min(remaining, BUFFER_SIZE - mBytesDigestedSinceReset); in consume()
224 if (mBytesDigestedSinceReset == BUFFER_SIZE) { in consume()
243 int lastBlockSize = (int) (mOutput.position() % BUFFER_SIZE); in fillUpLastOutputChunk()
247 mOutput.put(ByteBuffer.allocate(BUFFER_SIZE - lastBlockSize)); in fillUpLastOutputChunk()
/aosp14/frameworks/base/cmds/incidentd/tests/
H A DFdBuffer_test.cpp33 const int BUFFER_SIZE = 16 * 1024; variable
61 char buf[BUFFER_SIZE]; in DoDataStream()
63 while ((nRead = read(rFd.get(), buf, BUFFER_SIZE)) > 0) { in DoDataStream()
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/
H A DUsbAlsaMidiDevice.java65 private static final int BUFFER_SIZE = 512; field in UsbAlsaMidiDevice
227 byte[] buffer = new byte[BUFFER_SIZE]; in openLocked()
/aosp14/frameworks/base/services/core/jni/
H A Dcom_android_server_pm_PackageManagerShellCommandDataLoader.cpp62 static constexpr int BUFFER_SIZE = 256 * 1024; variable
63 static constexpr int BLOCKS_COUNT = BUFFER_SIZE / INCFS_DATA_FILE_BLOCK_SIZE;
417 buffer.reserve(BUFFER_SIZE); in onPrepareImage()
474 constexpr auto capacity = BUFFER_SIZE; in copyToIncFs()
/aosp14/frameworks/base/core/java/android/net/netstats/
H A DNetworkStatsDataMigrationUtils.java133 private static final int BUFFER_SIZE = 8192; field in NetworkStatsDataMigrationUtils
255 final ArtFastDataInput dataIn = new ArtFastDataInput(is, BUFFER_SIZE); in readPlatformCollection()
/aosp14/frameworks/base/core/jni/
H A Dandroid_util_Process.cpp701 const size_t BUFFER_SIZE = 4096; in android_os_Process_readProcLines() local
702 char* buffer = (char*)malloc(BUFFER_SIZE); in android_os_Process_readProcLines()
703 int len = read(fd, buffer, BUFFER_SIZE-1); in android_os_Process_readProcLines()
/aosp14/frameworks/base/tests/UiBench/gradle/wrapper/
H A Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/aosp14/frameworks/base/startop/apps/ColorChanging/gradle/wrapper/
H A Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/aosp14/frameworks/base/packages/SettingsLib/Spa/gradle/wrapper/
H A Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/aosp14/frameworks/base/tests/TouchLatency/gradle/wrapper/
H A Dgradle-wrapper.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/gradle/ org/ ...
/aosp14/frameworks/base/services/core/java/com/android/server/adb/
H A DAdbDebuggingManager.java140 private static final int BUFFER_SIZE = 65536; field in AdbDebuggingManager
452 byte[] buffer = new byte[BUFFER_SIZE]; in listenToSocket()
/aosp14/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt57557 Landroid/util/Base64InputStream;->BUFFER_SIZE:I