/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuUidBpfMapReaderTest.java | 26 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() 184 final SparseArray<long[]> data = getTestSparseArray(200, 50); in testRemoveUidsInRange_firstAndLastAbsent() 189 SparseArray<long[]> changedData = new SparseArray<>(); in testRemoveUidsInRange_firstAndLastAbsent() 197 private void testOpenAndReadData(SparseArray<long[]> expectedData) { in testOpenAndReadData() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | BackgroundRestrictedAlarmsTest.java | 23 import android.util.SparseArray; 39 private SparseArray<ArrayList<Alarm>> addPendingAlarm( in addPendingAlarm() 40 SparseArray<ArrayList<Alarm>> all, int uid, String name, boolean removeIt) { in addPendingAlarm() 51 private static String toString(SparseArray<ArrayList<Alarm>> pendingAlarms) { in toString() 82 SparseArray<ArrayList<Alarm>> pending, ArrayList<Alarm> alarmsToDeliver) { in runCheckAllPendingAlarms() 90 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_empty() 102 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_remove() 116 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_single_nonremove() 130 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_complex() 163 SparseArray<ArrayList<Alarm>> pending = new SparseArray<>(); in findAllUnrestrictedPendingBackgroundAlarmsLockedInner_complex_allRemove()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ProcessMap.java | 20 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()
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | HdmiCecMessageCache.java | 20 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()
|
D | HdmiMhlControllerStub.java | 20 import android.util.SparseArray; 32 private static final SparseArray<HdmiMhlLocalDeviceStub> mLocalDevices = new SparseArray<>(); 73 SparseArray<HdmiMhlLocalDeviceStub> getAllLocalDevices() { in getAllLocalDevices()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | MessageUtilsTest.java | 23 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()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | MockWifiP2pMonitor.java | 24 import android.util.SparseArray; 37 private final Map<String, SparseArray<Handler>> mHandlerMap = new HashMap<>(); 45 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 47 ifaceHandlers = new SparseArray<>(); in registerHandler() 66 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in sendMessage() 72 for (Map.Entry<String, SparseArray<Handler>> entry : mHandlerMap.entrySet()) { in sendMessage() 82 private boolean sendMessage(SparseArray<Handler> ifaceHandlers, Message message) { in sendMessage()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockWifiMonitor.java | 24 import android.util.SparseArray; 35 private final Map<String, SparseArray<Handler>> mHandlerMap = new HashMap<>(); 43 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in registerHandler() 45 ifaceHandlers = new SparseArray<>(); in registerHandler() 64 SparseArray<Handler> ifaceHandlers = mHandlerMap.get(iface); in sendMessage() 70 for (Map.Entry<String, SparseArray<Handler>> entry : mHandlerMap.entrySet()) { in sendMessage() 80 private boolean sendMessage(SparseArray<Handler> ifaceHandlers, Message message) { in sendMessage()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | SparseArrayUtilsTest.java | 22 import android.util.SparseArray; 40 SparseArray<HashSet<String>> sparseArray = new SparseArray<>(); in union_mergesSets() 52 SparseArray<HashSet<String>> sparseArray = new SparseArray<>(); in union_returnsEmptySetForEmptyList()
|
/frameworks/base/telephony/java/android/telephony/ims/compat/ |
D | ImsService.java | 30 import android.util.SparseArray; 85 private final SparseArray<SparseArray<ImsFeature>> mFeaturesBySlot = new SparseArray<>(); 136 public SparseArray<ImsFeature> getFeatures(int slotId) { in getFeatures() 186 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in addImsFeature() 189 features = new SparseArray<>(); in addImsFeature() 200 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in removeImsFeature()
|
/frameworks/base/services/core/java/com/android/server/display/color/ |
D | AppSaturationController.java | 20 import android.util.SparseArray; 44 private final Map<String, SparseArray<SaturationController>> mAppsMap = new HashMap<>(); 86 final SparseArray<SaturationController> appUserIdMap = mAppsMap.get(packageName); in dump() 109 private SparseArray<SaturationController> getOrCreateUserIdMapLocked(String packageName) { in getOrCreateUserIdMapLocked() 114 final SparseArray<SaturationController> appUserIdMap = new SparseArray<>(); in getOrCreateUserIdMapLocked() 123 SparseArray<SaturationController> appUserIdMap, @UserIdInt int userId) { in getOrCreateSaturationControllerLocked()
|
/frameworks/base/core/java/com/android/internal/util/ |
D | MessageUtils.java | 21 import android.util.SparseArray; 52 public static SparseArray<String> findMessageNames(Class[] classes, String[] prefixes) { in findMessageNames() 53 SparseArray<String> messageNames = new SparseArray<>(); in findMessageNames() 128 public static SparseArray<String> findMessageNames(Class[] classNames) { in findMessageNames()
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsService.java | 39 import android.util.SparseArray; 110 private final SparseArray<SparseArray<ImsFeature>> mFeaturesBySlot = new SparseArray<>(); 203 public SparseArray<ImsFeature> getFeatures(int slotId) { in getFeatures() 241 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in addImsFeature() 244 features = new SparseArray<>(); in addImsFeature() 255 SparseArray<ImsFeature> features = mFeaturesBySlot.get(slotId); in removeImsFeature()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
D | ImsServiceControllerCompat.java | 32 import android.util.SparseArray; 53 private final SparseArray<MmTelFeatureCompatAdapter> mMmTelCompatAdapters = new SparseArray<>(); 54 private final SparseArray<ImsConfigCompatAdapter> mConfigCompatAdapters = new SparseArray<>(); 55 private final SparseArray<ImsRegistrationCompatAdapter> mRegCompatAdapters = 56 new SparseArray<>();
|
/frameworks/base/core/java/android/hardware/lights/ |
D | LightsRequest.java | 22 import android.util.SparseArray; 44 private LightsRequest(SparseArray<LightState> changes) { in LightsRequest() 59 private final SparseArray<LightState> mChanges = new SparseArray<>();
|
/frameworks/base/wifi/java/android/net/wifi/rtt/ |
D | CivicLocation.java | 25 import android.util.SparseArray; 60 private SparseArray<String> mCivicAddressElements = 61 new SparseArray<>(MIN_CIVIC_BUFFER_SIZE); 115 parcel.writeSparseArray((android.util.SparseArray) mCivicAddressElements); in writeToParcel() 163 public SparseArray<String> toSparseArray() { in toSparseArray() 289 private boolean isSparseArrayStringEqual(SparseArray<String> sa1, SparseArray<String> sa2) { in isSparseArrayStringEqual() 310 private int[] getSparseArrayKeys(SparseArray<String> sa) { in getSparseArrayKeys() 325 private String[] getSparseArrayValues(SparseArray<String> sa) { in getSparseArrayValues()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayModeDirector.java | 46 import android.util.SparseArray; 89 private final SparseArray<SparseArray<Vote>> mVotesByDisplay; 91 private final SparseArray<Display.Mode[]> mSupportedModesByDisplay; 93 private final SparseArray<Display.Mode> mDefaultModeByDisplay; 106 mVotesByDisplay = new SparseArray<>(); in DisplayModeDirector() 107 mSupportedModesByDisplay = new SparseArray<>(); in DisplayModeDirector() 108 mDefaultModeByDisplay = new SparseArray<>(); in DisplayModeDirector() 146 SparseArray<Vote> votes = getVotesLocked(displayId); in getAllowedModes() 159 private SparseArray<Vote> getVotesLocked(int displayId) { in getVotesLocked() 160 SparseArray<Vote> displayVotes = mVotesByDisplay.get(displayId); in getVotesLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowProcessControllerMap.java | 20 import android.util.SparseArray; 28 private final SparseArray<WindowProcessController> mPidMap = new SparseArray<>(); 42 SparseArray<WindowProcessController> getPidMap() { in getPidMap()
|
/frameworks/base/core/java/android/content/pm/split/ |
D | SplitDependencyLoader.java | 22 import android.util.SparseArray; 42 private final @NonNull SparseArray<int[]> mDependencies; 49 protected SplitDependencyLoader(@NonNull SparseArray<int[]> dependencies) { in SplitDependencyLoader() 152 public static @NonNull SparseArray<int[]> createDependenciesFromPackage( in createDependenciesFromPackage() 157 final SparseArray<int[]> splitDependencies = new SparseArray<>(); in createDependenciesFromPackage()
|
/frameworks/base/core/java/android/transition/ |
D | TransitionValuesMaps.java | 21 import android.util.SparseArray; 27 SparseArray<View> idValues = new SparseArray<View>();
|
/frameworks/base/cmds/hid/src/com/android/commands/hid/ |
D | Event.java | 22 import android.util.SparseArray; 43 private SparseArray<byte[]> mFeatureReports; 74 public SparseArray<byte[]> getFeatureReports() { in getFeatureReports() 122 public void setFeatureReports(SparseArray<byte[]> reports) { in setFeatureReports() 251 private SparseArray<byte[]> readFeatureReports() in readFeatureReports() 253 SparseArray<byte[]> featureReports = new SparseArray(); in readFeatureReports()
|
/frameworks/base/services/core/java/com/android/server/appbinding/finders/ |
D | AppServiceFinder.java | 29 import android.util.SparseArray; 56 private final SparseArray<String> mTargetPackages = new SparseArray(4); 59 private final SparseArray<ServiceInfo> mTargetServices = new SparseArray(4); 62 private final SparseArray<String> mLastMessages = new SparseArray(4);
|
/frameworks/base/core/java/android/database/ |
D | RedactingCursor.java | 20 import android.util.SparseArray; 30 private final SparseArray<Object> mRedactions; 32 private RedactingCursor(@NonNull Cursor cursor, SparseArray<Object> redactions) { in RedactingCursor() 47 final SparseArray<Object> internalRedactions = new SparseArray<>(); in create()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | ShortcutManager.java | 27 import android.util.SparseArray; 55 private final SparseArray<ShortcutInfo> mShortcuts = new SparseArray<>(); 56 private final SparseArray<ShortcutInfo> mShiftShortcuts = new SparseArray<>(); 85 SparseArray<ShortcutInfo> shortcutMap = isShiftOn ? mShiftShortcuts : mShortcuts; in getIntent()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | BarringInfoTest.java | 28 import android.util.SparseArray; 53 private static SparseArray<BarringServiceInfo> getBarringServiceInfos() { in getBarringServiceInfos() 62 private static SparseArray<BarringServiceInfo> 64 SparseArray<BarringServiceInfo> serviceInfos = new SparseArray<>(); in getBarringServiceInfos()
|