Home
last modified time | relevance | path

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

123

/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageUtils.java168 List<SubscriptionInfo> subList = proxySubscriptionMgr.getActiveSubscriptionsInfo(); in getDefaultSubscriptionId() local
169 if ((subList == null) || (subList.size() <= 0)) { in getDefaultSubscriptionId()
171 subList = proxySubscriptionMgr.getAccessibleSubscriptionsInfo(); in getDefaultSubscriptionId()
173 if ((subList == null) || (subList.size() <= 0)) { in getDefaultSubscriptionId()
176 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/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/search/
DSimpleWidgetsSearchAlgorithmTest.java142 mCalendarHeaderEntry.mWidgets.subList(1, 2)), in filter_shouldMatchOnWidgetLabel()
146 mCalendarHeaderEntry.mWidgets.subList(1, 2)), in filter_shouldMatchOnWidgetLabel()
150 mCameraHeaderEntry.mWidgets.subList(1, 3)), in filter_shouldMatchOnWidgetLabel()
154 mCameraHeaderEntry.mWidgets.subList(1, 3))), in filter_shouldMatchOnWidgetLabel()
/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/Settings/src/com/android/settings/network/
DNetworkProviderSimListController.java171 List<SubscriptionInfo> subList = new ArrayList<>(); in getAvailablePhysicalSubscription() local
174 subList.add(info); in getAvailablePhysicalSubscription()
178 return subList; in getAvailablePhysicalSubscription()
DNetworkProviderDownloadedSimListController.java174 List<SubscriptionInfo> subList = new ArrayList<>(); in getAvailableDownloadedSubscriptions() local
177 subList.add(info); in getAvailableDownloadedSubscriptions()
180 return subList; in getAvailableDownloadedSubscriptions()
/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/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/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitorTest.java137 final int[] subList = convertArrayListToIntArray(mTestSubList); in addTestSub() local
138 when(mSubscriptionManager.getCompleteActiveSubscriptionIdList()).thenReturn(subList); in addTestSub()
151 final int[] subList = convertArrayListToIntArray(mTestSubList); in removeTestSub() local
152 when(mSubscriptionManager.getCompleteActiveSubscriptionIdList()).thenReturn(subList); in removeTestSub()
/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/Settings/src/com/android/settings/network/telephony/
DMobileNetworkActivity.java248 List<SubscriptionAnnotation> subList = in getSubscription() local
252 currentSubInfo = subList.stream() in getSubscription()
258 currentSubInfo = subList.stream() in getSubscription()
/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/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/services/Telephony/src/com/android/phone/
DPhoneGlobals.java940 List<SubscriptionInfo> subList = subMgr.getActiveSubscriptionInfoList(false); in updateLimitedSimFunctionForDualSim() local
941 if (subList != null && subList.size() > 1) { in updateLimitedSimFunctionForDualSim()
944 for (SubscriptionInfo info : subList) { in updateLimitedSimFunctionForDualSim()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DChartDataUsagePreferenceTest.java84 mPreference.calcPoints(usageView, mNetworkCycleData.subList(0, 5)); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()
100 mPreference.calcPoints(usageView, mNetworkCycleData.subList(2, 7)); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DByteArrayRingBuffer.java96 mArrayList.subList(0, i).clear(); in pruneToSize()
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
DLimitedWifiEntryListPreferenceController.java51 wifiEntries.subList(mMaxWifiEntryCount, wifiEntries.size()).clear(); in fetchWifiEntries()
/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/Bluetooth/src/com/android/bluetooth/pbapclient/
DPhonebookPullRequest.java74 insertOperations.subList(numberOfOperations, insertOperations.size()).clear(); in onPullComplete()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/
DDumpableLog.kt83 dump.subList(dump.size / 2, dump.size).forEach { file.appendText(it + "\n") } in addLogToDump()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/common/entity/
DUiCallLog.java146 return new ArrayList<>(mCallRecords.subList(0, toIndex)); in getCallRecords()

123