/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | XmpUtil.java | 61 // Jpeg file is composed of many sections and image data. This class is used 106 List<Section> sections = parse(is, true); 107 if (sections == null) { 111 for (Section section : sections) { 153 List<Section> sections = null; 155 sections = parse(new FileInputStream(filename), false); 156 sections = insertXMPSection(sections, meta); 157 if (sections == null) { 168 writeJpegFile(os, sections); 215 writeJpegFile(OutputStream os, List<Section> sections) argument 234 insertXMPSection( List<Section> sections, XMPMeta meta) argument [all...] |
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
H A D | ContactSectionIndexer.java | 31 * Indexes contact alphabetical sections so we can report to the fast scrolling list view 65 // Perform a binary search on the starting positions of the sections to the find the 102 final String[] sections = cursorExtras.getStringArray( 105 if (sections == null || counts == null) { 109 if (sections.length != counts.length) { 113 this.mSections = sections; 134 final ArrayList<String> sections = new ArrayList<String>(); 147 final int lastIndex = sections.size() - 1; 148 final String currentSection = lastIndex >= 0 ? sections.get(lastIndex) : null; 150 sections [all...] |
/packages/apps/Contacts/tests/src/com/android/contacts/group/ |
H A D | GroupUtilTest.java | 51 final String[] sections = new String[]{"…", "A", "I", "T", "W", "Y", "Z", "#"}; 55 final ContactsSectionIndexer indexer = new ContactsSectionIndexer(sections, counts); 57 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); 63 MoreAsserts.assertEquals("Wrong sections!", newSections, bundle.getStringArray(Contacts 73 final String[] sections = new String[]{"A", "B", "C", "D", "E", "F", "G", "H", "J", 103 final ContactsSectionIndexer indexer = new ContactsSectionIndexer(sections, counts); 105 GroupUtil.updateBundle(bundle, indexer, subscriptsList, sections, counts); 112 MoreAsserts.assertEquals("Wrong sections!", newSections, bundle.getStringArray(Contacts
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/fragments/ |
H A D | ContactEntryAdapter.java | 78 ContactEntryAdapter(Context context, ArrayList<ArrayList<E>> sections, boolean separators) { argument 81 mSections = sections; 88 * @param sections the section data 90 public final void setSections(ArrayList<ArrayList<E>> sections, boolean separators) { argument 91 mSections = sections; 99 * @param sections the section data 103 public final int setSections(ArrayList<ArrayList<E>> sections, E entry) { argument 104 mSections = sections; 175 * @param sections the list of sections 179 getEntry(ArrayList<ArrayList<T>> sections, int position, boolean separators) argument 203 countEntries(ArrayList<ArrayList<T>> sections, boolean separators) argument [all...] |
H A D | ContactFragment.java | 169 // Build the list of sections. The order they're added to mSections dictates the 292 // Collapse similar data items in select sections. 659 ViewAdapter(Context context, ArrayList<ArrayList<ViewEntry>> sections) { argument 660 super(context, sections, SHOW_SEPARATORS);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ContactsSectionIndexer.java | 39 * @param sections a non-null array 40 * @param counts a non-null array of the same size as <code>sections</code> 42 public ContactsSectionIndexer(String[] sections, int[] counts) { argument 43 if (sections == null || counts == null) { 47 if (sections.length != counts.length) { 49 "The sections and counts arrays must have the same length"); 52 // TODO process sections/counts based on current locale and/or specific section titles 54 this.mSections = sections; 58 // Enforce that there will be no null or empty sections.
|
H A D | GroupMemberPickerFragment.java | 89 final String sections[] = bundle.getStringArray(Contacts 92 final ContactsSectionIndexer indexer = (sections == null || counts == null) 93 ? null : new ContactsSectionIndexer(sections, counts); 106 GroupUtil.updateBundle(bundle, indexer, indicesToFilter, sections, counts);
|
H A D | ContactEntryListAdapter.java | 500 String sections[] = 507 String allSections[] = new String[sections.length + 1]; 509 for (int i = 0; i < sections.length; i++) { 510 allSections[i + 1] = sections[i]; 517 setIndexer(new ContactsSectionIndexer(sections, counts));
|
/packages/apps/Dialer/java/com/android/contacts/common/list/ |
H A D | ContactsSectionIndexer.java | 36 * @param sections a non-null array 37 * @param counts a non-null array of the same size as <code>sections</code> 39 public ContactsSectionIndexer(String[] sections, int[] counts) { argument 40 if (sections == null || counts == null) { 44 if (sections.length != counts.length) { 46 "The sections and counts arrays must have the same length"); 49 // TODO process sections/counts based on current locale and/or specific section titles 51 this.mSections = sections;
|
H A D | ContactEntryListAdapter.java | 481 String[] sections = bundle.getStringArray(Contacts.EXTRA_ADDRESS_BOOK_INDEX_TITLES); 486 String[] allSections = new String[sections.length + 1]; 488 for (int i = 0; i < sections.length; i++) { 489 allSections[i + 1] = sections[i]; 496 setIndexer(new ContactsSectionIndexer(sections, counts));
|
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | SectionedAlbumDataAdapter.java | 41 private int[] sections; field in class:SectionedAlbumDataAdapter 81 sections = new int[numSections]; 89 sections[numSections] = i; 94 for (int i = 0; i < sections.length; i++) { 95 sections[i] += i; 96 if (DEBUG) Log.i(TAG, i + ": " + sections[i]); 125 return mAlbumData.getCount() + sections.length; 201 return (Arrays.binarySearch(sections, position) >= 0); 205 int offset = Arrays.binarySearch(sections, position);
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
H A D | CitySelectionActivity.java | 426 // Make an educated guess at the expected number of sections. 428 final List<String> sections = new ArrayList<>(approximateSectionCount); 433 sections.add("+"); 446 sections.add(city.getIndexString()); 450 sections.add(Utils.getGMTHourOffset(timezone, Utils.isPreL())); 457 mSectionHeaders = sections.toArray(new String[sections.size()]);
|
/packages/apps/Contacts/src/com/android/contacts/group/ |
H A D | GroupUtil.java | 252 List<Integer> subscripts, String[] sections, int[] counts) { 258 sections[filteredContact] = ""; 262 final String[] newSections = clearEmptyString(sections); 251 updateBundle(Bundle bundle, ContactsSectionIndexer indexer, List<Integer> subscripts, String[] sections, int[] counts) argument
|
H A D | GroupMembersFragment.java | 117 final String sections[] = bundle.getStringArray(Contacts 120 final ContactsSectionIndexer indexer = (sections == null || counts == null) 121 ? null : new ContactsSectionIndexer(sections, counts); 136 GroupUtil.updateBundle(bundle, indexer, indicesToFilter, sections, counts);
|
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | ManageApplications.java | 1161 // Rebuild sections 1177 ArrayList<SectionInfo> sections = new ArrayList<>(); 1187 sections.add(new SectionInfo(mIndex.getBucket(secId).getLabel(), pos)); 1189 mPositionToSectionIndex[pos] = sections.size() - 1; 1191 mSections = sections.toArray(EMPTY_SECTIONS);
|