Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 25 of 50) sorted by relevance

12

/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DLineBreakBufferedWriter.java48 private final int bufferSize; field in LineBreakBufferedWriter
68 public LineBreakBufferedWriter(Writer out, int bufferSize) { in LineBreakBufferedWriter() argument
83 this.bufferSize = bufferSize; in LineBreakBufferedWriter()
119 while (bufferIndex + len > bufferSize) { in write()
123 int maxLength = bufferSize - bufferIndex; in write()
126 if (bufferIndex + i < bufferSize) { in write()
149 int rest = bufferSize - bufferIndex; in write()
173 while (bufferIndex + len > bufferSize) { in write()
177 int maxLength = bufferSize - bufferIndex; in write()
180 if (bufferIndex + i < bufferSize) { in write()
[all …]
H A DArtFastDataInput.java41 public ArtFastDataInput(@NonNull InputStream in, int bufferSize) { in ArtFastDataInput() argument
42 super(in, bufferSize); in ArtFastDataInput()
H A DArtFastDataOutput.java41 public ArtFastDataOutput(@NonNull OutputStream out, int bufferSize) { in ArtFastDataOutput() argument
42 super(out, bufferSize); in ArtFastDataOutput()
H A DProcFileReader.java48 public ProcFileReader(InputStream stream, int bufferSize) throws IOException { in ProcFileReader() argument
50 mBuffer = new byte[bufferSize]; in ProcFileReader()
H A DFastXmlSerializer.java85 public FastXmlSerializer(int bufferSize) { in FastXmlSerializer() argument
86 mBufferLen = (bufferSize > 0) ? bufferSize : DEFAULT_BUFFER_LEN; in FastXmlSerializer()
/aosp14/frameworks/base/core/java/android/ddm/
H A DDdmHandleProfiling.java107 int bufferSize = in.getInt(); in handleMPRS() local
113 + "', size=" + bufferSize + ", flags=" + flags); in handleMPRS()
116 Debug.startMethodTracing(fileName, bufferSize, flags); in handleMPRS()
149 int bufferSize = in.getInt(); in handleMPSS() local
152 Log.v("ddm-heap", "Method prof stream start: size=" + bufferSize in handleMPSS()
157 Debug.startMethodTracingDdms(bufferSize, flags, false, 0); in handleMPSS()
202 int bufferSize = in.getInt(); in handleSPSS() local
206 Log.v("ddm-heap", "Sample prof stream start: size=" + bufferSize in handleSPSS()
211 Debug.startMethodTracingDdms(bufferSize, flags, true, interval); in handleSPSS()
/aosp14/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/
H A DGeometryTests.kt52 val bufferSize = Point(300, 200) regex
54 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, bufferSize,
61 it.hasBufferSize(bufferSize)
69 val bufferSize = Point(3000, 2000) regex
71 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, bufferSize,
78 it.hasBufferSize(bufferSize)
86 val bufferSize = Point(300, 200) regex
90 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, bufferSize,
110 LayersTraceSubject(trace).layer("SurfaceView", 3).hasBufferSize(bufferSize)
H A DBufferRejectionTests.kt66 val bufferSize = Point(300, 200) regex
70 activity.mSurfaceProxy.ANativeWindowSetBuffersGeometry(activity.surface!!, bufferSize,
90 LayersTraceSubject(trace).layer("SurfaceView", 3).hasBufferSize(bufferSize)
127 val bufferSize = Point(300, 200) regex
134 bufferSize, R8G8B8A8_UNORM)
157 .hasBufferSize(bufferSize)
/aosp14/frameworks/base/core/java/android/content/
H A DContentCaptureOptions.java387 public final int bufferSize; field in ContentCaptureOptions.ContentProtectionOptions
389 public ContentProtectionOptions(boolean enableReceiver, int bufferSize) { in ContentProtectionOptions() argument
391 this.bufferSize = bufferSize; in ContentProtectionOptions()
401 .append(bufferSize); in toString()
409 pw.print(bufferSize); in dumpShort()
414 parcel.writeInt(bufferSize); in writeToParcel()
419 int bufferSize = parcel.readInt(); in createFromParcel() local
420 return new ContentProtectionOptions(enableReceiver, bufferSize); in createFromParcel()
/aosp14/frameworks/base/core/java/android/service/displayhash/
H A DDisplayHashParams.java121 @Nullable Size bufferSize, in DisplayHashParams()
123 this.mBufferSize = bufferSize; in DisplayHashParams()
186 Size bufferSize = (flg & 0x1) == 0 ? null : (Size) in.readSize(); in DisplayHashParams() local
188 this.mBufferSize = bufferSize; in DisplayHashParams()
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/
H A DBitmapTest.java284 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithDirectByteBuffer() local
285 ByteBuffer directBuffer = ByteBuffer.allocateDirect(bufferSize); in testCopyWithDirectByteBuffer()
322 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithDirectShortBuffer() local
324 ByteBuffer.allocateDirect(bufferSize * bytesPerElement).asShortBuffer(); in testCopyWithDirectShortBuffer()
361 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithDirectIntBuffer() local
363 ByteBuffer.allocateDirect(bufferSize * bytesPerElement).asIntBuffer(); in testCopyWithDirectIntBuffer()
400 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithHeapByteBuffer() local
401 ByteBuffer heapBuffer = ByteBuffer.allocate(bufferSize); in testCopyWithHeapByteBuffer()
437 final int bufferSize = pad + width * height * bytesPerPixel / bytesPerElement + pad; in testCopyWithHeapShortBuffer() local
438 ShortBuffer heapBuffer = ShortBuffer.allocate(bufferSize); in testCopyWithHeapShortBuffer()
[all …]
/aosp14/frameworks/base/libs/hwui/jni/
H A DCreateJavaOutputStreamAdaptor.cpp186 size_t bufferSize = 4096; in CopyJavaInputStream() local
189 char* data = (char*)sk_malloc_throw(bufferSize); in CopyJavaInputStream()
192 bufferSize - streamLen)) != 0) { in CopyJavaInputStream()
194 if (streamLen == bufferSize) { in CopyJavaInputStream()
195 bufferSize *= 2; in CopyJavaInputStream()
196 data = (char*)sk_realloc_throw(data, bufferSize); in CopyJavaInputStream()
H A Dandroid_graphics_HardwareRendererObserver.cpp52 jsize bufferSize = env->GetArrayLength(reinterpret_cast<jarray>(metrics)); in getNextBuffer() local
53 LOG_ALWAYS_FATAL_IF(bufferSize != HardwareRendererObserver::kBufferSize, in getNextBuffer()
/aosp14/frameworks/base/media/jni/tuner/
H A DDemuxClient.cpp61 sp<FilterClient> DemuxClient::openFilter(const DemuxFilterType& type, int32_t bufferSize, in openFilter() argument
71 Status s = mTunerDemux->openFilter(type, bufferSize, callback, &tunerFilter); in openFilter()
124 sp<DvrClient> DemuxClient::openDvr(DvrType dvbType, int32_t bufferSize, sp<DvrClientCallback> cb) { in openDvr() argument
133 Status s = mTunerDemux->openDvr(dvbType, bufferSize, callback, &tunerDvr); in openDvr()
H A DDemuxClient.h61 sp<FilterClient> openFilter(const DemuxFilterType& type, int32_t bufferSize,
82 sp<DvrClient> openDvr(DvrType dvbType, int32_t bufferSize, sp<DvrClientCallback> cb);
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
H A DUtils.java33 public static void transferStreamedData(InputStream in, OutputStream out, int bufferSize) in transferStreamedData() argument
35 byte[] buffer = new byte[bufferSize]; in transferStreamedData()
/aosp14/frameworks/base/tests/UsbTests/src/com/android/server/usb/
H A DUsbMidiPacketConverterTest.java370 final int bufferSize = 30; in testEncodeDecode() local
373 byte[][] rawMidi = new byte[numCables][bufferSize]; in testEncodeDecode()
377 rawMidi[cableNumber] = generateRandomByteStream(rnd, bufferSize); in testEncodeDecode()
381 rawMidi[cableNumber][bufferSize - 1] = (byte) 0xF7; in testEncodeDecode()
386 for (int startByte = 0; startByte < bufferSize; in testEncodeDecode()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DFastDataTest.java70 private FastDataInput createFastDataInput(@NonNull InputStream in, int bufferSize) { in createFastDataInput() argument
72 return new ArtFastDataInput(in, bufferSize); in createFastDataInput()
74 return new FastDataInput(in, bufferSize); in createFastDataInput()
79 private FastDataOutput createFastDataOutput(@NonNull OutputStream out, int bufferSize) { in createFastDataOutput() argument
81 return new ArtFastDataOutput(out, bufferSize); in createFastDataOutput()
83 return new FastDataOutput(out, bufferSize); in createFastDataOutput()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/
H A DContentCaptureOptionsTest.java136 .append(CONTENT_CAPTURE_OPTIONS.contentProtectionOptions.bufferSize) in testToString()
167 assertThat(actual.contentProtectionOptions.bufferSize) in testParcelSerializationDeserialization()
168 .isEqualTo(CONTENT_CAPTURE_OPTIONS.contentProtectionOptions.bufferSize); in testParcelSerializationDeserialization()
/aosp14/frameworks/base/core/java/android/util/
H A DLog.java465 int bufferSize = PreloadHolder.LOGGER_ENTRY_MAX_PAYLOAD // Base. in printlns() local
470 bufferSize = Math.max(bufferSize, 100); in printlns()
472 LineBreakBufferedWriter lbbw = new LineBreakBufferedWriter(logWriter, bufferSize); in printlns()
H A DPackageUtils.java181 int bufferSize = ActivityManager.isLowRamDeviceStatic() in createLargeFileBuffer() local
183 return new byte[bufferSize]; in createLargeFileBuffer()
/aosp14/frameworks/base/core/java/android/os/
H A DDebug.java1286 public static void startMethodTracing(String tracePath, int bufferSize) { in startMethodTracing() argument
1287 startMethodTracing(tracePath, bufferSize, 0); in startMethodTracing()
1320 public static void startMethodTracing(String tracePath, int bufferSize, int flags) { in startMethodTracing() argument
1321 VMDebug.startMethodTracing(fixTracePath(tracePath), bufferSize, flags, false, 0); in startMethodTracing() local
1343 public static void startMethodTracingSampling(String tracePath, int bufferSize, in startMethodTracingSampling() argument
1345 VMDebug.startMethodTracing(fixTracePath(tracePath), bufferSize, 0, true, intervalUs); in startMethodTracingSampling() local
1383 int bufferSize, int flags, boolean streamOutput) { in startMethodTracing() argument
1384 VMDebug.startMethodTracing(traceName, fd, bufferSize, flags, false, 0, streamOutput); in startMethodTracing()
1394 public static void startMethodTracingDdms(int bufferSize, int flags, in startMethodTracingDdms() argument
1396 VMDebug.startMethodTracingDdms(bufferSize, flags, samplingEnabled, intervalUs); in startMethodTracingDdms()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenrecord/
H A DScreenInternalAudioRecorder.java245 int bufferSize = buff.capacity(); in encode() local
246 int bytesToRead = readBytes > bufferSize ? bufferSize : readBytes; in encode()
/aosp14/frameworks/base/rs/java/android/renderscript/
H A DProgramVertexFixedFunction.java228 int bufferSize = constInputType.getElement().getBytesSize()* in Constants() local
230 mIOBuffer = new FieldPacker(bufferSize); in Constants()
/aosp14/frameworks/base/core/java/android/hardware/
H A DHardwareBuffer.java261 long bufferSize = nEstimateSize(nativeObject); in HardwareBuffer() local
264 loader, nGetNativeFinalizer(), bufferSize); in HardwareBuffer()

12