/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastChannelManagerTest.java | 66 ArrayList<CellBroadcastChannelRange> list = channelManager.getCellBroadcastChannelRanges( in testGetCellBroadcastChannelRanges() local 69 assertEquals(12, list.get(0).mStartId); in testGetCellBroadcastChannelRanges() 70 assertEquals(12, list.get(0).mEndId); in testGetCellBroadcastChannelRanges() 71 assertEquals(AlertType.ETWS_EARTHQUAKE, list.get(0).mAlertType); in testGetCellBroadcastChannelRanges() 72 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(0).mEmergencyLevel); in testGetCellBroadcastChannelRanges() 74 assertEquals(456, list.get(1).mStartId); in testGetCellBroadcastChannelRanges() 75 assertEquals(456, list.get(1).mEndId); in testGetCellBroadcastChannelRanges() 76 assertEquals(AlertType.ETWS_TSUNAMI, list.get(1).mAlertType); in testGetCellBroadcastChannelRanges() 77 assertEquals(CellBroadcastChannelRange.LEVEL_EMERGENCY, list.get(1).mEmergencyLevel); in testGetCellBroadcastChannelRanges() 79 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 | 263 List<Integer> list = new ArrayList<>(); in getChangedCustomizedMeta() local 265 list.add(BluetoothDevice.METADATA_MANUFACTURER_NAME); in getChangedCustomizedMeta() 268 list.add(BluetoothDevice.METADATA_MODEL_NAME); in getChangedCustomizedMeta() 271 list.add(BluetoothDevice.METADATA_SOFTWARE_VERSION); in getChangedCustomizedMeta() 274 list.add(BluetoothDevice.METADATA_HARDWARE_VERSION); in getChangedCustomizedMeta() 277 list.add(BluetoothDevice.METADATA_COMPANION_APP); in getChangedCustomizedMeta() 280 list.add(BluetoothDevice.METADATA_MAIN_ICON); in getChangedCustomizedMeta() 283 list.add(BluetoothDevice.METADATA_IS_UNTETHERED_HEADSET); in getChangedCustomizedMeta() 286 list.add(BluetoothDevice.METADATA_UNTETHERED_LEFT_ICON); in getChangedCustomizedMeta() 289 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/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/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/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 NoButtonQuickSwitchTouchController(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/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/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()
|
/packages/apps/Dialer/java/com/android/contacts/common/ |
D | Collapser.java | 49 public static <T extends Collapsible<T>> void collapseList(List<T> list, Context context) { in collapseList() argument 51 int listSize = list.size(); in collapseList() 58 T iItem = list.get(i); in collapseList() 61 T jItem = list.get(j); in collapseList() 65 list.set(j, null); in collapseList() 68 list.set(i, null); in collapseList() 77 Iterator<T> itr = list.iterator(); in collapseList()
|
/packages/apps/Contacts/src/com/android/contacts/ |
D | Collapser.java | 60 public static <T extends Collapsible<T>> void collapseList(List<T> list, Context context) { in collapseList() argument 62 int listSize = list.size(); in collapseList() 69 T iItem = list.get(i); in collapseList() 72 T jItem = list.get(j); in collapseList() 76 list.set(j, null); in collapseList() 79 list.set(i, null); in collapseList() 88 Iterator<T> itr = list.iterator(); in collapseList()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/system/legal/ |
D | LegalPreferenceControllerTest.java | 98 List<ResolveInfo> list = new LinkedList(); in refreshUi_intentResolvesToActivity_isVisible() local 99 list.add(resolveInfo); in refreshUi_intentResolvesToActivity_isVisible() 102 packageManager.addResolveInfoForIntent(intent, list); in refreshUi_intentResolvesToActivity_isVisible() 124 List<ResolveInfo> list = new LinkedList(); in refreshUi_intentResolvesToActivity_updatesTitle() local 125 list.add(resolveInfo); in refreshUi_intentResolvesToActivity_updatesTitle() 128 packageManager.addResolveInfoForIntent(intent, list); in refreshUi_intentResolvesToActivity_updatesTitle() 156 List<ResolveInfo> list = new LinkedList(); in refreshUi_intentResolvesToActivity_updatesIntentToSpecificActivity() local 157 list.add(resolveInfo); in refreshUi_intentResolvesToActivity_updatesIntentToSpecificActivity() 160 packageManager.addResolveInfoForIntent(intent, list); in refreshUi_intentResolvesToActivity_updatesIntentToSpecificActivity()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowInputMethodManager.java | 53 public static void setEnabledInputMethodSubtypeList(List<InputMethodSubtype> list) { in setEnabledInputMethodSubtypeList() argument 54 sInputMethodSubtypes = list; in setEnabledInputMethodSubtypeList() 63 public static void setEnabledInputMethodList(@Nullable List<InputMethodInfo> list) { in setEnabledInputMethodList() argument 64 if (list == null || list.size() == 0) { in setEnabledInputMethodList() 70 String concatenatedInputMethodIds = createInputMethodIdString(list.stream().map( in setEnabledInputMethodList() 71 imi -> imi.getId()).collect(Collectors.toList()).toArray(new String[list.size()])); in setEnabledInputMethodList() 74 addInputMethodInfosToMap(list); in setEnabledInputMethodList()
|