HomeSort by relevance Sort by last modified time
    Searched refs:mBuffer (Results 1 - 25 of 191) sorted by null

1 2 3 4 5 6 7 8

  /external/libnfc-nci/halimpl/bcm2079x/adaptation/
StartupConfig.cpp 44 mBuffer.append ((uint8_string::size_type) 1, (uint8_string::value_type) 0);
59 mBuffer.clear ();
61 mBuffer.append ((uint8_string::size_type) 1, (uint8_string::value_type) 0);
77 return mBuffer.data ();
95 if ((newContent[0]+mBuffer.size()) > mMaxLength)
102 mBuffer.append (newContent+1, (uint8_string::size_type) (newContent[0]));
104 mBuffer[0] = mBuffer[0] + newContent[0];
105 ALOGD ("%s: new size %u bytes", fn, mBuffer[0]);
148 const UINT8 maxLen = mBuffer[0]
    [all...]
  /frameworks/base/core/java/android/util/
LogPrinter.java 26 private final int mBuffer;
43 mBuffer = Log.LOG_ID_MAIN;
53 mBuffer = buffer;
57 Log.println_native(mBuffer, mPriority, mTag, x);
EventLog.java 57 private final ByteBuffer mBuffer;
78 mBuffer = ByteBuffer.wrap(data);
79 mBuffer.order(ByteOrder.nativeOrder());
84 return mBuffer.getInt(PROCESS_OFFSET);
89 return mBuffer.getInt(THREAD_OFFSET);
94 return mBuffer.getInt(SECONDS_OFFSET) * 1000000000l
95 + mBuffer.getInt(NANOSECONDS_OFFSET);
100 return mBuffer.getInt(TAG_OFFSET);
106 mBuffer.limit(PAYLOAD_START + mBuffer.getShort(LENGTH_OFFSET))
    [all...]
  /cts/suite/audio_quality/lib/src/audio/
