Searched refs:mLength (Results 1 - 25 of 67) 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
141 mLength = 0;
145 if ((mLength + len + 2) > mMaxLength) {
146 byte[] array_tmp = new byte[mLength + 4 * len];
147 System.arraycopy(mArray, 0, array_tmp, 0, mLength);
149 mMaxLength = mLength + 4 * len;
151 mArray[mLength++] = tag;
152 mArray[mLength++] = len;
153 System.arraycopy(value, 0, mArray, mLength, len);
154 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/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.cpp36 mLength(-1),
51 mLength = lseek64(mFd, 0, SEEK_END);
60 mLength(length),
73 if (mLength < 0) {
74 mLength = 0;
76 if (mLength > INT64_MAX - mOffset) {
77 mLength = INT64_MAX - mOffset;
83 mLength = 0;
85 if (mOffset + mLength > s.st_size) {
86 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/libs/androidfw/
H A DTypeWrappers.cpp23 TypeVariant::TypeVariant(const ResTable_type* data) : data(data), mLength(dtohl(data->entryCount)) {
32 mLength = 0;
34 mLength = ResTable_sparseTypeEntry{entryIndices[entryCount - 1]}.idx + 1;
41 if (mIndex > mTypeVariant->mLength) {
42 mIndex = mTypeVariant->mLength;
53 if (mIndex >= mTypeVariant->mLength) {
H A DAsset.cpp400 : mStart(0), mLength(0), mOffset(0), mFp(NULL), mFileName(NULL), mMap(NULL), mBuf(NULL)
454 mLength = length;
478 mLength = dataMap->getDataLength();
492 assert(mOffset >= 0 && mOffset <= mLength);
506 maxLen = mLength - mOffset;
559 newPosn = handleSeek(offset, whence, mOffset, mLength);
623 if (mLength < kReadVsMapThreshold) {
629 allocLen = mLength;
630 if (mLength == 0)
640 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/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/base/core/java/android/hardware/usb/
H A DUsbRequest.java57 private int mLength; field in class:UsbRequest
189 mLength = length;
203 mLength = 0;
315 bytesTransferred = native_dequeue_array(mBuffer.array(), mLength, isSend);
318 int bytesToStore = Math.min(bytesTransferred, mLength);
334 mLength = 0;
/frameworks/av/include/media/
H A DMidiIoWrapper.h42 int64_t mLength; member in class:android::MidiIoWrapper
/frameworks/av/media/libmedia/include/media/
H A DMidiIoWrapper.h42 int64_t mLength; member in class:android::MidiIoWrapper
/frameworks/base/libs/androidfw/include/androidfw/
H A DTypeWrappers.h74 return iterator(this, mLength);
80 size_t mLength; member in struct:android::TypeVariant
/frameworks/base/tools/aapt/
H A Dpseudolocalize.h33 PseudoMethodAccent() : mDepth(0), mWordCount(0), mLength(0) {}
41 size_t mLength; member in class:PseudoMethodAccent
/frameworks/rs/tests/java_api/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 524 milliseconds

123