Home
last modified time | relevance | path

Searched refs:sectionIndex (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/android/widget/
DAlphabetIndexer.java146 public int getPositionForSection(int sectionIndex) { in getPositionForSection() argument
155 if (sectionIndex <= 0) { in getPositionForSection()
158 if (sectionIndex >= mAlphabetLength) { in getPositionForSection()
159 sectionIndex = mAlphabetLength - 1; in getPositionForSection()
169 char letter = mAlphabet.charAt(sectionIndex); in getPositionForSection()
187 if (sectionIndex > 0) { in getPositionForSection()
189 mAlphabet.charAt(sectionIndex - 1); in getPositionForSection()
DFastScroller.java994 int sectionIndex; in scrollTo() local
1000 sectionIndex = targetSection; in scrollTo()
1026 sectionIndex = targetSection; in scrollTo()
1031 sectionIndex = 0; in scrollTo()
1089 sectionIndex = -1; in scrollTo()
1092 if (mCurrentSection != sectionIndex) { in scrollTo()
1093 mCurrentSection = sectionIndex; in scrollTo()
1095 final boolean hasPreview = transitionPreviewLayout(sectionIndex); in scrollTo()
1112 private boolean transitionPreviewLayout(int sectionIndex) { in transitionPreviewLayout() argument
1115 if (sections != null && sectionIndex >= 0 && sectionIndex < sections.length) { in transitionPreviewLayout()
[all …]
DSectionIndexer.java59 int getPositionForSection(int sectionIndex); in getPositionForSection() argument
/frameworks/av/camera/
DVendorTagDescriptor.cpp119 uint32_t tag, sectionIndex; in readFromParcel() local
149 if ((res = parcel->readInt32(reinterpret_cast<int32_t*>(&sectionIndex))) != OK) { in readFromParcel()
154 maxSectionIndex = (maxSectionIndex >= sectionIndex) ? maxSectionIndex : sectionIndex; in readFromParcel()
158 mTagToSectionMap.add(tag, sectionIndex); in readFromParcel()
259 uint32_t tag, sectionIndex; in writeToParcel() local
264 sectionIndex = mTagToSectionMap.valueFor(tag); in writeToParcel()
269 if ((res = parcel->writeInt32(sectionIndex)) != OK) break; in writeToParcel()
DCameraMetadata.cpp714 size_t sectionIndex = 0; in getTagFromName() local
732 sectionIndex = i; in getTagFromName()
746 __FUNCTION__, section, sectionIndex); in getTagFromName()
757 if (sectionIndex < ANDROID_SECTION_COUNT) { in getTagFromName()
760 tagBegin = camera_metadata_section_bounds[sectionIndex][0]; in getTagFromName()
761 tagEnd = camera_metadata_section_bounds[sectionIndex][1]; in getTagFromName()
/frameworks/ex/common/tests/src/com/android/common/widget/
DCompositeCursorAdapterTest.java58 protected View newView(Context context, int sectionIndex, Cursor cursor, int position, in newView() argument
/frameworks/av/media/libstagefright/mpeg2ts/
DATSParser.cpp1318 ssize_t sectionIndex = mPSISections.indexOfKey(PID); in parsePID() local
1320 if (sectionIndex >= 0) { in parsePID()
1321 sp<PSISection> section = mPSISections.valueAt(sectionIndex); in parsePID()