Home
last modified time | relevance | path

Searched refs:SparseIntArray (Results 1 – 25 of 245) sorted by relevance

12345678910

/frameworks/base/services/permission/java/com/android/server/permission/access/collection/
DSparseIntArrayExtensions.kt19 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/wm/
DMirrorActiveUids.java23 import android.util.SparseIntArray;
34 private final SparseIntArray mUidStates = new SparseIntArray();
37 private final SparseIntArray mNumNonAppVisibleWindowMap = new SparseIntArray();
39 private final SparseArray<SparseIntArray> mNumNonAppVisibleWindowMapByType = new SparseArray();
66 private SparseIntArray getNumNonAppVisibleWindowMapByType(int type) { in getNumNonAppVisibleWindowMapByType()
67 SparseIntArray result = mNumNonAppVisibleWindowMapByType.get(type); in getNumNonAppVisibleWindowMapByType()
69 result = new SparseIntArray(); in getNumNonAppVisibleWindowMapByType()
75 private void updateCount(int uid, boolean visible, SparseIntArray numNonAppVisibleWindowMap) { in updateCount()
104 synchronized SparseIntArray getNonAppVisibleWindowDetails(int uid) { in getNonAppVisibleWindowDetails()
105 SparseIntArray result = new SparseIntArray(); in getNonAppVisibleWindowDetails()
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsCheckingServiceImpl.java42 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 …]
DLegacyAppOpStateParser.java28 import android.util.SparseIntArray;
50 public int readState(AtomicFile file, SparseArray<SparseIntArray> uidModes, in readState()
51 SparseArray<ArrayMap<String, SparseIntArray>> userPackageModes) { in readState()
53 SparseArray<SparseIntArray> parsedUidModes = new SparseArray<>(); in readState()
54 SparseArray<ArrayMap<String, SparseIntArray>> parsedUserPackageModes = in readState()
116 SparseArray<ArrayMap<String, SparseIntArray>> userPackageModes) in readPackage()
139 SparseArray<ArrayMap<String, SparseIntArray>> userPackageModes) in readPackageUid()
161 private void readUidOps(TypedXmlPullParser parser, SparseArray<SparseIntArray> uidModes) in readUidOps()
165 SparseIntArray modes = uidModes.get(uid); in readUidOps()
167 modes = new SparseIntArray(); in readUidOps()
[all …]
DAppOpMigrationHelperImpl.java25 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()
DAppOpsServiceTestingShim.java20 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/
DWakingActivityHistoryTest.java22 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/
DWatchedSparseIntArray.java21 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/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyCacheImpl.java28 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/
DCpuWakeupStats.java40 import android.util.SparseIntArray;
83 final LongSparseArray<SparseArray<SparseIntArray>> mWakeupAttribution =
86 final SparseIntArray mUidProcStates = new SparseIntArray();
87 private final SparseIntArray mReusableUidProcStates = new SparseIntArray(4);
143 final SparseArray<SparseIntArray> wakeupAttribution = mWakeupAttribution.get( in logWakeupAttribution()
156 final SparseIntArray uidProcStates = wakeupAttribution.valueAt(i); in logWakeupAttribution()
253 SparseArray<SparseIntArray> attribution = mWakeupAttribution.get(wakeup.mElapsedMillis); in attemptAttributionFor()
268 final SparseIntArray uidsToBlame = mRecentWakingActivity.removeBetween(subsystem, in attemptAttributionFor()
275 SparseIntArray uidProcStates) { in attemptAttributionWith()
289 SparseArray<SparseIntArray> attribution = mWakeupAttribution.get( in attemptAttributionWith()
[all …]
/frameworks/base/core/java/android/net/metrics/
DWakeupStats.java22 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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsResolverTest.java61 import android.util.SparseIntArray;
420 ArgumentCaptor<SparseIntArray> arrayCaptor = in testCarrierPackageBind()
421 ArgumentCaptor.forClass(SparseIntArray.class); in testCarrierPackageBind()
423 SparseIntArray slotIdToSubIdMap = arrayCaptor.getValue(); in testCarrierPackageBind()
424 SparseIntArray compareMap = new SparseIntArray(); in testCarrierPackageBind()
481 any(SparseIntArray.class)); in testDeviceCarrierPackageBindMultipleServices()
484 any(SparseIntArray.class)); in testDeviceCarrierPackageBindMultipleServices()
487 any(SparseIntArray.class)); in testDeviceCarrierPackageBindMultipleServices()
536 any(SparseIntArray.class)); in testCarrierPackageBindOneConfigTwoSupport()
539 any(SparseIntArray.class)); in testCarrierPackageBindOneConfigTwoSupport()
[all …]
DImsServiceControllerTest.java52 import android.util.SparseIntArray;
202 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindService()
224 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindFailureWhenBound()
247 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindServiceAndConnected()
279 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testCallChangeWithNoNewFeaturesWithSubIdChanged()
341 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testCallChangeWithNoNewFeaturesWithAllSubIdChanged()
409 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testCallChangeWithNoNewFeaturesWithSlot1SubIdChanged()
469 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindServiceSipDelegateCapability()
501 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindServiceSipDelegateCapabilityLost()
528 SparseIntArray slotIdToSubIdMap = new SparseIntArray(); in testBindEmergencyMmTel()
[all …]
/frameworks/base/telephony/java/com/android/internal/telephony/
DSms7BitEncodingTranslator.java23 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/
DLockoutCache.java20 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/
DEmergencyNumberStats.java37 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/services/core/java/com/android/server/hdmi/
DUnmodifiableSparseIntArray.java19 import android.util.SparseIntArray;
27 private final SparseIntArray mArray;
29 public UnmodifiableSparseIntArray(SparseIntArray array) { in UnmodifiableSparseIntArray()
/frameworks/base/core/java/android/util/
DSparseIntArray.java48 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/net/
DNetworkManagementService.java78 import android.util.SparseIntArray;
168 private SparseIntArray mUidCleartextPolicy = new SparseIntArray();
171 private final SparseIntArray mUidFirewallRules = new SparseIntArray();
177 private final SparseIntArray mUidFirewallStandbyRules = new SparseIntArray();
183 private final SparseIntArray mUidFirewallDozableRules = new SparseIntArray();
189 private final SparseIntArray mUidFirewallPowerSaveRules = new SparseIntArray();
194 private final SparseIntArray mUidFirewallRestrictedRules = new SparseIntArray();
199 private final SparseIntArray mUidFirewallLowPowerStandbyRules = new SparseIntArray();
205 private final SparseIntArray mUidFirewallBackgroundRules = new SparseIntArray();
212 private final SparseIntArray mUidMeteredFirewallAllowRules = new SparseIntArray();
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidInfo.java22 import android.util.SparseIntArray;
234 private static final SparseIntArray ASHA_DEVICE_SIDE_TO_INTERNAL_SIDE_MAPPING;
235 private static final SparseIntArray ASHA_DEVICE_MODE_TO_INTERNAL_MODE_MAPPING;
236 private static final SparseIntArray HAP_DEVICE_TYPE_TO_INTERNAL_MODE_MAPPING;
239 ASHA_DEVICE_SIDE_TO_INTERNAL_SIDE_MAPPING = new SparseIntArray();
247 ASHA_DEVICE_MODE_TO_INTERNAL_MODE_MAPPING = new SparseIntArray();
255 HAP_DEVICE_TYPE_TO_INTERNAL_MODE_MAPPING = new SparseIntArray();
/frameworks/base/core/java/android/window/
DSizeConfigurationBuckets.java27 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/
DVisibilitySetterAction.java27 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/pm/
DPackageRemovedInfo.java20 import android.util.SparseIntArray;
33 SparseIntArray mInstallReasons;
34 SparseIntArray mUninstallReasons;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRatRatcheter.java26 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/telephony/common/com/android/internal/telephony/
DGsmAlphabet.java24 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 …]

12345678910