AudioProtocol.cpp 31 mBuffer[0] = htonl(mCommand);
32 mBuffer[1] = 0;
33 return sendData((char*)mBuffer, 8);
93 mBuffer[0] = htonl(ECmdDownload);
94 mBuffer[1] = htonl(4 + param.mBuffer->getSize());
95 mBuffer[2] = htonl(param.mId);
96 if(!sendData((char*)mBuffer, 12)) {
99 return sendData(param.mBuffer->getData(), param.mBuffer->getSize())
    [all...]
  /packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/shortcut/
dynamic_shortcut_list_policy.h 35 : mBuffer(buffer) {}
49 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(*pos);
50 const uint8_t *const buffer = mBuffer->getBuffer(usesAdditionalBuffer);
52 *pos -= mBuffer->getOriginalBufferSize();
67 *pos += mBuffer->getOriginalBufferSize();
72 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(*pos);
73 const uint8_t *const buffer = mBuffer->getBuffer(usesAdditionalBuffer);
75 *pos -= mBuffer->getOriginalBufferSize();
81 *pos += mBuffer->getOriginalBufferSize();
85 // Copy shortcuts from the shortcut list that starts at fromPos in mBuffer to toPos i
    [all...]
  /packages/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
ArrayInitializerFormatter.java 28 private final StringBuilder mBuffer = new StringBuilder();
39 if (mBuffer.length() == 0) {
44 mOut.format("%s/* %d */ %s\n", mIndent, mBufferedIndex, mBuffer);
46 final String[] elements = mBuffer.toString().split(" ");
55 mIndent, mBuffer,
58 mBuffer.setLength(0);
75 mBuffer.append(' ');
76 mBuffer.append(element);
80 mBuffer.append('\n');
81 mBuffer.append(mIndent)
    [all...]
  /frameworks/av/media/mtp/
MtpPacket.cpp 32 : mBuffer(NULL),
37 mBuffer = (uint8_t *)malloc(bufferSize);
38 if (!mBuffer) {
45 if (mBuffer)
46 free(mBuffer);
52 memset(mBuffer, 0, mBufferSize);
58 mBuffer = (uint8_t *)realloc(mBuffer, newLength);
59 if (!mBuffer) {
73 sprintf(bufptr, "%02X ", mBuffer[i])
    [all...]
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
ByteArrayDictBuffer.java 26 private byte[] mBuffer;
30 mBuffer = buffer;
36 return mBuffer[mPosition++] & 0xFF;
69 mBuffer[mPosition++] = b;
74 return mBuffer.length - 1;
79 return mBuffer.length;
  /external/chromium_org/third_party/angle/src/libGLESv2/renderer/
IndexBuffer11.cpp 18 mBuffer = NULL;
25 if (mBuffer)
27 mBuffer->Release();
28 mBuffer = NULL;
34 if (mBuffer)
36 mBuffer->Release();
37 mBuffer = NULL;
54 HRESULT result = dxDevice->CreateBuffer(&bufferDesc, NULL, &mBuffer);
76 if (mBuffer)
88 HRESULT result = dxContext->Map(mBuffer, 0, D3D11_MAP_WRITE_NO_OVERWRITE, 0, &mappedResource)
    [all...]
  /hardware/akm/AK8975_FS/libsensors/
InputEventReader.cpp 36 : mBuffer(new input_event[numEvents * 2]),
37 mBufferEnd(mBuffer + numEvents),
38 mHead(mBuffer),
39 mCurr(mBuffer),
46 delete [] mBuffer;
65 memcpy(mBuffer, mBufferEnd, s * sizeof(input_event));
66 mHead = mBuffer + s;
77 ssize_t available = (mBufferEnd - mBuffer) - mFreeSpace;
86 mCurr = mBuffer;
  /hardware/invensense/60xx/libsensors_iio/
InputEventReader.cpp 39 : mBuffer(new input_event[numEvents * 2]),
40 mBufferEnd(mBuffer + numEvents),
41 mHead(mBuffer),
42 mCurr(mBuffer),
49 delete [] mBuffer;
81 memcpy(mBuffer, mBufferEnd, s * sizeof(input_event));
82 mHead = mBuffer + s;
94 ssize_t available = (mBufferEnd - mBuffer) - mFreeSpace;
103 mCurr = mBuffer;
  /frameworks/av/media/libnbaio/
AudioBufferProviderSource.cpp 36 if (mBuffer.raw != NULL) {
37 mProvider->releaseBuffer(&mBuffer);
46 return mBuffer.raw != NULL ? mBuffer.frameCount - mConsumed : 0;
56 if (CC_UNLIKELY(mBuffer.raw == NULL)) {
57 mBuffer.frameCount = count;
58 status_t status = mProvider->getNextBuffer(&mBuffer, readPTS);
62 ALOG_ASSERT(mBuffer.raw != NULL);
65 size_t available = mBuffer.frameCount - mConsumed;
71 memcpy(buffer, (char *) mBuffer.raw + (mConsumed << mBitShift), count << mBitShift)
    [all...]
  /packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/bigram/
dynamic_bigram_list_policy.cpp 32 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(*bigramEntryPos);
33 const uint8_t *const buffer = mBuffer->getBuffer(usesAdditionalBuffer);
35 *bigramEntryPos -= mBuffer->getOriginalBufferSize();
42 originalBigramPos += mBuffer->getOriginalBufferSize();
53 *bigramEntryPos += mBuffer->getOriginalBufferSize();
58 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(*bigramListPos);
59 const uint8_t *const buffer = mBuffer->getBuffer(usesAdditionalBuffer);
61 *bigramListPos -= mBuffer->getOriginalBufferSize();
65 *bigramListPos += mBuffer->getOriginalBufferSize();
71 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(*fromPos)
    [all...]
  /frameworks/av/services/audioflinger/
AudioResamplerCubic.cpp 66 if (mBuffer.frameCount == 0) {
67 mBuffer.frameCount = inFrameCount;
68 provider->getNextBuffer(&mBuffer, mPTS);
69 if (mBuffer.raw == NULL)
71 // ALOGW("New buffer: offset=%p, frames=%dn", mBuffer.raw, mBuffer.frameCount);
73 int16_t *in = mBuffer.i16;
94 if (inputIndex == mBuffer.frameCount) {
96 provider->releaseBuffer(&mBuffer);
97 mBuffer.frameCount = inFrameCount
    [all...]
  /cts/suite/audio_quality/test/
AudioPlayTestCommon.h 37 android::sp<Buffer> mBuffer;
52 mBuffer = AudioSignalFactory::generateSineWave(AudioHardware::E2BPS,
55 ASSERT_TRUE(mBuffer.get() != NULL);
66 ASSERT_TRUE(mAudioHw->startPlaybackOrRecord(mBuffer, numberRepetition));
69 LOGV("size %d, handled %d", mBuffer->getSize(), mBuffer->amountHandled());
70 ASSERT_TRUE(mBuffer->amountHandled() == mBuffer->getSize());
76 mBuffer->restart();
77 ASSERT_TRUE(mAudioHw->startPlaybackOrRecord(mBuffer, 10))
    [all...]
  /cts/suite/audio_quality/lib/src/
RWBuffer.h 32 mBuffer = new char[capacity];
36 delete[] mBuffer;
53 return mBuffer;
56 return mBuffer + mWrPoint;
78 memcpy(mBuffer + mWrPoint, src, sizeof(T));
84 memcpy(mBuffer + mWrPoint, str.string(), len);
90 memcpy(&v, mBuffer + mRdPoint, sizeof(T));
98 char* mBuffer;
FileUtil.cpp 81 mBuffer = new char[DEFAULT_BUFFER_SIZE];
82 if (mBuffer == NULL) {
94 delete[] mBuffer;
117 mBuffer[0] = '0' + logLevel;
118 mBuffer[1] = '>';
122 size = vsnprintf(mBuffer + start, mBufferSize - start - 2, fmt, ap); // 2 for \n\0
129 delete[] mBuffer;
130 mBuffer = new char[2 * size];
131 if (mBuffer == NULL) {
140 mBuffer[size] = '\n'
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/systrace/
SystraceTask.java 32 private byte[] mBuffer = new byte[1024];
63 return mTraceComplete ? mBuffer : null;
71 if (mDataLength + length > mBuffer.length) {
72 mBuffer = Bytes.ensureCapacity(mBuffer, mDataLength + length + 1, 1024);
76 mBuffer[mDataLength + i] = data[offset + i];
85 // trim mBuffer to its final size
88 copy[i] = mBuffer[i];
90 mBuffer = copy;
  /hardware/invensense/65xx/libsensors_iio/
InputEventReader.cpp 38 : mBuffer(new input_event[numEvents * 2]),
39 mBufferEnd(mBuffer + numEvents),
40 mHead(mBuffer),
41 mCurr(mBuffer),
49 delete [] mBuffer;
83 memcpy(mBuffer, mBufferEnd, s * sizeof(input_event));
84 mHead = mBuffer + s;
97 ssize_t available = (mBufferEnd - mBuffer) - mFreeSpace;
108 mCurr = mBuffer;
110 ssize_t available = (mBufferEnd - mBuffer) - mFreeSpace;
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/photomanager/
MemInfoReader.java 24 byte[] mBuffer = new byte[1024];
69 int len = is.read(mBuffer);
71 final int BUFLEN = mBuffer.length;
74 if (matchText(mBuffer, i, "MemTotal")) {
76 mTotalSize = extractMemValue(mBuffer, i);
78 } else if (matchText(mBuffer, i, "MemFree")) {
80 mFreeSize = extractMemValue(mBuffer, i);
82 } else if (matchText(mBuffer, i, "Cached")) {
84 mCachedSize = extractMemValue(mBuffer, i);
87 while (i < BUFLEN && mBuffer[i] != '\n')
    [all...]
  /frameworks/av/camera/
CameraMetadata.cpp 32 mBuffer(NULL), mLocked(false) {
38 mBuffer = allocate_camera_metadata(entryCapacity, dataCapacity);
43 mBuffer = clone_camera_metadata(other.mBuffer);
47 mBuffer(NULL), mLocked(false) {
52 return operator=(other.mBuffer);
61 if (CC_LIKELY(buffer != mBuffer)) {
64 mBuffer = newBuffer;
76 return mBuffer;
84 if (buffer != mBuffer) {
    [all...]
  /frameworks/opt/photoviewer/src/com/android/ex/photo/util/
InputStreamBuffer.java 63 private byte[] mBuffer;
105 mBuffer = new byte[bufferSize];
134 return mBuffer[i];
170 if (i >= mFilled || i >= mBuffer.length) {
276 if (length > mBuffer.length) {
285 mBuffer.length, length));
286 mBuffer = Arrays.copyOf(mBuffer, length);
293 read = mInputStream.read(mBuffer, mFilled, mBuffer.length - mFilled)
    [all...]
  /packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/
dynamic_patricia_trie_node_reader.cpp 28 if (ptNodePos < 0 || ptNodePos >= mBuffer->getTailPosition()) {
31 ptNodePos, mBuffer->getTailPosition());
36 const bool usesAdditionalBuffer = mBuffer->isInAdditionalBuffer(ptNodePos);
37 const uint8_t *const dictBuf = mBuffer->getBuffer(usesAdditionalBuffer);
41 pos -= mBuffer->getOriginalBufferSize();
58 mProbabilityFieldPos += mBuffer->getOriginalBufferSize();
67 mChildrenPosFieldPos += mBuffer->getOriginalBufferSize();
72 mChildrenPos += mBuffer->getOriginalBufferSize();
82 pos += mBuffer->getOriginalBufferSize();
  /frameworks/base/core/java/com/android/internal/util/
ProcFileReader.java 36 private final byte[] mBuffer;
38 /** Write pointer in {@link #mBuffer}. */
49 mBuffer = new byte[bufferSize];
59 final int length = mBuffer.length - mTail;
64 final int read = mStream.read(mBuffer, mTail, length);
78 System.arraycopy(mBuffer, count, mBuffer, 0, mTail - count);
101 final byte b = mBuffer[i];
136 if (mBuffer[i] == '\n') {
184 final String s = new String(mBuffer, 0, tokenIndex, StandardCharsets.US_ASCII)
    [all...]
  /frameworks/base/media/tests/omxjpegdecoder/
SkOmxPixelRef.cpp 26 mBuffer = buffer;
34 mBuffer->release();
41 return mBuffer->data();

Completed in 635 milliseconds

1 2 3 4 5 6 7 8