/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
D | ImapListTest.java | 37 ImapList list = new ImapList(); in testBasics() local 39 assertTrue(list.isList()); in testBasics() 40 assertFalse(list.isString()); in testBasics() 42 assertTrue(list.isEmpty()); in testBasics() 43 assertEquals(0, list.size()); in testBasics() 45 list.add(STRING_1); in testBasics() 46 assertFalse(list.isEmpty()); in testBasics() 47 assertEquals(1, list.size()); in testBasics() 49 list.add(STRING_2); in testBasics() 50 assertEquals(2, list.size()); in testBasics() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | GlobalSearchSupport.java | 99 ArrayList<Object> list = new ArrayList<Object>(); in asList() local 101 list.add(contactId); // _id in asList() 102 list.add(text1); // text1 in asList() 103 list.add(text2); // text2 in asList() 104 list.add(icon1); // icon1 in asList() 105 list.add(icon2); // icon2 in asList() 106 list.add(intentData == null ? buildUri() : intentData); // intent data in asList() 107 list.add(intentAction); // intentAction in asList() 108 list.add(lookupKey); // shortcut id in asList() 109 list.add(filter); // extra data in asList() [all …]
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
D | RawContactModifierTests.java | 190 protected void assertContains(List<?> list, Object object) { in assertContains() argument 191 assertTrue("Missing expected value", list.contains(object)); in assertContains() 197 protected void assertNotContains(List<?> list, Object object) { in assertNotContains() argument 198 assertFalse("Contained unexpected value", list.contains(object)); in assertNotContains() 797 List<ValuesDelta> list = newState.getMimeEntries(StructuredName.CONTENT_ITEM_TYPE); in testMigrateWithDisplayNameFromGoogleToExchange1() local 798 assertEquals(1, list.size()); in testMigrateWithDisplayNameFromGoogleToExchange1() 800 ContentValues output = list.get(0).getAfter(); in testMigrateWithDisplayNameFromGoogleToExchange1() 841 List<ValuesDelta> list = newState.getMimeEntries(StructuredName.CONTENT_ITEM_TYPE); in testMigrateWithDisplayNameFromGoogleToExchange2() local 842 assertEquals(1, list.size()); in testMigrateWithDisplayNameFromGoogleToExchange2() 844 ContentValues outputValues = list.get(0).getAfter(); in testMigrateWithDisplayNameFromGoogleToExchange2() [all …]
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
D | KanaConverter.java | 518 List<WnnWord> list = mAddCandidateList; in createPseudoCandidateList() local 520 list.clear(); in createPseudoCandidateList() 522 return list; in createPseudoCandidateList() 527 list.add(new WnnWord(inputHiragana, inputHiragana)); in createPseudoCandidateList() 529 list.add(new WnnWord(mStringBuff.toString(), inputHiragana, mPosDefault)); in createPseudoCandidateList() 532 list.add(new WnnWord(mStringBuff.toString(), inputHiragana, mPosDefault)); in createPseudoCandidateList() 545 list.add(new WnnWord(convHanSuuji, inputHiragana, mPosNumber)); in createPseudoCandidateList() 547 list.add(new WnnWord(convNumComma, inputHiragana, mPosNumber)); in createPseudoCandidateList() 553 list.add(new WnnWord(mStringBuff.toString(), inputHiragana, mPosNumber)); in createPseudoCandidateList() 560 list.add(new WnnWord(convHanEijiLower, inputHiragana, mPosSymbol)); in createPseudoCandidateList() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapMessageListing.java | 35 private List<BluetoothMapMessageListingElement> list; field in BluetoothMapMessageListing 38 list = new ArrayList<BluetoothMapMessageListingElement>(); in BluetoothMapMessageListing() 41 list.add(element); in add() 54 if(list != null) in getCount() 56 return list.size(); in getCount() 76 return list; in getList() 97 for (BluetoothMapMessageListingElement element : list) { in encode() 113 Collections.sort(list); in sort() 117 count = Math.min(count, list.size() - offset); in segment() 119 list = list.subList(offset, offset + count); in segment() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
D | BitmapCache.java | 145 ArrayList<WeakReference<Bitmap>> list = mBitmapCache.get(key); in cache() local 146 if (list == null) { in cache() 147 list = new ArrayList<WeakReference<Bitmap>>(); in cache() 148 mBitmapCache.put(key, list); in cache() 151 while (i < list.size()) { in cache() 152 if (list.get(i).get() == null) { in cache() 153 list.remove(i); in cache() 158 for (i = 0; i < list.size(); i++) { in cache() 159 if (list.get(i).get() == null) { in cache() 160 list.remove(i); in cache() [all …]
|
/packages/apps/Music/src/com/android/music/ |
D | MusicUtils.java | 314 long [] list = new long[len]; in getSongListForCursor() local 323 list[i] = cursor.getLong(colidx); in getSongListForCursor() 326 return list; in getSongListForCursor() 338 long [] list = getSongListForCursor(cursor); in getSongListForArtist() local 340 return list; in getSongListForArtist() 353 long [] list = getSongListForCursor(cursor); in getSongListForAlbum() local 355 return list; in getSongListForAlbum() 366 long [] list = getSongListForCursor(cursor); in getSongListForPlaylist() local 368 return list; in getSongListForPlaylist() 374 long [] list = getSongListForPlaylist(context, plid); in playPlaylist() local [all …]
|
D | MediaPlaybackService.java | 846 private void addToPlayList(long [] list, int position) { in addToPlayList() argument 847 int addlen = list.length; in addToPlayList() 865 mPlayList[position + i] = list[i]; in addToPlayList() 884 public void enqueue(long [] list, int action) { in enqueue() argument 887 addToPlayList(list, mPlayPos + 1); in enqueue() 891 addToPlayList(list, Integer.MAX_VALUE); in enqueue() 894 mPlayPos = mPlayListLen - list.length; in enqueue() 917 public void open(long [] list, int position) { in open() argument 923 int listlength = list.length; in open() 929 if (list[i] != mPlayList[i]) { in open() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ContentCacheTests.java | 92 TokenList list = new TokenList("Name"); in testTokenList() local 95 CacheToken token1a = list.add("1"); in testTokenList() 98 assertEquals(1, list.size()); in testTokenList() 99 CacheToken token1b = list.add("1"); in testTokenList() 103 assertEquals(2, list.size()); in testTokenList() 106 CacheToken token2 = list.add("2"); in testTokenList() 108 assertEquals(3, list.size()); in testTokenList() 111 assertEquals(2, list.invalidateTokens("1")); in testTokenList() 117 assertEquals(1, list.size()); in testTokenList() 118 assertEquals(token2, list.get(0)); in testTokenList() [all …]
|
/packages/apps/Mms/src/com/android/mms/data/ |
D | ContactList.java | 18 ContactList list = new ContactList(); in getByNumbers() local 21 list.add(Contact.get(number, canBlock)); in getByNumbers() 24 return list; in getByNumbers() 30 ContactList list = new ContactList(); in getByNumbers() local 37 list.add(contact); in getByNumbers() 40 return list; in getByNumbers() 51 ContactList list = new ContactList(); in blockingGetByUris() local 57 list.add(contact); in blockingGetByUris() 62 list.addAll(contacts); in blockingGetByUris() 65 return list; in blockingGetByUris() [all …]
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | RecurrenceSetTest.java | 113 List<ICalendar.Property> list = component.getProperties("DTSTART"); in testRRULEfolding() local 114 assertTrue(list.size() == 1); in testRRULEfolding() 115 assertEquals("19700101T000000Z", list.get(0).getValue()); in testRRULEfolding() 117 list = component.getProperties("RRULE"); in testRRULEfolding() 118 assertTrue(list.size() == 1); in testRRULEfolding() 119 assertEquals(RRULE_LESS_THAN_75_CHARS,list.get(0).getValue()); in testRRULEfolding() 130 list = component.getProperties("RRULE"); in testRRULEfolding() 131 assertTrue(list.size() == 1); in testRRULEfolding() 132 assertEquals(RRULE_MORE_THAN_75_CHARS_FOLDED, list.get(0).getValue()); in testRRULEfolding() 143 list = component.getProperties("RRULE"); in testRRULEfolding() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/ |
D | RecycleBitmapPool.java | 94 ArrayList<SoftReference<Bitmap>> list = mRecycled8888.get(key); in addRecycledBitmap() local 95 if (list == null) { in addRecycledBitmap() 96 list = new ArrayList<SoftReference<Bitmap>>(); in addRecycledBitmap() 97 mRecycled8888.put(key, list); in addRecycledBitmap() 99 list.add(new SoftReference<Bitmap>(bitmap)); in addRecycledBitmap() 101 Log.d(TAG, list.size() + " add bitmap " + bitmap.getWidth() + " " in addRecycledBitmap() 137 private static Bitmap getRecycledBitmap(ArrayList<SoftReference<Bitmap>> list) { in getRecycledBitmap() argument 138 if (list != null && !list.isEmpty()) { in getRecycledBitmap() 139 while (!list.isEmpty()) { in getRecycledBitmap() 140 SoftReference<Bitmap> ref = list.remove(list.size() - 1); in getRecycledBitmap()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | ImageListUber.java | 65 IImageList list = mSubList[i]; in ImageListUber() local 66 MergeSlot slot = new MergeSlot(list, i); in ImageListUber() 73 for (IImageList list : mSubList) { in getBucketIds() 74 hashMap.putAll(list.getBucketIds()); in getBucketIds() 189 IImageList list = image.getContainer(); in removeImage() local 190 if (list != null && list.removeImage(image)) { in removeImage() 208 IImageList list = image.getContainer(); in getImageIndex() local 209 int listIndex = Util.indexOf(mSubList, list); in getImageIndex() 213 int listOffset = list.getImageIndex(image); in getImageIndex() 277 public MergeSlot(IImageList list, int index) { in MergeSlot() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
D | WifiSettingsForSetupWizard.java | 62 final ListView list = (ListView) view.findViewById(android.R.id.list); in onCreateView() local 65 final View header = inflater.inflate(R.layout.setup_wizard_header, list, false); in onCreateView() 66 list.addHeaderView(header, null, false); in onCreateView() 69 mAddOtherNetworkItem = inflater.inflate(R.layout.setup_wifi_add_network, list, false); in onCreateView() 70 list.addFooterView(mAddOtherNetworkItem, null, true); in onCreateView() 166 final ListView list = getListView(); in updateFooter() local 168 list.removeFooterView(mAddOtherNetworkItem); in updateFooter() 169 list.addFooterView(mEmptyFooter, null, false); in updateFooter() 171 list.removeFooterView(mEmptyFooter); in updateFooter() 172 list.addFooterView(mAddOtherNetworkItem, null, true); in updateFooter()
|
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/ |
D | ImapUtility.java | 68 ArrayList<String> list = new ArrayList<String>(); in getImapSequenceValues() local 76 list.add(item); in getImapSequenceValues() 83 list.add(rangeItem); in getImapSequenceValues() 88 String[] stringList = new String[list.size()]; in getImapSequenceValues() 89 return list.toArray(stringList); in getImapSequenceValues() 102 ArrayList<String> list = new ArrayList<String>(); in getImapRangeValues() local 111 list.add(Integer.toString(i)); in getImapRangeValues() 115 list.add(Integer.toString(i)); in getImapRangeValues() 123 String[] stringList = new String[list.size()]; in getImapRangeValues() 124 return list.toArray(stringList); in getImapRangeValues()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ContactSelectionActivity.java | 48 import com.android.contacts.common.list.ContactEntryListFragment; 49 import com.android.contacts.list.ContactPickerFragment; 50 import com.android.contacts.list.ContactsIntentResolver; 51 import com.android.contacts.list.ContactsRequest; 52 import com.android.contacts.common.list.DirectoryListLoader; 53 import com.android.contacts.list.EmailAddressPickerFragment; 54 import com.android.contacts.list.JoinContactListFragment; 55 import com.android.contacts.list.LegacyPhoneNumberPickerFragment; 56 import com.android.contacts.list.OnContactPickerActionListener; 57 import com.android.contacts.list.OnEmailAddressPickerActionListener; [all …]
|
D | PeopleActivity.java | 59 import com.android.contacts.common.list.ContactEntryListFragment; 60 import com.android.contacts.common.list.ContactListFilter; 61 import com.android.contacts.common.list.ContactListFilterController; 62 import com.android.contacts.common.list.ContactTileAdapter.DisplayType; 63 import com.android.contacts.list.ContactTileListFragment; 64 import com.android.contacts.list.ContactsIntentResolver; 65 import com.android.contacts.list.ContactsRequest; 66 import com.android.contacts.list.ContactsUnavailableFragment; 67 import com.android.contacts.list.DefaultContactBrowseListFragment; 68 import com.android.contacts.common.list.DirectoryListLoader; [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | InputsActivity.java | 289 ArrayList list = externalInputs.get(state); 290 if (list == null) { 291 list = new ArrayList<Pair<String, TvInputInfo>>(); 292 externalInputs.put(state, list); 296 list.add(Pair.create(info.loadLabel(this).toString(), info)); 300 for (ArrayList<Pair<String, TvInputInfo>> list : externalInputs.values()) { 301 Collections.sort(list, new Comparator<Pair<String, TvInputInfo>>() { 311 ArrayList<Pair<String, TvInputInfo>> list = externalInputs.get(state.getKey()); 312 if (list != null && list.size() > 0) { 313 String header = mRes.getQuantityString(state.getValue(), list.size()); [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | AppsCustomizePagedView.java | 1417 public void setApps(ArrayList<AppInfo> list) { in setApps() argument 1419 mApps = list; in setApps() 1424 private void addAppsWithoutInvalidate(ArrayList<AppInfo> list) { in addAppsWithoutInvalidate() argument 1426 int count = list.size(); in addAppsWithoutInvalidate() 1428 AppInfo info = list.get(i); in addAppsWithoutInvalidate() 1435 public void addApps(ArrayList<AppInfo> list) { in addApps() argument 1437 addAppsWithoutInvalidate(list); in addApps() 1441 private int findAppByComponent(List<AppInfo> list, AppInfo item) { in findAppByComponent() argument 1443 int length = list.size(); in findAppByComponent() 1445 AppInfo info = list.get(i); in findAppByComponent() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | JsonUtils.java | 40 final ArrayList<Object> list = new ArrayList<>(); in jsonStrToList() local 49 list.add(reader.nextInt()); in jsonStrToList() 51 list.add(reader.nextString()); in jsonStrToList() 60 return list; in jsonStrToList() 68 public static String listToJsonStr(final List<Object> list) { in listToJsonStr() argument 69 if (list == null || list.isEmpty()) { in listToJsonStr() 76 for (final Object o : list) { in listToJsonStr()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | DefaultContactBrowseListFragment.java | 16 package com.android.contacts.list; 36 import com.android.contacts.common.list.ContactListAdapter; 37 import com.android.contacts.common.list.ContactListFilter; 38 import com.android.contacts.common.list.ContactListFilterController; 39 import com.android.contacts.common.list.ContactListItemView; 40 import com.android.contacts.common.list.DefaultContactListAdapter; 41 import com.android.contacts.common.list.ProfileAndContactsLoader; 239 ListView list = getListView(); in addEmptyUserProfileHeader() local 246 list.addHeaderView(mProfileHeaderContainer, null, false); in addEmptyUserProfileHeader()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | MediaSet.java | 124 ArrayList<MediaItem> list = getMediaItem( in getIndexOfItem() local 126 int index = getIndexOf(path, list); in getIndexOfItem() 131 list = getMediaItem(start, MEDIAITEM_BATCH_FETCH_COUNT); in getIndexOfItem() 133 index = getIndexOf(path, list); in getIndexOfItem() 135 if (list.size() < MEDIAITEM_BATCH_FETCH_COUNT) return INDEX_NOT_FOUND; in getIndexOfItem() 137 list = getMediaItem(start, MEDIAITEM_BATCH_FETCH_COUNT); in getIndexOfItem() 141 protected int getIndexOf(Path path, ArrayList<MediaItem> list) { in getIndexOf() argument 142 for (int i = 0, n = list.size(); i < n; ++i) { in getIndexOf() 144 MediaObject item = list.get(i); in getIndexOf()
|
/packages/apps/Settings/src/com/android/settings/quicklaunch/ |
D | BookmarkPicker.java | 194 private void fillResolveList(List<ResolveInfo> list) { in fillResolveList() argument 197 list.clear(); in fillResolveList() 200 list.addAll(pm.queryIntentActivities(sLaunchIntent, 0)); in fillResolveList() 202 list.addAll(pm.queryIntentActivities(sShortcutIntent, 0)); in fillResolveList() 206 private SimpleAdapter createResolveAdapter(List<Map<String, ?>> list) { in createResolveAdapter() argument 207 SimpleAdapter adapter = new SimpleAdapter(this, list, in createResolveAdapter() 213 private void fillAdapterList(List<Map<String, ?>> list, in fillAdapterList() argument 215 list.clear(); in fillAdapterList() 228 list.add(map); in fillAdapterList()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | AppsCustomizePagedView.java | 1543 public void setApps(ArrayList<ApplicationInfo> list) { 1544 mApps = list; 1549 private void addAppsWithoutInvalidate(ArrayList<ApplicationInfo> list) { 1551 int count = list.size(); 1553 ApplicationInfo info = list.get(i); 1560 public void addApps(ArrayList<ApplicationInfo> list) { 1561 addAppsWithoutInvalidate(list); 1564 private int findAppByComponent(List<ApplicationInfo> list, ApplicationInfo item) { 1566 int length = list.size(); 1568 ApplicationInfo info = list.get(i); [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | SuggestedWordsTests.java | 66 final ArrayList<SuggestedWordInfo> list = new ArrayList<>(); in testGetSuggestedWordsExcludingTypedWord() local 67 list.add(createTypedWordInfo(TYPED_WORD)); in testGetSuggestedWordsExcludingTypedWord() 69 list.add(createCorrectionWordInfo(Integer.toString(i))); in testGetSuggestedWordsExcludingTypedWord() 73 list, null /* rawSuggestions */, in testGetSuggestedWordsExcludingTypedWord() 127 final ArrayList<SuggestedWordInfo> list = new ArrayList<>(); in testGetTypedWordInfoOrNull() local 128 list.add(createTypedWordInfo(TYPED_WORD)); in testGetTypedWordInfoOrNull() 130 list.add(createCorrectionWordInfo(Integer.toString(i))); in testGetTypedWordInfoOrNull() 135 list, null /* rawSuggestions */, in testGetTypedWordInfoOrNull()
|