Home
last modified time | relevance | path

Searched refs:subList (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageUtils.java175 List<SubscriptionInfo> subList = subscriptionMgr.getActiveSubscriptionInfoList(); in getDefaultSubscriptionId() local
176 if ((subList == null) || (subList.size() <= 0)) { in getDefaultSubscriptionId()
178 subList = subscriptionMgr.getAvailableSubscriptionInfoList(); in getDefaultSubscriptionId()
180 if ((subList == null) || (subList.size() <= 0)) { in getDefaultSubscriptionId()
183 return subList.get(0).getSubscriptionId(); in getDefaultSubscriptionId()
/packages/apps/Gallery/src/com/android/camera/gallery/
DImageListUber.java81 for (IImageList subList : mSubList) { in getCount()
82 count += subList.getCount(); in getCount()
88 for (IImageList subList : mSubList) { in isEmpty()
89 if (!subList.isEmpty()) return false; in isEmpty()
/packages/apps/TV/tests/unit/src/com/android/tv/recommendation/
DRecommenderTest.java186 mRecommender.recommendChannels().subList(0, 2), mChannel_1, mChannel_2); in testRecommendChannels_notIncludeRecommendedOnly_fewChannelsHaveScore()
193 mRecommender.recommendChannels(3).subList(0, 2), mChannel_1, mChannel_2); in testRecommendChannels_notIncludeRecommendedOnly_fewChannelsHaveScore()
197 mRecommender.recommendChannels(4).subList(0, 2), mChannel_1, mChannel_2); in testRecommendChannels_notIncludeRecommendedOnly_fewChannelsHaveScore()
201 mRecommender.recommendChannels(5).subList(0, 2), mChannel_1, mChannel_2); in testRecommendChannels_notIncludeRecommendedOnly_fewChannelsHaveScore()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperPickerActivity.java333 LinearLayout subList; in updateTileIndices() local
338 subList = masterWallpaperList; in updateTileIndices()
342 subList = (LinearLayout) child; in updateTileIndices()
344 subListEnd = subList.getChildCount(); in updateTileIndices()
348 WallpaperTileInfo info = (WallpaperTileInfo) subList.getChildAt(j).getTag(); in updateTileIndices()
/packages/modules/NetworkStack/tests/unit/src/com/android/net/module/util/
DTrackRecordTest.kt104 assertTrue(record.containsAll(TEST_VALUES.subList(0, TEST_VALUES.size / 2))) in <lambda>()
105 assertTrue(record.containsAll(TEST_VALUES.subList(0, TEST_VALUES.size / 2).sorted())) in <lambda>()
150 assertEquals(record.subList(3, record.size - 3), in <lambda>()
151 TEST_VALUES.subList(3, TEST_VALUES.size - 3)) in <lambda>()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DContactMatcher.java349 List<MatchScore> matches = mScoreList.subList(0, mScoreCount); in pickBestMatches()
361 return matches.subList(0, count); in pickBestMatches()
366 return mScoreList.subList(0, mScoreCount).toString(); in toString()
DRawContactMatcher.java336 List<MatchScore> matches = mScoreList.subList(0, mScoreCount); in pickBestMatches()
348 return matches.subList(0, count); in pickBestMatches()
353 return mScoreList.subList(0, mScoreCount).toString(); in toString()
/packages/providers/TvProvider/tests/src/com/android/providers/tv/
DEpgDataCleanupServiceTests.java236 new HashSet<Program>(programs.subList(5, 10)), queryPrograms()); in testClearOldPrograms()
261 new HashSet<Program>(programs.subList(5, 10)), queryWatchedPrograms()); in testClearOldWatchedPrograms()
275 new HashSet<Program>(programs.subList(5, 10)), queryWatchedPrograms()); in testClearOverflowWatchHistory()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapMessageListing.java146 mList = mList.subList(offset, offset + count); in segment()
155 mList = mList.subList(offset, mList.size()); in segment()
DBluetoothMapConvoListing.java125 mList = mList.subList(offset, offset + count); in segment()
134 mList = mList.subList(offset, mList.size()); in segment()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DChartDataUsagePreferenceTest.java71 mPreference.calcPoints(usageView, mNetworkCycleData.subList(0, 5)); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()
87 mPreference.calcPoints(usageView, mNetworkCycleData.subList(2, 7)); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
/packages/services/Telephony/src/com/android/phone/
DPhoneGlobals.java854 List<SubscriptionInfo> subList = subMgr.getActiveSubscriptionInfoList(false); in updateLimitedSimFunctionForDualSim() local
855 if (subList != null && subList.size() > 1) { in updateLimitedSimFunctionForDualSim()
858 for (SubscriptionInfo info : subList) { in updateLimitedSimFunctionForDualSim()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLocaleUtilsTest.java323 assertEquals(expectedLabelList.subList(0, numLabels), in verifyLabels()
324 resultLabels.subList(0, numLabels)); in verifyLabels()
/packages/apps/Camera2/src/com/android/camera/util/
DXmpUtil.java279 newSections.addAll(sections.subList(0, position)); in insertXMPSection()
281 newSections.addAll(sections.subList(position, sections.size())); in insertXMPSection()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DSubscriptionsPreferenceControllerTest.java195 SubscriptionUtil.setActiveSubscriptionsForTesting(subs.subList(0, 1)); in onSubscriptionsChanged_countBecameTwo_eventFired()
216 SubscriptionUtil.setActiveSubscriptionsForTesting(subs.subList(0, 1)); in onSubscriptionsChanged_countBecameOne_eventFiredAndPrefsRemoved()
229 SubscriptionUtil.setActiveSubscriptionsForTesting(subs.subList(0, 2)); in onSubscriptionsChanged_subscriptionReplaced_preferencesChanged()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DBatchingNamedTaskExecutor.java68 List<NamedTask> nextTasks = mQueuedTasks.subList(0, count); in executeNextBatch()
/packages/apps/Dialer/java/com/android/dialer/calllog/
DCallLogModule.java57 return allDataSources.subList(1, allDataSources.size()); in provideCallLogDataSources()
/packages/apps/Contacts/src/com/android/contacts/database/
DSimContactDaoImpl.java155 contacts.subList(i, Math.min(contacts.size(), i + IMPORT_MAX_BATCH_SIZE)), in importContacts()
193 contacts.subList(i, Math.min(contacts.size(), i + QUERY_MAX_BATCH_SIZE)), in findAccountsOfExistingSimContacts()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/entity/
DUiCallLog.java106 return new ArrayList<>(mCallRecords.subList(0, toIndex)); in getCallRecords()
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DPhonebookPullRequest.java74 insertOperations.subList(numberOfOperations, insertOperations.size()).clear(); in onPullComplete()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DClusterAlbum.java81 ArrayList<Path> subset = new ArrayList<Path>(paths.subList(start, end)); in getMediaItemFromPath()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DButtonChooser.java89 conflicts.addAll(potentialButtons.subList(j + 1, potentialButtons.size())); in placeButtonsInSlots()
/packages/apps/Settings/src/com/android/settings/panel/
DPanelSlicesAdapter.java94 return mSliceLiveData.subList(0, getItemCount()); in getData()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterytip/detectors/
DHighUsageDetector.java102 mHighUsageAppList = mHighUsageAppList.subList(0, in detect()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DShortcutsUpdater.java65 mgr.setDynamicShortcuts(devices.subList(0, getNumDynSlots(mgr, devices.size()))); in update()

12