Home
last modified time | relevance | path

Searched refs:List (Results 1 – 25 of 3742) sorted by relevance

12345678910>>...150

/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DWorkTypeConfigTest.java43 import java.util.List;
69 @NonNull List<Pair<Integer, Float>> defaultMinRatios, in check()
70 @NonNull List<Pair<Integer, Float>> defaultMaxRatios, in check()
72 @NonNull List<Pair<Integer, Integer>> expectedMinLimits, in check()
73 @NonNull List<Pair<Integer, Integer>> expectedMaxLimits) throws Exception { in check()
111 /* min */ List.of(), in test()
112 /* max */ List.of(), in test()
114 /* min */ List.of(Pair.create(WORK_TYPE_TOP, 1), Pair.create(WORK_TYPE_EJ, 0), in test()
116 /* max */ List.of(Pair.create(WORK_TYPE_TOP, 13), Pair.create(WORK_TYPE_EJ, 13), in test()
119 /* min */ List.of(Pair.create(WORK_TYPE_TOP, .8f), Pair.create(WORK_TYPE_BG, 0f)), in test()
[all …]
DWorkCountTrackerTest.java48 import java.util.List;
123 public final List<Integer> pendingMultiTypes = new ArrayList<>();
182 @NonNull List<Pair<Integer, Float>> minLimitRatios, in recount()
183 @NonNull List<Pair<Integer, Float>> maxLimitRatios) { in recount()
250 @NonNull List<Pair<Integer, Float>> minLimitRatios, in checkRandom()
251 @NonNull List<Pair<Integer, Float>> maxLimitRatios, in checkRandom()
295 final List<Pair<Integer, Float>> minLimitRatios = in testRandom1()
296 List.of(Pair.create(WORK_TYPE_BG, 1.0f / 3)); in testRandom1()
297 final List<Pair<Integer, Float>> maxLimitRatios = in testRandom1()
298 List.of(Pair.create(WORK_TYPE_BG, 2.0f / 3)); in testRandom1()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DMessagingData.java22 import java.util.List;
30 private final List<MessagingMessage> mHistoricMessagingMessages;
31 private final List<MessagingMessage> mNewMessagingMessages;
32 private final List<List<MessagingMessage>> mGroups;
33 private final List<Person> mSenders;
39 List<MessagingMessage> historicMessagingMessages, in MessagingData()
40 List<MessagingMessage> newMessagingMessages, List<List<MessagingMessage>> groups, in MessagingData()
41 List<Person> senders) { in MessagingData()
50 List<MessagingMessage> historicMessagingMessages, in MessagingData()
51 List<MessagingMessage> newMessagingMessages, in MessagingData()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowRouter2Manager.java31 import java.util.List;
36 private List<MediaRoute2Info> mAvailableRoutes = new ArrayList<>();
37 private List<MediaRoute2Info> mAllRoutes;
38 private List<MediaRoute2Info> mDeselectableRoutes;
39 private List<RoutingSessionInfo> mRemoteSessions;
40 private List<RoutingSessionInfo> mRoutingSessions;
44 protected List<MediaRoute2Info> getAvailableRoutes(String packageName) { in getAvailableRoutes()
48 public void setAvailableRoutes(List<MediaRoute2Info> infos) { in setAvailableRoutes()
53 protected List<MediaRoute2Info> getAllRoutes() { in getAllRoutes()
57 public void setAllRoutes(List<MediaRoute2Info> infos) { in setAllRoutes()
[all …]
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DRampDownAdapterTest.java34 import java.util.List;
50 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testPrebakedAndPrimitiveSegments_keepsListUnchanged()
54 List<VibrationEffectSegment> originalSegments = new ArrayList<>(segments); in testPrebakedAndPrimitiveSegments_keepsListUnchanged()
64 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testRampAndStepSegments_withNoOffSegment_keepsListUnchanged()
68 List<VibrationEffectSegment> originalSegments = new ArrayList<>(segments); in testRampAndStepSegments_withNoOffSegment_keepsListUnchanged()
80 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testRampAndStepSegments_withNoRampDownDuration_keepsOriginalSteps()
87 List<VibrationEffectSegment> originalSegments = new ArrayList<>(segments); in testRampAndStepSegments_withNoRampDownDuration_keepsOriginalSteps()
96 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testStepSegments_withShortZeroSegment_replaceWithStepsDown()
99 List<VibrationEffectSegment> expectedSegments = Arrays.asList( in testStepSegments_withShortZeroSegment_replaceWithStepsDown()
110 List<VibrationEffectSegment> segments = new ArrayList<>(Arrays.asList( in testStepSegments_withLongZeroSegment_replaceWithStepsDownWithRemainingOffSegment()
[all …]
/frameworks/base/core/java/android/speech/
DRecognitionSupport.java26 import java.util.List;
42 private List<String> mInstalledOnDeviceLanguages = List.of();
47 private List<String> mPendingOnDeviceLanguages = List.of();
55 private List<String> mSupportedOnDeviceLanguages = List.of();
64 private List<String> mOnlineLanguages = List.of();
83 @NonNull List<String> installedOnDeviceLanguages, in RecognitionSupport()
84 @NonNull List<String> pendingOnDeviceLanguages, in RecognitionSupport()
85 @NonNull List<String> supportedOnDeviceLanguages, in RecognitionSupport()
86 @NonNull List<String> onlineLanguages) { in RecognitionSupport()
107 public @NonNull List<String> getInstalledOnDeviceLanguages() { in getInstalledOnDeviceLanguages()
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DCameraUtilsTypeReferenceTest.java26 import java.util.List;
145 TypeReference<List<Integer>> listToken = new TypeReference<List<Integer>>() {{ }}; in testRawTypes()
146 assertRawTypeEquals(listToken, List.class); in testRawTypes()
148 TypeReference<List<List<Integer>>> listListToken = in testRawTypes()
149 new TypeReference<List<List<Integer>>>() {{ }}; in testRawTypes()
150 assertRawTypeEquals(listListToken, List.class); in testRawTypes()
158 TypeReference<List<Integer>[]> listArrayToken = new TypeReference<List<Integer>[]>() {{ }}; in testRawTypes()
159 assertRawTypeEquals(listArrayToken, List[].class); in testRawTypes()
168 private class IntListToken1 extends TypeReference<List<Integer>> {}
169 private class IntListToken2 extends TypeReference<List<Integer>> {}
[all …]
/frameworks/base/core/java/android/credentials/selection/
DGetCredentialProviderInfo.java34 import java.util.List;
64 private final List<Entry> mCredentialEntries;
66 private final List<Entry> mActionChips;
68 private final List<AuthenticationEntry> mAuthenticationEntries;
73 @NonNull String providerName, @NonNull List<Entry> credentialEntries, in GetCredentialProviderInfo()
74 @NonNull List<Entry> actionChips, in GetCredentialProviderInfo()
75 @NonNull List<AuthenticationEntry> authenticationEntries, in GetCredentialProviderInfo()
92 public List<Entry> getCredentialEntries() { in getCredentialEntries()
101 public List<Entry> getActionChips() { in getActionChips()
115 public List<AuthenticationEntry> getAuthenticationEntries() { in getAuthenticationEntries()
[all …]
DGetCredentialProviderData.java31 import java.util.List;
42 private final List<Entry> mCredentialEntries;
44 private final List<Entry> mActionChips;
46 private final List<AuthenticationEntry> mAuthenticationEntries;
51 @NonNull String providerFlattenedComponentName, @NonNull List<Entry> credentialEntries, in GetCredentialProviderData()
52 @NonNull List<Entry> actionChips, in GetCredentialProviderData()
53 @NonNull List<AuthenticationEntry> authenticationEntries, in GetCredentialProviderData()
74 public List<Entry> getCredentialEntries() { in getCredentialEntries()
79 public List<Entry> getActionChips() { in getActionChips()
84 public List<AuthenticationEntry> getAuthenticationEntries() { in getAuthenticationEntries()
[all …]
/frameworks/base/core/java/android/graphics/fonts/
DFontFamilyUpdateRequest.java27 import java.util.List;
83 @NonNull private final List<Font> mFonts;
88 public Builder(@NonNull String name, @NonNull List<Font> fonts) { in Builder()
119 private final List<Font> mFonts;
134 private FontFamily(@NonNull String name, @NonNull List<Font> fonts) { in FontFamily()
151 public List<Font> getFonts() { in getFonts()
167 private @NonNull List<FontVariationAxis> mAxes = Collections.emptyList();
190 public @NonNull Builder setAxes(@NonNull List<FontVariationAxis> axes) { in setAxes()
221 private final List<FontVariationAxis> mAxes;
242 @IntRange(from = 0) int index, @NonNull List<FontVariationAxis> axes) { in Font()
[all …]
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DInputMethodManagerServiceRestrictImeAmountTest.java37 import java.util.List;
45 List<ResolveInfo> resolveInfoList = new ArrayList<>(); in testFilterInputMethodServices_loadsAllImesBelowThreshold()
51 final List<InputMethodInfo> methodList = filterInputMethodServices(resolveInfoList, in testFilterInputMethodServices_loadsAllImesBelowThreshold()
52 List.of()); in testFilterInputMethodServices_loadsAllImesBelowThreshold()
58 List<ResolveInfo> resolveInfoList = new ArrayList<>(); in testFilterInputMethodServices_ignoresImesBeyondThreshold()
64 final List<InputMethodInfo> methodList = filterInputMethodServices(resolveInfoList, in testFilterInputMethodServices_ignoresImesBeyondThreshold()
65 List.of()); in testFilterInputMethodServices_ignoresImesBeyondThreshold()
72 List<ResolveInfo> resolveInfoList = new ArrayList<>(); in testFilterInputMethodServices_loadsSystemImesBeyondThreshold()
79 final List<InputMethodInfo> methodList = filterInputMethodServices(resolveInfoList, in testFilterInputMethodServices_loadsSystemImesBeyondThreshold()
80 List.of()); in testFilterInputMethodServices_loadsSystemImesBeyondThreshold()
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DNoOpResolverComparatorTest.java35 import java.util.List;
60 List.of(PERSONAL_USER_HANDLE)); in setUp()
65 List<ResolvedComponentInfo> originalOrder = List.of(resolution1, resolution2, resolution3); in testKnownItemsSortInOriginalOrder()
68 List<ResolvedComponentInfo> queryOrder = new ArrayList<>( in testKnownItemsSortInOriginalOrder()
69 List.of(resolution2, resolution3, resolution1)); in testKnownItemsSortInOriginalOrder()
77 List<ResolvedComponentInfo> originalOrder = List.of(resolution1, resolution2); in testUnknownItemsSortAfterKnownItems()
81 List<ResolvedComponentInfo> queryOrder = new ArrayList<>( in testUnknownItemsSortAfterKnownItems()
82 List.of(resolution2, resolution4, resolution1)); in testUnknownItemsSortAfterKnownItems()
85 assertThat(queryOrder).isEqualTo(List.of(resolution1, resolution2, resolution4)); in testUnknownItemsSortAfterKnownItems()
90 List<ResolvedComponentInfo> originalOrder = List.of(resolution1, resolution2); in testKnownItemsGetNonZeroScoresInOrder()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DCapabilityRequest.java33 import java.util.List;
46 protected final List<Uri> mUriList;
104 public void setContactUri(List<Uri> uris) { in setContactUri()
109 public List<Uri> getContactUri() { in getContactUri()
151 final List<EabCapabilityResult> eabResultList = getCapabilitiesFromCache(); in executeRequest()
154 final List<RcsContactUceCapability> cachedCapList = isSkipGettingFromCache() ? in executeRequest()
161 final List<Uri> expiredUris = getRequestingFromNetworkUris(cachedCapList); in executeRequest()
167 final List<RcsContactUceCapability> throttlingUris = in executeRequest()
179 List<Uri> requestCapUris = getRequestingFromNetworkUris(cachedCapList, throttlingUris); in executeRequest()
235 private List<EabCapabilityResult> getCapabilitiesFromCache() { in getCapabilitiesFromCache()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
DUserTileSpecRepository.kt50 private val defaultTiles: List<TileSpec> in <lambda>()
56 private lateinit var _tiles: StateFlow<List<TileSpec>> in <lambda>()
58 suspend fun tiles(): Flow<List<TileSpec>> { in <lambda>()
86 private fun startFlowCollections(tiles: StateFlow<List<TileSpec>>) { in <lambda>()
116 private suspend fun storeTiles(@UserIdInt forUser: Int, tiles: List<TileSpec>) { in <lambda>()
144 suspend fun setTiles(tiles: List<TileSpec>) { in <lambda>()
148 private fun parseTileSpecs(fromSettings: List<TileSpec>, user: Int): List<TileSpec> { in <lambda>()
156 private suspend fun loadTilesFromSettingsAndParse(userId: Int): List<TileSpec> { in <lambda>()
160 private suspend fun loadTilesFromSettings(userId: Int): List<TileSpec> { in <lambda>()
176 fun apply(currentTiles: List<TileSpec>): List<TileSpec> in <lambda>()
[all …]
/frameworks/base/core/java/android/view/
DViewRootRectTracker.java29 import java.util.List;
37 private final Function<View, List<Rect>> mRectCollector;
40 private List<Rect> mRootRects = Collections.emptyList();
41 private List<ViewInfo> mViewInfos = new ArrayList<>();
42 private List<Rect> mRects = Collections.emptyList();
48 ViewRootRectTracker(Function<View, List<Rect>> rectCollector) { in ViewRootRectTracker()
80 public List<Rect> computeChangedRects() { in computeChangedRects()
97 final List<Rect> rects = new ArrayList<>(mRootRects); in computeChanges()
132 public List<Rect> getLastComputedRects() { in getLastComputedRects()
139 public void setRootRects(@NonNull List<Rect> rects) { in setRootRects()
[all …]
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
DLocationTimeZoneManagerServiceState.java28 import java.util.List;
36 @NonNull private final List<@State String> mControllerStates;
37 @NonNull private final List<ProviderState> mPrimaryProviderStates;
38 @NonNull private final List<ProviderState> mSecondaryProviderStates;
58 public List<@State String> getControllerStates() { in getControllerStates()
63 public List<ProviderState> getPrimaryProviderStates() { in getPrimaryProviderStates()
68 public List<ProviderState> getSecondaryProviderStates() { in getSecondaryProviderStates()
87 private List<@State String> mControllerStates;
88 private List<ProviderState> mPrimaryProviderStates;
89 private List<ProviderState> mSecondaryProviderStates;
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperCropperTest.java50 import java.util.List;
76 private static final List<Point> STANDARD_DISPLAY = List.of(PORTRAIT_ONE);
79 private static final List<Point> FOLDABLE_ONE = List.of(PORTRAIT_ONE, SQUARE_PORTRAIT_ONE);
82 private static final List<Point> FOLDABLE_TWO = List.of(PORTRAIT_TWO, SQUARE_LANDSCAPE_ONE);
85 private static final List<Point> FOLDABLE_THREE = List.of(SQUARE_PORTRAIT_ONE, PORTRAIT_THREE);
88 private static final List<Point> FOLDABLE_FOUR = List.of(SQUARE_LANDSCAPE_ONE, PORTRAIT_FOUR);
94 private static final List<List<Point>> ALL_FOLDABLE_DISPLAYS = List.of(
103 private static final List<Integer> ALL_MODES = List.of(
112 private void setUpWithDisplays(List<Point> displaySizes) { in setUpWithDisplays()
205 for (Point bitmapSize: List.of( in testGetAdjustedCrop_noOp()
[all …]
/frameworks/base/media/java/android/media/
DRouteDiscoveryPreference.java32 import java.util.List;
67 private final List<String> mPreferredFeatures;
69 private final List<String> mPackageOrder;
71 private final List<String> mAllowedPackages;
111 public List<String> getPreferredFeatures() { in getPreferredFeatures()
127 public List<String> getDeduplicationPackageOrder() { in getDeduplicationPackageOrder()
139 public List<String> getAllowedPackages() { in getAllowedPackages()
243 List<String> mPreferredFeatures;
244 List<String> mPackageOrder;
245 List<String> mAllowedPackages;
[all …]
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/certificate/
DCertXml.java31 import java.util.List;
47 private final List<X509Certificate> intermediateCerts;
48 private final List<X509Certificate> endpointCerts;
52 List<X509Certificate> intermediateCerts, in CertXml()
53 List<X509Certificate> endpointCerts) { in CertXml()
65 List<X509Certificate> getAllIntermediateCerts() { in getAllIntermediateCerts()
70 List<X509Certificate> getAllEndpointCerts() { in getAllEndpointCerts()
117 List<String> contents = in parseSerial()
126 private static List<X509Certificate> parseIntermediateCerts(Element rootNode) in parseIntermediateCerts()
128 List<String> contents = in parseIntermediateCerts()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest11.java39 import java.util.List;
70 ArgumentCaptor<List> shortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_setDynamicShortcuts()
97 ArgumentCaptor<List> changedShortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
101 ArgumentCaptor<List> removedShortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_setDynamicShortcuts_replaceSameId()
139 ArgumentCaptor<List> changedShortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_setDynamicShortcuts_pinnedAndCached()
163 ArgumentCaptor<List> shortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_pinShortcuts()
195 ArgumentCaptor<List> changedShortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_pinShortcuts_unpinOthers()
199 ArgumentCaptor<List> removedShortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_pinShortcuts_unpinOthers()
231 ArgumentCaptor<List> shortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_cacheShortcuts()
264 ArgumentCaptor<List> shortcuts = ArgumentCaptor.forClass(List.class); in testShortcutChangeCallback_cacheShortcuts_alreadyCached()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLetterboxAppearanceCalculator.kt38 val appearanceRegions: List<AppearanceRegion>, in <lambda>()
74 private var lastAppearanceRegions: List<AppearanceRegion>? = null
75 private var lastLetterboxes: List<LetterboxDetails>? = null
80 originalAppearanceRegions: List<AppearanceRegion>, in getLetterboxAppearance()
81 letterboxes: List<LetterboxDetails>, in getLetterboxAppearance()
93 letterboxes: List<LetterboxDetails>, in getLetterboxAppearanceInternal()
95 originalAppearanceRegions: List<AppearanceRegion>, in getLetterboxAppearanceInternal()
107 letterboxes: List<LetterboxDetails>, in isScrimNeeded()
120 originalAppearanceRegions: List<AppearanceRegion>, in getAppearanceRegions()
121 letterboxes: List<LetterboxDetails> in getAppearanceRegions()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DAudioServerPermissionProviderTest.java54 import java.util.List;
80 public List<UidPackageState> mInitPackageListExpected;
86 private final List<String> mSortedPackages;
88 public UidPackageStateMatcher(int uid, List<String> packageNames) { in UidPackageStateMatcher()
119 implements ArgumentMatcher<List<UidPackageState>> {
121 private final List<UidPackageState> mToMatch;
123 public PackageStateListMatcher(List<UidPackageState> toMatch) { in PackageStateListMatcher()
128 public boolean matches(List<UidPackageState> other) { in matches()
176 List.of( in testInitialPackagePopulation()
184 List.of( in testInitialPackagePopulation()
[all …]
/frameworks/base/core/java/android/app/
DFragmentManagerNonConfig.java20 import java.util.List;
36 private final List<Fragment> mFragments;
37 private final List<FragmentManagerNonConfig> mChildNonConfigs;
39 FragmentManagerNonConfig(List<Fragment> fragments, in FragmentManagerNonConfig()
40 List<FragmentManagerNonConfig> childNonConfigs) { in FragmentManagerNonConfig()
48 List<Fragment> getFragments() { in getFragments()
55 List<FragmentManagerNonConfig> getChildNonConfigs() { in getChildNonConfigs()
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java82 import java.util.List;
108 public static List<String> readAll(File file) throws FileNotFoundException { in readAll()
113 public static List<String> readAll(ParcelFileDescriptor pfd) { in readAll()
134 public static String concatResult(List<String> result) { in concatResult()
143 public static List<String> extractShortcutIds(List<String> result) { in extractShortcutIds()
147 List<String> ids = new ArrayList<>(); in extractShortcutIds()
157 public static boolean resultContains(List<String> result, String expected) { in resultContains()
166 public static List<String> assertSuccess(List<String> result) { in assertSuccess()
173 public static List<String> assertContains(List<String> result, String expected) { in assertContains()
181 public static List<String> assertHaveIds(List<String> result, String... expectedIds) { in assertHaveIds()
[all …]
/frameworks/base/core/java/com/android/server/pm/pkg/
DAndroidPackage.java64 import java.util.List;
202 List<String> getLibraryNames(); in getLibraryNames()
314 List<AndroidPackageSplit> getSplits(); in getSplits()
697 List<ParsedActivity> getActivities(); in getActivities()
707 List<String> getAdoptPermissions(); in getAdoptPermissions()
715 List<ParsedApexSystemService> getApexSystemServices(); in getApexSystemServices()
723 List<ParsedAttribution> getAttributions(); in getAttributions()
768 List<ConfigurationInfo> getConfigPreferences(); in getConfigPreferences()
777 List<FeatureGroupInfo> getFeatureGroups(); in getFeatureGroups()
802 List<ParsedInstrumentation> getInstrumentations(); in getInstrumentations()
[all …]

12345678910>>...150