/frameworks/base/services/permission/java/com/android/server/permission/access/collection/ |
D | SparseIntArrayExtensions.kt | 19 import android.util.SparseIntArray in <lambda>() 21 inline fun SparseIntArray.allIndexed(predicate: (Int, Int, Int) -> Boolean): Boolean { in <lambda>() 30 inline fun SparseIntArray.anyIndexed(predicate: (Int, Int, Int) -> Boolean): Boolean { in anyIndexed() 39 inline fun SparseIntArray.forEachIndexed(action: (Int, Int, Int) -> Unit) { in forEachIndexed() 45 inline fun SparseIntArray.forEachReversedIndexed(action: (Int, Int, Int) -> Unit) { in forEachReversedIndexed() 51 inline fun SparseIntArray.getOrPut(key: Int, defaultValue: () -> Int): Int { in getOrPut() 60 inline val SparseIntArray.lastIndex: Int 64 inline operator fun SparseIntArray.minusAssign(key: Int) { in minusAssign() 68 inline fun SparseIntArray.noneIndexed(predicate: (Int, Int, Int) -> Boolean): Boolean { in noneIndexed() 77 fun SparseIntArray.remove(key: Int) { in SparseIntArray() method [all …]
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsCheckingServiceImpl.java | 42 import android.util.SparseIntArray; 104 final SparseArray<SparseIntArray> mUidModes = new SparseArray<>(); 107 final SparseArray<ArrayMap<String, SparseIntArray>> mUserPackageModes = new SparseArray<>(); 154 public SparseIntArray getNonDefaultUidModes(int uid, String persistentDeviceId) { in getNonDefaultUidModes() 156 SparseIntArray opModes = mUidModes.get(uid, null); in getNonDefaultUidModes() 158 return new SparseIntArray(); in getNonDefaultUidModes() 165 public SparseIntArray getNonDefaultPackageModes(String packageName, int userId) { in getNonDefaultPackageModes() 167 ArrayMap<String, SparseIntArray> packageModes = mUserPackageModes.get(userId); in getNonDefaultPackageModes() 169 return new SparseIntArray(); in getNonDefaultPackageModes() 171 SparseIntArray opModes = packageModes.get(packageName); in getNonDefaultPackageModes() [all …]
|
D | LegacyAppOpStateParser.java | 28 import android.util.SparseIntArray; 50 public int readState(AtomicFile file, SparseArray<SparseIntArray> uidModes, in readState() 51 SparseArray<ArrayMap<String, SparseIntArray>> userPackageModes) { in readState() 101 SparseArray<ArrayMap<String, SparseIntArray>> userPackageModes) in readPackage() 124 SparseArray<ArrayMap<String, SparseIntArray>> userPackageModes) in readPackageUid() 146 private void readUidOps(TypedXmlPullParser parser, SparseArray<SparseIntArray> uidModes) in readUidOps() 150 SparseIntArray modes = uidModes.get(uid); in readUidOps() 152 modes = new SparseIntArray(); in readUidOps() 181 SparseArray<ArrayMap<String, SparseIntArray>> userPackageModes) in readUser() 205 SparseArray<ArrayMap<String, SparseIntArray>> userPackageModes) in readPackageOp() [all …]
|
D | AppOpMigrationHelperImpl.java | 25 import android.util.SparseIntArray; 75 final SparseArray<SparseIntArray> uidAppOpModes = new SparseArray<>(); in readLegacyAppOpState() 76 final SparseArray<ArrayMap<String, SparseIntArray>> packageAppOpModes = in readLegacyAppOpState() 98 SparseArray<SparseIntArray> uidAppOpModes) { in getAppIdAppOpModes() 111 SparseIntArray appOpModes = uidAppOpModes.valueAt(uidIndex); in getAppIdAppOpModes() 118 SparseArray<ArrayMap<String, SparseIntArray>> legacyPackageAppOpModes) { in getPackageAppOpModes() 130 ArrayMap<String, SparseIntArray> legacyPackagesModes = in getPackageAppOpModes() 136 SparseIntArray modes = legacyPackagesModes.valueAt(packageIndex); in getPackageAppOpModes() 146 private Map<String, Integer> getAppOpModesForOpName(SparseIntArray appOpCodeModes) { in getAppOpModesForOpName()
|
D | AppOpsServiceTestingShim.java | 20 import android.util.SparseIntArray; 68 public SparseIntArray getNonDefaultUidModes(int uid, String persistentDeviceId) { in getNonDefaultUidModes() 69 SparseIntArray oldVal = mOldImplementation.getNonDefaultUidModes(uid, persistentDeviceId); in getNonDefaultUidModes() 70 SparseIntArray newVal = mNewImplementation.getNonDefaultUidModes(uid, persistentDeviceId); in getNonDefaultUidModes() 80 public SparseIntArray getNonDefaultPackageModes(String packageName, int userId) { in getNonDefaultPackageModes() 81 SparseIntArray oldVal = mOldImplementation.getNonDefaultPackageModes(packageName, userId); in getNonDefaultPackageModes() 82 SparseIntArray newVal = mNewImplementation.getNonDefaultPackageModes(packageName, userId); in getNonDefaultPackageModes()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/wakeups/ |
D | WakingActivityHistoryTest.java | 22 import android.util.SparseIntArray; 37 private static boolean areSame(SparseIntArray a, SparseIntArray b) { in areSame() 65 final SparseIntArray uids = new SparseIntArray(); in recordActivityAppendsUids() 76 final LongSparseArray<SparseIntArray> recordedHistory = history.mWakingActivity.get( in recordActivityAppendsUids() 84 SparseIntArray recordedUids = recordedHistory.get(timestamp); in recordActivityAppendsUids() 110 final SparseIntArray uids = new SparseIntArray(); in recordActivityDoesNotDeleteExistingUids() 122 final LongSparseArray<SparseIntArray> recordedHistory = history.mWakingActivity.get( in recordActivityDoesNotDeleteExistingUids() 130 SparseIntArray recordedUids = recordedHistory.get(timestamp); in recordActivityDoesNotDeleteExistingUids() 164 final SparseIntArray uids = new SparseIntArray(); in removeBetween() 177 SparseIntArray removedUids = history.removeBetween(subsystem, 100, 122); in removeBetween() [all …]
|
/frameworks/base/services/core/java/com/android/server/utils/ |
D | WatchedSparseIntArray.java | 21 import android.util.SparseIntArray; 31 private final SparseIntArray mStorage; 42 mStorage = new SparseIntArray(); in WatchedSparseIntArray() 53 mStorage = new SparseIntArray(initialCapacity); in WatchedSparseIntArray() 59 public WatchedSparseIntArray(@NonNull SparseIntArray c) { in WatchedSparseIntArray() 73 public void copyFrom(@NonNull SparseIntArray src) { in copyFrom() 84 public void copyTo(@NonNull SparseIntArray dst) { in copyTo() 96 public SparseIntArray untrackedStorage() { in untrackedStorage()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | MirrorActiveUids.java | 22 import android.util.SparseIntArray; 33 private final SparseIntArray mUidStates = new SparseIntArray(); 36 private final SparseIntArray mNumNonAppVisibleWindowMap = new SparseIntArray();
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsServiceControllerTest.java | 51 import android.util.SparseIntArray; 199 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindService() 220 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindFailureWhenBound() 243 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindServiceAndConnected() 275 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testCallChangeWithNoNewFeaturesWithSubIdChanged() 337 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testCallChangeWithNoNewFeaturesWithAllSubIdChanged() 405 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testCallChangeWithNoNewFeaturesWithSlot1SubIdChanged() 463 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindServiceSipDelegateCapability() 495 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindServiceSipDelegateCapabilityLost() 521 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindEmergencyMmTel() [all …]
|
D | ImsResolverTest.java | 59 import android.util.SparseIntArray; 412 ArgumentCaptor<SparseIntArray> arrayCaptor = in testCarrierPackageBind() 413 ArgumentCaptor.forClass(SparseIntArray.class); in testCarrierPackageBind() 415 SparseIntArray slotIdToSubIdMap = arrayCaptor.getValue(); in testCarrierPackageBind() 416 SparseIntArray compareMap = new SparseIntArray(); in testCarrierPackageBind() 472 verify(deviceController).bind(eq(featuresDevice), any(SparseIntArray.class)); in testDeviceCarrierPackageBindMultipleServices() 474 verify(carrierController1).bind(eq(featuresMmTel), any(SparseIntArray.class)); in testDeviceCarrierPackageBindMultipleServices() 476 verify(carrierController2).bind(eq(featuresRcs), any(SparseIntArray.class)); in testDeviceCarrierPackageBindMultipleServices() 524 verify(deviceController, never()).bind(any(), any(SparseIntArray.class)); in testCarrierPackageBindOneConfigTwoSupport() 526 verify(carrierController1).bind(eq(featuresMmTel), any(SparseIntArray.class)); in testCarrierPackageBindOneConfigTwoSupport() [all …]
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyCacheImpl.java | 28 import android.util.SparseIntArray; 57 private final SparseIntArray mPasswordQuality = new SparseIntArray(); 60 private final SparseIntArray mPermissionPolicy = new SparseIntArray(); 69 private final SparseIntArray mContentProtectionPolicy = new SparseIntArray();
|
/frameworks/base/services/core/java/com/android/server/power/stats/wakeups/ |
D | CpuWakeupStats.java | 39 import android.util.SparseIntArray; 81 final LongSparseArray<SparseArray<SparseIntArray>> mWakeupAttribution = 84 final SparseIntArray mUidProcStates = new SparseIntArray(); 85 private final SparseIntArray mReusableUidProcStates = new SparseIntArray(4); 141 final SparseArray<SparseIntArray> wakeupAttribution = mWakeupAttribution.get( in logWakeupAttribution() 154 final SparseIntArray uidProcStates = wakeupAttribution.valueAt(i); in logWakeupAttribution() 251 SparseArray<SparseIntArray> attribution = mWakeupAttribution.get(wakeup.mElapsedMillis); in attemptAttributionFor() 266 final SparseIntArray uidsToBlame = mRecentWakingActivity.removeBetween(subsystem, in attemptAttributionFor() 273 SparseIntArray uidProcStates) { in attemptAttributionWith() 287 SparseArray<SparseIntArray> attribution = mWakeupAttribution.get( in attemptAttributionWith() [all …]
|
/frameworks/base/core/java/android/net/metrics/ |
D | WakeupStats.java | 22 import android.util.SparseIntArray; 49 public final SparseIntArray ethertypes = new SparseIntArray(); 50 public final SparseIntArray ipNextHeaders = new SparseIntArray(); 132 private static void increment(SparseIntArray counters, int key) { in increment()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | Sms7BitEncodingTranslator.java | 23 import android.util.SparseIntArray; 35 private static SparseIntArray mTranslationTable = null; 37 private static SparseIntArray mTranslationTableCommon = null; 39 private static SparseIntArray mTranslationTableGSM = null; 41 private static SparseIntArray mTranslationTableCDMA = null; 158 mTranslationTableCommon = new SparseIntArray(); in ensure7BitTranslationTableLoaded() 159 mTranslationTableGSM = new SparseIntArray(); in ensure7BitTranslationTableLoaded() 160 mTranslationTableCDMA = new SparseIntArray(); in ensure7BitTranslationTableLoaded()
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | LockoutCache.java | 20 import android.util.SparseIntArray; 29 private final SparseIntArray mUserLockoutStates; 32 mUserLockoutStates = new SparseIntArray(); in LockoutCache()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | EmergencyNumberStats.java | 37 import android.util.SparseIntArray; 54 private static final SparseIntArray sRoutesMap; 55 private static final SparseIntArray sServiceCategoriesMap; 56 private static final SparseIntArray sSourcesMap; 60 sRoutesMap = new SparseIntArray() { 71 sServiceCategoriesMap = new SparseIntArray() { 92 sSourcesMap = new SparseIntArray() {
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | HearingAidInfo.java | 22 import android.util.SparseIntArray; 229 private static final SparseIntArray ASHA_DEVICE_SIDE_TO_INTERNAL_SIDE_MAPPING; 230 private static final SparseIntArray ASHA_DEVICE_MODE_TO_INTERNAL_MODE_MAPPING; 231 private static final SparseIntArray HAP_DEVICE_TYPE_TO_INTERNAL_MODE_MAPPING; 234 ASHA_DEVICE_SIDE_TO_INTERNAL_SIDE_MAPPING = new SparseIntArray(); 242 ASHA_DEVICE_MODE_TO_INTERNAL_MODE_MAPPING = new SparseIntArray(); 250 HAP_DEVICE_TYPE_TO_INTERNAL_MODE_MAPPING = new SparseIntArray();
|
/frameworks/base/core/java/android/util/ |
D | SparseIntArray.java | 48 public class SparseIntArray implements Cloneable { class 59 public SparseIntArray() { in SparseIntArray() method in SparseIntArray 70 public SparseIntArray(int initialCapacity) { in SparseIntArray() method in SparseIntArray 82 public SparseIntArray clone() { in clone() 83 SparseIntArray clone = null; in clone() 85 clone = (SparseIntArray) super.clone(); in clone()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | UnmodifiableSparseIntArray.java | 19 import android.util.SparseIntArray; 27 private final SparseIntArray mArray; 29 public UnmodifiableSparseIntArray(SparseIntArray array) { in UnmodifiableSparseIntArray()
|
/frameworks/base/core/java/android/window/ |
D | SizeConfigurationBuckets.java | 27 import android.util.SparseIntArray; 71 SparseIntArray horizontal = new SparseIntArray(); in SizeConfigurationBuckets() 72 SparseIntArray vertical = new SparseIntArray(); in SizeConfigurationBuckets() 73 SparseIntArray smallest = new SparseIntArray(); in SizeConfigurationBuckets() 74 SparseIntArray screenLayoutSize = new SparseIntArray(); in SizeConfigurationBuckets()
|
/frameworks/base/core/java/android/service/autofill/ |
D | VisibilitySetterAction.java | 27 import android.util.SparseIntArray; 45 @NonNull private final SparseIntArray mVisibilities; 74 private final SparseIntArray mVisibilities = new SparseIntArray(); 158 final SparseIntArray visibilities = parcel.readSparseIntArray();
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkManagementService.java | 78 import android.util.SparseIntArray; 170 private SparseIntArray mUidCleartextPolicy = new SparseIntArray(); 173 private final SparseIntArray mUidFirewallRules = new SparseIntArray(); 179 private final SparseIntArray mUidFirewallStandbyRules = new SparseIntArray(); 185 private final SparseIntArray mUidFirewallDozableRules = new SparseIntArray(); 191 private final SparseIntArray mUidFirewallPowerSaveRules = new SparseIntArray(); 196 private final SparseIntArray mUidFirewallRestrictedRules = new SparseIntArray(); 201 private final SparseIntArray mUidFirewallLowPowerStandbyRules = new SparseIntArray(); 207 private final SparseIntArray mUidFirewallBackgroundRules = new SparseIntArray(); 214 private final SparseIntArray mUidMeteredFirewallAllowRules = new SparseIntArray(); [all …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | GsmAlphabet.java | 24 import android.util.SparseIntArray; 413 SparseIntArray charToLanguageTable = sCharsToGsmTables[languageTable]; in stringToGsm7BitPacked() 414 SparseIntArray charToShiftTable = sCharsToShiftTables[languageShiftTable]; in stringToGsm7BitPacked() 703 SparseIntArray charToLanguageTable = sCharsToGsmTables[0]; 704 SparseIntArray charToShiftTable = sCharsToShiftTables[0]; 811 SparseIntArray charToLanguageTable = sCharsToGsmTables[languageTable]; 812 SparseIntArray charToShiftTable = sCharsToShiftTables[languageShiftTable]; 1011 SparseIntArray charToLangTable = sCharsToGsmTables[langTable]; 1012 SparseIntArray charToLangShiftTable = sCharsToShiftTables[langShiftTable]; 1105 private static final SparseIntArray[] sCharsToGsmTables; [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RatRatcheter.java | 26 import android.util.SparseIntArray; 48 private final SparseArray<SparseIntArray> mRatFamilyMap = new SparseArray<>(); 91 final SparseIntArray oldFamily = mRatFamilyMap.get(oldRat); in ratchetRat() 96 final SparseIntArray newFamily = mRatFamilyMap.get(newRat); in ratchetRat() 205 SparseIntArray currentFamily = new SparseIntArray(rats.length); in resetRatFamilyMap()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageRemovedInfo.java | 20 import android.util.SparseIntArray; 33 SparseIntArray mInstallReasons; 34 SparseIntArray mUninstallReasons;
|