/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 | 62 ArrayList<CellBroadcastChannelRange> list = CellBroadcastChannelManager.getInstance() in testGetCellBroadcastChannelRanges() local 65 assertEquals(12, list.get(0).mStartId); in testGetCellBroadcastChannelRanges() 66 assertEquals(12, list.get(0).mEndId); in testGetCellBroadcastChannelRanges() 67 assertEquals(AlertType.ETWS_EARTHQUAKE, list.get(0).mAlertType); in testGetCellBroadcastChannelRanges() 68 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(0).mEmergencyLevel); in testGetCellBroadcastChannelRanges() 70 assertEquals(456, list.get(1).mStartId); in testGetCellBroadcastChannelRanges() 71 assertEquals(456, list.get(1).mEndId); in testGetCellBroadcastChannelRanges() 72 assertEquals(AlertType.ETWS_TSUNAMI, list.get(1).mAlertType); in testGetCellBroadcastChannelRanges() 73 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(1).mEmergencyLevel); in testGetCellBroadcastChannelRanges() 75 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/apps/Bluetooth/src/com/android/bluetooth/btservice/storage/ |
D | Metadata.java | 250 List<Integer> list = new ArrayList<>(); in getChangedCustomizedMeta() local 252 list.add(BluetoothDevice.METADATA_MANUFACTURER_NAME); in getChangedCustomizedMeta() 255 list.add(BluetoothDevice.METADATA_MODEL_NAME); in getChangedCustomizedMeta() 258 list.add(BluetoothDevice.METADATA_SOFTWARE_VERSION); in getChangedCustomizedMeta() 261 list.add(BluetoothDevice.METADATA_HARDWARE_VERSION); in getChangedCustomizedMeta() 264 list.add(BluetoothDevice.METADATA_COMPANION_APP); in getChangedCustomizedMeta() 267 list.add(BluetoothDevice.METADATA_MAIN_ICON); in getChangedCustomizedMeta() 270 list.add(BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET); in getChangedCustomizedMeta() 273 list.add(BluetoothDevice.METADATA_UNTETHERED_LEFT_ICON); in getChangedCustomizedMeta() 276 list.add(BluetoothDevice.METADATA_UNTETHERED_RIGHT_ICON); in getChangedCustomizedMeta() [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/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/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/Dialer/java/com/android/voicemail/impl/mail/store/imap/ |
D | ImapList.java | 38 private ArrayList<ImapElement> list = new ArrayList<ImapElement>(); field in ImapList 44 list.add(e); in add() 58 return list.size(); in size() 87 return (index >= list.size()) ? ImapElement.NONE : list.get(index); in getElementOrNone() 115 return list.get(i); in getKeyedElementOrNull() 165 if (list != null) { in destroy() 166 for (ImapElement e : list) { in destroy() 169 list = null; in destroy() 176 return list.toString(); in toString() 195 for (int i = 0; i < list.size(); i++) { in flatten() [all …]
|
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/Car/Hvac/src/com/android/car/hvac/ui/ |
D | TemperatureBarOverlay.java | 182 List<Animator> list = new ArrayList<>(); in getExpandAnimatons() local 188 list.add(getAlphaAnimator(mIncreaseButton, false /* fade */, EXPAND_ANIMATION_TIME_MS)); in getExpandAnimatons() 189 list.add(getAlphaAnimator(mDecreaseButton, false /* fade */, EXPAND_ANIMATION_TIME_MS)); in getExpandAnimatons() 190 list.add(getAlphaAnimator(mText, false /* fade */, EXPAND_ANIMATION_TIME_MS)); in getExpandAnimatons() 191 list.add(getAlphaAnimator(mFloatingText, true /* fade */, in getExpandAnimatons() 197 list.add(widthAnimator); in getExpandAnimatons() 203 list.add(heightAnimator); in getExpandAnimatons() 209 list.add(translationYAnimator); in getExpandAnimatons() 211 animation.playTogether(list); in getExpandAnimatons() 219 List<Animator> list = new ArrayList<>(); in getCollapseAnimations() local [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/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | HistoryEvaluator.java | 53 private float weightedAverage(ArrayList<Data> list) { in weightedAverage() argument 56 int size = list.size(); in weightedAverage() 58 Data data = list.get(i); in weightedAverage() 85 private void decayValue(ArrayList<Data> list, float factor) { in decayValue() argument 86 int size = list.size(); in decayValue() 88 list.get(i).weight *= factor; in decayValue() 92 while (!list.isEmpty() && isZero(list.get(0).weight)) { in decayValue() 93 list.remove(0); in decayValue()
|
/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/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/ |
D | RecentsUiFactory.java | 145 ArrayList<TouchController> list = new ArrayList<>(); in createTouchControllers() local 146 list.add(launcher.getDragController()); in createTouchControllers() 148 list.add(new QuickSwitchTouchController(launcher)); in createTouchControllers() 149 list.add(new NavBarToHomeTouchController(launcher)); in createTouchControllers() 150 list.add(new FlingAndHoldTouchController(launcher)); in createTouchControllers() 153 list.add(new OverviewToAllAppsTouchController(launcher)); in createTouchControllers() 154 list.add(new LandscapeEdgeSwipeController(launcher)); in createTouchControllers() 156 list.add(new TransposedQuickSwitchTouchController(launcher)); in createTouchControllers() 159 list.add(new PortraitStatesTouchController(launcher, in createTouchControllers() 162 list.add(new QuickSwitchTouchController(launcher)); in createTouchControllers() [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/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/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/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/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/Launcher3/go/quickstep/src/com/android/launcher3/uioverrides/ |
D | RecentsUiFactory.java | 43 ArrayList<TouchController> list = new ArrayList<>(); in createTouchControllers() local 44 list.add(launcher.getDragController()); in createTouchControllers() 47 list.add(new LandscapeStatesTouchController(launcher)); in createTouchControllers() 48 list.add(new LandscapeEdgeSwipeController(launcher)); in createTouchControllers() 52 list.add(new PortraitStatesTouchController(launcher, allowDragToOverview)); in createTouchControllers() 57 list.add(new StatusBarTouchController(launcher)); in createTouchControllers() 59 return list.toArray(new TouchController[list.size()]); in createTouchControllers()
|
/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()
|