/packages/apps/Email/src/com/android/email/ |
FixedLengthInputStream.java | 29 private final int mLength; 34 this.mLength = length; 39 return mLength - mCount; 44 if (mCount < mLength) { 54 if (mCount < mLength) { 55 int d = mIn.read(b, offset, Math.min(mLength - mCount, length)); 73 return mLength; 78 return String.format("FixedLengthInputStream(in=%s, length=%d)", mIn.toString(), mLength);
|
/frameworks/base/obex/javax/obex/ |
ApplicationParameter.java | 42 private int mLength; 113 mLength = 0; 117 if ((mLength + len + 2) > mMaxLength) { 118 byte[] array_tmp = new byte[mLength + 4 * len]; 119 System.arraycopy(mArray, 0, array_tmp, 0, mLength); 121 mMaxLength = mLength + 4 * len; 123 mArray[mLength++] = tag; 124 mArray[mLength++] = len; 125 System.arraycopy(value, 0, mArray, mLength, len); 126 mLength += len [all...] |
/external/astl/src/ |
string.cpp | 57 // mCapacity is either mLength or the number of bytes reserved using 60 // mLength is the number of char in the string, excluding the terminating '\0'. 65 // Ensure that mCapacity + 1 and mLength + 1 is accessible. 88 // Resize the buffer pointed by mData if n >= mLength. 91 // Must be > mLength and > 0. 95 if (n < mLength || n == mCapacity || n + 1 < n) { 139 mLength = 0; 155 mLength = n; 156 mData[mLength] = '\0'; 169 mLength = n [all...] |
/external/astl/include/ |
vector | 103 bool empty() const { return mLength == 0; } 104 size_type size() const { return mLength; } 122 reference back() { return mLength ? *(mBegin + mLength - 1) : front(); } 123 const_reference back() const { return mLength ? *(mBegin + mLength - 1) : front(); } 137 { return index < mLength ? *( mBegin + index) : sDummy; } 140 { return index < mLength ? *( mBegin + index) : sDummy; } 143 iterator end() { return iterator(mBegin + mLength); } 146 const_iterator end() const { return const_iterator(mBegin + mLength); } [all...] |
string | 113 size_type length() const { return mLength; } 114 size_type size() const { return mLength; } 290 iterator end() {return iterator(mData + mLength);} 291 const_iterator end() const {return const_iterator(mData + mLength);} 317 size_type mLength; // len of the string excl. null-terminator. 348 size_type new_len = mLength + dist; 349 if (new_len <= mLength) { 356 std::copy(first, last, mData + mLength); 357 mLength = new_len; 358 mData[mLength] = '\0' [all...] |
/frameworks/base/core/java/android/webkit/ |
KeyStoreHandler.java | 67 if (c.mLength != 0) { 68 System.arraycopy(c.mArray, 0, cert, offset, c.mLength); 69 offset += c.mLength;
|
ByteArrayBuilder.java | 54 if (c.mLength == c.mArray.length) { 59 int amount = Math.min(length, c.mArray.length - c.mLength); 60 System.arraycopy(array, offset, c.mArray, c.mLength, amount); 61 c.mLength += amount; 87 total += c.mLength; 133 public int mLength; 137 mLength = 0; 144 mLength = 0;
|
/frameworks/base/libs/rs/ |
rsStream.cpp | 55 mLength = len; 66 while (mPos + numBytes >= mLength) { 76 if (mPos + sizeof(v) >= mLength) { 95 if (mPos + len*sizeof(char) >= mLength) { 106 uint8_t *newData = (uint8_t*)malloc(mLength*2); 107 memcpy(newData, mData, mLength*sizeof(uint8_t)); 108 mLength = mLength * 2;
|
rsStream.h | 89 if (mPos >= mLength) { 100 if (mPos + sizeof(v) >= mLength) { 110 if (mPos + sizeof(v) >= mLength) { 120 if (mPos + sizeof(v) >= mLength) { 127 if (mPos + 1 >= mLength) { 151 uint64_t mLength;
|
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/ |
JdwpPacket.java | 61 private int mLength, mId, mFlags, mCmdSet, mCmd, mErrCode; 94 mLength = JDWP_HEADER_LEN + payloadLength; 100 mBuffer.putInt(0x00, mLength); 107 mBuffer.position(mLength); 138 if (mLength > 0) 139 buf.limit(mLength - JDWP_HEADER_LEN); 176 return (mLength == JDWP_HEADER_LEN); 192 return mLength; 207 assert mLength > 0; 211 mBuffer.limit(mLength); [all...] |
HeapSegment.java | 120 private int mLength; 205 return mLength; 209 this.mLength = length; 213 if (mLength != other.mLength) { 214 return mLength < other.mLength ? -1 : 1;
|
/frameworks/base/core/java/android/content/res/ |
AssetFileDescriptor.java | 43 private final long mLength; 61 mLength = length; 100 if (mLength >= 0) { 101 return mLength; 116 return mLength; 135 if (mLength < 0) { 150 if (mLength < 0) { 159 + " start=" + mStartOffset + " len=" + mLength + "}"; 315 out.writeLong(mLength); 321 mLength = src.readLong() [all...] |
/frameworks/base/include/utils/ |
Tokenizer.h | 114 size_t mLength; 119 inline const char* getEnd() const { return mBuffer + mLength; }
|
/frameworks/base/media/libstagefright/ |
FileSource.cpp | 30 mLength(-1), 43 mLength(length), 88 if (mLength >= 0) { 89 if (offset >= mLength) { 92 int64_t numAvailable = mLength - offset; 119 if (mLength >= 0) { 120 *size = mLength; 141 mFd, mOffset, mLength);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
AssetFileAddress.java | 30 public final long mLength; 35 mLength = length;
|
/frameworks/base/core/java/android/hardware/usb/ |
UsbRequest.java | 46 private int mLength; 148 mLength = length; 158 native_dequeue_array(mBuffer.array(), mLength, out); 161 mLength = 0;
|
/frameworks/base/core/java/android/os/ |
MemoryFile.java | 59 private int mLength; // total length of our ashmem region 70 mLength = length; 100 native_munmap(mAddress, mLength); 136 return mLength; 200 || srcOffset < 0 || srcOffset > mLength 201 || count > mLength - srcOffset) { 224 || destOffset < 0 || destOffset > mLength 225 || count > mLength - destOffset) { 264 if (mOffset >= mLength) { 267 return mLength - mOffset [all...] |
/packages/apps/Exchange/src/com/android/exchange/ |
EasResponse.java | 42 private final int mLength; 56 mLength = (int) mEntity.getContentLength(); 58 mLength = 0; 127 return mLength == 0; 145 return mLength;
|
/packages/apps/Nfc/src/com/android/nfc/snep/ |
SnepMessage.java | 49 private final int mLength; 85 mLength = input.getInt(); 89 ndefLength = mLength - 4; 93 ndefLength = mLength; 109 mLength = length; 160 return mLength;
|
/frameworks/compile/libbcc/lib/Disassembler/ |
Disassembler.cpp | 47 uint64_t mLength; 51 : mBytes(Bytes), mLength(Length) { 55 virtual uint64_t getExtent() const { return mLength; }
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
DashPathEffectTest.java | 96 private int mLength; 114 mLength += 1; 115 if (mLength == mPattern[mPatternOffset]) { 116 mLength = 0;
|
/frameworks/base/telephony/java/com/android/internal/telephony/cat/ |
ComprehensionTlv.java | 33 private int mLength; 52 mLength = length; 66 return mLength; 92 startIndex = ctlv.mValueIndex + ctlv.mLength;
|
/libcore/luni/src/main/java/java/util/zip/ |
ZipFile.java | 267 rafstrm.mLength = rafstrm.mOffset + entry.compressedSize; 382 long mLength; 387 mLength = raf.length(); 391 return (mOffset < mLength ? 1 : 0); 401 if (len > mLength - mOffset) { 402 len = (int) (mLength - mOffset); 416 if (byteCount > mLength - mOffset) { 417 byteCount = mLength - mOffset;
|
/frameworks/base/core/java/android/widget/ |
SpellChecker.java | 53 // Contains null SpellCheckSpans after index mLength. 56 // The mLength first elements of the above arrays have been initialized 57 private int mLength; 80 mLength = 0; 103 for (int i = 0; i < mLength; i++) { 107 if (mLength == mSpellCheckSpans.length) { 108 final int newSize = mLength * 2; 111 System.arraycopy(mIds, 0, newIds, 0, mLength); 112 System.arraycopy(mSpellCheckSpans, 0, newSpellCheckSpans, 0, mLength); 117 mSpellCheckSpans[mLength] = new SpellCheckSpan() [all...] |
/frameworks/base/libs/utils/ |
Asset.cpp | 356 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) 403 mLength = length; 427 mLength = dataMap->getDataLength(); 441 assert(mOffset >= 0 && mOffset <= mLength); 455 maxLen = mLength - mOffset; 508 newPosn = handleSeek(offset, whence, mOffset, mLength); 572 if (mLength < kReadVsMapThreshold) { 578 allocLen = mLength; 579 if (mLength == 0) 589 if (mLength > 0) [all...] |