/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | KeySetManagerServiceTest.java | 23 import android.util.ArraySet; 119 ArraySet<PublicKey> signingKeys = new ArraySet<PublicKey>(); in testAddSigningKSToPackageEmpty() 127 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(mKsms); in testAddSigningKSToPackageEmpty() 129 ArraySet<Long> mapping = ksMapping.get(1); in testAddSigningKSToPackageEmpty() 146 ArraySet<PublicKey> signingKeys = new ArraySet<PublicKey>(); in testAddSigningKSToPackageUpgradeSame() 157 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(mKsms); in testAddSigningKSToPackageUpgradeSame() 159 ArraySet<Long> mapping = ksMapping.get(1); in testAddSigningKSToPackageUpgradeSame() 176 ArraySet<PublicKey> signingKeys = new ArraySet<PublicKey>(); in testAddSigningKSToPackageUpgradeDiff() 192 LongSparseArray<ArraySet<Long>> ksMapping = KeySetUtils.getKeySetMapping(mKsms); in testAddSigningKSToPackageUpgradeDiff() 194 ArraySet<Long> mapping = ksMapping.get(2); in testAddSigningKSToPackageUpgradeDiff() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/util/ |
D | ArraySetPerfTest.java | 44 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_InBounds() 56 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_OutOfBounds_Negative() 75 ArraySet<Integer> set = new ArraySet<>(); in testValueAt_OutOfBounds_EdgeCase() 98 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Small_Base() 112 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Small_RemoveNothing() 127 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Small_RemoveAll() 142 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Small_RemoveHalf() 161 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Large_Base() 175 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Large_RemoveNothing() 190 ArraySet<Integer> set = new ArraySet<>(); in testRemoveIf_Large_RemoveAll() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/infra/ |
D | WhitelistHelperTest.java | 24 import android.util.ArraySet; 51 () -> mWhitelistHelper.setWhitelist(new ArraySet<>(), null)); in testSetWhitelist_emptyArguments() 53 () -> mWhitelistHelper.setWhitelist(null, new ArraySet<>())); in testSetWhitelist_emptyArguments() 55 () -> mWhitelistHelper.setWhitelist(new ArraySet<>(), new ArraySet<>())); in testSetWhitelist_emptyArguments() 70 final ArraySet<String> packages = new ArraySet<>(); in testSetWhitelist_nullPackage() 84 final ArraySet<ComponentName> components = new ArraySet<>(); in testSetWhitelist_nullActivity() 98 final ArraySet<ComponentName> components = new ArraySet<>(); in testSetWhitelist_replaceWhitelist() 104 final ArraySet<ComponentName> components2 = new ArraySet<>(); in testSetWhitelist_replaceWhitelist() 113 final ArraySet<String> packages = new ArraySet<>(); in testIsWhitelisted_packageWhitelisted() 127 final ArraySet<ComponentName> components = new ArraySet<>(); in testIsWhitelisted_activityWhitelisted()
|
/frameworks/base/core/java/com/android/server/ |
D | SystemConfig.java | 34 import android.util.ArraySet; 87 final SparseArray<ArraySet<String>> mSystemPermissions = new SparseArray<>(); 115 final ArraySet<String> mUnavailableFeatures = new ArraySet<>(); 135 final ArraySet<String> mAllowInPowerSaveExceptIdle = new ArraySet<>(); 139 final ArraySet<String> mAllowInPowerSave = new ArraySet<>(); 143 final ArraySet<String> mAllowInDataUsageSave = new ArraySet<>(); 147 final ArraySet<String> mAllowUnthrottledLocation = new ArraySet<>(); 151 final ArraySet<String> mAllowIgnoreLocationSettings = new ArraySet<>(); 155 final ArraySet<String> mAllowImplicitBroadcasts = new ArraySet<>(); 159 final ArraySet<String> mLinkedApps = new ArraySet<>(); [all …]
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | NetworkSecurityConfigTests.java | 23 import android.util.ArraySet; 125 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testEmptyConfig() 126 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); in testEmptyConfig() 134 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testEmptyPerNetworkSecurityConfig() 135 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); in testEmptyPerNetworkSecurityConfig() 145 ArraySet<Pin> pins = new ArraySet<Pin>(); in testBadPin() 152 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testBadPin() 153 = new ArraySet<Pair<Domain, NetworkSecurityConfig>>(); in testBadPin() 163 ArraySet<Pin> pins = new ArraySet<Pin>(); in testGoodPin() 170 ArraySet<Pair<Domain, NetworkSecurityConfig>> domainMap in testGoodPin() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/ |
D | AppOpsInfoTest.java | 46 import android.util.ArraySet; 97 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, new ArraySet<>()); in testBindNotification_SetsTextApplicationName() 107 mAppOpsInfo.bindGuts(mMockPackageManager, null, mSbn, new ArraySet<>()); in testBindNotification_SetsPackageIcon() 114 ArraySet<Integer> expectedOps = new ArraySet<>(); in testBindNotification_SetsOnClickListenerForSettings() 118 ArraySet<Integer> ops) -> { in testBindNotification_SetsOnClickListenerForSettings() 133 ArraySet<Integer> expectedOps = new ArraySet<>(); in testOk() 137 ArraySet<Integer> ops) -> { in testOk() 152 ArraySet<Integer> expectedOps = new ArraySet<>(); in testPrompt_camera() 161 ArraySet<Integer> expectedOps = new ArraySet<>(); in testPrompt_mic() 170 ArraySet<Integer> expectedOps = new ArraySet<>(); in testPrompt_overlay() [all …]
|
/frameworks/base/services/core/java/com/android/server/vr/ |
D | EnabledComponentsObserver.java | 33 import android.util.ArraySet; 64 private final SparseArray<ArraySet<ComponentName>> mInstalledSet = new SparseArray<>(); 65 private final SparseArray<ArraySet<ComponentName>> mEnabledSet = new SparseArray<>(); 66 private final Set<EnabledComponentChangeListener> mEnabledComponentListeners = new ArraySet<>(); 176 ArraySet<ComponentName> implementingPackages = loadComponentNamesForUser(i); in rebuildAll() 177 ArraySet<ComponentName> packagesFromSettings = in rebuildAll() 198 ArraySet<ComponentName> installedComponents = mInstalledSet.get(userId); in isValid() 202 ArraySet<ComponentName> validComponents = mEnabledSet.get(userId); in isValid() 216 public ArraySet<ComponentName> getInstalled(int userId) { in getInstalled() 218 ArraySet<ComponentName> ret = mInstalledSet.get(userId); in getInstalled() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskSnapshotControllerTest.java | 29 import android.util.ArraySet; 53 final ArraySet<AppWindowToken> closingApps = new ArraySet<>(); in testGetClosingApps_closing() 55 final ArraySet<Task> closingTasks = new ArraySet<>(); in testGetClosingApps_closing() 71 final ArraySet<AppWindowToken> closingApps = new ArraySet<>(); in testGetClosingApps_notClosing() 73 final ArraySet<Task> closingTasks = new ArraySet<>(); in testGetClosingApps_notClosing() 84 final ArraySet<AppWindowToken> closingApps = new ArraySet<>(); in testGetClosingApps_skipClosingAppsSnapshotTasks() 86 final ArraySet<Task> closingTasks = new ArraySet<>(); in testGetClosingApps_skipClosingAppsSnapshotTasks()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServicesUserState.java | 20 import android.util.ArraySet; 34 private ArrayMap<String, ArraySet<String>> mImportantNotifications = new ArrayMap<>(1); 36 private ArrayMap<String, ArraySet<String>> mStandardLayoutNotifications = new ArrayMap<>(1); 39 private ArrayMap<String, ArraySet<Integer>> mAppOps = new ArrayMap<>(1); 48 mAppOps.put(pkg, new ArraySet<>(3)); in addOp() 55 final ArraySet<Integer> keys = mAppOps.get(pkg); in removeOp() 90 public void addNotification(ArrayMap<String, ArraySet<String>> map, String pkg, in addNotification() 93 map.put(pkg, new ArraySet<>()); in addNotification() 98 public boolean removeNotification(ArrayMap<String, ArraySet<String>> map, in removeNotification() 101 final ArraySet<String> keys = map.get(pkg); in removeNotification() [all …]
|
/frameworks/base/core/java/com/android/internal/infra/ |
D | WhitelistHelper.java | 23 import android.util.ArraySet; 46 private ArrayMap<String, ArraySet<ComponentName>> mWhitelistedPackages; 57 public void setWhitelist(@Nullable ArraySet<String> packageNames, in setWhitelist() 58 @Nullable ArraySet<ComponentName> components) { in setWhitelist() 84 ArraySet<ComponentName> set = mWhitelistedPackages.get(packageName); in setWhitelist() 86 set = new ArraySet<>(); in setWhitelist() 99 final ArraySet<String> packageNamesSet = packageNames == null ? null in setWhitelist() 100 : new ArraySet<>(packageNames); in setWhitelist() 101 final ArraySet<ComponentName> componentsSet = components == null ? null in setWhitelist() 102 : new ArraySet<>(components); in setWhitelist() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSTileRevealController.java | 7 import android.util.ArraySet; 22 private final ArraySet<String> mTilesToReveal = new ArraySet<>(); 52 ArraySet<String> tileSpecs = new ArraySet<>(); in updateRevealedTiles() 70 private void addTileSpecsToRevealed(ArraySet<String> specs) { in addTileSpecsToRevealed() 71 final ArraySet<String> revealedTiles = new ArraySet<>( in addTileSpecsToRevealed()
|
/frameworks/base/core/java/android/util/ |
D | SparseSetArray.java | 24 private final SparseArray<ArraySet<T>> mData = new SparseArray<>(); 34 ArraySet<T> set = mData.get(n); in add() 36 set = new ArraySet<>(); in add() 57 final ArraySet<T> set = mData.get(n); in contains() 67 public ArraySet<T> get(int n) { in get() 76 final ArraySet<T> set = mData.get(n); in remove() 102 final ArraySet<T> set = mData.valueAt(index); in sizeAt()
|
/frameworks/base/services/core/java/com/android/server/role/ |
D | RoleUserState.java | 27 import android.util.ArraySet; 95 private ArrayMap<String, ArraySet<String>> mRoles = new ArrayMap<>(); 199 public ArraySet<String> getRoleHolders(@NonNull String roleName) { in getRoleHolders() 203 ArraySet<String> packageNames = mRoles.get(roleName); in getRoleHolders() 207 return new ArraySet<>(packageNames); in getRoleHolders() 223 mRoles.put(roleName, new ArraySet<>()); in addRoleName() 248 ArraySet<String> packageNames = mRoles.valueAt(i); in setRoleNames() 284 ArraySet<String> roleHolders = mRoles.get(roleName); in addRoleHolder() 317 ArraySet<String> roleHolders = mRoles.get(roleName); in removeRoleHolder() 369 ArrayMap<String, ArraySet<String>> roles; in writeFile() [all …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | RoleObserverTest.java | 55 import android.util.ArraySet; 160 ArraySet<Pair<String, Integer>> dialer0Pair = new ArraySet<>(); in testInit() 164 ArraySet<Pair<String, Integer>> emer0Pair = new ArraySet<>(); in testInit() 215 ArraySet<Pair<String, Integer>> newDefaultPair = new ArraySet<>(); in testSwapDefault() 227 0, new ArraySet<>(dialer0), newDefaultPair); in testSwapDefault() 256 ArraySet<String> expectedRemove = new ArraySet<>(); in testSwapDefault_multipleOverlappingApps() 259 ArraySet<Pair<String, Integer>> expectedAddPair = new ArraySet<>(); in testSwapDefault_multipleOverlappingApps() 293 ArraySet<Pair<String, Integer>> expectedAddPair = new ArraySet<>(); in testSwapDefault_newUser() 299 ArraySet<String> expectedRemove = new ArraySet<>(); in testSwapDefault_newUser() 300 ArraySet<String> expectedAdd = new ArraySet<>(); in testSwapDefault_newUser()
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | SliceFullAccessList.java | 21 import android.util.ArraySet; 45 private final SparseArray<ArraySet<String>> mFullAccessPkgs = new SparseArray<>(); 53 ArraySet<String> pkgs = mFullAccessPkgs.get(userId, null); in hasFullAccess() 58 ArraySet<String> pkgs = mFullAccessPkgs.get(userId, null); in grantFullAccess() 60 pkgs = new ArraySet<>(); in grantFullAccess() 67 ArraySet<String> pkgs = mFullAccessPkgs.get(userId, null); in removeGrant() 69 pkgs = new ArraySet<>(); in removeGrant() 82 final ArraySet<String> pkgs = mFullAccessPkgs.valueAt(i); in writeXml() 121 ArraySet<String> pkgs = new ArraySet<>(); in readXml()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/job/ |
D | JobSetTest.java | 33 import android.util.ArraySet; 107 private static void assertHaveSameJobs(SparseArray<ArraySet<JobStatus>> map1, in assertHaveSameJobs() 108 SparseArray<ArraySet<JobStatus>> map2) { in assertHaveSameJobs() 109 final ArraySet<JobStatus> set1 = new ArraySet<>(); in assertHaveSameJobs() 110 final ArraySet<JobStatus> set2 = new ArraySet<>(); in assertHaveSameJobs() 113 final ArraySet<JobStatus> jobs = map1.valueAt(i); in assertHaveSameJobs() 119 final ArraySet<JobStatus> jobs = map2.valueAt(i); in assertHaveSameJobs() 131 private static void dump(String prefix, SparseArray<ArraySet<JobStatus>> jobMap) { in dump() 134 final ArraySet<JobStatus> jobs = jobMap.valueAt(i); in dump()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | BackgroundDexOptService.java | 37 import android.util.ArraySet; 91 static final ArraySet<String> sFailedPackageNamesPrimary = new ArraySet<String>(); 92 static final ArraySet<String> sFailedPackageNamesSecondary = new ArraySet<String>(); 180 final PackageManagerService pm, final ArraySet<String> pkgs) { in runPostBootUpdate() 196 ArraySet<String> pkgs) { in postBootUpdate() 204 ArraySet<String> updatedPackages = new ArraySet<>(); in postBootUpdate() 252 final PackageManagerService pm, final ArraySet<String> pkgs) { in runIdleOptimization() 276 private int idleOptimization(PackageManagerService pm, ArraySet<String> pkgs, in idleOptimization() 332 private int idleOptimizePackages(PackageManagerService pm, ArraySet<String> pkgs, in idleOptimizePackages() 334 ArraySet<String> updatedPackages = new ArraySet<>(); in idleOptimizePackages() [all …]
|
D | KeySetManagerService.java | 26 import android.util.ArraySet; 62 protected final LongSparseArray<ArraySet<Long>> mKeySetMapping; 116 mKeySetMapping = new LongSparseArray<ArraySet<Long>>(); in KeySetManagerService() 143 ArraySet<Long> pkgKeys = mKeySetMapping.get(pkg.keySetData.getProperSigningKeySet()); in packageIsSignedByLPr() 144 ArraySet<Long> testKeys = mKeySetMapping.get(id); in packageIsSignedByLPr() 171 ArraySet<Long> pkgKeys = mKeySetMapping.get(pkg.keySetData.getProperSigningKeySet()); in packageIsSignedByExactlyLPr() 172 ArraySet<Long> testKeys = mKeySetMapping.get(id); in packageIsSignedByExactlyLPr() 191 ArraySet<PublicKey> signingKeys = pkg.mSigningDetails.publicKeys; in assertScannedPackageValid() 196 ArrayMap<String, ArraySet<PublicKey>> definedMapping = pkg.mKeySetMapping; in assertScannedPackageValid() 211 ArraySet<String> upgradeAliases = pkg.mUpgradeKeySets; in assertScannedPackageValid() [all …]
|
D | ShortcutLauncher.java | 24 import android.util.ArraySet; 65 final private ArrayMap<PackageWithUser, ArraySet<String>> mPinnedShortcuts = new ArrayMap<>(); 136 final ArraySet<String> prevSet = mPinnedShortcuts.get(pu); in pinShortcuts() 145 final ArraySet<String> newSet = new ArraySet<>(); in pinShortcuts() 169 public ArraySet<String> getPinnedShortcutIds(@NonNull String packageName, in getPinnedShortcutIds() 178 final ArraySet<String> pinned = in hasPinned() 188 final ArraySet<String> pinnedSet = getPinnedShortcutIds(packageName, packageUserId); in addPinnedShortcut() 246 final ArraySet<String> ids = mPinnedShortcuts.valueAt(i); in saveToXml() 273 ArraySet<String> ids = null; in loadFromXml() 294 ids = new ArraySet<>(); in loadFromXml() [all …]
|
/frameworks/base/core/java/com/google/android/collect/ |
D | Sets.java | 20 import android.util.ArraySet; 103 public static <E> ArraySet<E> newArraySet() { in newArraySet() 104 return new ArraySet<E>(); in newArraySet() 111 public static <E> ArraySet<E> newArraySet(E... elements) { in newArraySet() 113 ArraySet<E> set = new ArraySet<E>(capacity); in newArraySet()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/ |
D | PowerWhitelistBackend.java | 28 import android.util.ArraySet; 49 private final ArraySet<String> mWhitelistedApps = new ArraySet<>(); 50 private final ArraySet<String> mSysWhitelistedApps = new ArraySet<>(); 51 private final ArraySet<String> mSysWhitelistedAppsExceptIdle = new ArraySet<>(); 52 private final ArraySet<String> mDefaultActiveApps = new ArraySet<>();
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowProcessControllerMap.java | 19 import android.util.ArraySet; 30 private final Map<Integer, ArraySet<WindowProcessController>> mUidMap = new HashMap<>(); 38 ArraySet<WindowProcessController> getProcesses(int uid) { in getProcesses() 57 ArraySet<WindowProcessController> procSet = mUidMap.getOrDefault(uid, in put() 58 new ArraySet<WindowProcessController>()); in put() 78 ArraySet<WindowProcessController> procSet = mUidMap.get(uid); in removeProcessFromUidMap()
|
D | AppTransitionController.java | 58 import android.util.ArraySet; 156 final ArraySet<Integer> activityTypes = collectActivityTypes(mDisplayContent.mOpeningApps, in handleAppTransitionReady() 234 ArraySet<Integer> activityTypes) { in getRemoteAnimationOverride() 253 ArraySet<Integer> activityTypes) { in overrideWithRemoteAnimationIfSet() 273 ArraySet<Integer> activityTypes) { in findAnimLayoutParamsToken() 275 final ArraySet<AppWindowToken> closingApps = mDisplayContent.mClosingApps; in findAnimLayoutParamsToken() 276 final ArraySet<AppWindowToken> openingApps = mDisplayContent.mOpeningApps; in findAnimLayoutParamsToken() 277 final ArraySet<AppWindowToken> changingApps = mDisplayContent.mChangingApps; in findAnimLayoutParamsToken() 299 private static ArraySet<Integer> collectActivityTypes(ArraySet<AppWindowToken> array1, in collectActivityTypes() 300 ArraySet<AppWindowToken> array2, ArraySet<AppWindowToken> array3) { in collectActivityTypes() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | CollectionUtils.java | 21 import android.util.ArraySet; 69 ArraySet<T> result = null; in filter() 70 if (set instanceof ArraySet) { in filter() 71 ArraySet<T> arraySet = (ArraySet<T>) set; in filter() 125 ArraySet<O> result = new ArraySet<>(); in map() 126 if (cur instanceof ArraySet) { in map() 127 ArraySet<I> arraySet = (ArraySet<I>) cur; in map() 262 cur = new ArraySet<>(); in add() 302 return isEmpty(cur) ? Collections.emptySet() : new ArraySet<>(cur); in copyOf() 315 if (cur instanceof ArraySet) { in forEach() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ManagedServices.java | 56 import android.util.ArraySet; 130 private final ArraySet<Pair<ComponentName, Integer>> mServicesRebinding = new ArraySet<>(); 134 private ArraySet<ComponentName> mEnabledServicesForCurrentProfiles 135 = new ArraySet<>(); 137 private ArraySet<String> mEnabledServicesPackageNames = new ArraySet<>(); 139 private ArraySet<ComponentName> mSnoozingForCurrentProfiles = new ArraySet<>(); 144 private ArrayMap<Integer, ArrayMap<Boolean, ArraySet<String>>> mApproved = new ArrayMap<>(); 203 final ArrayMap<Boolean, ArraySet<String>> approvedByType = mApproved.valueAt(i); in dump() 208 final ArraySet<String> approved = approvedByType.valueAt(j); in dump() 249 final ArrayMap<Boolean, ArraySet<String>> approvedByType = mApproved.valueAt(i); in dump() [all …]
|