/aosp14/frameworks/base/core/java/android/text/ |
H A D | CharSequenceCharacterIterator.java | 29 private int mIndex; field in CharSequenceCharacterIterator 43 mIndex = mBeginIndex; in first() 49 mIndex = mEndIndex; in last() 52 mIndex = mEndIndex - 1; 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() 75 mIndex--; in previous() 82 mIndex = position; in setIndex() [all …]
|
/aosp14/frameworks/base/services/usb/java/com/android/server/usb/descriptors/ |
H A 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 …]
|
/aosp14/frameworks/base/libs/androidfw/include/androidfw/ |
H A 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
|
/aosp14/frameworks/base/libs/androidfw/ |
H A 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 *() 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 *() 100 ALOGE("Entry at index %u extends beyond Type's boundaries", mIndex); in operator *() [all …]
|
/aosp14/frameworks/base/core/java/android/util/ |
H A D | MapCollections.java | 42 int mIndex; field in MapCollections.ArrayIterator 52 return mIndex < mSize; in hasNext() 59 mIndex++; in next() 69 mIndex--; in remove() 72 colRemoveAt(mIndex); in remove() 78 int mIndex; field in MapCollections.MapIterator 83 mIndex = -1; in MapIterator() 88 return mIndex < mEnd; in hasNext() 94 mIndex++; in next() 104 colRemoveAt(mIndex); in remove() [all …]
|
H A 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()
|
/aosp14/frameworks/base/location/java/android/location/ |
H A 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()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/eventlog/ |
H A 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()
|
/aosp14/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/hardware/ |
H A 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 …]
|
/aosp14/frameworks/base/core/java/android/security/net/config/ |
H A 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()
|
H A D | ResourceCertificateSource.java | 43 private TrustedCertificateIndex mIndex; field in ResourceCertificateSource 74 mIndex = indexLocal; in ensureInitialized() 88 java.security.cert.TrustAnchor anchor = mIndex.findBySubjectAndPublicKey(cert); in findBySubjectAndPublicKey() 98 java.security.cert.TrustAnchor anchor = mIndex.findByIssuerAndSignature(cert); in findByIssuerAndSignature() 108 Set<java.security.cert.TrustAnchor> anchors = mIndex.findAllByIssuerAndSignature(cert); in findAllByIssuerAndSignature()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | FragmentState.java | 27 final int mIndex; field in FragmentState 43 mIndex = frag.mIndex; in FragmentState() 56 mIndex = in.readInt(); in FragmentState() 86 mInstance.setIndex(mIndex, parent); in instantiate() 113 dest.writeInt(mIndex); in writeToParcel()
|
H A D | BackStackRecord.java | 39 final int mIndex; field in BackStackState 69 mIndex = bse.mIndex; in BackStackState() 84 mIndex = in.readInt(); in BackStackState() 126 bse.mIndex = mIndex; in instantiate() 148 dest.writeInt(mIndex); in writeToParcel() 218 int mIndex = -1; field in BackStackRecord 236 if (mIndex >= 0) { in toString() 238 sb.append(mIndex); in toString() 375 return mIndex; in getId() 686 mIndex = -1; in commitInternal() [all …]
|
/aosp14/frameworks/base/core/java/android/graphics/fonts/ |
H A D | FontFamilyUpdateRequest.java | 168 private @IntRange(from = 0) int mIndex = 0; field in FontFamilyUpdateRequest.Font.Builder 204 mIndex = index; in setIndex() 212 return new Font(mPostScriptName, mStyle, mIndex, mAxes); in build() 223 private final @IntRange(from = 0) int mIndex; field in FontFamilyUpdateRequest.Font 245 mIndex = index; in Font() 278 return mIndex; in getIndex()
|
H A D | FontUpdateRequest.java | 81 private final @IntRange(from = 0) int mIndex; field in FontUpdateRequest.Font 88 mIndex = index; in Font() 102 dest.writeInt(mIndex); in writeToParcel() 172 return mIndex; in getIndex() 184 return mIndex == font.mIndex in equals() 192 return Objects.hash(mPostScriptName, mFontStyle, mIndex, mFontVariationSettings); in hashCode() 200 + ", mIndex=" + mIndex in toString()
|
/aosp14/frameworks/base/media/java/android/media/ |
H A D | AudioGainConfig.java | 32 private final int mIndex; field in AudioGainConfig 45 mIndex = index; in AudioGainConfig() 58 return mIndex; in index()
|
H A D | AudioGain.java | 63 private final int mIndex; field in AudioGain 79 mIndex = index; in AudioGain() 161 return new AudioGainConfig(mIndex, this, mode, channelMask, values, rampDurationMs); in buildConfig()
|
/aosp14/frameworks/base/libs/protoutil/src/ |
H A D | EncodedBuffer.cpp | 35 :mIndex(0), in Pointer() 44 return mIndex * mChunkSize + mOffset; in pos() 50 return mIndex; in index() 63 mIndex += newOffset / mChunkSize; in move() 71 mIndex = 0; in rewind() 80 p.mIndex = mIndex; in copy()
|
/aosp14/frameworks/base/core/java/com/android/server/net/ |
H A D | NetlinkTracker.java | 292 private HashMap<InetAddress, DnsServerEntry> mIndex; field in DnsServerRepository 297 mIndex = new HashMap<InetAddress, DnsServerEntry>(NUM_SERVERS); in DnsServerRepository() 333 mIndex.put(address, entry); in addServers() 346 DnsServerEntry existing = mIndex.get(address); in updateExistingEntry() 362 mIndex.remove(removed.address); in updateCurrentServers()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
H A D | TextViewActions.java | 521 private final int mIndex; field in TextViewActions.HandleCoordinates 528 mIndex = index; in HandleCoordinates() 562 final int targetLine = layout.getLineForOffset(mIndex); in locateHandlePointsTextIndex() 568 (new TextCoordinates(mIndex, mPrimary)).calculateCoordinates(mTextView); in locateHandlePointsTextIndex() 604 private final int mIndex; field in TextViewActions.TextCoordinates 613 mIndex = index; in TextCoordinates() 615 mActionDescription = "Could not locate text at index: " + mIndex in TextCoordinates() 622 return locateTextAtIndex((TextView) view, mIndex, mPrimary); in calculateCoordinates()
|
/aosp14/frameworks/base/core/java/android/app/usage/ |
H A D | UsageEvents.java | 720 private int mIndex = 0; field in UsageEvents 743 mIndex = data.readInt(); in UsageEvents() 794 return mIndex < mEventCount; in hasNextEvent() 809 if (mIndex >= mEventCount) { in getNextEvent() 816 eventOut.copyFrom(mEventsToWrite.get(mIndex)); in getNextEvent() 819 mIndex++; in getNextEvent() 820 if (mIndex >= mEventCount && mParcel != null) { in getNextEvent() 834 mIndex = 0; in resetToStart() 995 data.writeInt(mIndex); in writeToParcel()
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | PreBootBroadcaster.java | 67 private int mIndex = 0; field in PreBootBroadcaster 84 if (mIndex >= mTargets.size()) { in sendNext() 98 mHandler.obtainMessage(MSG_SHOW, mTargets.size(), mIndex).sendToTarget(); in sendNext() 101 final ResolveInfo ri = mTargets.get(mIndex++); in sendNext() 107 mProgress.setProgress(mIndex, mTargets.size(), in sendNext()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
H A D | ReferenceWithHistoryTest.java | 156 actualLine.startsWith(Integer.toString(expectedLine.mIndex))); in assertDumpContent() 174 final int mIndex; field in ReferenceWithHistoryTest.DumpLine 178 mIndex = index; in DumpLine() 185 + "mIndex=" + mIndex in toString()
|
/aosp14/frameworks/base/services/core/java/com/android/server/timezonedetector/location/ |
H A D | LocationTimeZoneManagerService.java | 436 @IntRange(from = 0, to = 1) private final int mIndex; 443 mIndex = index; 450 ProviderMetricsLogger providerMetricsLogger = new RealProviderMetricsLogger(mIndex); 473 if (mIndex == 0) { 491 if (mIndex == 0) { 500 if (mIndex == 0) {
|