Home
last modified time | relevance | path

Searched refs:SparseArray (Results 1 – 25 of 743) sorted by relevance

12345678910>>...30

/aosp14/frameworks/base/services/core/java/com/android/server/display/mode/
H A DVotesStorage.java23 import android.util.SparseArray;
45 private final SparseArray<SparseArray<Vote>> mVotesByDisplay = new SparseArray<>();
58 SparseArray<Vote> getVotes(int displayId) { in getVotes()
59 SparseArray<Vote> votesLocal; in getVotes()
60 SparseArray<Vote> globalVotesLocal; in getVotes()
64 SparseArray<Vote> globalVotes = mVotesByDisplay.get(GLOBAL_ID); in getVotes()
94 SparseArray<Vote> votes; in updateVote()
99 votes = new SparseArray<>(); in updateVote()
119 SparseArray<SparseArray<Vote>> votesByDisplayLocal = new SparseArray<>(); in dump()
128 SparseArray<Vote> votes = votesByDisplayLocal.valueAt(i); in dump()
[all …]
H A DSkinThermalStatusObserver.java25 import android.util.SparseArray;
51 private final SparseArray<SparseArray<SurfaceControl.RefreshRateRange>>
52 mThermalThrottlingByDisplay = new SparseArray<>();
70 SparseArray<SurfaceControl.RefreshRateRange> throttlingMap) { in findBestMatchingRefreshRateRange()
150 SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> localMap = new SparseArray<>( in populateInitialDisplayInfo()
170 SparseArray<SurfaceControl.RefreshRateRange> throttlingMap = in updateThermalRefreshRateThrottling()
186 SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> localMap; in updateVotes()
203 SparseArray<SurfaceControl.RefreshRateRange> localMap; in updateVoteForDisplay()
222 SparseArray<SurfaceControl.RefreshRateRange> throttlingMap) { in reportThrottlingIfNeeded()
260 SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> localMap; in dumpLocked()
/aosp14/frameworks/base/core/java/android/view/translation/
H A DTranslationResponse.java24 import android.util.SparseArray;
61 private final SparseArray<TranslationResponseValue> mTranslationResponseValues;
68 private final SparseArray<ViewTranslationResponse> mViewTranslationResponses;
103 builder.setTranslationResponseValues(new SparseArray<>()); in setTranslationResponseValue()
125 builder.setViewTranslationResponses(new SparseArray<>()); in setViewTranslationResponse()
133 return new SparseArray<>(); in defaultTranslationResponseValues()
137 return new SparseArray<>(); in defaultViewTranslationResponses()
187 @NonNull SparseArray<TranslationResponseValue> translationResponseValues, in TranslationResponse()
188 @NonNull SparseArray<ViewTranslationResponse> viewTranslationResponses, in TranslationResponse()
292SparseArray<TranslationResponseValue> translationResponseValues = (SparseArray) in.readSparseArray… in TranslationResponse()
[all …]
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/os/
H A DKernelCpuUidBpfMapReaderTest.java26 import android.util.SparseArray;
85 SparseArray<long[]> data = new SparseArray<>(); in testReadErrorsLimit()
106 final SparseArray<long[]> data = getTestSparseArray(800, 50); in testGetNextUid()
113 final SparseArray<long[]> data = getTestSparseArray(200, 50); in testConcurrent()
114 final SparseArray<long[]> data1 = getTestSparseArray(180, 70); in testConcurrent()
171 final SparseArray<long[]> data = getTestSparseArray(200, 50); in testRemoveUidsInRange()
174 SparseArray<long[]> changedData = new SparseArray<>(); in testRemoveUidsInRange()
189 SparseArray<long[]> changedData = new SparseArray<>(); in testRemoveUidsInRange_firstAndLastAbsent()
217 SparseArray<long[]> data = new SparseArray<>(); in getTestSparseArray()
226 private SparseArray<long[]> mNewData;
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
H A DBackgroundRestrictedAlarmsTest.java24 import android.util.SparseArray;
40 private SparseArray<ArrayList<Alarm>> addPendingAlarm( in addPendingAlarm()
41 SparseArray<ArrayList<Alarm>> all, int uid, String name, boolean removeIt) { in addPendingAlarm()
52 private static String toString(SparseArray<ArrayList<Alarm>> pendingAlarms) { in toString()
83 SparseArray<ArrayList<Alarm>> pending, ArrayList<Alarm> alarmsToDeliver) { in runCheckAllPendingAlarms()
91 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty()
103 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_remove()
117 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_nonremove()
131 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_complex()
164 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_complex_allRemove()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DChangedPackagesTracker.java23 import android.util.SparseArray;
47 private final SparseArray<SparseArray<String>> mUserIdToSequenceToPackage = new SparseArray<>();
54 private final SparseArray<Map<String, Integer>> mChangedPackagesSequenceNumbers =
55 new SparseArray<>();
63 final SparseArray<String> changedPackages = mUserIdToSequenceToPackage.get(userId); in getChangedPackages()
84 void iterateAll(@NonNull BiConsumer<Integer, SparseArray<SparseArray<String>>> in iterateAll()
96 SparseArray<String> changedPackages = mUserIdToSequenceToPackage.get(userId); in updateSequenceNumber()
98 changedPackages = new SparseArray<>(); in updateSequenceNumber()
/aosp14/frameworks/base/core/java/com/android/internal/app/
H A DProcessMap.java20 import android.util.SparseArray;
23 final ArrayMap<String, SparseArray<E>> mMap
24 = new ArrayMap<String, SparseArray<E>>();
27 SparseArray<E> uids = mMap.get(name); in get()
33 SparseArray<E> uids = mMap.get(name); in put()
35 uids = new SparseArray<E>(2); in put()
43 SparseArray<E> uids = mMap.get(name); in remove()
54 public ArrayMap<String, SparseArray<E>> getMap() { in getMap()
/aosp14/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiCecMessageCache.java20 import android.util.SparseArray;
39 private final SparseArray<SparseArray<HdmiCecMessage>> mCache = new SparseArray<>();
54 SparseArray<HdmiCecMessage> messages = mCache.get(address); in getMessage()
91 SparseArray<HdmiCecMessage> messages = mCache.get(source); in cacheMessage()
93 messages = new SparseArray<>(); in cacheMessage()
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DMessageUtilsTest.java23 import android.util.SparseArray;
55 private SparseArray<String> makeSparseArray(int[] keys, String[] values) throws Exception { in makeSparseArray()
57 SparseArray<String> out = new SparseArray<>(); in makeSparseArray()
65 SparseArray<String> a1, SparseArray<String> a2) throws Exception { in assertSparseArrayEquals()
77 SparseArray<String> expected = makeSparseArray( in basicOperation()
85 SparseArray<String> expected = makeSparseArray( in withPrefixes()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DDumpUtilsTest.java29 import android.util.SparseArray;
182 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_empty()
192 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_oneElement()
205 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_oneNullElement()
218 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_multipleElements()
235 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_keyDumperOnly()
255 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_valueDumperOnly()
276 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArray_keyAndValueDumpers()
299 SparseArray<String> array = new SparseArray<>(); in testDumpSparseArrayValues()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
H A DSparseArrayUtils.kt19 import android.util.SparseArray
26 fun <T> Sequence<Pair<Int, T>>.toSparseArray(size: Int = -1): SparseArray<T> {
28 size < 0 -> SparseArray<T>()
29 else -> SparseArray<T>(size)
46 ): SparseArray<T> {
47 val sparseArray = SparseArray<T>(size)
61 ): SparseArray<R> {
63 size < 0 -> SparseArray<R>()
64 else -> SparseArray<R>(size)
78 fun <T> SparseArray<T>.asMap(): Map<Int, T> = SparseArrayMapWrapper(this)
[all …]
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
H A DSkinThermalStatusObserverTest.java27 import android.util.SparseArray;
102 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID); in testNotifyWithDefaultVotesForCritical()
110 SparseArray<Vote> otherDisplayVotes = mStorage.getVotes(DISPLAY_ID_OTHER); in testNotifyWithDefaultVotesForCritical()
150 SparseArray<SurfaceControl.RefreshRateRange> displayConfig = new SparseArray<>(); in testNotifiesWithConfigVotes()
153 SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> config = new SparseArray<>(); in testNotifiesWithConfigVotes()
167 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID); in testNotifiesWithConfigVotes()
188 SparseArray<Vote> displayVotes = mStorage.getVotes(DISPLAY_ID_ADDED); in testDisplayAdded()
220 private final SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> mOverriddenConfig;
228 this(registerThermalListener, new SparseArray<>()); in RegisteringFakesInjector()
232 SparseArray<SparseArray<SurfaceControl.RefreshRateRange>> overriddenConfig) { in RegisteringFakesInjector()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/cpu/
H A DCpuInfoReaderTest.java30 import android.util.SparseArray;
96 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = new SparseArray<>(); in testReadCpuInfoWithTimeInState()
201 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = new SparseArray<>(); in testReadCpuInfoWithoutTimeInState()
308 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = new SparseArray<>(); in testReadCpuInfoWithCorruptedCpuset()
346 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = new SparseArray<>(); in testReadCpuInfoWithCorruptedCpufreq()
358 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = new SparseArray<>(); in testReadCpuInfoWithCorruptedProcStat()
417 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = new SparseArray<>(); in testReadCpuInfoWithEmptyRelatedCpus()
441 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = new SparseArray<>(); in testReadCpuInfoWithEmptyCpusetCpus()
491 SparseArray<CpuInfoReader.CpuInfo> expectedCpuInfos = new SparseArray<>(); in testReadCpuInfoWithEmptyAffectedCpus()
541 SparseArray<CpuInfoReader.CpuInfo> expected, in compareCpuInfos()
[all …]
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
H A DNotifRemoteViewCacheImpl.java20 import android.util.SparseArray;
38 private final Map<NotificationEntry, SparseArray<RemoteViews>> mNotifCachedContentViews =
53 SparseArray<RemoteViews> contentViews = mNotifCachedContentViews.get(entry); in getCachedView()
70 SparseArray<RemoteViews> contentViews = mNotifCachedContentViews.get(entry); in putCachedView()
79 SparseArray<RemoteViews> contentViews = mNotifCachedContentViews.get(entry); in removeCachedView()
88 SparseArray<RemoteViews> contentViews = mNotifCachedContentViews.get(entry); in clearCache()
98 mNotifCachedContentViews.put(entry, new SparseArray<>());
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
H A DMagnificationScaleProvider.java26 import android.util.SparseArray;
50 private final SparseArray<SparseArray<Float>> mUsersScales = new SparseArray();
98 private SparseArray<Float> getScalesWithCurrentUser() { in getScalesWithCurrentUser()
99 SparseArray<Float> scales = mUsersScales.get(mCurrentUserId); in getScalesWithCurrentUser()
101 scales = new SparseArray<>(); in getScalesWithCurrentUser()
/aosp14/frameworks/base/telephony/java/android/telephony/ims/compat/
H A DImsService.java30 import android.util.SparseArray;
85 private final SparseArray<SparseArray<ImsFeature>> mFeaturesBySlot = new SparseArray<>();
146 public SparseArray<ImsFeature> getFeatures(int slotId) { in getFeatures()
190 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in addImsFeature()
193 features = new SparseArray<>(); in addImsFeature()
204 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in addImsFeatureStatusCallback()
221 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in removeImsFeatureStatusCallback()
237 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in removeImsFeature()
/aosp14/frameworks/base/services/core/java/com/android/server/appop/
H A DAudioRestrictionManager.java25 import android.util.SparseArray;
37 final SparseArray<SparseArray<Restriction>> mZenModeAudioRestrictions = new SparseArray<>();
41 static final SparseArray<SparseBooleanArray> CAMERA_AUDIO_RESTRICTIONS;
59 CAMERA_AUDIO_RESTRICTIONS = new SparseArray<>();
95 final SparseArray<Restriction> usageRestrictions = mZenModeAudioRestrictions.get(code); in checkZenModeRestrictionLocked()
108 SparseArray<Restriction> usageRestrictions = mZenModeAudioRestrictions.get(code); in setZenModeAudioRestriction()
110 usageRestrictions = new SparseArray<Restriction>(); in setZenModeAudioRestriction()
155 final SparseArray<Restriction> restrictions = mZenModeAudioRestrictions.valueAt(o); in dump()
H A DAppOpsRestrictionsImpl.java29 import android.util.SparseArray;
51 private final ArrayMap<Object, SparseArray<SparseBooleanArray>> mUserRestrictions =
55 private final ArrayMap<Object, SparseArray<PackageTagsList>>
154 SparseArray<SparseBooleanArray> userIdRestrictedCodes = in getUserRestriction()
230 SparseArray<SparseBooleanArray> userIdRestrictedCodes = in clearUserRestrictions()
240 SparseArray<PackageTagsList> userIdPackageTags = in clearUserRestrictions()
257 mUserRestrictions.put(token, new SparseArray<>()); in putUserRestriction()
292 SparseArray<PackageTagsList> userIdPackageTags = in getUserRestrictionExclusions()
307 SparseArray<PackageTagsList> userIdExcludedPackageTags = in putUserRestrictionExclusions()
314 SparseArray<PackageTagsList> userIdExclusions = in putUserRestrictionExclusions()
[all …]
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
H A DSparseArrayUtilsTest.java22 import android.util.SparseArray;
40 SparseArray<HashSet<String>> sparseArray = new SparseArray<>(); in union_mergesSets()
52 SparseArray<HashSet<String>> sparseArray = new SparseArray<>(); in union_returnsEmptySetForEmptyList()
/aosp14/frameworks/base/services/core/java/com/android/server/wallpaper/
H A DWallpaperData.java33 import android.util.SparseArray;
115 SparseArray<Float> mUidToDimAmount = new SparseArray<>();
134 private final SparseArray<File> mWallpaperFiles = new SparseArray<>();
135 private final SparseArray<File> mCropFiles = new SparseArray<>();
176 private File getFile(SparseArray<File> map, String fileName) { in getFile()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DPhantomProcessList.java34 import android.util.SparseArray;
66 final SparseArray<PhantomProcessRecord> mPhantomProcesses = new SparseArray<>();
73 final SparseArray<SparseArray<PhantomProcessRecord>> mAppPhantomProcessMap =
74 new SparseArray<>();
80 final SparseArray<PhantomProcessRecord> mPhantomProcessesPidFds = new SparseArray<>();
86 final SparseArray<PhantomProcessRecord> mZombiePhantomProcesses = new SparseArray<>();
95 private final SparseArray<ProcessRecord> mPhantomToAppProcessMap = new SparseArray<>();
98 private final SparseArray<InputStream> mCgroupProcsFds = new SparseArray<>();
342 array = new SparseArray<>(); in getOrCreatePhantomProcessIfNeededLocked()
501 final SparseArray<PhantomProcessRecord> array = in killPhantomProcessGroupLocked()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/storage/
H A DBubblePersistentRepository.kt21 import android.util.SparseArray
31 fun persistsToDisk(bubbles: SparseArray<List<BubbleEntity>>): Boolean {
51 fun readFromDisk(): SparseArray<List<BubbleEntity>> {
53 if (!bubbleFile.exists()) return SparseArray()
57 return SparseArray()
/aosp14/frameworks/base/core/java/android/companion/virtual/sensor/
H A DVirtualSensorDirectChannelWriter.java27 import android.util.SparseArray;
93 private final SparseArray<SharedMemoryWrapper> mChannels = new SparseArray<>();
98 private final SparseArray<SparseArray<DirectChannelConfiguration>> mConfiguredChannels =
99 new SparseArray<>();
161 SparseArray<DirectChannelConfiguration> configs = mConfiguredChannels.get( in configureChannel()
173 configs = new SparseArray<>(); in configureChannel()
200 SparseArray<DirectChannelConfiguration> configs = mConfiguredChannels.get( in writeSensorEvent()
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
H A DPreferredComponentTest.java34 import android.util.SparseArray;
81 final SparseArray<Object> userStates0 = mock(SparseArray.class); in testPreferredComponent_sameSet_withAppInstalledByDeviceSetup()
82 final SparseArray<Object> userStates1 = mock(SparseArray.class); in testPreferredComponent_sameSet_withAppInstalledByDeviceSetup()
114 final SparseArray<Object> userStates0 = mock(SparseArray.class); in testPreferredComponent_notSameSet_withAppNotInstalledByDeviceSetup()
115 final SparseArray<Object> userStates1 = mock(SparseArray.class); in testPreferredComponent_notSameSet_withAppNotInstalledByDeviceSetup()
/aosp14/frameworks/base/cmds/uinput/src/com/android/commands/uinput/
H A DEvent.java22 import android.util.SparseArray;
76 private SparseArray<int[]> mConfiguration;
80 private SparseArray<InputAbsInfo> mAbsInfo;
111 public SparseArray<int[]> getConfiguration() { in getConfiguration()
123 public SparseArray<InputAbsInfo> getAbsInfo() { in getAbsInfo()
183 public void setConfiguration(SparseArray<int[]> configuration) { in setConfiguration()
207 public void setAbsInfo(SparseArray<InputAbsInfo> absInfo) { in setAbsInfo()
372 private SparseArray<int[]> readConfiguration() in readConfiguration()
374 SparseArray<int[]> configuration = new SparseArray<>(); in readConfiguration()
453 private SparseArray<InputAbsInfo> readAbsInfoArray() in readAbsInfoArray()
[all …]

12345678910>>...30