/packages/apps/Contacts/src/com/android/contacts/calllog/ |
H A D | CallLogQuery.java | 65 /** 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 D | CallLogQueryHandler.java | 76 * 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
|
H A D | CallLogAdapter.java | 403 // 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;
|
/packages/apps/Contacts/src/com/android/contacts/widget/ |
H A D | IndexerListAdapter.java | 25 * 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/experimental/BugReportSender/src/com/android/bugreportsender/ |
H A D | BugReportPreviewActivity.java | 15 * 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);
|
H A D | BugReportParser.java | 16 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.
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ContactsSectionIndexer.java | 25 * 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 D | PostalAddressListAdapter.java | 139 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) {
|
H A D | EmailAddressListAdapter.java | 149 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) {
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
H A D | ContactEntryAdapter.java | 86 * 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...] |
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/ |
H A D | CallLogGroupBuilderTest.java | 257 /** 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/Contacts/src/com/android/contacts/editor/ |
H A D | RawContactEditorView.java | 252 // 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/DeskClock/src/com/android/deskclock/worldclock/ |
H A D | CitiesActivity.java | 158 //Create section indexer and add headers to the cities list 186 public int getPositionForSection(int section) { argument 187 return (mSectionPositions != null) ? (Integer) mSectionPositions[section] : 0;
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | UserDictionarySettings.java | 276 public int getPositionForSection(int section) { argument 277 return null == mIndexer ? 0 : mIndexer.getPositionForSection(section);
|
/packages/apps/Music/src/com/android/music/ |
H A D | MusicPicker.java | 349 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 D | AlbumBrowserActivity.java | 661 public int getPositionForSection(int section) { argument 662 return mIndexer.getPositionForSection(section);
|
H A D | TrackBrowserActivity.java | 1569 public int getPositionForSection(int section) { argument 1571 return mIndexer.getPositionForSection(section);
|