Searched refs:mLength (Results 1 - 25 of 61) sorted by relevance

123

/frameworks/base/core/java/com/android/internal/util/
H A DSizedInputStream.java30 private long mLength; field in class:SizedInputStream
34 mLength = length;
50 if (mLength <= 0) {
52 } else if (byteCount > mLength) {
53 byteCount = (int) mLength;
58 if (mLength > 0) {
59 throw new IOException("Unexpected EOF; expected " + mLength + " more bytes");
62 mLength -= n;
/frameworks/base/obex/javax/obex/
H A DApplicationParameter.java42 private int mLength; field in class:ApplicationParameter
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
[all...]
H A DObexPacket.java25 public int mLength; field in class:ObexPacket
30 mLength = length;
/frameworks/av/media/libmedia/
H A DMidiIoWrapper.cpp40 mLength = lseek(mFd, 0, SEEK_END);
47 mLength = size;
56 mLength = l;
58 mLength = 0;
80 if (offset + size > mLength) {
81 size = mLength - offset;
87 ALOGV("size() = %d", int(mLength));
88 return mLength;
/frameworks/base/tools/aapt2/util/
H A DStringPiece.h72 size_t mLength; member in class:aapt::BasicStringPiece
83 inline BasicStringPiece<TChar>::BasicStringPiece() : mData(nullptr) , mLength(0) {
88 mData(str.mData), mLength(str.mLength) {
93 mData(str.data()), mLength(str.length()) {
98 mData(str), mLength(str != nullptr ? strlen(str) : 0) {
103 mData(str), mLength(str != nullptr ? strlen16(str) : 0) {
108 mData(str), mLength(len) {
115 mLength = rhs.mLength;
[all...]
/frameworks/base/core/java/android/bluetooth/le/
H A DResultStorageDescriptor.java32 private int mLength; field in class:ResultStorageDescriptor
43 return mLength;
56 mLength = length;
68 dest.writeInt(mLength);
78 mLength = in.readInt();
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
H A DStroke.java31 private float mLength; field in class:Stroke
43 mLength += mPoints.get(mPoints.size() - 1).dist(point);
53 return mLength;
H A DAnglesClassifier.java100 private float mLength; field in class:AnglesClassifier.Data
113 mLength = mFirstLength = 0.0f;
123 mLength += mLastThreePoints.get(mLastThreePoints.size() - 1).dist(point);
148 mFirstLength = mLength;
173 if (mFirstLength < mLength / 2f) {
/frameworks/av/media/libstagefright/
H A DFileSource.cpp35 mLength(-1),
50 mLength = lseek64(mFd, 0, SEEK_END);
59 mLength(length),
72 if (mLength < 0) {
73 mLength = 0;
75 if (mLength > INT64_MAX - mOffset) {
76 mLength = INT64_MAX - mOffset;
82 mLength = 0;
84 if (mOffset + mLength > s.st_size) {
85 mLength
[all...]
/frameworks/rs/
H A DrsStream.cpp56 mLength = len;
67 while (mPos + numBytes >= mLength) {
77 if (mPos + sizeof(v) >= mLength) {
95 if (mPos + len*sizeof(char) >= mLength) {
108 uint8_t *newData = (uint8_t*)malloc(mLength*2);
109 memcpy(newData, mData, mLength*sizeof(uint8_t));
110 mLength = mLength * 2;
H A DrsStream.h89 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) {
152 uint64_t mLength; member in class:android::renderscript::OStream
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DFrameBuffer1D.java27 private int mLength = 0; field in class:FrameBuffer1D
57 return mLength;
97 mLength = 1;
99 mLength *= dim;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DImageDescriptor.java30 int mLength; field in class:ImageDescriptor
46 mLength = 0;
70 d.mLength = ((rawData[valueIndex++] & 0xff) << 8 | (rawData[valueIndex++] & 0xff));
73 d.mHighOffset + ", " + d.mLowOffset + ", " + d.mLength);
H A DComprehensionTlv.java36 private int mLength; field in class:ComprehensionTlv
55 mLength = length;
69 return mLength;
96 startIndex = ctlv.mValueIndex + ctlv.mLength;
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pServiceRequest.java52 private int mLength; field in class:WifiP2pServiceRequest
81 mLength = query.length()/2 + 2;
83 mLength = 2;
98 mLength = length;
139 sb.append(String.format(Locale.US, "%02x", (mLength) & 0xff));
140 sb.append(String.format(Locale.US, "%02x", (mLength >> 8) & 0xff));
230 (req.mLength != mLength)) {
246 result = 31 * result + mLength;
259 dest.writeInt(mLength);
[all...]
/frameworks/base/core/java/android/hardware/usb/
H A DUsbRequest.java46 private int mLength; field in class:UsbRequest
148 mLength = length;
159 bytesRead = native_dequeue_array(mBuffer.array(), mLength, out);
162 mBuffer.position(Math.min(bytesRead, mLength));
165 mLength = 0;
/frameworks/base/wifi/java/android/net/wifi/nan/
H A DTlvBufferUtils.java295 public int mLength; field in class:TlvBufferUtils.TlvElement
311 mLength = length;
319 * {@link TlvElement#mLength} is != 1 will result in an exception.
324 if (mLength != 1) {
326 "Accesing a byte from a TLV element of length " + mLength);
334 * {@link TlvElement#mLength} is != 2 will result in an exception.
339 if (mLength != 2) {
341 "Accesing a short from a TLV element of length " + mLength);
349 * whose {@link TlvElement#mLength} is != 4 will result in an exception.
354 if (mLength !
[all...]
/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/
H A DAsn1Object.java10 private final int mLength; field in class:Asn1Object
22 mLength = length;
39 return mLength == Asn1Decoder.IndefiniteLength;
43 return mLength;
/frameworks/base/core/java/android/os/
H A DMemoryFile.java59 private int mLength; // total length of our ashmem region field in class:MemoryFile
70 mLength = length;
105 native_munmap(mAddress, mLength);
141 return mLength;
205 || srcOffset < 0 || srcOffset > mLength
206 || count > mLength - srcOffset) {
229 || destOffset < 0 || destOffset > mLength
230 || count > mLength - destOffset) {
269 if (mOffset >= mLength) {
272 return mLength
[all...]
/frameworks/base/core/java/android/widget/
H A DSpellChecker.java79 // Contains null SpellCheckSpans after index mLength.
82 // The mLength first elements of the above arrays have been initialized
83 private int mLength; field in class:SpellChecker
135 for (int i = 0; i < mLength; i++) {
138 mLength = 0;
183 for (int i = 0; i < mLength; i++) {
187 mIds = GrowingArrayUtils.append(mIds, mLength, 0);
189 mSpellCheckSpans, mLength, new SpellCheckSpan());
190 mLength++;
191 return mLength
[all...]
/frameworks/base/core/java/android/content/res/
H A DAssetFileDescriptor.java45 private final long mLength; field in class:AssetFileDescriptor
84 mLength = length;
132 if (mLength >= 0) {
133 return mLength;
148 return mLength;
168 if (mLength < 0) {
183 if (mLength < 0) {
192 + " start=" + mStartOffset + " len=" + mLength + "}";
349 out.writeLong(mLength);
361 mLength
[all...]
/frameworks/av/include/media/
H A DMidiIoWrapper.h42 int64_t mLength; member in class:android::MidiIoWrapper
/frameworks/base/tools/aapt/
H A Dpseudolocalize.h33 PseudoMethodAccent() : mDepth(0), mWordCount(0), mLength(0) {}
41 size_t mLength; member in class:PseudoMethodAccent
/frameworks/base/libs/androidfw/
H A DAsset.cpp362 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL)
409 mLength = length;
433 mLength = dataMap->getDataLength();
447 assert(mOffset >= 0 && mOffset <= mLength);
461 maxLen = mLength - mOffset;
514 newPosn = handleSeek(offset, whence, mOffset, mLength);
578 if (mLength < kReadVsMapThreshold) {
584 allocLen = mLength;
585 if (mLength == 0)
595 if (mLength >
[all...]
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/loaders/
H A DLoaderDicom.java59 long mLength; field in class:LoaderDicom.Element
67 new String(vrs) + ") [" + mLength + "] ";
197 e.mLength = mMappedByteBuffer.getInt();
198 if (e.mLength == -1) {
199 e.mLength = 0;
210 e.mLength = mMappedByteBuffer.getInt() & 0xFFFFFFFF;
212 e.mLength = mMappedByteBuffer.getShort() & 0xFFFF;
217 e.mLength = (len) & 0xFFFFFFFFL;
218 if (0xFFFFFFFF == e.mLength) {
220 e.mLength
[all...]

Completed in 569 milliseconds

123