Home
last modified time | relevance | path

Searched refs:Set (Results 1 – 25 of 1615) sorted by relevance

12345678910>>...65

/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DPackageSuspender.java30 import java.util.Set;
46 private final Set<String> mSuspendedPackageBefore;
47 private final Set<String> mSuspendedPackageAfter;
52 public PackageSuspender(@Nullable Set<String> suspendedPackageBefore, in PackageSuspender()
53 @Nullable Set<String> suspendedPackageAfter, List<String> exemptedPackages, in PackageSuspender()
71 public String[] suspend(Set<String> packages) { in suspend()
83 Set<String> result = suspendWithExemption(packages); in suspend()
93 private Set<String> suspendWithExemption(Set<String> packages) { in suspendWithExemption()
94 Set<String> packagesToSuspend = new ArraySet<>(packages); in suspendWithExemption()
97 Set<String> result = new ArraySet<>(mExemptedPackages); in suspendWithExemption()
[all …]
DEnforcingAdmin.java42 import java.util.Set;
74 private Set<String> mAuthorities;
89 componentName.getPackageName(), componentName, Set.of(DPC_AUTHORITY), userId, in createEnterpriseEnforcingAdmin()
97 componentName.getPackageName(), componentName, Set.of(DPC_AUTHORITY), userId, in createEnterpriseEnforcingAdmin()
105 componentName.getPackageName(), componentName, Set.of(DEVICE_ADMIN_AUTHORITY), in createDeviceAdminEnforcingAdmin()
112 Set<String> internalAuthorities = new HashSet<>(); in createEnforcingAdmin()
116 Set.of(DPC_AUTHORITY), admin.getUserHandle().getIdentifier(), in createEnforcingAdmin()
121 Set.of(DEVICE_ADMIN_AUTHORITY), admin.getUserHandle().getIdentifier(), in createEnforcingAdmin()
126 Set.of(DEVICE_ADMIN_AUTHORITY), admin.getUserHandle().getIdentifier(), in createEnforcingAdmin()
131 Set.of(), admin.getUserHandle().getIdentifier(), in createEnforcingAdmin()
[all …]
DPackageSetUnion.java27 import java.util.Set;
29 final class PackageSetUnion extends ResolutionMechanism<Set<String>> {
32 PolicyValue<Set<String>> resolve( in resolve()
33 @NonNull LinkedHashMap<EnforcingAdmin, PolicyValue<Set<String>>> adminPolicies) { in resolve()
38 Set<String> unionOfPolicies = new HashSet<>(); in resolve()
39 for (PolicyValue<Set<String>> policy : adminPolicies.values()) { in resolve()
DOverlayPackagesProvider.java61 import java.util.Set;
78 private static final Set<String> sAllowedActions = new HashSet<>();
162 public Set<String> getNonRequiredApps(@NonNull ComponentName admin, int userId, in getNonRequiredApps()
166 final Set<String> nonRequiredApps = getLaunchableApps(userId); in getNonRequiredApps()
178 private Set<String> getDeviceManagerRoleHolders() { in getDeviceManagerRoleHolders()
196 private Set<String> getRequiredAppsMainlineModules(Set<String> packageNames, in getRequiredAppsMainlineModules()
198 final Set<String> result = new HashSet<>(); in getRequiredAppsMainlineModules()
248 private Set<String> getLaunchableApps(int userId) { in getLaunchableApps()
257 final Set<String> apps = new ArraySet<>(); in getLaunchableApps()
264 private Set<String> getSystemInputMethods(int userId) { in getSystemInputMethods()
[all …]
DPackageSetPolicySerializer.java30 import java.util.Set;
33 final class PackageSetPolicySerializer extends PolicySerializer<Set<String>> {
37 void saveToXml(TypedXmlSerializer serializer, @NonNull Set<String> value) throws IOException { in saveToXml()
45 PolicyValue<Set<String>> readFromXml(TypedXmlPullParser parser) { in readFromXml()
51 Set<String> values = Set.of(valuesStr.split(ATTR_VALUES_SEPARATOR)); in readFromXml()
/frameworks/base/services/credentials/java/com/android/server/credentials/
DCredentialDescriptionRegistry.java32 import java.util.Set;
53 final Set<String> mElementKeys;
58 Set<String> elementKeys, in FilterResult()
120 private Map<String, Set<CredentialDescription>> mCredentialDescriptions;
140 Set<CredentialDescription> descriptions = request.getCredentialDescriptions(); in executeRegisterRequest()
165 public Set<FilterResult> getFilteredResultForProvider(String packageName, in getFilteredResultForProvider()
166 Set<String> requestedKeyElements) { in getFilteredResultForProvider()
167 Set<FilterResult> result = new HashSet<>(); in getFilteredResultForProvider()
171 Set<CredentialDescription> currentSet = mCredentialDescriptions.get(packageName); in getFilteredResultForProvider()
185 public Set<FilterResult> getMatchingProviders(Set<Set<String>> supportedElementKeys) { in getMatchingProviders()
[all …]
/frameworks/base/tests/utils/testutils/tests/src/com/android/test/filters/
DSelectTestTests.java39 import java.util.Set;
66 private static final Set<Description> TEST_METHOD_A1K = methodTest(METHOD_A1K);
67 private static final Set<Description> TEST_METHOD_A1L = methodTest(METHOD_A1L);
68 private static final Set<Description> TEST_METHOD_A2M = methodTest(METHOD_A2M);
69 private static final Set<Description> TEST_METHOD_A2N = methodTest(METHOD_A2N);
70 private static final Set<Description> TEST_METHOD_B3P = methodTest(METHOD_B3P);
71 private static final Set<Description> TEST_METHOD_B3Q = methodTest(METHOD_B3Q);
72 private static final Set<Description> TEST_METHOD_B4R = methodTest(METHOD_B4R);
73 private static final Set<Description> TEST_METHOD_B4S = methodTest(METHOD_B4S);
74 private static final Set<Description> TEST_METHOD_C5W = methodTest(METHOD_C5W);
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/om/
DOverlayManagerServiceImplTests.java42 import java.util.Set;
68 Set.of(UserPackage.of(USER, OVERLAY), UserPackage.of(USER, TARGET))); in testGetOverlayInfo()
81 Set.of(UserPackage.of(USER, OVERLAY), UserPackage.of(USER, TARGET))); in testGetOverlayInfosForTarget()
83 Set.of(UserPackage.of(USER, OVERLAY2), UserPackage.of(USER, TARGET))); in testGetOverlayInfosForTarget()
85 Set.of(UserPackage.of(USER2, OVERLAY3), UserPackage.of(USER2, TARGET))); in testGetOverlayInfosForTarget()
109 Set.of(UserPackage.of(USER, TARGET))); in testGetOverlayInfosForUser()
111 Set.of(UserPackage.of(USER, OVERLAY), UserPackage.of(USER, TARGET))); in testGetOverlayInfosForUser()
113 Set.of(UserPackage.of(USER, OVERLAY2), UserPackage.of(USER, TARGET))); in testGetOverlayInfosForUser()
115 Set.of(UserPackage.of(USER, OVERLAY3), UserPackage.of(USER, TARGET2))); in testGetOverlayInfosForUser()
140 Set.of(UserPackage.of(USER, OVERLAY), UserPackage.of(USER, TARGET))); in testPriority()
[all …]
/frameworks/base/test-runner/src/android/test/
DClassPathPackageInfoSource.java27 import java.util.Set;
75 public Set<Class<?>> getTopLevelClassesRecursive(String packageName) { in getTopLevelClassesRecursive()
81 Set<String> subpackageNames = new TreeSet<String>(); in createPackageInfo()
82 Set<String> classNames = new TreeSet<String>(); in createPackageInfo()
83 Set<Class<?>> topLevelClasses = new HashSet<>(); in createPackageInfo()
112 private void findClasses(String packageName, Set<String> classNames, in findClasses()
113 Set<String> subpackageNames) { in findClasses()
139 Set<String> classNames, Set<String> subpackageNames) throws IOException { in scanForApkFiles()
157 Set<String> classNames, Set<String> subpackageNames) in findClassesInApk()
217 private final Set<String> subpackageNames;
[all …]
/frameworks/base/core/java/com/android/internal/app/
DAppLocaleCollector.java40 import java.util.Set;
49 private Set<LocaleStore.LocaleInfo> mAllAppActiveLocales;
50 private Set<LocaleStore.LocaleInfo> mImeLocales;
70 public Set<LocaleStore.LocaleInfo> getAllAppActiveLocales() { in getAllAppActiveLocales()
97 public Set<LocaleStore.LocaleInfo> getActiveImeLocales() { in getActiveImeLocales()
98 Set<LocaleStore.LocaleInfo> activeImeLocales = null; in getActiveImeLocales()
108 return Set.of(); in getActiveImeLocales()
151 public Set<LocaleStore.LocaleInfo> getSystemSupportedLocale(Set<String> langTagsToIgnore, in getSystemSupportedLocale()
160 public Set<LocaleStore.LocaleInfo> getSystemCurrentLocales() { in getSystemCurrentLocales()
161 Set<LocaleStore.LocaleInfo> sysLocales = LocaleStore.getSystemCurrentLocales(); in getSystemCurrentLocales()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DColorSpaceProfiles.java28 import java.util.Set;
51 private final Map<ColorSpace.Named, Map<Integer, Set<Long>>> mProfileMap = new ArrayMap<>();
91 ArrayMap<Integer, Set<Long>> imageFormatMap = new ArrayMap<>(); in ColorSpaceProfiles()
133 public @NonNull Map<ColorSpace.Named, Map<Integer, Set<Long>>> getProfileMap() { in getProfileMap()
149 public @NonNull Set<ColorSpace.Named> getSupportedColorSpaces( in getSupportedColorSpaces()
156 Map<Integer, Set<Long>> imageFormatMap = mProfileMap.get(colorSpace); in getSupportedColorSpaces()
175 public @NonNull Set<Integer> getSupportedImageFormatsForColorSpace( in getSupportedImageFormatsForColorSpace()
177 Map<Integer, Set<Long>> imageFormatMap = mProfileMap.get(colorSpace); in getSupportedImageFormatsForColorSpace()
197 public @NonNull Set<Long> getSupportedDynamicRangeProfiles(@NonNull ColorSpace.Named colorSpace, in getSupportedDynamicRangeProfiles()
199 Map<Integer, Set<Long>> imageFormatMap = mProfileMap.get(colorSpace); in getSupportedDynamicRangeProfiles()
[all …]
DRecommendedStreamConfigurationMap.java40 import java.util.Set;
205 private Set<Integer> getUnmodifiableIntegerSet(int[] intArray) { in getUnmodifiableIntegerSet()
228 public @NonNull Set<Integer> getOutputFormats() { in getOutputFormats()
241 public @Nullable Set<Integer> getValidOutputFormatsForInput(@Format int inputFormat) { in getValidOutputFormatsForInput()
254 public @Nullable Set<Integer> getInputFormats() { in getInputFormats()
258 private Set<Size> getUnmodifiableSizeSet(Size[] sizeArray) { in getUnmodifiableSizeSet()
277 public @Nullable Set<Size> getInputSizes(@Format int format) { in getInputSizes()
315 public @Nullable Set<Size> getOutputSizes(@Format int format) { in getOutputSizes()
327 public @Nullable Set<Size> getHighSpeedVideoSizes() { in getHighSpeedVideoSizes()
331 private Set<Range<Integer>> getUnmodifiableRangeSet(Range<Integer>[] rangeArray) { in getUnmodifiableRangeSet()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/internal/
DLifecycleOperationStorageTest.java40 import java.util.Set;
54 private static final Set<String> MULTIPLE_PKG = Sets.newHashSet(PKG_FOO);
55 private static final Set<String> MULTIPLE_PKGS_1 = Sets.newHashSet(PKG_FOO, PKG_BAR);
56 private static final Set<String> MULTIPLE_PKGS_2 = Sets.newHashSet(PKG_BAR, PKG_BAZ);
74 Set<Integer> tokens = mOpStorage.operationTokensForOpType(OpType.BACKUP_WAIT); in testRegisterOperation_singleOperation()
85 Set<Integer> typeWaitTokens = mOpStorage.operationTokensForOpType(OpType.BACKUP_WAIT); in testRegisterOperation_multipleOperations()
86 Set<Integer> statePendingTokens = mOpStorage.operationTokensForOpState(OpState.PENDING); in testRegisterOperation_multipleOperations()
87 Set<Integer> stateAcknowledgedTokens = in testRegisterOperation_multipleOperations()
101 Set<Integer> tokens = mOpStorage.operationTokensForPackage(PKG_FOO); in testRegisterOperationForPackages_singlePackage()
114 Set<Integer> tokensFoo = mOpStorage.operationTokensForPackage(PKG_FOO); in testRegisterOperationForPackages_multiplePackage()
[all …]
/frameworks/base/core/java/android/service/assist/classification/
DFieldClassification.java31 import java.util.Set;
57 private final @NonNull Set<String> mHints;
94 private final @NonNull Set<String> mGroupHints;
112 public @NonNull Set<String> getHints() { in getHints()
151 public @NonNull Set<String> getGroupHints() { in getGroupHints()
155 static Set<String> unparcelHints(Parcel in) { in unparcelHints()
165 static Set<String> unparcelGroupHints(Parcel in) { in unparcelGroupHints()
188 @NonNull Set<String> hints) { in FieldClassification()
209 @NonNull Set<String> hints, in FieldClassification()
210 @NonNull Set<String> groupHints) { in FieldClassification()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DCarrierPrivilegesTrackerTest.java80 import java.util.Set;
104 private static final Set<String> PRIVILEGED_PACKAGES = Set.of(PACKAGE_1, PACKAGE_2);
116 private static final Set<Integer> PRIVILEGED_UIDS_SET = Set.of(UID_1, UID_2);
181 Set<UserInfo> users = new ArraySet<>(); in setupInstalledPackages()
247 private void verifyCurrentState(Set<String> expectedPackageNames, int[] expectedUids) { in verifyCurrentState()
263 List<Pair<Set<String>, Set<Integer>>> expectedUpdates) { in verifyCarrierPrivilegesChangedUpdates()
269 for (Pair<Set<String>, Set<Integer>> expectedUpdate : expectedUpdates) { in verifyCarrierPrivilegesChangedUpdates()
335 verifyCurrentState(Set.of(), new int[0]); in testCarrierConfigUpdatedInvalidSubId()
339 new Pair<>(Set.of(), Set.of()))); in testCarrierConfigUpdatedInvalidSubId()
354 verifyCurrentState(Set.of(), new int[0]); in testCarrierConfigUpdatedNotIdentifiedCarrier()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
DUserAutoAddRepository.kt50 private lateinit var _autoAdded: StateFlow<Set<TileSpec>> in <lambda>()
52 suspend fun autoAdded(): StateFlow<Set<TileSpec>> { in <lambda>()
72 private fun startFlowCollections(autoAdded: StateFlow<Set<TileSpec>>) { in <lambda>()
116 private suspend fun store(tiles: Set<TileSpec>) { in <lambda>()
133 private suspend fun load(): Set<TileSpec> { in <lambda>()
144 fun apply(currentAutoAdded: Set<TileSpec>): Set<TileSpec> in <lambda>()
150 override fun apply(currentAutoAdded: Set<TileSpec>): Set<TileSpec> { in <lambda>()
158 override fun apply(currentAutoAdded: Set<TileSpec>): Set<TileSpec> { in <lambda>()
166 override fun apply(currentAutoAdded: Set<TileSpec>): Set<TileSpec> { in <lambda>()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSimultaneousCallingTracker.java41 import java.util.Set;
55 private Map<Phone, Set<Phone>> mVoiceCapablePhoneMap = new HashMap<>();
59 public Set<Listener> mListeners = new CopyOnWriteArraySet<>();
67 private Map<Integer, Set<Phone>> mSimultaneousCallPhoneSupportMap = new HashMap<>();
168 Set<Integer>> simultaneousCallSubSupportMap); in onSimultaneousCallingSupportChanged()
177 Set<Integer>> simultaneousCallSubSupportMap) {} in onSimultaneousCallingSupportChanged()
247 public Set<Integer> getSubIdsSupportingSimultaneousCalling(int subId) { in getSubIdsSupportingSimultaneousCalling()
254 Set<Integer> subIdsSupportingSimultaneousCalling = new HashSet<>(); in getSubIdsSupportingSimultaneousCalling()
298 private void onSimultaneousCellularCallingSlotsChanged(Set<Integer> slotIds) { in onSimultaneousCellularCallingSlotsChanged()
322 private void registerForImsRegistrationChanges(Map<Phone, Set<Phone>> phoneMap) { in registerForImsRegistrationChanges()
[all …]
/frameworks/base/services/core/java/com/android/server/backup/
DSetUtils.java20 import java.util.Set;
32 public static <T> Set<T> union(Set<T> set1, Set<T> set2) { in union()
33 Set<T> unionSet = new HashSet<>(set1); in union()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DSetUtils.java20 import java.util.Set;
32 public static <T> Set<T> union(Set<T> set1, Set<T> set2) { in union()
33 Set<T> unionSet = new HashSet<>(set1); in union()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/license/
DLicenseHtmlGeneratorFromXmlTest.java39 import java.util.Set;
178 Map<String, Map<String, Set<String>>> fileNameToLibraryToContentIdMap = new HashMap<>(); in testParseValidXmlStream()
196 Map<String, Map<String, Set<String>>> fileNameToLibraryToContentIdMap = new HashMap<>(); in testParseNewValidXmlStream()
214 Map<String, Map<String, Set<String>>> fileNameToLibraryToContentIdMap = new HashMap<>(); in testParseInvalidXmlStream()
225 Map<String, Map<String, Set<String>>> fileNameToLibraryToContentIdMap = new HashMap<>(); in testGenerateHtml()
227 Map<String, Set<String>> toBoth = new HashMap<>(); in testGenerateHtml()
228 Map<String, Set<String>> toOne = new HashMap<>(); in testGenerateHtml()
248 Map<String, Map<String, Set<String>>> fileNameToLibraryToContentIdMap = new HashMap<>(); in testGenerateNewHtml()
250 Map<String, Set<String>> toBoth = new HashMap<>(); in testGenerateNewHtml()
251 Map<String, Set<String>> toOne = new HashMap<>(); in testGenerateNewHtml()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/panels/
DAuthorizedPanelsRepository.kt29 fun observeAuthorizedPanels(user: UserHandle): Flow<Set<String>>
32 fun getAuthorizedPanels(): Set<String>
35 fun getPreferredPackages(): Set<String>
38 fun addAuthorizedPanels(packageNames: Set<String>)
43 fun removeAuthorizedPanels(packageNames: Set<String>)
/frameworks/base/core/java/com/android/internal/compat/
DCompatibilityChangeConfig.java25 import java.util.Set;
41 public Set<Long> enabledChanges() { in enabledChanges()
48 public Set<Long> disabledChanges() { in disabledChanges()
67 Set<Long> enabled = toLongSet(enabledArray); in CompatibilityChangeConfig()
68 Set<Long> disabled = toLongSet(disabledArray); in CompatibilityChangeConfig()
72 private static Set<Long> toLongSet(long[] values) { in toLongSet()
73 Set<Long> ret = new HashSet<>(); in toLongSet()
/frameworks/base/tests/Internal/src/com/android/internal/app/
DAppLocaleCollectorTest.java44 import java.util.Set;
55 private Set<LocaleInfo> mAllAppActiveLocales;
56 private Set<LocaleInfo> mImeLocales;
57 private Set<LocaleInfo> mSystemCurrentLocales;
58 private Set<LocaleInfo> mSystemSupportedLocales;
83 Set<LocaleStore.LocaleInfo> list = in testGetSystemCurrentLocales()
130 Set<LocaleInfo> result = mAppLocaleCollector.getSupportedLocaleList(null, true, false); in testGetSupportedLocaleList_filterNonAppsupportedSystemLanguage()
166 Set<LocaleInfo> result = mAppLocaleCollector.getSupportedLocaleList(null, true, false); in testGetSupportedLocaleList_withActiveLocalesFromOtherAppAndIme()
193 private Set<LocaleInfo> initSystemSupportedLocales() { in initSystemSupportedLocales()
194 return Set.of( in initSystemSupportedLocales()
[all …]
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/
DPublishServiceDescTracker.java32 import java.util.Set;
54 private static final Map<ServiceDescription, Set<String>> DEFAULT_SERVICE_DESCRIPTION_MAP;
56 ArrayMap<ServiceDescription, Set<String>> map = new ArrayMap<>(23);
127 private final Map<ServiceDescription, Set<String>> mServiceDescriptionFeatureTagMap;
130 private final Set<ServiceDescription> mServiceDescriptionPartialMatches = new ArraySet<>();
132 private final Set<ServiceDescription> mRegistrationCapabilities = new ArraySet<>();
134 private Set<String> mRegistrationFeatureTags = new ArraySet<>();
141 Map<ServiceDescription, Set<String>> elements = new ArrayMap<>(); in fromCarrierConfig()
142 for (Map.Entry<ServiceDescription, Set<String>> entry : in fromCarrierConfig()
166 private static Set<String> parseFeatureTags(String featureTags) { in parseFeatureTags()
[all …]
/frameworks/base/core/java/android/security/net/config/
DPinSet.java21 import java.util.Set;
28 public final Set<Pin> pins;
30 public PinSet(Set<Pin> pins, long expirationTime) { in PinSet()
38 Set<String> getPinAlgorithms() { in getPinAlgorithms()
40 Set<String> algorithms = new ArraySet<String>(); in getPinAlgorithms()

12345678910>>...65