Home
last modified time | relevance | path

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

1234

/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()
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()
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()
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/support/v17/leanback/src/android/support/v17/leanback/widget/
DMultiActionsProvider.java40 private int mIndex; field in MultiActionsProvider.MultiAction
45 mIndex = 0; in MultiAction()
55 if (mIndex > drawables.length - 1) { in setDrawables()
56 mIndex = drawables.length - 1; in setDrawables()
75 setIndex(mIndex < (mDrawables.length - 1) ? (mIndex + 1) : 0); in incrementIndex()
83 mIndex = index;
91 return mIndex;
98 return mDrawables[mIndex];
/frameworks/base/include/androidfw/
DTypeWrappers.h32 mIndex = rhs.mIndex;
36 return mTypeVariant == rhs.mTypeVariant && mIndex == rhs.mIndex;
40 return mTypeVariant != rhs.mTypeVariant || mIndex != rhs.mIndex;
44 uint32_t prevIndex = mIndex;
54 return mIndex; in index()
63 : mTypeVariant(tv), mIndex(index) {} in iterator()
65 uint32_t mIndex; member
/frameworks/base/libs/androidfw/
DTypeWrappers.cpp22 mIndex++; in operator ++()
23 if (mIndex > dtohl(mTypeVariant->data->entryCount)) { in operator ++()
24 mIndex = dtohl(mTypeVariant->data->entryCount); in operator ++()
32 if (mIndex >= entryCount) { in operator *()
45 const uint32_t entryOffset = dtohl(entryIndices[mIndex]); in operator *()
51 ALOGE("Index %u points to entry with unaligned offset 0x%08x", mIndex, entryOffset); in operator *()
58 ALOGE("Entry offset at index %u points outside the Type's boundaries", mIndex); in operator *()
61 ALOGE("Entry at index %u extends beyond Type's boundaries", mIndex); in operator *()
64 ALOGE("Entry at index %u is too small (%u)", mIndex, dtohs(entry->size)); in operator *()
/frameworks/base/libs/hwui/tests/unit/
DFrameBuilderTests.cpp80 int getIndex() { return mIndex; } in MAP_MERGEABLE_OPS()
83 int mIndex = 0; member in android::uirenderer::TestRendererBase
115 EXPECT_EQ(0, mIndex++); in RENDERTHREAD_TEST()
120 EXPECT_EQ(1, mIndex++); in RENDERTHREAD_TEST()
123 EXPECT_EQ(2, mIndex++); in RENDERTHREAD_TEST()
126 EXPECT_EQ(3, mIndex++); in RENDERTHREAD_TEST()
149 EXPECT_EQ(0, mIndex++); in RENDERTHREAD_TEST()
194 EXPECT_TRUE(mIndex++ >= LOOPS) << "Bitmaps should be above all rects"; in RENDERTHREAD_TEST()
197 EXPECT_TRUE(mIndex++ < LOOPS) << "Rects should be below all bitmaps"; in RENDERTHREAD_TEST()
230 EXPECT_EQ(0, mIndex++); in RENDERTHREAD_TEST()
[all …]
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DGains.cpp203 int nbSteps = 1 + curve[Volume::VOLMAX].mIndex - curve[Volume::VOLMIN].mIndex; in volIndexToDb()
208 if (volIdx < curve[Volume::VOLMIN].mIndex) { // out of bounds in volIndexToDb()
210 } else if (volIdx < curve[Volume::VOLKNEE1].mIndex) { in volIndexToDb()
212 } else if (volIdx < curve[Volume::VOLKNEE2].mIndex) { in volIndexToDb()
214 } else if (volIdx <= curve[Volume::VOLMAX].mIndex) { in volIndexToDb()
222 ((float)(volIdx - curve[segment].mIndex)) * in volIndexToDb()
225 ((float)(curve[segment+1].mIndex - in volIndexToDb()
226 curve[segment].mIndex)) ); in volIndexToDb()
229 curve[segment].mIndex, volIdx, in volIndexToDb()
230 curve[segment+1].mIndex, in volIndexToDb()
DVolumeCurve.cpp31 int nbSteps = 1 + mCurvePoints[nbCurvePoints - 1].mIndex - mCurvePoints[0].mIndex; in volIndexToDb()
40 if (indexInUiPosition != mCurvePoints[0].mIndex) { in volIndexToDb()
47 ((float)(volIdx - mCurvePoints[indexInUiPosition - 1].mIndex)) * in volIndexToDb()
50 ((float)(mCurvePoints[indexInUiPosition].mIndex - in volIndexToDb()
51 mCurvePoints[indexInUiPosition - 1].mIndex)) ); in volIndexToDb()
55 mCurvePoints[indexInUiPosition - 1].mIndex, volIdx, in volIndexToDb()
56 mCurvePoints[indexInUiPosition].mIndex, in volIndexToDb()
72 mCurvePoints[i].mIndex, mCurvePoints[i].mAttenuationInMb); in dump()
/frameworks/base/core/java/android/util/
DMapCollections.java40 int mIndex; field in MapCollections.ArrayIterator
50 return mIndex < mSize; in hasNext()
55 Object res = colGetEntry(mIndex, mOffset); in next()
56 mIndex++; in next()
66 mIndex--; in remove()
69 colRemoveAt(mIndex); in remove()
75 int mIndex; field in MapCollections.MapIterator
80 mIndex = -1; in MapIterator()
85 return mIndex < mEnd; in hasNext()
90 mIndex++; in next()
[all …]
DFastImmutableArraySet.java45 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/support/v4/java/android/support/v4/util/
DMapCollections.java38 int mIndex; field in MapCollections.ArrayIterator
48 return mIndex < mSize; in hasNext()
53 Object res = colGetEntry(mIndex, mOffset); in next()
54 mIndex++; in next()
64 mIndex--; in remove()
67 colRemoveAt(mIndex); in remove()
73 int mIndex; field in MapCollections.MapIterator
78 mIndex = -1; in MapIterator()
83 return mIndex < mEnd; in hasNext()
88 mIndex++; in next()
[all …]
/frameworks/base/location/java/android/location/
DGpsStatus.java46 private int mIndex = 0; field in GpsStatus.SatelliteIterator
54 for (; mIndex < mSatellitesCount; ++mIndex) { in hasNext()
55 GpsSatellite satellite = mSatellites.valueAt(mIndex); in hasNext()
65 while (mIndex < mSatellitesCount) { in next()
66 GpsSatellite satellite = mSatellites.valueAt(mIndex); in next()
67 ++mIndex; in next()
/frameworks/av/media/libstagefright/
DFrameRenderTracker.cpp70 if (renderInfo->mIndex >= 0) { in updateInfoForDequeuedBuffer()
85 renderInfo->mIndex = index; in updateInfoForDequeuedBuffer()
117 if (it->mIndex < 0) { in checkFencesAndGetRenderedFrames()
163 if (it->mIndex > index) { in untrackFrame()
164 --(it->mIndex); in untrackFrame()
179 (long long)it->mMediaTimeUs, it->mIndex, (long long)it->mRenderTimeNs); in dumpRenderQueue()
180 } else if (it->mIndex < 0) { in dumpRenderQueue()
186 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/core/java/android/app/usage/
DUsageEvents.java157 private int mIndex = 0; field in UsageEvents
171 mIndex = in.readInt(); in UsageEvents()
210 return mIndex < mEventCount; in hasNextEvent()
222 if (mIndex >= mEventCount) { in getNextEvent()
228 mIndex++; in getNextEvent()
229 if (mIndex >= mEventCount) { in getNextEvent()
243 mIndex = 0; in resetToStart()
320 dest.writeInt(mIndex); in writeToParcel()
/frameworks/rs/java/tests/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()
DTriData.java32 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/
DContentValuesVerifier.java29 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/base/core/java/android/hardware/
DLegacySensorManager.java375 private int mIndex; field in LegacySensorManager.LmsFilter
378 mIndex = COUNT; in LmsFilter()
384 float v1 = mV[mIndex]; in filter()
394 mIndex++; in filter()
395 if (mIndex >= COUNT*2) in filter()
396 mIndex = COUNT; in filter()
397 mV[mIndex] = v; in filter()
398 mT[mIndex] = time; in filter()
399 mV[mIndex-COUNT] = v; in filter()
400 mT[mIndex-COUNT] = time; in filter()
[all …]
/frameworks/base/core/java/android/security/net/config/
DKeyStoreCertificateSource.java37 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/av/include/drm/
DDrmInfoRequest.h73 : mDrmInfoRequest(const_cast <DrmInfoRequest*> (drmInfoRequest)), mIndex(0) {} in KeyIterator()
86 unsigned int mIndex; variable
97 : mDrmInfoRequest(const_cast <DrmInfoRequest*> (drmInfoRequest)), mIndex(0) {} in Iterator()
110 unsigned int mIndex; variable

1234