Home
last modified time | relevance | path

Searched refs:mIndex (Results 1 – 25 of 108) sorted by relevance

12345

/frameworks/base/core/java/android/text/
DCharSequenceCharacterIterator.java29 private int mIndex; field in CharSequenceCharacterIterator
38 mBeginIndex = mIndex = start; in CharSequenceCharacterIterator()
43 mIndex = mBeginIndex; in first()
49 mIndex = mEndIndex; in last()
52 mIndex = mEndIndex - 1; in last()
53 return mCharSeq.charAt(mIndex); in last()
58 return (mIndex == mEndIndex) ? DONE : mCharSeq.charAt(mIndex); in current()
62 mIndex++; in next()
63 if (mIndex >= mEndIndex) { in next()
64 mIndex = mEndIndex; in next()
[all …]
/frameworks/base/obex/javax/obex/
DPrivateInputStream.java49 private int mIndex; field in PrivateInputStream
60 mIndex = 0; in PrivateInputStream()
76 return mData.length - mIndex; in available()
92 while (mData.length == mIndex) { in read()
97 return (mData[mIndex++] & 0xFF); in read()
116 int currentDataLength = mData.length - mIndex; in read()
122 System.arraycopy(mData, mIndex, b, offset1, currentDataLength); in read()
123 mIndex += currentDataLength; in read()
131 currentDataLength = mData.length - mIndex; in read()
134 System.arraycopy(mData, mIndex, b, offset1, remainReadLength); in read()
[all …]
/frameworks/av/drm/common/
DDrmInfoRequest.cpp64 mIndex(keyIterator.mIndex) { in KeyIterator()
69 return (mIndex < mDrmInfoRequest->mRequestInformationMap.size()); in hasNext()
73 const String8& key = mDrmInfoRequest->mRequestInformationMap.keyAt(mIndex); in next()
74 mIndex++; in next()
81 mIndex = keyIterator.mIndex; in operator =()
87 mDrmInfoRequest(iterator.mDrmInfoRequest), mIndex(iterator.mIndex) { in Iterator()
93 mIndex = iterator.mIndex; in operator =()
98 return mIndex < mDrmInfoRequest->mRequestInformationMap.size(); in hasNext()
102 String8& value = mDrmInfoRequest->mRequestInformationMap.editValueAt(mIndex); in next()
103 mIndex++; in next()
DDrmMetadata.cpp65 return mIndex < mDrmMetadata->mMetadataMap.size(); in hasNext()
69 const String8& key = mDrmMetadata->mMetadataMap.keyAt(mIndex); in next()
70 mIndex++; in next()
80 mIndex(keyIterator.mIndex) { in KeyIterator()
87 mIndex = keyIterator.mIndex; in operator =()
98 mIndex(iterator.mIndex) { in Iterator()
105 mIndex = iterator.mIndex; in operator =()
110 return mIndex < mDrmMetadata->mMetadataMap.size(); in hasNext()
114 String8 value = String8(mDrmMetadata->mMetadataMap.editValueAt(mIndex)); in next()
115 mIndex++; in next()
DDrmInfo.cpp70 mDrmInfo(keyIterator.mDrmInfo), mIndex(keyIterator.mIndex) { in KeyIterator()
75 return (mIndex < mDrmInfo->mAttributes.size()); in hasNext()
79 const String8& key = mDrmInfo->mAttributes.keyAt(mIndex); in next()
80 mIndex++; in next()
86 mIndex = keyIterator.mIndex; in operator =()
92 : mDrmInfo(iterator.mDrmInfo), mIndex(iterator.mIndex) { in Iterator()
98 mIndex = iterator.mIndex; in operator =()
103 return mIndex < mDrmInfo->mAttributes.size(); in hasNext()
107 String8& value = mDrmInfo->mAttributes.editValueAt(mIndex); in next()
108 mIndex++; in next()
DDrmConstraints.cpp62 return mIndex < mDrmConstraints->mConstraintMap.size(); in hasNext()
66 const String8& key = mDrmConstraints->mConstraintMap.keyAt(mIndex); in next()
67 mIndex++; in next()
77 mIndex(keyIterator.mIndex) { in KeyIterator()
83 mIndex = keyIterator.mIndex; in operator =()
94 mIndex(iterator.mIndex) { in Iterator()
100 mIndex = iterator.mIndex; in operator =()
105 return mIndex < mDrmConstraints->mConstraintMap.size(); in hasNext()
109 String8 value = String8(mDrmConstraints->mConstraintMap.editValueAt(mIndex)); in next()
110 mIndex++; in next()
DDrmSupportInfo.cpp116 mIndex(iterator.mIndex) { in FileSuffixIterator()
123 mIndex = iterator.mIndex; in operator =()
128 return mIndex < mDrmSupportInfo->mFileSuffixVector.size(); in hasNext()
132 String8& value = mDrmSupportInfo->mFileSuffixVector.editItemAt(mIndex); in next()
133 mIndex++; in next()
140 mIndex(iterator.mIndex) { in MimeTypeIterator()
147 mIndex = iterator.mIndex; in operator =()
152 return mIndex < mDrmSupportInfo->mMimeTypeVector.size(); in hasNext()
156 String8& value = mDrmSupportInfo->mMimeTypeVector.editItemAt(mIndex); in next()
157 mIndex++; in next()
/frameworks/base/libs/androidfw/include/androidfw/
DTypeWrappers.h32 mIndex = rhs.mIndex;
37 return mTypeVariant == rhs.mTypeVariant && mIndex == rhs.mIndex;
41 return mTypeVariant != rhs.mTypeVariant || mIndex != rhs.mIndex;
45 uint32_t prevIndex = mIndex;
55 return mIndex; in index()
64 : mTypeVariant(tv), mIndex(index) {} in iterator()
66 uint32_t mIndex; member
/frameworks/base/cmds/statsd/src/condition/
DStateTracker.cpp124 if (conditionCache[mIndex] != ConditionState::kNotEvaluated) { in evaluateCondition()
126 VLOG("Yes, already evaluated, %lld %d", (long long)mConditionId, conditionCache[mIndex]); in evaluateCondition()
132 conditionCache[mIndex] = in evaluateCondition()
134 conditionChangedCache[mIndex] = false; in evaluateCondition()
147 conditionCache[mIndex] = in evaluateCondition()
149 conditionChangedCache[mIndex] = false; in evaluateCondition()
159 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition()
161 conditionChangedCache[mIndex] = true; in evaluateCondition()
166 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition()
167 conditionChangedCache[mIndex] = true; in evaluateCondition()
[all …]
DCombinationConditionTracker.cpp47 stack[mIndex] = true; in init()
49 Predicate_Combination combinationCondition = allConditionConfig[mIndex].combination(); in init()
99 stack[mIndex] = false; in init()
124 conditionCache[mIndex] = in isConditionMet()
134 if (nonSlicedConditionCache[mIndex] != ConditionState::kNotEvaluated) { in evaluateCondition()
154 nonSlicedConditionCache[mIndex] = mNonSlicedConditionState; in evaluateCondition()
156 conditionChangedCache[mIndex] = nonSlicedChanged; in evaluateCondition()
166 conditionChangedCache[mIndex] = true; in evaluateCondition()
170 nonSlicedConditionCache[mIndex] = newCondition; in evaluateCondition()
172 conditionChangedCache[mIndex] == true); in evaluateCondition()
[all …]
DSimpleConditionTracker.cpp130 conditionChangedCache[mIndex] = in handleStopAll()
143 conditionCache[mIndex] = ConditionState::kFalse; in handleStopAll()
247 conditionChangedCache[mIndex] == true); in handleConditionEvent()
256 if (conditionCache[mIndex] != ConditionState::kNotEvaluated) { in evaluateCondition()
259 (long long)mConditionId, conditionCache[mIndex]); in evaluateCondition()
286 conditionChangedCache[mIndex] = false; in evaluateCondition()
290 conditionCache[mIndex] = mInitialValue; in evaluateCondition()
293 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition()
302 conditionCache[mIndex] = mInitialValue; in evaluateCondition()
305 conditionCache[mIndex] = in evaluateCondition()
[all …]
/frameworks/base/services/usb/java/com/android/server/usb/descriptors/
DByteStream.java44 private int mIndex; field in ByteStream
89 return mBytes[mIndex + 1]; in peekByte()
104 return mBytes[mIndex++]; in getByte()
118 return mBytes[mIndex++] & 0x000000FF; in getUnsignedByte()
189 long longNewIndex = (long) mIndex + (long) numBytes; in advance()
192 mIndex += numBytes; in advance()
209 if (mIndex >= numBytes) { in reverse()
211 mIndex -= numBytes; in reverse()
221 return mBytes.length - mIndex; in available()
/frameworks/base/libs/androidfw/
DTypeWrappers.cpp40 mIndex++; in operator ++()
41 if (mIndex > mTypeVariant->mLength) { in operator ++()
42 mIndex = mTypeVariant->mLength; in operator ++()
53 if (mIndex >= mTypeVariant->mLength) { in operator *()
69 auto iter = std::lower_bound(entryIndices, entryIndices + entryCount, mIndex, keyCompare); in operator *()
71 || dtohs(ResTable_sparseTypeEntry{*iter}.idx) != mIndex) { in operator *()
77 entryOffset = dtohl(entryIndices[mIndex]); in operator *()
85 ALOGE("Index %u points to entry with unaligned offset 0x%08x", mIndex, entryOffset); in operator *()
92 ALOGE("Entry offset at index %u points outside the Type's boundaries", mIndex); in operator *()
95 ALOGE("Entry at index %u extends beyond Type's boundaries", mIndex); in operator *()
[all …]
/frameworks/layoutlib/bridge/src/android/view/shadow/
DAmbientShadowVertexCalculator.java30 private final int[] mIndex; field in AmbientShadowVertexCalculator
41 mIndex = new int[(size * 2 + (mConfig.getRays() - 2)) * 3]; in AmbientShadowVertexCalculator()
111 mIndex[k * 3 + 0] = r1; in generateVertex()
112 mIndex[k * 3 + 1] = r1 + 1; in generateVertex()
113 mIndex[k * 3 + 2] = r2; in generateVertex()
115 mIndex[k * 3 + 0] = r2; in generateVertex()
116 mIndex[k * 3 + 1] = r1 + 1; in generateVertex()
117 mIndex[k * 3 + 2] = r2 + 1; in generateVertex()
123 mIndex[k * 3 + 0] = ringOffset; in generateVertex()
124 mIndex[k * 3 + 1] = ringOffset + rings * i; in generateVertex()
[all …]
/frameworks/av/services/audiopolicy/engine/common/src/
DVolumeCurve.cpp48 int nbSteps = 1 + mCurvePoints[nbCurvePoints - 1].mIndex - mCurvePoints[0].mIndex; in volIndexToDb()
58 if (indexInUiPosition != mCurvePoints[0].mIndex) { in volIndexToDb()
65 ((float)(volIdx - mCurvePoints[indexInUiPosition - 1].mIndex)) * in volIndexToDb()
68 ((float)(mCurvePoints[indexInUiPosition].mIndex - in volIndexToDb()
69 mCurvePoints[indexInUiPosition - 1].mIndex)) ); in volIndexToDb()
72 mCurvePoints[indexInUiPosition - 1].mIndex, volIdx, in volIndexToDb()
73 mCurvePoints[indexInUiPosition].mIndex, in volIndexToDb()
87 dst->appendFormat("%*s(%3d, %5d)", spaces, "", mCurvePoints[i].mIndex, in dump()
/frameworks/base/lowpan/java/android/net/lowpan/
DLowpanChannelInfo.java35 private int mIndex = 0; field in LowpanChannelInfo
74 mIndex = index; in LowpanChannelInfo()
85 return mIndex; in getIndex()
108 sb.append("Channel ").append(mIndex); in toString()
110 if (mName != null && !mName.equals(Integer.toString(mIndex))) { in toString()
160 && mIndex == rhs.mIndex in equals()
171 mIndex, in hashCode()
187 dest.writeInt(mIndex); in writeToParcel()
202 info.mIndex = in.readInt();
/frameworks/base/core/java/android/util/
DMapCollections.java40 int mIndex; field in MapCollections.ArrayIterator
50 return mIndex < mSize; in hasNext()
56 Object res = colGetEntry(mIndex, mOffset); in next()
57 mIndex++; in next()
67 mIndex--; in remove()
70 colRemoveAt(mIndex); in remove()
76 int mIndex; field in MapCollections.MapIterator
81 mIndex = -1; in MapIterator()
86 return mIndex < mEnd; in hasNext()
92 mIndex++; in next()
[all …]
/frameworks/av/media/libmedia/include/media/
DIMediaSource.h149 IndexCache() : mIndex(0) { } in IndexCache()
171 if (mIndex == UINT64_MAX) { in insert()
173 mIndex = 1; // skip overflow condition and hope for the best in insert()
175 ++mIndex; in insert()
179 std::forward_as_tuple(mem.get()), std::forward_as_tuple(mem, mIndex)); in insert()
180 return mIndex; in insert()
188 mIndex = 0; in reset()
202 uint64_t mIndex;
/frameworks/base/cmds/statsd/src/matchers/
DCombinationLogMatchingTracker.cpp46 stack[mIndex] = true; in init()
48 AtomMatcher_Combination matcher = allLogMatchers[mIndex].combination(); in init()
89 stack[mIndex] = false; in init()
97 if (matcherResults[mIndex] != MatchingState::kNotComputed) { in onLogEvent()
102 matcherResults[mIndex] = MatchingState::kNotMatched; in onLogEvent()
115 matcherResults[mIndex] = matched ? MatchingState::kMatched : MatchingState::kNotMatched; in onLogEvent()
/frameworks/native/services/inputflinger/reader/mapper/
DVibratorInputMapper.cpp61 mIndex = -1; in vibrate()
87 mIndex += 1; in nextStep()
88 if (size_t(mIndex) >= mPatternSize) { in nextStep()
94 mIndex = mRepeat; in nextStep()
97 bool vibratorOn = mIndex & 1; in nextStep()
98 nsecs_t duration = mPattern[mIndex]; in nextStep()
/frameworks/av/media/libstagefright/
DFrameRenderTracker.cpp70 if (renderInfo->mIndex >= 0) { in updateInfoForDequeuedBuffer()
85 renderInfo->mIndex = index; in updateInfoForDequeuedBuffer()
119 if (it->mIndex < 0) { in checkFencesAndGetRenderedFrames()
165 if (it->mIndex > index) { in untrackFrame()
166 --(it->mIndex); in untrackFrame()
181 (long long)it->mMediaTimeUs, it->mIndex, (long long)it->mRenderTimeNs); in dumpRenderQueue()
182 } else if (it->mIndex < 0) { in dumpRenderQueue()
188 it->mGraphicBuffer->handle, (long long)it->mMediaTimeUs, it->mIndex); in dumpRenderQueue()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DTestCertificateSource.java29 private final TrustedCertificateIndex mIndex = new TrustedCertificateIndex(); field in TestCertificateSource
33 mIndex.index(cert); in TestCertificateSource()
44 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey()
53 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); in findByIssuerAndSignature()
63 for (java.security.cert.TrustAnchor anchor : mIndex.findAllByIssuerAndSignature(cert)) { in findAllByIssuerAndSignature()
/frameworks/base/location/java/android/location/
DGpsStatus.java48 private int mIndex = 0; field in GpsStatus.SatelliteIterator
56 for (; mIndex < mSatellitesCount; ++mIndex) { in hasNext()
57 GpsSatellite satellite = mSatellites.valueAt(mIndex); in hasNext()
67 while (mIndex < mSatellitesCount) { in next()
68 GpsSatellite satellite = mSatellites.valueAt(mIndex); in next()
69 ++mIndex; in next()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DCube.java53 mIndex = Arrays.copyOf(src.mIndex, src.mIndex.length); in clone()
92 mIndex = new int[]{ in Cube()
106 for (int i = 0; i < mIndex.length; i++) { in Cube()
107 mIndex[i] *= 3; in Cube()
/frameworks/native/libs/input/
DVelocityTracker.cpp374 mIndex = 0; in clear()
379 BitSet32 remainingIdBits(mMovements[mIndex].idBits.value & ~idBits.value); in clearPointers()
380 mMovements[mIndex].idBits = remainingIdBits; in clearPointers()
385 if (mMovements[mIndex].eventTime != eventTime) { in addMovement()
392 mIndex++; in addMovement()
394 if (mIndex == HISTORY_SIZE) { in addMovement()
395 mIndex = 0; in addMovement()
398 Movement& movement = mMovements[mIndex]; in addMovement()
636 uint32_t index = mIndex; in getEstimator()
637 const Movement& newestMovement = mMovements[mIndex]; in getEstimator()
[all …]

12345