/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/ |
D | WireBuffer.java | 27 int mIndex = 0; field in WireBuffer 56 return mIndex; in getIndex() 64 this.mIndex = index; in setIndex() 68 mStartingIndex = mIndex; in start() 73 mStartingIndex = mIndex; in startWithSize() 75 mIndex += 4; // skip ahead for the future size in startWithSize() 79 int size = mIndex - mStartingIndex; in endWithSize() 80 int currentIndex = mIndex; in endWithSize() 81 mIndex = mStartingIndex + 1; // (type) in endWithSize() 83 mIndex = currentIndex; in endWithSize() [all …]
|
/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/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 *() 71 auto iter = std::lower_bound(entryIndices, entryIndices + entryCount, mIndex, keyCompare); in operator *() 73 || dtohs(ResTable_sparseTypeEntry{*iter}.idx) != mIndex) { in operator *() 80 entryOffset = offset_from16(entryIndices16[mIndex]); in operator *() 82 entryOffset = dtohl(entryIndices[mIndex]); in operator *() 90 ALOGE("Index %u points to entry with unaligned offset 0x%08x", mIndex, entryOffset); in operator *() 97 ALOGE("Entry offset at index %u points outside the Type's boundaries", mIndex); in operator *() [all …]
|
/frameworks/av/services/audiopolicy/engine/common/src/ |
D | VolumeCurve.cpp | 61 int nbSteps = 1 + mCurvePoints[nbCurvePoints - 1].mIndex - mCurvePoints[0].mIndex; in volIndexToDb() 72 if ((size_t)volIdx != mCurvePoints[0].mIndex) { in volIndexToDb() 79 ((float)(volIdx - mCurvePoints[indexInUiPosition - 1].mIndex)) * in volIndexToDb() 82 ((float)(mCurvePoints[indexInUiPosition].mIndex - in volIndexToDb() 83 mCurvePoints[indexInUiPosition - 1].mIndex)) ); in volIndexToDb() 86 mCurvePoints[indexInUiPosition - 1].mIndex, volIdx, in volIndexToDb() 87 mCurvePoints[indexInUiPosition].mIndex, in volIndexToDb() 101 dst->appendFormat("%*s(%3d, %5d)", spaces, "", mCurvePoints[i].mIndex, in dump()
|
/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 | 43 int mIndex; field in MapCollections.ArrayIterator 53 return mIndex < mSize; in hasNext() 59 Object res = colGetEntry(mIndex, mOffset); in next() 60 mIndex++; in next() 70 mIndex--; in remove() 73 colRemoveAt(mIndex); in remove() 79 int mIndex; field in MapCollections.MapIterator 84 mIndex = -1; in MapIterator() 89 return mIndex < mEnd; in hasNext() 95 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/native/include/input/ |
D | RingBuffer.h | 194 : mContainer(container), mIndex(index) {} in Iterator() 200 ++mIndex; 211 --mIndex; 222 mIndex += n; 238 difference_type operator-(const Iterator& other) { return mIndex - other.mIndex; } 240 bool operator==(const Iterator& rhs) const { return mIndex == rhs.mIndex; } 245 return lhs.mIndex <=> rhs.mIndex; 250 reference operator*() const { return mContainer[mIndex]; } 251 pointer operator->() const { return std::addressof(mContainer[mIndex]); } 255 size_type mIndex = 0; variable
|
/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/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/base/services/core/java/com/android/server/location/eventlog/ |
D | LocalEventLog.java | 274 private int mIndex; field in LocalEventLog.LogIterator 285 mIndex = -1; in LogIterator() 305 mCurrentTime = mLogTime + getTimeDelta(mEntries[mIndex]); in next() 306 mCurrentLogEvent = Objects.requireNonNull(mLogEvents[mIndex]); in next() 322 long nextDeltaMs = mIndex == -1 ? 0 : getTimeDelta(mEntries[mIndex]); in increment() 325 mIndex = incrementIndex(mIndex); in increment() 327 nextDeltaMs = getTimeDelta(mEntries[mIndex]); in increment() 329 } while (mCount < mLogSize && isFiller(mEntries[mIndex])); in increment()
|
/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()
|
D | TriData.java | 32 protected int[] mIndex; field in TriData 60 mIndex = Arrays.copyOf(clone.mIndex, clone.mIndex.length); in TriData() 113 mIndex = new int[3 * num_tri]; in read() 118 mIndex[k++] = Integer.parseInt(s[j]); in read()
|
/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()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | VibratorInputMapper.cpp | 56 mIndex = -1; in vibrate() 99 ALOGD("nextStep: index=%d, vibrate deviceId=%d", (int)mIndex, getDeviceId()); in nextStep() 102 mIndex += 1; in nextStep() 103 if (size_t(mIndex) >= mSequence.pattern.size()) { in nextStep() 109 mIndex = mRepeat; in nextStep() 112 const VibrationElement& element = mSequence.pattern[mIndex]; in nextStep()
|
/frameworks/base/core/java/android/security/net/config/ |
D | KeyStoreCertificateSource.java | 37 private TrustedCertificateIndex mIndex; field in KeyStoreCertificateSource 67 mIndex = localIndex; in ensureInitialized() 78 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey() 88 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); in findByIssuerAndSignature() 98 Set<java.security.cert.TrustAnchor> anchors = mIndex.findAllByIssuerAndSignature(cert); in findAllByIssuerAndSignature()
|
/frameworks/base/core/java/android/hardware/ |
D | LegacySensorManager.java | 377 private int mIndex; field in LegacySensorManager.LmsFilter 380 mIndex = COUNT; in LmsFilter() 386 float v1 = mV[mIndex]; in filter() 396 mIndex++; in filter() 397 if (mIndex >= COUNT * 2) { in filter() 398 mIndex = COUNT; in filter() 400 mV[mIndex] = v; in filter() 401 mT[mIndex] = time; in filter() 402 mV[mIndex - COUNT] = v; in filter() 403 mT[mIndex - COUNT] = time; in filter() [all …]
|