/aosp12/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
H A D | ResizableIntArray.java | 29 private int mLength; field in ResizableIntArray 36 if (index < mLength) { in get() 43 if (index < mLength) { in addAt() 46 mLength = index; in addAt() 83 return mLength; in getLength() 88 mLength = newLength; in setLength() 94 mLength = 0; in reset() 105 mLength = ip.mLength; in set() 115 mLength = ip.mLength; in copy() 126 mLength = newLength; in append() [all …]
|
/aosp12/frameworks/av/media/libdatasource/ |
H A D | FileSource.cpp | 35 mLength(-1), in FileSource() 54 mLength(length), in FileSource() 62 if (mLength < 0) { in FileSource() 63 mLength = 0; in FileSource() 65 if (mLength > INT64_MAX - mOffset) { in FileSource() 66 mLength = INT64_MAX - mOffset; in FileSource() 72 mLength = 0; in FileSource() 88 (long long) mLength); in FileSource() 109 if (mLength >= 0) { in readAt() 113 if (offset >= mLength) { in readAt() [all …]
|
/aosp12/frameworks/base/obex/javax/obex/ |
H A D | ApplicationParameter.java | 42 private int mLength; field in ApplicationParameter 141 mLength = 0; in ApplicationParameter() 145 if ((mLength + len + 2) > mMaxLength) { in addAPPHeader() 146 byte[] array_tmp = new byte[mLength + 4 * len]; in addAPPHeader() 149 mMaxLength = mLength + 4 * len; in addAPPHeader() 151 mArray[mLength++] = tag; in addAPPHeader() 152 mArray[mLength++] = len; in addAPPHeader() 153 System.arraycopy(value, 0, mArray, mLength, len); in addAPPHeader() 154 mLength += len; in addAPPHeader() 158 byte[] para = new byte[mLength]; in getAPPparam() [all …]
|
/aosp12/frameworks/minikin/libs/minikin/ |
H A D | StringPiece.h | 28 StringPiece() : mData(nullptr), mLength(0) {} in StringPiece() 30 StringPiece(const char* data, size_t length) : mData(data), mLength(length) {} in StringPiece() 31 StringPiece(const std::string& str) : mData(str.data()), mLength(str.size()) {} in StringPiece() 34 inline size_t length() const { return mLength; } in length() 35 inline size_t size() const { return mLength; } in size() 36 inline bool empty() const { return mLength == 0; } in empty() 45 if (from >= mLength) { in find() 46 return mLength; in find() 49 return p == nullptr ? mLength : p - mData; in find() 52 std::string toString() const { return std::string(mData, mData + mLength); } in toString() [all …]
|
/aosp12/frameworks/av/media/libmedia/ |
H A D | MidiIoWrapper.cpp | 44 mLength = lseek(mFd, 0, SEEK_END); in MidiIoWrapper() 54 mLength = size; in MidiIoWrapper() 103 mLength = l; in MidiIoWrapper() 105 mLength = 0; in MidiIoWrapper() 123 sCacheBufferSize -= mLength; in ~MidiIoWrapper() 135 if (offset + size > mLength) { in readAt() 136 size = mLength - offset; in readAt() 199 if (offset + size > mLength) { in unbufferedReadAt() 200 size = mLength - offset; in unbufferedReadAt() 206 ALOGV("size() = %d", int(mLength)); in size() [all …]
|
/aosp12/frameworks/base/libs/hwui/jni/ |
H A D | ByteBufferStreamAdaptor.cpp | 20 , mLength(length) in ByteBufferStream() 55 if (size > mLength - mPosition) { in read() 56 size = mLength - mPosition; in read() 76 mPosition = mLength; in read() 85 mPosition = mLength; in read() 114 return this->setPosition(position > mLength ? mLength : position); in seek() 145 const size_t mLength; member in ByteBufferStream 156 mPosition = mLength; in setPosition() 208 mPosition = mLength; in read() 235 mPosition = (position > mLength) ? mLength : position; in seek() [all …]
|
/aosp12/frameworks/base/core/java/com/android/internal/util/ |
H A D | SizedInputStream.java | 30 private long mLength; field in SizedInputStream 34 mLength = length; in SizedInputStream() 50 if (mLength <= 0) { in read() 52 } else if (byteCount > mLength) { in read() 53 byteCount = (int) mLength; in read() 58 if (mLength > 0) { in read() 59 throw new IOException("Unexpected EOF; expected " + mLength + " more bytes"); in read() 62 mLength -= n; in read()
|
/aosp12/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
H A D | UsbDescriptor.java | 143 mLength = length; in UsbDescriptor() 148 return mLength; in getLength() 180 if (bytesRead < mLength) { in postParse() 182 stream.advance(mLength - bytesRead); in postParse() 184 mOverUnderRunCount = mLength - bytesRead; in postParse() 186 + " r: " + bytesRead + " < l: " + mLength); in postParse() 187 } else if (bytesRead > mLength) { in postParse() 189 stream.reverse(bytesRead - mLength); in postParse() 191 mOverUnderRunCount = bytesRead - mLength; in postParse() 205 int dataLen = mLength - numRead; in parseRawDescriptors() [all …]
|
/aosp12/frameworks/minikin/include/minikin/ |
H A D | U16StringPiece.h | 28 U16StringPiece() : mData(nullptr), mLength(0) {} in U16StringPiece() 29 U16StringPiece(const uint16_t* data, uint32_t length) : mData(data), mLength(length) {} in U16StringPiece() 31 : mData(v.data()), mLength(static_cast<uint32_t>(v.size())) {} in U16StringPiece() 33 U16StringPiece(uint16_t const (&data)[length]) : mData(data), mLength(length) {} in U16StringPiece() 39 inline uint32_t size() const { return mLength; } in size() 40 inline uint32_t length() const { return mLength; } in length() 51 const uint16_t* end = mData + mLength; in hasChar() 57 uint32_t mLength; variable
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
H A D | EdgeLight.java | 40 private float mLength; field in EdgeLight 54 mLength = length; in EdgeLight() 60 mLength = sourceLight.getLength(); in EdgeLight() 78 return mLength; in getLength() 83 mLength = length; in setLength() 97 mLength = end - start; in setEndpoints() 117 return mStart + mLength; in getEnd() 122 return mStart + (mLength / 2.f); in getCenter()
|
/aosp12/packages/modules/Wifi/framework/java/android/net/wifi/p2p/nsd/ |
H A D | WifiP2pServiceRequest.java | 54 private int mLength; field in WifiP2pServiceRequest 84 mLength = query.length()/2 + 2; in WifiP2pServiceRequest() 86 mLength = 2; in WifiP2pServiceRequest() 101 mLength = length; in WifiP2pServiceRequest() 142 sb.append(String.format(Locale.US, "%02x", (mLength) & 0xff)); in getSupplicantQuery() 143 sb.append(String.format(Locale.US, "%02x", (mLength >> 8) & 0xff)); in getSupplicantQuery() 233 (req.mLength != mLength)) { in equals() 249 result = 31 * result + mLength; in hashCode() 262 dest.writeInt(mLength); in writeToParcel()
|
/aosp12/frameworks/rs/ |
H A D | rsStream.cpp | 56 mLength = len; in OStream() 67 while (mPos + numBytes >= mLength) { in addByteArray() 77 if (mPos + sizeof(v) >= mLength) { in addOffset() 95 if (mPos + len*sizeof(char) >= mLength) { in addString() 108 uint8_t *newData = (uint8_t*)malloc(mLength*2); in growSize() 109 memcpy(newData, mData, mLength*sizeof(uint8_t)); in growSize() 110 mLength = mLength * 2; in growSize()
|
H A D | rsStream.h | 89 if (mPos >= mLength) { in align() 100 if (mPos + sizeof(v) >= mLength) { in addI32() 110 if (mPos + sizeof(v) >= mLength) { in addU32() 120 if (mPos + sizeof(v) >= mLength) { in addU16() 127 if (mPos + 1 >= mLength) { in addU8() 152 uint64_t mLength; variable
|
/aosp12/frameworks/base/core/java/android/content/res/ |
H A D | AssetFileDescriptor.java | 49 private final long mLength; field in AssetFileDescriptor 88 mLength = length; in AssetFileDescriptor() 136 if (mLength >= 0) { in getLength() 137 return mLength; in getLength() 152 return mLength; in getDeclaredLength() 172 if (mLength < 0) { in createInputStream() 187 if (mLength < 0) { in createOutputStream() 196 + " start=" + mStartOffset + " len=" + mLength + "}"; in toString() 353 out.writeLong(mLength); in writeToParcel() 365 mLength = src.readLong(); in AssetFileDescriptor()
|
/aosp12/frameworks/base/libs/androidfw/ |
H A D | Asset.cpp | 438 mLength = length; in openChunk() 462 mLength = mMap->length(); in openChunk() 491 maxLen = mLength - mOffset; in read() 619 if (mLength < kReadVsMapThreshold) { in getIncFsBuffer() 625 allocLen = mLength; in getIncFsBuffer() 626 if (mLength == 0) in getIncFsBuffer() 636 if (mLength > 0) { in getIncFsBuffer() 639 if (fread(buf, 1, mLength, mFp) != (size_t) mLength) { in getIncFsBuffer() 696 *outLength = mLength; in openFileDescriptor() 718 getAssetSource(), (int)mLength); in ensureAlignment() [all …]
|
H A D | TypeWrappers.cpp | 23 TypeVariant::TypeVariant(const ResTable_type* data) : data(data), mLength(dtohl(data->entryCount)) { in TypeVariant() 32 mLength = 0; in TypeVariant() 34 mLength = ResTable_sparseTypeEntry{entryIndices[entryCount - 1]}.idx + 1; in TypeVariant() 41 if (mIndex > mTypeVariant->mLength) { in operator ++() 42 mIndex = mTypeVariant->mLength; in operator ++() 53 if (mIndex >= mTypeVariant->mLength) { in operator *()
|
/aosp12/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/ |
H A D | LoaderDicom.java | 59 long mLength; field in LoaderDicom.Element 197 e.mLength = mMappedByteBuffer.getInt(); in readTag() 198 if (e.mLength == -1) { in readTag() 199 e.mLength = 0; in readTag() 217 e.mLength = (len) & 0xFFFFFFFFL; in readTag() 218 if (0xFFFFFFFF == e.mLength) { in readTag() 220 e.mLength = 0; in readTag() 223 if (e.mLength == -1 || e.mLength == 65535) { in readTag() 224 e.mLength = 0; in readTag() 230 if (e.mLength == 0) { in skipValue() [all …]
|
/aosp12/frameworks/base/core/java/android/bluetooth/le/ |
H A D | ResultStorageDescriptor.java | 32 private int mLength; field in ResultStorageDescriptor 43 return mLength; in getLength() 56 mLength = length; in ResultStorageDescriptor() 68 dest.writeInt(mLength); in writeToParcel() 78 mLength = in.readInt(); in ReadFromParcel()
|
/aosp12/frameworks/av/media/extractors/fuzzers/include/ |
H A D | ExtractorFuzzerBase.h | 78 BufferSource(const uint8_t* data, size_t length) : mData(data), mLength(length) {} in BufferSource() 93 if ((offset >= static_cast<off64_t>(mLength)) || (offset < 0)) { in readAt() 96 size_t numAvailable = mLength - static_cast<size_t>(offset); in readAt() 109 *size = static_cast<off64_t>(mLength); in getSize() 120 size_t mLength = 0; variable
|
/aosp12/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | FrameBuffer1D.java | 27 private int mLength = 0; field in FrameBuffer1D 57 return mLength; in getLength() 97 mLength = 1; in updateLength() 99 mLength *= dim; in updateLength()
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/ |
H A D | ImageDescriptor.java | 30 int mLength; field in ImageDescriptor 46 mLength = 0; in ImageDescriptor() 70 d.mLength = ((rawData[valueIndex++] & 0xff) << 8 | (rawData[valueIndex++] & 0xff)); in parse() 73 d.mHighOffset + ", " + d.mLowOffset + ", " + d.mLength); in parse()
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
H A D | BluetoothOppObexClientSession.java | 352 if (fileInfo.mFileName == null || fileInfo.mLength == 0) { in processShareInfo() 362 Log.v(TAG, "length :" + fileInfo.mLength); in processShareInfo() 370 updateValues.put(BluetoothShare.TOTAL_BYTES, fileInfo.mLength); in processShareInfo() 405 request.setHeader(HeaderSet.LENGTH, fileInfo.mLength); in sendFile() 461 if (!mInterrupted && (position != fileInfo.mLength)) { in sendFile() 476 if (position == fileInfo.mLength) { in sendFile() 534 percent = position * 100 / fileInfo.mLength; in sendFile() 550 + fileInfo.mLength); in sendFile() 555 } else if (!mInterrupted && position == fileInfo.mLength) { in sendFile() 558 + fileInfo.mLength); in sendFile() [all …]
|
/aosp12/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbRequest.java | 63 private int mLength; field in UsbRequest 205 mLength = length; in queue() 219 mLength = 0; in queue() 337 bytesTransferred = native_dequeue_array(mBuffer.array(), mLength, isSend); in dequeue() 340 int bytesToStore = Math.min(bytesTransferred, mLength); in dequeue() 356 mLength = 0; in dequeue()
|
/aosp12/packages/apps/Nfc/src/com/android/nfc/snep/ |
H A D | SnepMessage.java | 66 private final int mLength; field in SnepMessage 145 mLength = input.getInt(); in SnepMessage() 149 ndefLength = mLength - 4; in SnepMessage() 153 ndefLength = mLength; in SnepMessage() 169 mLength = length; in SnepMessage() 232 return mLength; in getLength()
|
/aosp12/frameworks/base/core/java/android/text/ |
H A D | InputFilter.java | 109 private final int mLength; field in InputFilter.AllCaps.CharSequenceWrapper 115 mLength = end - start; in CharSequenceWrapper() 119 return mLength; in length() 123 if (index < 0 || index >= mLength) { in charAt() 130 if (start < 0 || end < 0 || end > mLength || start > end) { in subSequence()
|