Home
last modified time | relevance | path

Searched refs:SparseBooleanArray (Results 1 – 25 of 153) sorted by relevance

1234567

/frameworks/base/services/permission/java/com/android/server/permission/access/collection/
DSparseBooleanArrayExtensions.kt19 import android.util.SparseBooleanArray in <lambda>()
21 inline fun SparseBooleanArray.allIndexed(predicate: (Int, Int, Boolean) -> Boolean): Boolean { in <lambda>()
30 inline fun SparseBooleanArray.anyIndexed(predicate: (Int, Int, Boolean) -> Boolean): Boolean { in anyIndexed()
39 inline fun SparseBooleanArray.forEachIndexed(action: (Int, Int, Boolean) -> Unit) { in forEachIndexed()
45 inline fun SparseBooleanArray.forEachReversedIndexed(action: (Int, Int, Boolean) -> Unit) { in forEachReversedIndexed()
51 inline fun SparseBooleanArray.getOrPut(key: Int, defaultValue: () -> Boolean): Boolean { in getOrPut()
60 inline val SparseBooleanArray.lastIndex: Int
64 inline operator fun SparseBooleanArray.minusAssign(key: Int) { in minusAssign()
68 inline fun SparseBooleanArray.noneIndexed(predicate: (Int, Int, Boolean) -> Boolean): Boolean { in noneIndexed()
77 fun SparseBooleanArray.remove(key: Int) { in SparseBooleanArray() method
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageVerificationState.java20 import android.util.SparseBooleanArray;
31 private final SparseBooleanArray mSufficientVerifierUids;
33 private final SparseBooleanArray mRequiredVerifierUids;
34 private final SparseBooleanArray mUnrespondedRequiredVerifierUids;
36 private final SparseBooleanArray mExtendedTimeoutUids;
54 mSufficientVerifierUids = new SparseBooleanArray(); in PackageVerificationState()
55 mRequiredVerifierUids = new SparseBooleanArray(); in PackageVerificationState()
56 mUnrespondedRequiredVerifierUids = new SparseBooleanArray(); in PackageVerificationState()
57 mExtendedTimeoutUids = new SparseBooleanArray(); in PackageVerificationState()
DUserNeedsBadgingCache.java23 import android.util.SparseBooleanArray;
34 private final SparseBooleanArray mUserCache = new SparseBooleanArray();
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsRestrictionsImpl.java30 import android.util.SparseBooleanArray;
49 private final ArrayMap<Object, SparseBooleanArray> mGlobalRestrictions = new ArrayMap<>();
52 private final ArrayMap<Object, SparseArray<SparseBooleanArray>> mUserRestrictions =
70 mGlobalRestrictions.put(clientToken, new SparseBooleanArray()); in setGlobalRestriction()
72 SparseBooleanArray restrictedCodes = mGlobalRestrictions.get(clientToken); in setGlobalRestriction()
78 SparseBooleanArray restrictedCodes = mGlobalRestrictions.get(clientToken); in setGlobalRestriction()
93 SparseBooleanArray restrictedCodes = mGlobalRestrictions.get(clientToken); in getGlobalRestriction()
155 SparseArray<SparseBooleanArray> userIdRestrictedCodes = in getUserRestriction()
160 SparseBooleanArray restrictedCodes = userIdRestrictedCodes.get(userId); in getUserRestriction()
190 SparseBooleanArray allUserRestrictedCodes = collectAllUserRestrictedCodes(clientToken); in clearUserRestrictions()
[all …]
DAppOpsServiceTestingShim.java19 import android.util.SparseBooleanArray;
158 public SparseBooleanArray getForegroundOps(int uid, String persistentDeviceId) { in getForegroundOps()
159 SparseBooleanArray oldVal = mOldImplementation.getForegroundOps(uid, persistentDeviceId); in getForegroundOps()
160 SparseBooleanArray newVal = mNewImplementation.getForegroundOps(uid, persistentDeviceId); in getForegroundOps()
170 public SparseBooleanArray getForegroundOps(String packageName, int userId) { in getForegroundOps()
171 SparseBooleanArray oldVal = mOldImplementation.getForegroundOps(packageName, userId); in getForegroundOps()
172 SparseBooleanArray newVal = mNewImplementation.getForegroundOps(packageName, userId); in getForegroundOps()
DAudioRestrictionManager.java26 import android.util.SparseBooleanArray;
41 static final SparseArray<SparseBooleanArray> CAMERA_AUDIO_RESTRICTIONS;
44 SparseBooleanArray audioMutedUsages = new SparseBooleanArray();
45 SparseBooleanArray vibrationMutedUsages = new SparseBooleanArray();
77 final SparseBooleanArray mutedUsages = CAMERA_AUDIO_RESTRICTIONS.get(code); in checkAudioOperation()
DAppOpsCheckingServiceInterface.java21 import android.util.SparseBooleanArray;
140 SparseBooleanArray getForegroundOps(int uid, String persistentDeviceId); in getForegroundOps()
149 SparseBooleanArray getForegroundOps(String packageName, int userId); in getForegroundOps()
DAppOpsCheckingServiceLoggingDecorator.java21 import android.util.SparseBooleanArray;
120 public SparseBooleanArray getForegroundOps(int uid, String persistentDeviceId) { in getForegroundOps()
126 public SparseBooleanArray getForegroundOps(String packageName, int userId) { in getForegroundOps()
/frameworks/base/services/core/java/com/android/server/utils/
DWatchedSparseBooleanArray.java21 import android.util.SparseBooleanArray;
31 private final SparseBooleanArray mStorage;
42 mStorage = new SparseBooleanArray(); in WatchedSparseBooleanArray()
53 mStorage = new SparseBooleanArray(initialCapacity); in WatchedSparseBooleanArray()
59 public WatchedSparseBooleanArray(@NonNull SparseBooleanArray c) { in WatchedSparseBooleanArray()
73 public void copyFrom(@NonNull SparseBooleanArray src) { in copyFrom()
84 public void copyTo(@NonNull SparseBooleanArray dst) { in copyTo()
96 public SparseBooleanArray untrackedStorage() { in untrackedStorage()
/frameworks/base/services/permission/java/com/android/server/permission/access/immutable/
DIntSet.kt19 import android.util.SparseBooleanArray
22 sealed class IntSet(internal val array: SparseBooleanArray) : Immutable<MutableIntSet> {
40 class MutableIntSet(array: SparseBooleanArray = SparseBooleanArray()) : IntSet(array) { in isEmpty()
71 private fun SparseBooleanArray.contains(key: Int): Boolean = indexOfKey(key) >= 0 method
/frameworks/base/core/java/android/util/
DSparseBooleanArray.java48 public class SparseBooleanArray implements Cloneable { class
52 public SparseBooleanArray() { in SparseBooleanArray() method in SparseBooleanArray
63 public SparseBooleanArray(int initialCapacity) { in SparseBooleanArray() method in SparseBooleanArray
75 public SparseBooleanArray clone() { in clone()
76 SparseBooleanArray clone = null; in clone()
78 clone = (SparseBooleanArray) super.clone(); in clone()
297 if (!(that instanceof SparseBooleanArray)) { in equals()
301 SparseBooleanArray other = (SparseBooleanArray) that; in equals()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DCarrierConfigTracker.java27 import android.util.SparseBooleanArray;
54 private final SparseBooleanArray mCallStrengthConfigs = new SparseBooleanArray();
55 private final SparseBooleanArray mNoCallingConfigs = new SparseBooleanArray();
56 private final SparseBooleanArray mCarrierProvisionsWifiMergedNetworks =
57 new SparseBooleanArray();
58 private final SparseBooleanArray mShowOperatorNameConfigs = new SparseBooleanArray();
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbUserPermissionManager.java50 import android.util.SparseBooleanArray;
83 private final ArrayMap<String, SparseBooleanArray> mDevicePermissionMap =
88 private final ArrayMap<UsbAccessory, SparseBooleanArray> mAccessoryPermissionMap =
93 private final ArrayMap<DeviceFilter, SparseBooleanArray>
97 private final ArrayMap<AccessoryFilter, SparseBooleanArray>
165 SparseBooleanArray uidList = mDevicePermissionMap.get(deviceName); in grantDevicePermission()
167 uidList = new SparseBooleanArray(1); in grantDevicePermission()
182 SparseBooleanArray uidList = mAccessoryPermissionMap.get(accessory); in grantAccessoryPermission()
184 uidList = new SparseBooleanArray(1); in grantAccessoryPermission()
227 SparseBooleanArray permissionsForDevice = mDevicePersistentPermissionMap.get(filter); in hasPermission()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/injector/
DFakeAppForegroundHelper.java19 import android.util.SparseBooleanArray;
27 private final SparseBooleanArray mForegroundUids;
30 mForegroundUids = new SparseBooleanArray(); in FakeAppForegroundHelper()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationLockscreenUserManagerImpl.java53 import android.util.SparseBooleanArray;
114 private final SparseBooleanArray mLockscreenPublicMode = new SparseBooleanArray();
115 private final SparseBooleanArray mUsersWithSeparateWorkChallenge = new SparseBooleanArray();
116 private final SparseBooleanArray mUsersAllowingPrivateNotifications = new SparseBooleanArray();
117 private final SparseBooleanArray mUsersAllowingNotifications = new SparseBooleanArray();
127 private final SparseBooleanArray mUsersDpcAllowingNotifications = new SparseBooleanArray();
128 private final SparseBooleanArray mUsersUsersAllowingNotifications = new SparseBooleanArray();
130 private final SparseBooleanArray mUsersDpcAllowingPrivateNotifications
131 = new SparseBooleanArray();
132 private final SparseBooleanArray mUsersUsersAllowingPrivateNotifications
[all …]
/frameworks/base/core/java/android/os/vibrator/
DMultiVibratorInfo.java26 import android.util.SparseBooleanArray;
79 private static SparseBooleanArray supportedBrakingIntersection(VibratorInfo[] infos) { in supportedBrakingIntersection()
87 SparseBooleanArray intersection = new SparseBooleanArray(); in supportedBrakingIntersection()
88 SparseBooleanArray firstVibratorBraking = infos[0].getSupportedBraking(); in supportedBrakingIntersection()
112 private static SparseBooleanArray supportedEffectsIntersection(VibratorInfo[] infos) { in supportedEffectsIntersection()
120 SparseBooleanArray intersection = new SparseBooleanArray(); in supportedEffectsIntersection()
121 SparseBooleanArray firstVibratorEffects = infos[0].getSupportedEffects(); in supportedEffectsIntersection()
/frameworks/base/core/java/android/widget/
DTableLayout.java22 import android.util.SparseBooleanArray;
74 private SparseBooleanArray mStretchableColumns;
75 private SparseBooleanArray mShrinkableColumns;
76 private SparseBooleanArray mCollapsedColumns;
148 private static SparseBooleanArray parseColumns(String sequence) { in parseColumns()
149 SparseBooleanArray columns = new SparseBooleanArray(); in parseColumns()
176 mCollapsedColumns = new SparseBooleanArray(); in initTableLayout()
179 mStretchableColumns = new SparseBooleanArray(); in initTableLayout()
182 mShrinkableColumns = new SparseBooleanArray(); in initTableLayout()
380 final SparseBooleanArray collapsedColumns = mCollapsedColumns; in trackCollapsedColumns()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskPersisterTest.java30 import android.util.SparseBooleanArray;
76 SparseBooleanArray taskIdsOnFile = new SparseBooleanArray(); in testTaskIdsPersistence()
81 SparseBooleanArray newTaskIdsOnFile = mTaskPersister in testTaskIdsPersistence()
DKeyguardDisableHandlerTest.java38 import android.util.SparseBooleanArray;
53 private SparseBooleanArray mKeyguardSecure = new SparseBooleanArray();
54 private SparseBooleanArray mDpmRequiresPassword = new SparseBooleanArray();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DIndividualSensorPrivacyControllerImpl.java30 import android.util.SparseBooleanArray;
44 private final SparseBooleanArray mSoftwareToggleState = new SparseBooleanArray();
45 private final SparseBooleanArray mHardwareToggleState = new SparseBooleanArray();
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DAppItem.java21 import android.util.SparseBooleanArray;
32 public SparseBooleanArray uids = new SparseBooleanArray();
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationStats.java26 import android.util.SparseBooleanArray;
87 private SparseBooleanArray mVibratorEffectsUsed = new SparseBooleanArray();
88 private SparseBooleanArray mVibratorPrimitivesUsed = new SparseBooleanArray();
396 private static int[] filteredKeys(SparseBooleanArray supportArray, boolean supported) { in filteredKeys()
/frameworks/base/core/java/android/os/
DVibratorInfo.java26 import android.util.SparseBooleanArray;
53 private final SparseBooleanArray mSupportedEffects;
55 private final SparseBooleanArray mSupportedBraking;
110 public VibratorInfo(int id, long capabilities, @Nullable SparseBooleanArray supportedEffects, in VibratorInfo()
111 @Nullable SparseBooleanArray supportedBraking, in VibratorInfo()
285 public SparseBooleanArray getSupportedBraking() { in getSupportedBraking()
327 public SparseBooleanArray getSupportedEffects() { in getSupportedEffects()
738 private SparseBooleanArray mSupportedEffects;
739 private SparseBooleanArray mSupportedBraking;
838 private static SparseBooleanArray toSparseBooleanArray(int[] supportedKeys) { in toSparseBooleanArray()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryManager.java37 import android.util.SparseBooleanArray;
66 private final SparseBooleanArray mUserUnlockedStates = new SparseBooleanArray();
71 private final SparseBooleanArray mHistoryEnabled = new SparseBooleanArray();
73 private final SparseBooleanArray mUserPendingHistoryDisables = new SparseBooleanArray();
/frameworks/base/services/core/java/com/android/server/display/mode/
DProximitySensorObserver.java22 import android.util.SparseBooleanArray;
41 private final SparseBooleanArray mDozeStateByDisplay = new SparseBooleanArray();

1234567