Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DSpeedMeasurementController.java38 void testStarted(int mode, int bufferSize); in testStarted() argument
39 void testFinished(int mode, int bufferSize); in testFinished() argument
109 private void runTest(BaseWriterThread writer, ReaderThread reader, int mode, int bufferSize) { in runTest() argument
110 mCallback.testStarted(mode, bufferSize); in runTest()
137 mCallback.testFinished(mode, bufferSize); in runTest()
140 "Buffer size: " + bufferSize + " bytes. Speed " + writer.getSpeed()); in runTest()
143 private void runSyncTest(int bufferSize) { in runSyncTest() argument
145 WriterSyncThread writerSync = new WriterSyncThread(mDevice, mUsbConnection, bufferSize); in runSyncTest()
146 runTest(writerSync, readerSync, TEST_MODE_SYNC, bufferSize); in runSyncTest()
149 private void runAsyncTest(int bufferSize) { in runAsyncTest() argument
[all …]
DUsbAoapHostActivity.java113 public void testStarted(int mode, int bufferSize) { in testStarted() argument
114 addLog("Starting " + getTestModeString(mode) + " mode test with buffer size " + bufferSize in testStarted()
119 public void testFinished(int mode, int bufferSize) { in testFinished() argument
120 addLog("Completed " + getTestModeString(mode) + " mode test with buffer size " + bufferSize in testFinished()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DVideoUtils.java144 int bufferSize = -1; in genVideoUsingMuxer() local
163 bufferSize = newSize > bufferSize ? newSize : bufferSize; in genVideoUsingMuxer()
168 if (bufferSize < 0) { in genVideoUsingMuxer()
169 bufferSize = DEFAULT_BUFFER_SIZE; in genVideoUsingMuxer()
193 ByteBuffer dstBuf = ByteBuffer.allocate(bufferSize); in genVideoUsingMuxer()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_dict_buffers.cpp52 const int bufferSize = ByteArrayUtils::readUint32AndAdvancePosition( in openVer4DictBuffers() local
54 buffers.push_back(buffer.subView(position, bufferSize)); in openVer4DictBuffers()
55 position += bufferSize; in openVer4DictBuffers()
56 if (bufferSize < 0 || position < 0 || position > static_cast<int>(buffer.size())) { in openVer4DictBuffers()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dmmapped_buffer.h33 const int bufferOffset, const int bufferSize, const bool isUpdatable);
56 AK_FORCE_INLINE MmappedBuffer(uint8_t *const buffer, const int bufferSize, in MmappedBuffer() argument
59 : mByteArrayView(buffer, bufferSize), mMmappedBuffer(mmappedBuffer), in MmappedBuffer()
Dmmapped_buffer.cpp31 const char *const path, const int bufferOffset, const int bufferSize, in openBuffer() argument
41 int alignedSize = bufferSize + offset; in openBuffer()
56 return MmappedBufferPtr(new MmappedBuffer(buffer, bufferSize, mmappedBuffer, alignedSize, in openBuffer()
Ddict_file_writing_utils.cpp92 uint8_t bufferSize[SIZE_OF_BUFFER_SIZE_FIELD]; in writeBufferToFileTail() local
94 ByteArrayUtils::writeUintAndAdvancePosition(bufferSize, buffer->getTailPosition(), in writeBufferToFileTail()
96 if (fwrite(bufferSize, SIZE_OF_BUFFER_SIZE_FIELD, 1 /* count */, file) < 1) { in writeBufferToFileTail()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dfilereadstream.h37 …adStream(std::FILE* fp, char* buffer, size_t bufferSize) : fp_(fp), buffer_(buffer), bufferSize_(b… in FileReadStream() argument
39 RAPIDJSON_ASSERT(bufferSize >= 4); in FileReadStream()
Dfilewritestream.h31 …ream(std::FILE* fp, char* buffer, size_t bufferSize) : fp_(fp), buffer_(buffer), bufferEnd_(buffer… in FileWriteStream() argument
/packages/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java244 int bufferSize = data.getInt(BluetoothHidHost.EXTRA_REPORT_BUFFER_SIZE);
246 bufferSize)) {
255 int bufferSize = data.getInt(BluetoothHidHost.EXTRA_REPORT_BUFFER_SIZE);
256 broadcastReport(device, report, bufferSize);
448 int bufferSize) { in getReport() argument
454 return service.getReport(device, reportType, reportId, bufferSize); in getReport()
669 boolean getReport(BluetoothDevice device, byte reportType, byte reportId, int bufferSize) { in getReport() argument
682 data.putInt(BluetoothHidHost.EXTRA_REPORT_BUFFER_SIZE, bufferSize); in getReport()
956 int bufferSize); in getReportNative() argument
DHidDeviceService.java170 int bufferSize = msg.obj == null ? 0 : ((Integer) msg.obj).intValue(); in handleMessage() local
174 mCallback.onGetReport(mHidDevice, type, id, bufferSize); in handleMessage()
847 synchronized void onGetReportFromNative(byte type, byte id, short bufferSize) { in onGetReportFromNative() argument
849 Log.d(TAG, "onGetReport(): type=" + type + " id=" + id + " bufferSize=" + bufferSize); in onGetReportFromNative()
853 msg.obj = bufferSize > 0 ? new Integer(bufferSize) : null; in onGetReportFromNative()
DHidDeviceNativeInterface.java198 private synchronized void onGetReport(byte type, byte id, short bufferSize) { in onGetReport() argument
201 service.onGetReportFromNative(type, id, bufferSize); in onGetReport()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dunittest.h59 size_t bufferSize = sizeof(Ch) * (StrLen(str) + 1); in StrDup() local
60 Ch* buffer = (Ch*)malloc(bufferSize); in StrDup()
61 memcpy(buffer, str, bufferSize); in StrDup()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DBytesBufferPool.java68 public BytesBufferPool(int poolSize, int bufferSize) { in BytesBufferPool() argument
71 mBufferSize = bufferSize; in BytesBufferPool()
/packages/apps/Traceur/src/com/android/traceur/
DMainFragment.java262 ListPreference bufferSize = (ListPreference)findPreference( in refreshUi() local
264 bufferSize.setSummary(bufferSize.getEntry()); in refreshUi()
DReceiver.java116 int bufferSize = Integer.parseInt( in updateTracing() local
131 TraceService.startTracing(context, activeAvailableTags, bufferSize, in updateTracing()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/buffer/
DTrickplayStorageManager.java120 public boolean reachedStorageMax(long bufferSize, long pendingDelete) { in reachedStorageMax() argument
121 return bufferSize - pendingDelete > mMaxBufferSize; in reachedStorageMax()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/buffer/
DTrickplayStorageManager.java120 public boolean reachedStorageMax(long bufferSize, long pendingDelete) { in reachedStorageMax() argument
121 return bufferSize - pendingDelete > mMaxBufferSize; in reachedStorageMax()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/message/ttls/
DEapTtlsTypeData.java153 int bufferSize = data.length + FLAGS_LEN_BYTES + msgLen; in encode() local
154 ByteBuffer buffer = ByteBuffer.allocate(bufferSize); in encode()
/packages/services/BuiltInPrintService/jni/plugins/
Dpdf_render.c83 int bufferSize = width * height * 3; in renderPageStripe() local
84 jobject byteBuffer = (*self->env)->NewDirectByteBuffer(self->env, buffer, bufferSize); in renderPageStripe()
/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_hid_host.cpp392 jint bufferSize) { in getReportNative() argument
394 reportType, reportId, bufferSize); in getReportNative()
407 (RawAddress*)addr, (bthh_report_type_t)rType, (uint8_t)rId, bufferSize); in getReportNative()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer2DictEncoder.java170 final int bufferSize = lastNodeArray.mCachedAddressAfterUpdate + lastNodeArray.mCachedSize; in writeDictionary() local
171 mBuffer = new byte[bufferSize]; in writeDictionary()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java247 public static void copyStream(InputStream is, OutputStream os, int bufferSize) in copyStream() argument
250 byte[] buffer = new byte[bufferSize]; in copyStream()
/packages/apps/TV/tuner/tests/robotests/javatests/com/android/tv/tuner/exoplayer/tests/
DSampleSourceExtractorTest.java230 public boolean reachedStorageMax(long bufferSize, long pendingDelete) { in reachedStorageMax() argument
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java568 int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs) { in onAudioTrackUnderrun() argument

12