/frameworks/base/core/java/android/text/ |
D | CharSequenceCharacterIterator.java | 29 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/layoutlib/bridge/src/android/view/shadow/ |
D | AmbientShadowVertexCalculator.java | 30 private final int[] mIndex; field in AmbientShadowVertexCalculator 40 mIndex = new int[(size * 3 - 2) * 3]; in AmbientShadowVertexCalculator() 76 mIndex[trShift + 0] = idxShift + 0; in generateVertex() 77 mIndex[trShift + 1] = idxShift + 1; in generateVertex() 78 mIndex[trShift + 2] = idxShift + 2; in generateVertex() 80 mIndex[trShift + 3] = idxShift + 1; in generateVertex() 81 mIndex[trShift + 4] = idxShift + 2; in generateVertex() 82 mIndex[trShift + 5] = idxShift + 3; in generateVertex() 85 mIndex[trShift - 1] = 1; in generateVertex() 86 mIndex[trShift - 2] = 0; in generateVertex() [all …]
|
/frameworks/base/obex/javax/obex/ |
D | PrivateInputStream.java | 49 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/ |
D | DrmInfoRequest.cpp | 64 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()
|
D | DrmInfo.cpp | 70 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()
|
D | DrmMetadata.cpp | 65 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()
|
D | DrmConstraints.cpp | 62 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()
|
D | DrmSupportInfo.cpp | 116 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/services/usb/java/com/android/server/usb/descriptors/ |
D | ByteStream.java | 44 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() 195 mIndex = mBytes.length; in advance() 211 if (mIndex >= numBytes) { in reverse() 213 mIndex -= numBytes; in reverse() 215 mIndex = 0; in reverse() [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | TypeWrappers.h | 32 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/libs/androidfw/ |
D | TypeWrappers.cpp | 40 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/base/cmds/statsd/src/condition/ |
D | SimpleConditionTracker.cpp | 102 initialConditionCache[mIndex] = mInitialValue; in init() 126 conditionChangedCache[mIndex] = in handleStopAll() 139 conditionCache[mIndex] = ConditionState::kFalse; in handleStopAll() 240 conditionChangedCache[mIndex] == true); in handleConditionEvent() 249 if (conditionCache[mIndex] != ConditionState::kNotEvaluated) { in evaluateCondition() 252 (long long)mConditionId, conditionCache[mIndex]); in evaluateCondition() 279 conditionChangedCache[mIndex] = false; in evaluateCondition() 283 conditionCache[mIndex] = mInitialValue; in evaluateCondition() 286 conditionCache[mIndex] = ConditionState::kTrue; in evaluateCondition() 295 conditionCache[mIndex] = mInitialValue; in evaluateCondition() [all …]
|
D | CombinationConditionTracker.cpp | 48 stack[mIndex] = true; in init() 50 Predicate_Combination combinationCondition = allConditionConfig[mIndex].combination(); in init() 101 initialConditionCache[mIndex] = in init() 105 stack[mIndex] = false; in init() 124 conditionCache[mIndex] = in isConditionMet() 134 if (nonSlicedConditionCache[mIndex] != ConditionState::kNotEvaluated) { in evaluateCondition() 153 nonSlicedConditionCache[mIndex] = mUnSlicedPartCondition; in evaluateCondition() 154 conditionChangedCache[mIndex] = nonSlicedChanged; in evaluateCondition() 163 conditionChangedCache[mIndex] = true; in evaluateCondition() 167 nonSlicedConditionCache[mIndex] = newCondition; in evaluateCondition() [all …]
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | VolumeCurve.cpp | 48 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/ |
D | LowpanChannelInfo.java | 35 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/av/media/libmedia/include/media/ |
D | IMediaSource.h | 150 IndexCache() : mIndex(0) { } in IndexCache() 172 if (mIndex == UINT64_MAX) { in insert() 174 mIndex = 1; // skip overflow condition and hope for the best in insert() 176 ++mIndex; in insert() 180 std::forward_as_tuple(mem.get()), std::forward_as_tuple(mem, mIndex)); in insert() 181 return mIndex; in insert() 189 mIndex = 0; in reset() 203 uint64_t mIndex;
|
/frameworks/base/core/java/android/util/ |
D | MapCollections.java | 40 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 …]
|
D | FastImmutableArraySet.java | 45 it.mIndex = 0; in iterator() 57 int mIndex; field in FastImmutableArraySet.FastIterator 65 return mIndex != mContents.length; in hasNext() 70 return mContents[mIndex++]; in next()
|
/frameworks/base/cmds/statsd/src/matchers/ |
D | CombinationLogMatchingTracker.cpp | 46 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/base/location/java/android/location/ |
D | GpsStatus.java | 45 private int mIndex = 0; field in GpsStatus.SatelliteIterator 53 for (; mIndex < mSatellitesCount; ++mIndex) { in hasNext() 54 GpsSatellite satellite = mSatellites.valueAt(mIndex); in hasNext() 64 while (mIndex < mSatellitesCount) { in next() 65 GpsSatellite satellite = mSatellites.valueAt(mIndex); in next() 66 ++mIndex; in next()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | VibratorInputMapper.cpp | 61 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/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | TestCertificateSource.java | 29 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/av/media/libstagefright/ |
D | FrameRenderTracker.cpp | 70 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/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Cube.java | 53 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/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | ContentValuesVerifier.java | 29 private int mIndex; field in ContentValuesVerifier 46 AndroidTestCase.assertTrue(mIndex < mContentValuesVerifierElemList.size()); in onEntryCreated() 47 mContentValuesVerifierElemList.get(mIndex).onEntryCreated(entry); in onEntryCreated() 48 mIndex++; in onEntryCreated()
|