Home
last modified time | relevance | path

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

12345

/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/av/media/libstagefright/
DFileSource.cpp36 mLength(-1), in FileSource()
51 mLength = lseek64(mFd, 0, SEEK_END); in FileSource()
60 mLength(length), in FileSource()
73 if (mLength < 0) { in FileSource()
74 mLength = 0; in FileSource()
76 if (mLength > INT64_MAX - mOffset) { in FileSource()
77 mLength = INT64_MAX - mOffset; in FileSource()
83 mLength = 0; in FileSource()
85 if (mOffset + mLength > s.st_size) { in FileSource()
86 mLength = s.st_size - mOffset; in FileSource()
[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/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
140 mLength = length; in UsbDescriptor()
145 return mLength; in getLength()
178 if (bytesRead < mLength) { in postParse()
180 stream.advance(mLength - bytesRead); in postParse()
182 mOverUnderRunCount = mLength - bytesRead; in postParse()
184 + " r: " + bytesRead + " < l: " + mLength); in postParse()
185 } else if (bytesRead > mLength) { in postParse()
187 stream.reverse(bytesRead - mLength); in postParse()
189 mOverUnderRunCount = bytesRead - mLength; in postParse()
[all …]
DUsbACAudioStreamEndpoint.java36 stream.advance(mLength - stream.getReadCount()); in parseRawDescriptors()
37 return mLength; in parseRawDescriptors()
DUsbMSMidiHeader.java35 stream.advance(mLength - stream.getReadCount()); in parseRawDescriptors()
36 return mLength; in parseRawDescriptors()
/frameworks/av/media/libmedia/
DMidiIoWrapper.cpp40 mLength = lseek(mFd, 0, SEEK_END); in MidiIoWrapper()
47 mLength = size; in MidiIoWrapper()
56 mLength = l; in MidiIoWrapper()
58 mLength = 0; in MidiIoWrapper()
80 if (offset + size > mLength) { in readAt()
81 size = mLength - offset; in readAt()
87 ALOGV("size() = %d", int(mLength)); in size()
88 return mLength; in size()
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceRequest.java52 private int mLength; field in WifiP2pServiceRequest
81 mLength = query.length()/2 + 2; in WifiP2pServiceRequest()
83 mLength = 2; in WifiP2pServiceRequest()
98 mLength = length; in WifiP2pServiceRequest()
139 sb.append(String.format(Locale.US, "%02x", (mLength) & 0xff)); in getSupplicantQuery()
140 sb.append(String.format(Locale.US, "%02x", (mLength >> 8) & 0xff)); in getSupplicantQuery()
230 (req.mLength != mLength)) { in equals()
246 result = 31 * result + mLength; in hashCode()
259 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/base/core/java/android/content/res/
DAssetFileDescriptor.java45 private final long mLength; field in AssetFileDescriptor
84 mLength = length; in AssetFileDescriptor()
132 if (mLength >= 0) { in getLength()
133 return mLength; in getLength()
148 return mLength; in getDeclaredLength()
168 if (mLength < 0) { in createInputStream()
183 if (mLength < 0) { in createOutputStream()
192 + " start=" + mStartOffset + " len=" + mLength + "}"; in toString()
349 out.writeLong(mLength); in writeToParcel()
361 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.cpp400 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL) in _FileAsset()
454 mLength = length; in openChunk()
478 mLength = dataMap->getDataLength(); in openChunk()
492 assert(mOffset >= 0 && mOffset <= mLength); in read()
506 maxLen = mLength - mOffset; in read()
559 newPosn = handleSeek(offset, whence, mOffset, mLength); in seek()
623 if (mLength < kReadVsMapThreshold) { in getBuffer()
629 allocLen = mLength; in getBuffer()
630 if (mLength == 0) in getBuffer()
640 if (mLength > 0) { in getBuffer()
[all …]
/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/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()
DComprehensionTlv.java36 private int mLength; field in ComprehensionTlv
55 mLength = length; in ComprehensionTlv()
69 return mLength; in getLength()
96 startIndex = ctlv.mValueIndex + ctlv.mLength; in decodeMany()
/frameworks/base/core/java/android/hardware/usb/
DUsbRequest.java57 private int mLength; field in UsbRequest
192 mLength = length; in queue()
206 mLength = 0; in queue()
318 bytesTransferred = native_dequeue_array(mBuffer.array(), mLength, isSend); in dequeue()
321 int bytesToStore = Math.min(bytesTransferred, mLength); in dequeue()
337 mLength = 0; in dequeue()
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/
DAsn1Object.java10 private final int mLength; field in Asn1Object
22 mLength = length; in Asn1Object()
39 return mLength == Asn1Decoder.IndefiniteLength; in isIndefiniteLength()
43 return mLength; in getLength()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DAnglesClassifier.java100 private float mLength; field in AnglesClassifier.Data
113 mLength = mFirstLength = 0.0f; in Data()
123 mLength += mLastThreePoints.get(mLastThreePoints.size() - 1).dist(point); in addPoint()
148 mFirstLength = mLength; in addPoint()
173 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/text/
DInputFilter.java108 private final int mLength; field in InputFilter.AllCaps.CharSequenceWrapper
114 mLength = end - start; in CharSequenceWrapper()
118 return mLength; in length()
122 if (index < 0 || index >= mLength) { in charAt()
129 if (start < 0 || end < 0 || end > mLength || start > end) { in subSequence()
/frameworks/base/core/java/android/widget/
DSpellChecker.java83 private int mLength; field in SpellChecker
135 for (int i = 0; i < mLength; i++) { in resetSession()
138 mLength = 0; in resetSession()
183 for (int i = 0; i < mLength; i++) { in nextSpellCheckSpanIndex()
187 mIds = GrowingArrayUtils.append(mIds, mLength, 0); in nextSpellCheckSpanIndex()
189 mSpellCheckSpans, mLength, new SpellCheckSpan()); in nextSpellCheckSpanIndex()
190 mLength++; in nextSpellCheckSpanIndex()
191 return mLength - 1; in nextSpellCheckSpanIndex()
204 for (int i = 0; i < mLength; i++) { in onSpellCheckSpanRemoved()
267 TextInfo[] textInfos = new TextInfo[mLength]; in spellCheck()
[all …]
/frameworks/base/tools/aapt/
Dpseudolocalize.cpp211 mWordCount = mLength = 0; in start()
218 if (mLength) { in end()
221 mWordCount > 3 ? mLength : mLength / 2)); in end()
223 mWordCount = mLength = 0; in end()
347 mLength++; in text()

12345