Home
last modified time | relevance | path

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

12345678910>>...30

/frameworks/base/tests/utils/testutils/java/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/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/tools/preload2/src/com/android/preload/actions/
DComputeThresholdAction.java30 import java.util.Set;
81 Map<String, Set<String>> uses = new HashMap<String, Set<String>>(); in run()
88 Set<String> result = fromThreshold(uses, blacklist, threshold); in run()
101 private Set<String> fromThreshold(Map<String, Set<String>> classUses, Pattern blacklist, in fromThreshold()
105 for (Map.Entry<String, Set<String>> e : classUses.entrySet()) { in fromThreshold()
116 private static void updateClassUse(String pkg, Map<String, Set<String>> classUses, in updateClassUse()
117 Set<String> classes) { in updateClassUse()
119 Set<String> old = classUses.get(className); in updateClassUse()
127 private static Set<String> getBootClassPathClasses(Map<String, String> source) { in getBootClassPathClasses()
128 Set<String> ret = new HashSet<>(); in getBootClassPathClasses()
[all …]
/frameworks/base/core/java/android/hardware/camera2/params/
DRecommendedStreamConfigurationMap.java40 import java.util.Set;
194 private Set<Integer> getUnmodifiableIntegerSet(int[] intArray) { in getUnmodifiableIntegerSet()
217 public @NonNull Set<Integer> getOutputFormats() { in getOutputFormats()
230 public @Nullable Set<Integer> getValidOutputFormatsForInput(@Format int inputFormat) { in getValidOutputFormatsForInput()
243 public @Nullable Set<Integer> getInputFormats() { in getInputFormats()
247 private Set<Size> getUnmodifiableSizeSet(Size[] sizeArray) { in getUnmodifiableSizeSet()
266 public @Nullable Set<Size> getInputSizes(@Format int format) { in getInputSizes()
304 public @Nullable Set<Size> getOutputSizes(@Format int format) { in getOutputSizes()
316 public @Nullable Set<Size> getHighSpeedVideoSizes() { in getHighSpeedVideoSizes()
320 private Set<Range<Integer>> getUnmodifiableRangeSet(Range<Integer>[] rangeArray) { in getUnmodifiableRangeSet()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/eap/
DEAPMethodTest.java33 import java.util.Set;
48 private static final Map<Integer, Set<AuthParam>> TEST_DATA1_AUTH_PARAMS =
50 private static final Set<AuthParam> TEST_DATA1_CREDENTIAL_TYPE_PARAMS = new HashSet<>();
51 private static final Set<AuthParam> TEST_DATA1_TUNNELED_CREDENTIAL_TYPE_PARAMS =
90 private static final Map<Integer, Set<AuthParam>> TEST_DATA2_AUTH_PARAMS =
92 private static final Set<AuthParam> TEST_DATA2_EXPANDED_EAP_METHOD_PARAMS = new HashSet<>();
93 private static final Set<AuthParam> TEST_DATA2_NON_EAP_INNER_AUTH_PARAMS = new HashSet<>();
94 private static final Set<AuthParam> TEST_DATA2_INNER_AUTH_EAP_PARAMS = new HashSet<>();
95 private static final Set<AuthParam> TEST_DATA2_EXPANDED_INNER_EAP_PARAMS = new HashSet<>();
96 private static final Set<AuthParam> TEST_DATA2_CREDENTIAL_TYPE_PARAMS = new HashSet<>();
[all …]
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DOverlayPackagesProvider.java44 import java.util.Set;
105 public Set<String> getNonRequiredApps(@NonNull ComponentName admin, int userId, in getNonRequiredApps()
107 final Set<String> nonRequiredApps = getLaunchableApps(userId); in getNonRequiredApps()
122 private Set<String> getLaunchableApps(int userId) { in getLaunchableApps()
131 final Set<String> apps = new ArraySet<>(); in getLaunchableApps()
138 private Set<String> getSystemInputMethods(int userId) { in getSystemInputMethods()
140 final Set<String> systemInputMethods = new ArraySet<>(); in getSystemInputMethods()
150 private Set<String> getRequiredApps(String provisioningAction, String dpcPackageName) { in getRequiredApps()
151 final Set<String> requiredApps = new ArraySet<>(); in getRequiredApps()
158 private Set<String> getDisallowedApps(String provisioningAction) { in getDisallowedApps()
[all …]
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DDependencyFinder.java39 import java.util.Set;
73 public List<Map<String, Set<String>>> findDeps(List<String> osJarPath) throws IOException { in findDeps()
80 Map<String, Set<String>> deps = findClassesDeps(zipClasses); in findDeps()
82 Map<String, Set<String>> missing = findMissingClasses(deps, zipClasses.keySet()); in findDeps()
84 List<Map<String, Set<String>>> result = new ArrayList<>(2); in findDeps()
93 public void printAllDeps(List<Map<String, Set<String>>> result) { in printAllDeps()
95 Map<String, Set<String>> deps = result.get(0); in printAllDeps()
96 Map<String, Set<String>> missing = result.get(1); in printAllDeps()
105 for (Entry<String, Set<String>> entry : deps.entrySet()) { in printAllDeps()
123 for (Entry<String, Set<String>> entry : missing.entrySet()) { in printAllDeps()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DNetworkRequestStoreData.java35 import java.util.Set;
63 Map<String, Set<AccessPoint>> toSerialize(); in toSerialize()
70 void fromDeserialized(Map<String, Set<AccessPoint>> approvedAccessPoints); in fromDeserialized()
133 XmlSerializer out, final Map<String, Set<AccessPoint>> approvedAccessPointsMap) in serializeApprovedAccessPointsMap()
138 for (Entry<String, Set<AccessPoint>> entry : approvedAccessPointsMap.entrySet()) { in serializeApprovedAccessPointsMap()
155 XmlSerializer out, final Set<AccessPoint> approvedAccessPoints) in serializeApprovedAccessPoints()
186 private Map<String, Set<AccessPoint>> parseApprovedAccessPointsMap(XmlPullParser in, in parseApprovedAccessPointsMap()
189 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in parseApprovedAccessPointsMap()
197 Set<AccessPoint> approvedAccessPoints = in parseApprovedAccessPointsMap()
214 private Set<AccessPoint> parseApprovedAccessPoints(XmlPullParser in, int outerTagDepth) in parseApprovedAccessPoints()
[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()
DKeyStoreCertificateSource.java26 import java.util.Set;
38 private Set<X509Certificate> mCertificates;
45 public Set<X509Certificate> getCertificates() { in getCertificates()
58 Set<X509Certificate> certificates = new ArraySet<>(mKeyStore.size()); in ensureInitialized()
96 public Set<X509Certificate> findAllByIssuerAndSignature(X509Certificate cert) { in findAllByIssuerAndSignature()
98 Set<java.security.cert.TrustAnchor> anchors = mIndex.findAllByIssuerAndSignature(cert); in findAllByIssuerAndSignature()
102 Set<X509Certificate> certs = new ArraySet<X509Certificate>(anchors.size()); in findAllByIssuerAndSignature()
DResourceCertificateSource.java29 import java.util.Set;
41 private Set<X509Certificate> mCertificates;
55 Set<X509Certificate> certificates = new ArraySet<X509Certificate>(); in ensureInitialized()
80 public Set<X509Certificate> getCertificates() { in getCertificates()
106 public Set<X509Certificate> findAllByIssuerAndSignature(X509Certificate cert) { in findAllByIssuerAndSignature()
108 Set<java.security.cert.TrustAnchor> anchors = mIndex.findAllByIssuerAndSignature(cert); in findAllByIssuerAndSignature()
112 Set<X509Certificate> certs = new ArraySet<X509Certificate>(anchors.size()); in findAllByIssuerAndSignature()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DTestCertificateSource.java21 import java.util.Set;
28 private final Set<X509Certificate> mCertificates;
30 public TestCertificateSource(Set<X509Certificate> certificates) { in TestCertificateSource()
38 public Set<X509Certificate> getCertificates() { in getCertificates()
61 public Set<X509Certificate> findAllByIssuerAndSignature(X509Certificate cert) { in findAllByIssuerAndSignature()
62 Set<X509Certificate> certs = new ArraySet<X509Certificate>(); in findAllByIssuerAndSignature()
DTestConfigSource.java20 import java.util.Set;
24 private final Set<Pair<Domain, NetworkSecurityConfig>> mConfigs;
26 public TestConfigSource(Set<Pair<Domain, NetworkSecurityConfig>> configs, in TestConfigSource()
32 public Set<Pair<Domain, NetworkSecurityConfig>> getPerDomainConfigs() { in getPerDomainConfigs()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DApprovedPrintServices.java27 import java.util.Set;
56 public Set<String> getApprovedServices() { in getApprovedServices()
69 final Set<String> approvedServices = getApprovedServices(); in isApprovedService()
91 Set<String> oldApprovedServices = in addApprovedService()
94 Set<String> newApprovedServices; in addApprovedService()
136 Set<String> approvedServices = getApprovedServices(); in pruneApprovedServices()
142 Set<String> newApprovedServices = new ArraySet<>(approvedServices.size()); in pruneApprovedServices()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DNetworkRequestStoreDataTest.java46 import java.util.Set;
112 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in serializeDeserializeSingleNetworkRequestFromSingleApp()
117 Set<AccessPoint> accessPoints = new HashSet<AccessPoint>() {{ in serializeDeserializeSingleNetworkRequestFromSingleApp()
130 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in serializeDeserializeSingleNetworkRequestFromMultipleApps()
135 Set<AccessPoint> accessPoints1 = new HashSet<AccessPoint>() {{ in serializeDeserializeSingleNetworkRequestFromMultipleApps()
143 Set<AccessPoint> accessPoints2 = new HashSet<AccessPoint>() {{ in serializeDeserializeSingleNetworkRequestFromMultipleApps()
156 Map<String, Set<AccessPoint>> approvedAccessPointsMap = new HashMap<>(); in serializeDeserializeMultipleNetworkRequestFromMultipleApps()
164 Set<AccessPoint> accessPoints1 = new HashSet<AccessPoint>() {{ in serializeDeserializeMultipleNetworkRequestFromMultipleApps()
176 Set<AccessPoint> accessPoints2 = new HashSet<AccessPoint>() {{ in serializeDeserializeMultipleNetworkRequestFromMultipleApps()
196 Map<String, Set<AccessPoint>> approvedAccessPointsMap) in assertSerializeDeserialize()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/eap/
DEAPMethod.java28 import java.util.Set;
40 private final Map<Integer, Set<AuthParam>> mAuthParams;
43 public EAPMethod(int methodID, Map<Integer, Set<AuthParam>> authParams) { in EAPMethod()
65 Map<Integer, Set<AuthParam>> authParams = new HashMap<>(); in parse()
115 private static void addAuthParam(Map<Integer, Set<AuthParam>> paramsMap, in addAuthParam()
117 Set<AuthParam> authParams = paramsMap.get(authParam.getAuthTypeID()); in addAuthParam()
125 public Map<Integer, Set<AuthParam>> getAuthParams() { in getAuthParams()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointEventHandler.java29 import java.util.Set;
81 Pair<Set<Integer>, Set<Integer>> querySets = buildAnqpIdSet(elements); in requestANQP()
145 private static Pair<Set<Integer>, Set<Integer>> buildAnqpIdSet( in buildAnqpIdSet()
147 Set<Integer> anqpIds = new HashSet<>(); in buildAnqpIdSet()
148 Set<Integer> hs20Subtypes = new HashSet<>(); in buildAnqpIdSet()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DGraphExporter.java28 import java.util.Set;
70 Set<String> inputPorts = getInputPorts(filter, includeUnconnectedOptionalPorts); in exportAsDot()
85 Set<String> outputPorts = getOutputPorts(filter, includeUnconnectedOptionalPorts); in exportAsDot()
104 Set<String> outputPorts = getOutputPorts(filter, includeUnconnectedOptionalPorts); in exportAsDot()
128 Set<String> inputPorts = getInputPorts(filter, includeUnconnectedOptionalPorts); in exportAsDot()
165 static private Set<String> getInputPorts(Filter filter, boolean includeUnconnectedOptional) { in getInputPorts()
167 Set<String> ports = new HashSet<String>(); in getInputPorts()
183 static private Set<String> getOutputPorts(Filter filter, boolean includeUnconnectedOptional) { in getOutputPorts()
185 Set<String> ports = new HashSet<String>(); in getOutputPorts()
/frameworks/base/core/java/com/android/internal/util/
DCollectionUtils.java31 import java.util.Set;
66 public static @NonNull <T> Set<T> filter(@Nullable Set<T> set, in filter()
122 public static @NonNull <I, O> Set<O> map(@Nullable Set<I> cur, in map()
182 public static @NonNull <T> Set<T> emptyIfNull(@Nullable Set<T> cur) { in emptyIfNull()
260 public static @NonNull <T> Set<T> add(@Nullable Set<T> cur, T val) { in add()
283 public static @NonNull <T> Set<T> remove(@Nullable Set<T> cur, T val) { in remove()
301 public static @NonNull <T> Set<T> copyOf(@Nullable Set<T> cur) { in copyOf()
310 public static <T> void forEach(@Nullable Set<T> cur, @Nullable ThrowingConsumer<T> action) { in forEach()
/frameworks/base/core/java/android/preference/
DMultiSelectListPreference.java29 import java.util.Set;
52 private Set<String> mValues = new HashSet<String>();
53 private Set<String> mNewValues = new HashSet<String>();
145 public void setValues(Set<String> values) { in setValues()
155 public Set<String> getValues() { in getValues()
204 final Set<String> values = mValues; in getSelectedItems()
219 final Set<String> values = mNewValues; in onDialogClosed()
231 final Set<String> result = new HashSet<String>(); in onGetDefaultValue()
242 setValues(restoreValue ? getPersistedStringSet(mValues) : (Set<String>) defaultValue); in onSetInitialValue()
259 Set<String> values;
/frameworks/base/services/core/java/com/android/server/pm/dex/
DPackageDexUsage.java48 import java.util.Set;
279 for (Map.Entry<String, Set<String>> codeEntry : in write()
282 Set<String> loadingPackages = codeEntry.getValue(); in write()
346 Set<String> supportedIsas = new HashSet<>(); in read()
377 Set<String> loadingPackages = maybeReadLoadingPackages(in, version); in read()
419 Set<String> loadingPackages = maybeReadLoadingPackages(in, version); in read()
469 private Set<String> maybeReadLoadingPackages(BufferedReader in, int version) in maybeReadLoadingPackages()
480 Set<String> result = new HashSet<>(); in maybeReadLoadingPackages()
495 Set<String> loadingPackages) { in maybeAddLoadingPackage()
507 /*package*/ void syncData(Map<String, Set<Integer>> packageToUsersMap, in syncData()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java66 import java.util.Set;
88 private final Set<Integer> mUsers = new HashSet<>();
97 private final Map<String, Set<UidRange>> mVpnUidRanges = new HashMap<>();
103 private final Set<Integer> mAllApps = new HashSet<>();
281 private void update(Set<Integer> users, Map<Integer, Boolean> apps, boolean add) { in update()
317 Set<Integer> users = new HashSet<>(); in onUserAdded()
336 Set<Integer> users = new HashSet<>(); in onUserRemoved()
383 for (Map.Entry<String, Set<UidRange>> vpn : mVpnUidRanges.entrySet()) { in onPackageAdded()
385 final Set<Integer> changedUids = new HashSet<>(); in onPackageAdded()
405 for (Map.Entry<String, Set<UidRange>> vpn : mVpnUidRanges.entrySet()) { in onPackageRemoved()
[all …]
/frameworks/opt/vcard/java/com/android/vcard/
DVCardParser_V21.java25 import java.util.Set;
47 /* package */ static final Set<String> sKnownPropertyNameSet =
56 /* package */ static final Set<String> sKnownTypeSet =
70 /* package */ static final Set<String> sKnownValueSet =
83 /* package */ static final Set<String> sAvailableEncoding =
/frameworks/base/core/java/android/hardware/radio/
DProgramList.java33 import java.util.Set;
237 private final @NonNull Set<Integer> mIdentifierTypes;
238 private final @NonNull Set<ProgramSelector.Identifier> mIdentifiers;
253 public Filter(@NonNull Set<Integer> identifierTypes, in Filter()
254 @NonNull Set<ProgramSelector.Identifier> identifiers, in Filter()
334 public @NonNull Set<Integer> getIdentifierTypes() { in getIdentifierTypes()
348 public @NonNull Set<ProgramSelector.Identifier> getIdentifiers() { in getIdentifiers()
380 private final @NonNull Set<RadioManager.ProgramInfo> mModified;
381 private final @NonNull Set<ProgramSelector.Identifier> mRemoved;
384 @Nullable Set<RadioManager.ProgramInfo> modified, in Chunk()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierSignalAgent.java48 import java.util.Set;
84 private Map<String, Set<ComponentName>> mCachedWakeSignalConfigs = new HashMap<>();
93 private Map<String, Set<ComponentName>> mCachedNoWakeSignalConfigs = new HashMap<>();
100 private final Set<String> mCarrierSignalList = new HashSet<>(Arrays.asList(
198 Map<String, Set<ComponentName>> config = parseAndCache( in loadCarrierConfig()
218 Map<String, Set<ComponentName>> config = parseAndCache( in loadCarrierConfig()
238 private Map<String, Set<ComponentName>> parseAndCache(String[] configs) { in parseAndCache()
239 Map<String, Set<ComponentName>> newCachedWakeSignalConfigs = new HashMap<>(); in parseAndCache()
257 Set<ComponentName> componentList = newCachedWakeSignalConfigs.get(s); in parseAndCache()
299 private void broadcast(Intent intent, Set<ComponentName> receivers, boolean wakeup) { in broadcast()
[all …]

12345678910>>...30