Searched refs:section (Results 1 - 17 of 17) sorted by path

/packages/apps/Contacts/src/com/android/contacts/calllog/
H A DCallLogAdapter.java403 // Keep synchronized section small.
503 final int section = c.getInt(CallLogQuery.SECTION);
505 // This might be a header: check the value of the section column in the cursor.
506 if (section == CallLogQuery.SECTION_NEW_HEADER
507 || section == CallLogQuery.SECTION_OLD_HEADER) {
512 section == CallLogQuery.SECTION_NEW_HEADER
617 /** Returns true if this is the last item of a section. */
620 final int section = c.getInt(CallLogQuery.SECTION);
624 return section != nextSection;
H A DCallLogQuery.java65 /** The index of the synthetic "section" column in the extended projection. */
69 * The name of the synthetic "section" column.
74 public static final String SECTION_NAME = "section";
75 /** The value of the "section" column for the header of the new section. */
77 /** The value of the "section" column for the items of the new section. */
79 /** The value of the "section" column for the header of the old section. */
81 /** The value of the "section" colum
[all...]
H A DCallLogQueryHandler.java76 * section.
140 /** Creates a cursor that contains a single row and maps the section to the given value. */
141 private Cursor createHeaderCursorFor(int section) { argument
145 // plus the section value.
148 section
/packages/apps/Contacts/src/com/android/contacts/editor/
H A DRawContactEditorView.java252 // Create the organization section
253 final KindSectionView section = (KindSectionView) mInflater.inflate(
255 section.setTitleVisible(false);
256 section.setEnabled(isEnabled());
257 section.setState(kind, state, false, vig);
260 if (!section.isEmpty()) {
261 mFields.addView(section);
272 organizationSectionViewContainer.addView(section);
288 // Otherwise use generic section-based editors
290 final KindSectionView section
[all...]
/packages/apps/Contacts/src/com/android/contacts/list/
H A DContactsSectionIndexer.java25 * A section indexer that is configured with precomputed section titles and
51 // TODO process sections/counts based on current locale and/or specific section titles
73 public int getPositionForSection(int section) { argument
74 if (section < 0 || section >= mSections.length) {
78 return mPositions[section];
89 * Consider this example: section positions are 0, 3, 5; the supplied
90 * position is 4. The section corresponding to position 4 starts at
106 // Since the section indexe
[all...]
H A DEmailAddressListAdapter.java149 final int section = getSectionForPosition(position);
150 if (getPositionForSection(section) == position) {
151 String title = (String)getSections()[section];
158 // move the divider for the last item in a section
159 if (getPositionForSection(section + 1) - 1 == position) {
H A DPostalAddressListAdapter.java139 final int section = getSectionForPosition(position);
140 if (getPositionForSection(section) == position) {
141 String title = (String)getSections()[section];
148 // move the divider for the last item in a section
149 if (getPositionForSection(section + 1) - 1 == position) {
/packages/apps/Contacts/src/com/android/contacts/widget/
H A DIndexerListAdapter.java25 * A list adapter that supports section indexer and a pinned header.
37 * at the beginning, middle or end of a section. It also needs to know the
38 * section header when it is at the beginning of a section. This object
63 * Creates a section header view that will be pinned at the top of the list
117 * @return relative position of the section in the indexed partition
174 int section = -1;
179 section = getSectionForPosition(offset);
183 if (section == -1) {
186 setPinnedSectionTitle(mHeader, (String)mIndexer.getSections()[section]);
[all...]
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/
H A DCallLogGroupBuilderTest.java257 /** Adds a set of calls with the given types, all from the same number, in the old section. */
264 /** Adds a call with the given number and type to the old section of the call log. */
269 /** Adds a call with the given number and type to the new section of the call log. */
275 private void addCallLogEntry(String number, int type, int section) { argument
276 if (section != CallLogQuery.SECTION_NEW_ITEM
277 && section != CallLogQuery.SECTION_OLD_ITEM) {
278 throw new IllegalArgumentException("not an item section: " + section);
285 values[CallLogQuery.SECTION] = section;
289 /** Adds the old section heade
300 addCallLogHeader(int section) argument
[all...]
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/
H A DCitiesActivity.java181 //Create section indexer and add headers to the cities list
209 public int getPositionForSection(int section) { argument
210 return (Integer) mSectionPositions[section];
/packages/apps/Music/src/com/android/music/
H A DAlbumBrowserActivity.java661 public int getPositionForSection(int section) { argument
662 return mIndexer.getPositionForSection(section);
H A DMusicPicker.java349 public int getPositionForSection(int section) { argument
352 // No cursor, the section doesn't exist so just return 0
356 return mIndexer.getPositionForSection(section);
H A DTrackBrowserActivity.java1569 public int getPositionForSection(int section) { argument
1571 return mIndexer.getPositionForSection(section);
/packages/apps/Settings/src/com/android/settings/
H A DUserDictionarySettings.java276 public int getPositionForSection(int section) { argument
277 return null == mIndexer ? 0 : mIndexer.getPositionForSection(section);
/packages/experimental/BugReportSender/src/com/android/bugreportsender/
H A DBugReportParser.java16 private static final int MAX_LINES = 1000; // just in case we miss the end of the section.
21 public static String extractSystemLogs(InputStream in, String section) throws IOException { argument
22 final String sectionWithHeader = SECTION_HEADER + " " + section;
28 // read file contents. loop until we get to the appropriate section header.
29 // once we reach that header, accumulate all lines until we get to the next section.
H A DBugReportPreviewActivity.java15 * Provides a scrolling text view previewing a named section of a
40 String section = intent.getStringExtra("section");
41 if (section == null || section.length() == 0) {
42 section = "SYSTEM LOG";
49 String text = BugReportParser.extractSystemLogs(in, section);
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/
H A DContactEntryAdapter.java86 * Resets the section data.
88 * @param sections the section data
97 * Resets the section data and returns the position of the given entry.
99 * @param sections the section data
110 ArrayList<E> section = mSections.get(i);
111 int sectionSize = section.size();
113 E e = section.get(j);
150 ArrayList<E> section = mSections.get(i);
151 int sectionSize = section.size();
153 // The section onl
[all...]

Completed in 277 milliseconds