Home
last modified time | relevance | path

Searched refs:mLength (Results 1 – 25 of 114) sorted by relevance

12345

/frameworks/av/media/libdatasource/
DFileSource.cpp35 mLength(-1), in FileSource()
45 mLength = lseek64(mFd, 0, SEEK_END); 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()
74 if (mOffset + mLength > s.st_size) { in FileSource()
75 mLength = s.st_size - mOffset; in FileSource()
[all …]
/frameworks/base/obex/javax/obex/
DApplicationParameter.java42 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()
147 System.arraycopy(mArray, 0, array_tmp, 0, mLength); 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()
[all …]
/frameworks/minikin/libs/minikin/
DStringPiece.h28 StringPiece() : mData(nullptr), mLength(0) {} in StringPiece()
29 StringPiece(const char* data) : mData(data), mLength(data == nullptr ? 0 : strlen(data)) {} 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()
48 const char* p = static_cast<const char*>(memchr(mData + from, c, mLength - from)); in find()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DSizedInputStream.java30 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()
/frameworks/base/core/jni/android/graphics/
DByteBufferStreamAdaptor.cpp39 , mLength(length) in ByteBufferStream()
74 if (size > mLength - mPosition) { in read()
75 size = mLength - mPosition; in read()
95 mPosition = mLength; in read()
104 mPosition = mLength; in read()
116 bool isAtEnd() const override { return mLength == mPosition; } in isAtEnd()
133 return this->setPosition(position > mLength ? mLength : position); in seek()
153 size_t getLength() const override { return mLength; } in getLength()
164 const size_t mLength; member in ByteBufferStream
175 mPosition = mLength; in setPosition()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DUsbDescriptor.java45 protected final int mLength; // 0:1 bLength Number Size of the Descriptor in Bytes (18 bytes) field in UsbDescriptor
143 mLength = length; in UsbDescriptor()
148 return mLength; in getLength()
181 if (bytesRead < mLength) { in postParse()
183 stream.advance(mLength - bytesRead); in postParse()
185 mOverUnderRunCount = mLength - bytesRead; in postParse()
187 + " r: " + bytesRead + " < l: " + mLength); in postParse()
188 } else if (bytesRead > mLength) { in postParse()
190 stream.reverse(bytesRead - mLength); in postParse()
192 mOverUnderRunCount = bytesRead - mLength; in postParse()
[all …]
/frameworks/minikin/include/minikin/
DU16StringPiece.h28 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
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceRequest.java54 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()
/frameworks/rs/
DrsStream.cpp56 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()
DrsStream.h89 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
/frameworks/av/media/libmedia/
DMidiIoWrapper.cpp41 mLength = lseek(mFd, 0, SEEK_END); in MidiIoWrapper()
49 mLength = size; in MidiIoWrapper()
96 mLength = l; in MidiIoWrapper()
98 mLength = 0; in MidiIoWrapper()
121 if (offset + size > mLength) { in readAt()
122 size = mLength - offset; in readAt()
128 ALOGV("size() = %d", int(mLength)); in size()
129 return mLength; in size()
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DEdgeLight.java35 private float mLength; field in EdgeLight
49 mLength = length; in EdgeLight()
55 mLength = sourceLight.getLength(); in EdgeLight()
71 return mLength; in getLength()
76 mLength = length; in setLength()
97 return mOffset + (mLength / 2.f); in getCenter()
/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java49 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()
/frameworks/base/core/java/android/bluetooth/le/
DResultStorageDescriptor.java32 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()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/
DLoaderDicom.java59 long mLength; field in LoaderDicom.Element
67 new String(vrs) + ") [" + mLength + "] "; in toString()
197 e.mLength = mMappedByteBuffer.getInt(); in readTag()
198 if (e.mLength == -1) { in readTag()
199 e.mLength = 0; in readTag()
210 e.mLength = mMappedByteBuffer.getInt() & 0xFFFFFFFF; in readTag()
212 e.mLength = mMappedByteBuffer.getShort() & 0xFFFF; in readTag()
217 e.mLength = (len) & 0xFFFFFFFFL; in readTag()
218 if (0xFFFFFFFF == e.mLength) { in readTag()
220 e.mLength = 0; in readTag()
[all …]
/frameworks/base/libs/androidfw/
DTypeWrappers.cpp23 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 *()
DAsset.cpp402 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset()
456 mLength = length; in openChunk()
480 mLength = dataMap->getDataLength(); in openChunk()
494 assert(mOffset >= 0 && mOffset <= mLength); in read()
508 maxLen = mLength - mOffset; in read()
561 newPosn = handleSeek(offset, whence, mOffset, mLength); in seek()
625 if (mLength < kReadVsMapThreshold) { in getBuffer()
631 allocLen = mLength; in getBuffer()
632 if (mLength == 0) in getBuffer()
642 if (mLength > 0) { in getBuffer()
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunk/
DChunk.java29 result.mLength = inputStream.readInt(ChunksMetadataProto.Chunk.LENGTH); in readFromProto()
37 private int mLength; field in Chunk
44 mLength = 0; in Chunk()
48 return mLength; in getLength()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DImageDescriptor.java30 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()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DFrameBuffer1D.java27 private int mLength = 0; field in FrameBuffer1D
57 return mLength; in getLength()
97 mLength = 1; in updateLength()
99 mLength *= dim; in updateLength()
/frameworks/av/media/extractors/fuzzers/include/
DExtractorFuzzerBase.h78 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DAnglesClassifier.java107 private float mLength; field in AnglesClassifier.Data
120 mLength = mFirstLength = 0.0f; in Data()
130 mLength += mLastThreePoints.get(mLastThreePoints.size() - 1).dist(point); in addPoint()
155 mFirstLength = mLength; in addPoint()
183 FalsingLog.i(TAG, " - mLength=" + mLength); in getAnglesVariance()
185 if (mFirstLength < mLength / 2f) { in getAnglesVariance()
DStroke.java31 private float mLength; field in Stroke
43 mLength += mPoints.get(mPoints.size() - 1).dist(point); in addPoint()
53 return mLength; in getTotalLength()
/frameworks/base/core/java/android/hardware/usb/
DUsbRequest.java62 private int mLength; field in UsbRequest
204 mLength = length; in queue()
218 mLength = 0; in queue()
336 bytesTransferred = native_dequeue_array(mBuffer.array(), mLength, isSend); in dequeue()
339 int bytesToStore = Math.min(bytesTransferred, mLength); in dequeue()
355 mLength = 0; in dequeue()
/frameworks/base/core/java/android/text/
DInputFilter.java109 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()

12345