/frameworks/base/tests/utils/testutils/java/com/android/test/filters/ |
D | SelectTestTests.java | 39 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/ |
D | ClassPathPackageInfoSource.java | 27 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/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayManagerServiceImplTests.java | 43 import java.util.Set; 69 Set.of(new PackageAndUser(OVERLAY, USER), new PackageAndUser(TARGET, USER))); in testGetOverlayInfo() 82 Set.of(new PackageAndUser(OVERLAY, USER), new PackageAndUser(TARGET, USER))); in testGetOverlayInfosForTarget() 84 Set.of(new PackageAndUser(OVERLAY2, USER), new PackageAndUser(TARGET, USER))); in testGetOverlayInfosForTarget() 86 Set.of(new PackageAndUser(OVERLAY3, USER2), new PackageAndUser(TARGET, USER2))); in testGetOverlayInfosForTarget() 110 Set.of(new PackageAndUser(TARGET, USER))); in testGetOverlayInfosForUser() 112 Set.of(new PackageAndUser(OVERLAY, USER), new PackageAndUser(TARGET, USER))); in testGetOverlayInfosForUser() 114 Set.of(new PackageAndUser(OVERLAY2, USER), new PackageAndUser(TARGET, USER))); in testGetOverlayInfosForUser() 116 Set.of(new PackageAndUser(OVERLAY3, USER), new PackageAndUser(TARGET2, USER))); in testGetOverlayInfosForUser() 141 Set.of(new PackageAndUser(OVERLAY, USER), new PackageAndUser(TARGET, USER))); in testPriority() [all …]
|
/frameworks/base/core/java/android/companion/virtual/ |
D | VirtualDeviceParams.java | 39 import java.util.Set; 118 @NonNull Set<UserHandle> usersWithMatchingAccounts, in VirtualDeviceParams() 119 @NonNull Set<ComponentName> allowedCrossTaskNavigations, in VirtualDeviceParams() 120 @NonNull Set<ComponentName> blockedCrossTaskNavigations, in VirtualDeviceParams() 122 @NonNull Set<ComponentName> allowedActivities, in VirtualDeviceParams() 123 @NonNull Set<ComponentName> blockedActivities, in VirtualDeviceParams() 168 public Set<UserHandle> getUsersWithMatchingAccounts() { in getUsersWithMatchingAccounts() 181 public Set<ComponentName> getAllowedCrossTaskNavigations() { in getAllowedCrossTaskNavigations() 194 public Set<ComponentName> getBlockedCrossTaskNavigations() { in getBlockedCrossTaskNavigations() 218 public Set<ComponentName> getAllowedActivities() { in getAllowedActivities() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierPrivilegesTrackerTest.java | 88 import java.util.Set; 113 private static final Set<String> PRIVILEGED_PACKAGES = Set.of(PACKAGE_1, PACKAGE_2); 125 private static final Set<Integer> PRIVILEGED_UIDS_SET = Set.of(UID_1, UID_2); 193 Set<UserInfo> users = new ArraySet<>(); in setupInstalledPackages() 278 private void verifyCurrentState(Set<String> expectedPackageNames, int[] expectedUids) { in verifyCurrentState() 299 List<Pair<Set<String>, Set<Integer>>> expectedUpdates) { in verifyCarrierPrivilegesChangedUpdates() 305 for (Pair<Set<String>, Set<Integer>> expectedUpdate : expectedUpdates) { in verifyCarrierPrivilegesChangedUpdates() 343 verifyCurrentState(Set.of(), new int[0]); in testRegisterListener() 377 verifyCurrentState(Set.of(), new int[0]); in testUnregisterListener() 379 verifyCarrierPrivilegesChangedUpdates(List.of(new Pair<>(Set.of(), Set.of()))); in testUnregisterListener() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/internal/ |
D | LifecycleOperationStorageTest.java | 40 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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
D | PhonePipKeepClearAlgorithmTest.java | 34 import java.util.Set; 58 Set.of(keepClearRect), Set.of(), DISPLAY_BOUNDS); in findUnoccludedPosition_withCollidingRestrictedKeepClearArea_movesBounds() 69 Set.of(keepClearRect), Set.of(), DISPLAY_BOUNDS); in findUnoccludedPosition_withNonCollidingRestrictedKeepClearArea_boundsUnchanged() 80 final Rect outBounds = mPipKeepClearAlgorithm.findUnoccludedPosition(inBounds, Set.of(), in findUnoccludedPosition_withCollidingUnrestrictedKeepClearArea_moveBounds() 81 Set.of(keepClearRect), DISPLAY_BOUNDS); in findUnoccludedPosition_withCollidingUnrestrictedKeepClearArea_moveBounds() 91 final Rect outBounds = mPipKeepClearAlgorithm.findUnoccludedPosition(inBounds, Set.of(), in findUnoccludedPosition_withNonCollidingUnrestrictedKeepClearArea_boundsUnchanged() 92 Set.of(keepClearRect), DISPLAY_BOUNDS); in findUnoccludedPosition_withNonCollidingUnrestrictedKeepClearArea_boundsUnchanged()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | RecommendedStreamConfigurationMap.java | 42 import java.util.Set; 207 private Set<Integer> getUnmodifiableIntegerSet(int[] intArray) { in getUnmodifiableIntegerSet() 230 public @NonNull Set<Integer> getOutputFormats() { in getOutputFormats() 243 public @Nullable Set<Integer> getValidOutputFormatsForInput(@Format int inputFormat) { in getValidOutputFormatsForInput() 256 public @Nullable Set<Integer> getInputFormats() { in getInputFormats() 260 private Set<Size> getUnmodifiableSizeSet(Size[] sizeArray) { in getUnmodifiableSizeSet() 279 public @Nullable Set<Size> getInputSizes(@Format int format) { in getInputSizes() 317 public @Nullable Set<Size> getOutputSizes(@Format int format) { in getOutputSizes() 329 public @Nullable Set<Size> getHighSpeedVideoSizes() { in getHighSpeedVideoSizes() 333 private Set<Range<Integer>> getUnmodifiableRangeSet(Range<Integer>[] rangeArray) { in getUnmodifiableRangeSet() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/license/ |
D | LicenseHtmlGeneratorFromXmlTest.java | 35 import java.util.Set; 155 Map<String, Map<String, Set<String>>> fileNameToLibraryToContentIdMap = new HashMap<>(); in testParseValidXmlStream() 173 Map<String, Map<String, Set<String>>> fileNameToLibraryToContentIdMap = new HashMap<>(); in testParseNewValidXmlStream() 191 Map<String, Map<String, Set<String>>> fileNameToLibraryToContentIdMap = new HashMap<>(); in testParseInvalidXmlStream() 201 Map<String, Map<String, Set<String>>> fileNameToLibraryToContentIdMap = new HashMap<>(); in testGenerateHtml() 203 Map<String, Set<String>> toBoth = new HashMap<>(); in testGenerateHtml() 204 Map<String, Set<String>> toOne = new HashMap<>(); in testGenerateHtml() 223 Map<String, Map<String, Set<String>>> fileNameToLibraryToContentIdMap = new HashMap<>(); in testGenerateNewHtml() 225 Map<String, Set<String>> toBoth = new HashMap<>(); in testGenerateNewHtml() 226 Map<String, Set<String>> toOne = new HashMap<>(); in testGenerateNewHtml() [all …]
|
/frameworks/base/core/java/com/android/internal/compat/ |
D | CompatibilityChangeConfig.java | 25 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/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/ |
D | PublishServiceDescTracker.java | 32 import java.util.Set; 54 private static final Map<ServiceDescription, Set<String>> DEFAULT_SERVICE_DESCRIPTION_MAP; 56 ArrayMap<ServiceDescription, Set<String>> map = new ArrayMap<>(21); 119 private final Map<ServiceDescription, Set<String>> mServiceDescriptionFeatureTagMap; 122 private final Set<ServiceDescription> mServiceDescriptionPartialMatches = new ArraySet<>(); 124 private final Set<ServiceDescription> mRegistrationCapabilities = new ArraySet<>(); 126 private Set<String> mRegistrationFeatureTags = new ArraySet<>(); 133 Map<ServiceDescription, Set<String>> elements = new ArrayMap<>(); in fromCarrierConfig() 134 for (Map.Entry<ServiceDescription, Set<String>> entry : in fromCarrierConfig() 158 private static Set<String> parseFeatureTags(String featureTags) { in parseFeatureTags() [all …]
|
/frameworks/libs/modules-utils/java/com/android/modules/utils/build/ |
D | UnboundedSdkLevel.java | 26 import java.util.Set; 50 private static final SparseArray<Set<String>> PREVIOUS_CODENAMES = new SparseArray<>(4); 53 PREVIOUS_CODENAMES.put(29, Set.of("Q")); 54 PREVIOUS_CODENAMES.put(30, Set.of("Q", "R")); 55 PREVIOUS_CODENAMES.put(31, Set.of("Q", "R", "S")); 56 PREVIOUS_CODENAMES.put(32, Set.of("Q", "R", "S", "Sv2")); 70 private final Set<String> mKnownCodenames; 73 UnboundedSdkLevel(int sdkInt, String codename, Set<String> knownCodenames) { in UnboundedSdkLevel()
|
/frameworks/base/core/java/android/security/net/config/ |
D | PinSet.java | 21 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()
|
D | KeyStoreCertificateSource.java | 26 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()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | OverlayPackagesProvider.java | 60 import java.util.Set; 75 private static final Set<String> sAllowedActions = new HashSet<>(); 150 public Set<String> getNonRequiredApps(@NonNull ComponentName admin, int userId, in getNonRequiredApps() 154 final Set<String> nonRequiredApps = getLaunchableApps(userId); in getNonRequiredApps() 166 private Set<String> getDeviceManagerRoleHolders() { in getDeviceManagerRoleHolders() 183 private Set<String> getRequiredAppsMainlineModules( in getRequiredAppsMainlineModules() 184 Set<String> packageNames, in getRequiredAppsMainlineModules() 186 final Set<String> result = new HashSet<>(); in getRequiredAppsMainlineModules() 233 private Set<String> getLaunchableApps(int userId) { in getLaunchableApps() 242 final Set<String> apps = new ArraySet<>(); in getLaunchableApps() [all …]
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | TestCertificateSource.java | 21 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()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/panels/ |
D | AuthorizedPanelsRepository.kt | 27 fun getAuthorizedPanels(): Set<String> 30 fun getPreferredPackages(): Set<String> 33 fun addAuthorizedPanels(packageNames: Set<String>) 38 fun removeAuthorizedPanels(packageNames: Set<String>)
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/ |
D | DependencyFinder.java | 39 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/base/core/java/android/net/vcn/ |
D | VcnCellUnderlyingNetworkTemplate.java | 45 import java.util.Set; 55 @NonNull private final Set<String> mAllowedNetworkPlmnIds; 57 @NonNull private final Set<Integer> mAllowedSpecificCarrierIds; 73 Set<String> allowedNetworkPlmnIds, in VcnCellUnderlyingNetworkTemplate() 74 Set<Integer> allowedSpecificCarrierIds, in VcnCellUnderlyingNetworkTemplate() 102 private static void validatePlmnIds(Set<String> matchingOperatorPlmnIds) { in validatePlmnIds() 137 final Set<String> allowedNetworkPlmnIds = in fromPersistableBundle() 144 final Set<Integer> allowedSpecificCarrierIds = in fromPersistableBundle() 193 public Set<String> getOperatorPlmnIds() { in getOperatorPlmnIds() 204 public Set<Integer> getSimSpecificCarrierIds() { in getSimSpecificCarrierIds() [all …]
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/ |
D | ApprovedPrintServices.java | 27 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/base/core/java/android/app/admin/ |
D | ParcelableGranteeMap.java | 26 import java.util.Set; 35 private final Map<Integer, Set<String>> mPackagesByUid; 45 for (final Map.Entry<Integer, Set<String>> uidEntry : mPackagesByUid.entrySet()) { in writeToParcel() 55 final Map<Integer, Set<String>> packagesByUid = new ArrayMap<>(); 74 public ParcelableGranteeMap(@NonNull Map<Integer, Set<String>> packagesByUid) { in ParcelableGranteeMap() 82 public Map<Integer, Set<String>> getPackagesByUid() { in getPackagesByUid()
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | OverlayManagerServiceImpl.java | 56 import java.util.Set; 248 Set<PackageAndUser> onPackageAdded(@NonNull final String pkgName, in onPackageAdded() 250 final Set<PackageAndUser> updatedTargets = new ArraySet<>(); in onPackageAdded() 258 Set<PackageAndUser> onPackageChanged(@NonNull final String pkgName, in onPackageChanged() 264 Set<PackageAndUser> onPackageReplacing(@NonNull final String pkgName, final int userId) in onPackageReplacing() 270 Set<PackageAndUser> onPackageReplaced(@NonNull final String pkgName, final int userId) in onPackageReplaced() 276 Set<PackageAndUser> onPackageRemoved(@NonNull final String pkgName, final int userId) { in onPackageRemoved() 281 final Set<PackageAndUser> targets = updateOverlaysForTarget(pkgName, userId, 0 /* flags */); in onPackageRemoved() 289 private Set<PackageAndUser> removeOverlaysForUser( in removeOverlaysForUser() 293 Set<PackageAndUser> targets = Collections.emptySet(); in removeOverlaysForUser() [all …]
|
/frameworks/base/core/java/com/android/internal/app/ |
D | AppLocaleCollector.java | 29 import java.util.Set; 61 public Set<LocaleStore.LocaleInfo> getSupportedLocaleList(LocaleStore.LocaleInfo parent, in getSupportedLocaleList() 65 Set<String> langTagsToIgnore = getIgnoredLocaleList(translatedOnly); in getSupportedLocaleList() 66 Set<LocaleStore.LocaleInfo> appLocaleList = new HashSet<>(); in getSupportedLocaleList() 67 Set<LocaleStore.LocaleInfo> systemLocaleList; in getSupportedLocaleList() 120 private Set<LocaleStore.LocaleInfo> filterTheLanguagesNotIncludedInSystemLocale( in filterTheLanguagesNotIncludedInSystemLocale() 121 Set<LocaleStore.LocaleInfo> systemLocaleList, in filterTheLanguagesNotIncludedInSystemLocale() 123 Set<LocaleStore.LocaleInfo> filteredList = new HashSet<>(); in filterTheLanguagesNotIncludedInSystemLocale()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/d2d/ |
D | RtpAdapter.java | 23 import java.util.Set; 35 void onRtpHeaderExtensionsReceived(Set<RtpHeaderExtension> extensions); in onRtpHeaderExtensionsReceived() 42 Set<RtpHeaderExtensionType> getAcceptedRtpHeaderExtensions(); in getAcceptedRtpHeaderExtensions() 48 void sendRtpHeaderExtensions(@NonNull Set<RtpHeaderExtension> rtpHeaderExtensions); in sendRtpHeaderExtensions()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | OperationStorage.java | 23 import java.util.Set; 100 Set<String> packageNames, BackupRestoreTask task, @OpType int type); in registerOperationForPackages() 135 Set<Integer> operationTokensForPackage(String packageName); in operationTokensForPackage() 145 Set<Integer> operationTokensForOpType(@OpType int type); in operationTokensForOpType() 155 Set<Integer> operationTokensForOpState(@OpState int state); in operationTokensForOpState()
|