Home
last modified time | relevance | path

Searched refs:bufferSize (Results 1 – 25 of 27) 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/apps/Bluetooth/src/com/android/bluetooth/hid/
DHidHostService.java233 int bufferSize = data.getInt(BluetoothHidHost.EXTRA_REPORT_BUFFER_SIZE);
235 bufferSize)) {
244 int bufferSize = data.getInt(BluetoothHidHost.EXTRA_REPORT_BUFFER_SIZE);
245 broadcastReport(device, report, bufferSize);
423 int bufferSize) { in getReport() argument
428 return service.getReport(device, reportType, reportId, bufferSize); in getReport()
590 boolean getReport(BluetoothDevice device, byte reportType, byte reportId, int bufferSize) { in getReport() argument
604 data.putInt(BluetoothHidHost.EXTRA_REPORT_BUFFER_SIZE, bufferSize); in getReport()
883 int bufferSize); in getReportNative() argument
DHidDeviceService.java166 int bufferSize = msg.obj == null ? 0 : ((Integer) msg.obj).intValue(); in handleMessage() local
170 mCallback.onGetReport(mHidDevice, type, id, bufferSize); in handleMessage()
751 synchronized void onGetReportFromNative(byte type, byte id, short bufferSize) { in onGetReportFromNative() argument
753 Log.d(TAG, "onGetReport(): type=" + type + " id=" + id + " bufferSize=" + bufferSize); in onGetReportFromNative()
757 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/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/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/google/android/traceur/
DMainFragment.java260 ListPreference bufferSize = (ListPreference)findPreference( in refreshUi() local
262 bufferSize.setSummary(bufferSize.getEntry()); in refreshUi()
DReceiver.java115 int bufferSize = Integer.parseInt( in updateTracing() local
130 TraceService.startTracing(context, activeAvailableTags, bufferSize, in updateTracing()
/packages/apps/Email/provider_src/com/android/email/mail/transport/
DDiscourseLogger.java36 public DiscourseLogger(int bufferSize) { in DiscourseLogger() argument
37 mBufferSize = bufferSize; in DiscourseLogger()
/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()
DDvrStorageManager.java80 public boolean reachedStorageMax(long bufferSize, long pendingDelete) { in reachedStorageMax() argument
DBufferManager.java241 boolean reachedStorageMax(long bufferSize, long pendingDelete); in reachedStorageMax() argument
/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.cpp384 jint bufferSize) { in getReportNative() argument
386 reportType, reportId, bufferSize); in getReportNative()
399 (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.java215 public static void copyStream(InputStream is, OutputStream os, int bufferSize) in copyStream() argument
218 byte[] buffer = new byte[bufferSize]; in copyStream()
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer/
DMpegTsPlayer.java567 int bufferSize, long bufferSizeMs, long elapsedSinceLastFeedMs) { in onAudioTrackUnderrun() argument

12