/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/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastChannelManagerTest.java | 63 ArrayList<CellBroadcastChannelRange> list = CellBroadcastChannelManager.getInstance() in testGetCellBroadcastChannelRanges() local 66 assertEquals(12, list.get(0).mStartId); in testGetCellBroadcastChannelRanges() 67 assertEquals(12, list.get(0).mEndId); in testGetCellBroadcastChannelRanges() 68 assertEquals(AlertType.EARTHQUAKE, list.get(0).mAlertType); in testGetCellBroadcastChannelRanges() 69 assertTrue(list.get(0).mIsEmergency); in testGetCellBroadcastChannelRanges() 71 assertEquals(456, list.get(1).mStartId); in testGetCellBroadcastChannelRanges() 72 assertEquals(456, list.get(1).mEndId); in testGetCellBroadcastChannelRanges() 73 assertEquals(AlertType.TSUNAMI, list.get(1).mAlertType); in testGetCellBroadcastChannelRanges() 74 assertTrue(list.get(1).mIsEmergency); in testGetCellBroadcastChannelRanges() 76 assertEquals(0xAC00, list.get(2).mStartId); in testGetCellBroadcastChannelRanges() [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/Contacts/src/com/android/contacts/group/ |
D | GroupUtil.java | 34 import com.android.contacts.list.ContactsSectionIndexer; 35 import com.android.contacts.list.UiIntentActions; 180 public static String convertArrayToString(long[] list) { in convertArrayToString() argument 181 if (list == null || list.length == 0) return ""; in convertArrayToString() 182 return Arrays.toString(list).replace("[", "").replace("]", ""); in convertArrayToString() 269 final List<String> list = new ArrayList<>(); in clearEmptyString() local 272 list.add(s); in clearEmptyString() 275 return list.toArray(new String[list.size()]); in clearEmptyString() 279 final List<Integer> list = new ArrayList<>(); in clearZeros() local 282 list.add(n); in clearZeros() [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/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/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactModifierTests.java | 183 protected void assertContains(List<?> list, Object object) { in assertContains() argument 184 assertTrue("Missing expected value", list.contains(object)); in assertContains() 190 protected void assertNotContains(List<?> list, Object object) { in assertNotContains() argument 191 assertFalse("Contained unexpected value", list.contains(object)); in assertNotContains() 847 List<ValuesDelta> list = newState.getMimeEntries(StructuredName.CONTENT_ITEM_TYPE); in testMigrateNameFromGoogleToExchange() local 848 assertEquals(1, list.size()); in testMigrateNameFromGoogleToExchange() 850 ContentValues output = list.get(0).getAfter(); in testMigrateNameFromGoogleToExchange() 875 List<ValuesDelta> list = newState.getMimeEntries(StructuredPostal.CONTENT_ITEM_TYPE); in testMigratePostalFromGoogleToExchange() local 876 assertNotNull(list); in testMigratePostalFromGoogleToExchange() 877 assertEquals(1, list.size()); in testMigratePostalFromGoogleToExchange() [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/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/Music/src/com/android/music/ |
D | MusicUtils.java | 316 long[] list = new long[len]; in getSongListForCursor() local 325 list[i] = cursor.getLong(colidx); in getSongListForCursor() 328 return list; in getSongListForCursor() 339 long[] list = getSongListForCursor(cursor); in getSongListForArtist() local 341 return list; in getSongListForArtist() 354 long[] list = getSongListForCursor(cursor); in getSongListForAlbum() local 356 return list; in getSongListForAlbum() 368 long[] list = getSongListForCursor(cursor); in getSongListForPlaylist() local 370 return list; in getSongListForPlaylist() 376 long[] list = getSongListForPlaylist(context, plid); in playPlaylist() local [all …]
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/ |
D | TemperatureBarOverlay.java | 180 List<Animator> list = new ArrayList(); in getExpandAnimatons() local 186 list.add(getAlphaAnimator(mIncreaseButton, false /* fade */, EXPAND_ANIMATION_TIME_MS)); in getExpandAnimatons() 187 list.add(getAlphaAnimator(mDecreaseButton, false /* fade */, EXPAND_ANIMATION_TIME_MS)); in getExpandAnimatons() 188 list.add(getAlphaAnimator(mText, false /* fade */, EXPAND_ANIMATION_TIME_MS)); in getExpandAnimatons() 189 list.add(getAlphaAnimator(mFloatingText, true /* fade */, in getExpandAnimatons() 195 list.add(widthAnimator); in getExpandAnimatons() 201 list.add(heightAnimator); in getExpandAnimatons() 207 list.add(translationYAnimator); in getExpandAnimatons() 209 animation.playTogether(list); in getExpandAnimatons() 217 List<Animator> list = new ArrayList(); in getCollapseAnimations() local [all …]
|
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/ |
D | RecycleBitmapPool.java | 97 ArrayList<SoftReference<Bitmap>> list = mRecycled8888.get(key); in addRecycledBitmap() local 98 if (list == null) { in addRecycledBitmap() 99 list = new ArrayList<SoftReference<Bitmap>>(); in addRecycledBitmap() 100 mRecycled8888.put(key, list); in addRecycledBitmap() 102 list.add(new SoftReference<Bitmap>(bitmap)); in addRecycledBitmap() 104 Log.d(TAG, list.size() + " add bitmap " + bitmap.getWidth() + " " in addRecycledBitmap() 140 private static Bitmap getRecycledBitmap(ArrayList<SoftReference<Bitmap>> list) { in getRecycledBitmap() argument 141 if (list != null && !list.isEmpty()) { in getRecycledBitmap() 142 while (!list.isEmpty()) { in getRecycledBitmap() 143 SoftReference<Bitmap> ref = list.remove(list.size() - 1); in getRecycledBitmap()
|
/packages/apps/Contacts/src/com/android/contacts/activities/ |
D | ContactSelectionActivity.java | 43 import com.android.contacts.list.ContactEntryListFragment; 44 import com.android.contacts.list.ContactPickerFragment; 45 import com.android.contacts.list.ContactsIntentResolver; 46 import com.android.contacts.list.ContactsRequest; 47 import com.android.contacts.list.DirectoryListLoader; 48 import com.android.contacts.list.EmailAddressPickerFragment; 49 import com.android.contacts.list.GroupMemberPickerFragment; 50 import com.android.contacts.list.JoinContactListFragment; 51 import com.android.contacts.list.LegacyPhoneNumberPickerFragment; 52 import com.android.contacts.list.MultiSelectContactsListFragment; [all …]
|
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/ |
D | ImapUtility.java | 63 ArrayList<String> list = new ArrayList<String>(); in getImapSequenceValues() local 71 list.add(item); in getImapSequenceValues() 78 list.add(rangeItem); in getImapSequenceValues() 83 String[] stringList = new String[list.size()]; in getImapSequenceValues() 84 return list.toArray(stringList); in getImapSequenceValues() 98 ArrayList<String> list = new ArrayList<String>(); in getImapRangeValues() local 107 list.add(Integer.toString(i)); in getImapRangeValues() 111 list.add(Integer.toString(i)); in getImapRangeValues() 119 String[] stringList = new String[list.size()]; in getImapRangeValues() 120 return list.toArray(stringList); in getImapRangeValues()
|
/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/Settings/src/com/android/settings/applications/defaultapps/ |
D | DefaultBrowserPreferenceController.java | 109 final List<ResolveInfo> list = getCandidates(); in getOnlyAppLabel() local 110 if (list != null && list.size() == 1) { in getOnlyAppLabel() 111 final ResolveInfo info = list.get(0); in getOnlyAppLabel() 122 final List<ResolveInfo> list = getCandidates(); in getOnlyAppIcon() local 123 if (list != null && list.size() == 1) { in getOnlyAppIcon() 124 final ResolveInfo info = list.get(0); in getOnlyAppIcon() 153 final List<ResolveInfo> list = mPackageManager.queryIntentActivitiesAsUser(BROWSE_PROBE, in isBrowserDefault() local 156 return list != null && list.size() == 1; in isBrowserDefault()
|
/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/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | HistoryEvaluator.java | 54 private float weightedAverage(ArrayList<Data> list) { in weightedAverage() argument 57 int size = list.size(); in weightedAverage() 59 Data data = list.get(i); in weightedAverage() 86 private void decayValue(ArrayList<Data> list, float factor) { in decayValue() argument 87 int size = list.size(); in decayValue() 89 list.get(i).weight *= factor; in decayValue() 93 while (!list.isEmpty() && isZero(list.get(0).weight)) { in decayValue() 94 list.remove(0); in decayValue()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | VehicleZoneUtilTest.java | 93 int[] list = VehicleZoneUtil.listAllZones(zones); in testGetAllZones() local 94 assertEquals(0, list.length); in testGetAllZones() 96 list = VehicleZoneUtil.listAllZones(zones); in testGetAllZones() 97 assertEquals(32, list.length); in testGetAllZones() 99 assertEquals(0x1<<i, list[i]); in testGetAllZones() 102 list = VehicleZoneUtil.listAllZones(zones); in testGetAllZones() 103 assertEquals(2, list.length); in testGetAllZones() 104 assertEquals(0x1, list[0]); in testGetAllZones() 105 assertEquals(0x1000, list[1]); in testGetAllZones()
|
/packages/apps/Messaging/src/android/support/v7/mms/pdu/ |
D | PduHeaders.java | 561 ArrayList<EncodedStringValue> list = in getEncodedStringValues() local 563 if (null == list) { in getEncodedStringValues() 566 EncodedStringValue[] values = new EncodedStringValue[list.size()]; in getEncodedStringValues() 567 return list.toArray(values); in getEncodedStringValues() 635 ArrayList<EncodedStringValue> list = new ArrayList<EncodedStringValue>(); in setEncodedStringValues() local 637 list.add(value[i]); in setEncodedStringValues() 639 mHeaderMap.put(field, list); in setEncodedStringValues() 664 ArrayList<EncodedStringValue> list = in appendEncodedStringValue() local 666 if (null == list) { in appendEncodedStringValue() 667 list = new ArrayList<EncodedStringValue>(); in appendEncodedStringValue() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/ |
D | PduHeaders.java | 581 ArrayList<EncodedStringValue> list = in getEncodedStringValues() local 583 if (null == list) { in getEncodedStringValues() 586 EncodedStringValue[] values = new EncodedStringValue[list.size()]; in getEncodedStringValues() 587 return list.toArray(values); in getEncodedStringValues() 655 ArrayList<EncodedStringValue> list = new ArrayList<EncodedStringValue>(); in setEncodedStringValues() local 657 list.add(value[i]); in setEncodedStringValues() 659 mHeaderMap.put(field, list); in setEncodedStringValues() 684 ArrayList<EncodedStringValue> list = in appendEncodedStringValue() local 686 if (null == list) { in appendEncodedStringValue() 687 list = new ArrayList<EncodedStringValue>(); in appendEncodedStringValue() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/sqlite/ |
D | DatabaseAnalyzerTest.java | 32 final List<String> list = DatabaseAnalyzer.findTableViewsAllowingColumns( in testFindTableViewsAllowingColumns() local 35 assertTrue(list.contains("contacts")); in testFindTableViewsAllowingColumns() 36 assertTrue(list.contains("raw_contacts")); in testFindTableViewsAllowingColumns() 37 assertTrue(list.contains("view_contacts")); in testFindTableViewsAllowingColumns() 38 assertTrue(list.contains("view_raw_contacts")); in testFindTableViewsAllowingColumns() 39 assertTrue(list.contains("view_data")); in testFindTableViewsAllowingColumns() 41 assertFalse(list.contains("data")); in testFindTableViewsAllowingColumns() 42 assertFalse(list.contains("_id")); in testFindTableViewsAllowingColumns()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarServiceUtils.java | 143 public static float[] toFloatArray(List<Float> list) { in toFloatArray() argument 144 final int size = list.size(); in toFloatArray() 147 array[i] = list.get(i); in toFloatArray() 152 public static int[] toIntArray(List<Integer> list) { in toIntArray() argument 153 final int size = list.size(); in toIntArray() 156 array[i] = list.get(i); in toIntArray() 161 public static byte[] toByteArray(List<Byte> list) { in toByteArray() argument 162 final int size = list.size(); in toByteArray() 165 array[i] = list.get(i); in toByteArray()
|
/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/LegacyCamera/src/com/android/camera/ |
D | PreferenceGroup.java | 29 private ArrayList<CameraPreference> list = field in PreferenceGroup 37 list.add(child); in addChild() 41 list.remove(index); in removePreference() 45 return list.get(index); in get() 49 return list.size(); in size() 54 for (CameraPreference pref : list) { in reloadValue() 67 for (CameraPreference pref : list) { in findPreference()
|