Home
last modified time | relevance | path

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

1234567

/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DUsageGraphTest.java29 import android.util.SparseIntArray;
65 SparseIntArray paths = new SparseIntArray(); in calculateLocalPaths_singlePath()
70 SparseIntArray localPaths = new SparseIntArray(); in calculateLocalPaths_singlePath()
84 SparseIntArray paths = new SparseIntArray(); in calculateLocalPaths_multiplePaths()
93 SparseIntArray localPaths = new SparseIntArray(); in calculateLocalPaths_multiplePaths()
115 SparseIntArray paths = new SparseIntArray(); in calculateLocalPaths_similarPointMiddle()
121 SparseIntArray localPaths = new SparseIntArray(); in calculateLocalPaths_similarPointMiddle()
135 SparseIntArray paths = new SparseIntArray(); in calculateLocalPaths_similarPointEnd()
141 SparseIntArray localPaths = new SparseIntArray(); in calculateLocalPaths_similarPointEnd()
157 SparseIntArray paths = new SparseIntArray(); in calculateLocalPaths_unavailableData_shouldInsertFlatPoint()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/util/
DGsmAlphabet.java20 import android.util.SparseIntArray;
235 SparseIntArray charToLanguageTable = sCharsToGsmTables[0]; in stringToGsm8BitUnpackedField()
236 SparseIntArray charToShiftTable = sCharsToShiftTables[0]; in stringToGsm8BitUnpackedField()
282 SparseIntArray charToLanguageTable = sCharsToGsmTables[languageTable]; in countGsmSeptetsUsingTables()
283 SparseIntArray charToShiftTable = sCharsToShiftTables[languageShiftTable]; in countGsmSeptetsUsingTables()
304 private static final SparseIntArray[] sCharsToGsmTables;
307 private static final SparseIntArray[] sCharsToShiftTables;
699 sCharsToGsmTables = new SparseIntArray[numTables];
714 SparseIntArray charToGsmTable = new SparseIntArray(tableLen);
722 sCharsToShiftTables = new SparseIntArray[numShiftTables];
[all …]
/packages/apps/Settings/src/com/android/settings/widget/
DUsageGraph.java33 import android.util.SparseIntArray;
59 private final SparseIntArray mPaths = new SparseIntArray();
61 private final SparseIntArray mLocalPaths = new SparseIntArray();
64 private final SparseIntArray mProjectedPaths = new SparseIntArray();
66 private final SparseIntArray mLocalProjectedPaths = new SparseIntArray();
139 public void addPath(SparseIntArray points) { in addPath()
143 public void addProjectedPath(SparseIntArray points) { in addProjectedPath()
148 SparseIntArray points, SparseIntArray paths, SparseIntArray localPaths) { in addPathAndUpdate()
182 void calculateLocalPaths(SparseIntArray paths, SparseIntArray localPaths) { in calculateLocalPaths()
276 private void drawLinePath(Canvas canvas, SparseIntArray localPaths, Paint paint) { in drawLinePath()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareMetrics.java29 import android.util.SparseIntArray;
83 private SparseIntArray mHistogramAwareAvailableDurationMs = new SparseIntArray();
89 private SparseIntArray mHistogramAwareEnabledDurationMs = new SparseIntArray();
97 private SparseIntArray mAttachStatusData = new SparseIntArray();
98 private SparseIntArray mHistogramAttachDuration = new SparseIntArray();
107 private SparseIntArray mPublishStatusData = new SparseIntArray();
108 private SparseIntArray mSubscribeStatusData = new SparseIntArray();
109 private SparseIntArray mHistogramPublishDuration = new SparseIntArray();
110 private SparseIntArray mHistogramSubscribeDuration = new SparseIntArray();
118 private SparseIntArray mHistogramSubscribeGeofenceMin = new SparseIntArray();
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/rtt/
DRttMetrics.java31 import android.util.SparseIntArray;
91 private SparseIntArray mOverallStatusHistogram = new SparseIntArray();
92 private SparseIntArray mMeasurementDurationApOnlyHistogram = new SparseIntArray();
93 private SparseIntArray mMeasurementDurationWithAwareHistogram = new SparseIntArray();
118 public SparseIntArray numRequestsHistogram = new SparseIntArray();
119 public SparseIntArray requestGapHistogram = new SparseIntArray();
120 public SparseIntArray statusHistogram = new SparseIntArray();
121 public SparseIntArray measuredDistanceHistogram = new SparseIntArray();
303 SparseIntArray histogram) { in consolidateOverallStatus()
331 consolidateIndividualStatus(SparseIntArray histogram) { in consolidateIndividualStatus()
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java67 import android.util.SparseIntArray;
112 private final SparseIntArray mUidToNetworkPerm = new SparseIntArray();
153 private final Map<UserHandle, SparseIntArray> mUsersTrafficPermissions = new ArrayMap<>();
329 private SparseIntArray makeUidsNetworkPerm(final List<PackageInfo> apps) { in makeUidsNetworkPerm()
330 final SparseIntArray uidsPerm = new SparseIntArray(); in makeUidsNetworkPerm()
348 private static SparseIntArray makeAppIdsTrafficPerm(final List<PackageInfo> apps) { in makeAppIdsTrafficPerm()
349 final SparseIntArray appIdsPerm = new SparseIntArray(); in makeAppIdsTrafficPerm()
367 private synchronized void updateUidsNetworkPermission(final SparseIntArray uids) { in updateUidsNetworkPermission()
380 private synchronized SparseIntArray makeAppIdsTrafficPermForAllUsers() { in makeAppIdsTrafficPermForAllUsers()
381 final SparseIntArray appIds = new SparseIntArray(); in makeAppIdsTrafficPermForAllUsers()
[all …]
DDscpPolicyTracker.java31 import android.util.SparseIntArray;
85 private final HashMap<Integer, SparseIntArray> mIfaceIndexToPolicyIdBpfMapIndex;
89 mIfaceIndexToPolicyIdBpfMapIndex = new HashMap<Integer, SparseIntArray>(); in DscpPolicyTracker()
97 for (SparseIntArray ifacePolicies : mIfaceIndexToPolicyIdBpfMapIndex.values()) { in isUnusedIndex()
114 SparseIntArray ifacePolicies = mIfaceIndexToPolicyIdBpfMapIndex.get(ifIndex); in findIndex()
167 SparseIntArray ifacePolicies = mIfaceIndexToPolicyIdBpfMapIndex.get(ifIndex); in addDscpPolicyInternal()
169 ifacePolicies = new SparseIntArray(MAX_POLICIES); in addDscpPolicyInternal()
285 SparseIntArray ifacePolicies = mIfaceIndexToPolicyIdBpfMapIndex.get(getIfaceIndex(nai)); in removeDscpPolicy()
316 SparseIntArray ifacePolicies = mIfaceIndexToPolicyIdBpfMapIndex.get(getIfaceIndex(nai)); in removeAllDscpPolicies()
/packages/modules/Connectivity/thread/tests/integration/src/android/net/thread/
DThreadNetworkControllerTest.java33 import android.util.SparseIntArray;
62 private static final SparseIntArray CHANNEL_MAX_POWERS =
63 new SparseIntArray() {
122 () -> mController.setChannelMaxPowers(new SparseIntArray(), mExecutor, v -> {})); in setChannelMaxPowers_emptyChannelMaxPower_throwsIllegalArgumentException()
127 final SparseIntArray INVALID_CHANNEL_ARRAY = in setChannelMaxPowers_invalidChannel_throwsIllegalArgumentException()
128 new SparseIntArray() { in setChannelMaxPowers_invalidChannel_throwsIllegalArgumentException()
141 final SparseIntArray INVALID_POWER_ARRAY = in setChannelMaxPowers_invalidPower_throwsIllegalArgumentException()
142 new SparseIntArray() { in setChannelMaxPowers_invalidPower_throwsIllegalArgumentException()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DGsmAlphabet.java21 import android.util.SparseIntArray;
73 private static SparseIntArray[] sCharsToGsmTables;
76 private static SparseIntArray[] sCharsToShiftTables;
590 sCharsToGsmTables = new SparseIntArray[numTables];
600 SparseIntArray charToGsmTable = new SparseIntArray(tableLen);
608 sCharsToShiftTables = new SparseIntArray[numShiftTables];
618 SparseIntArray charToShiftTable = new SparseIntArray(shiftTableLen);
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DMetricsUtilsTest.java21 import android.util.SparseIntArray;
84 SparseIntArray hist1 = new SparseIntArray(); in testHistBucketing()
85 SparseIntArray hist2 = new SparseIntArray(); in testHistBucketing()
158 SparseIntArray hist = new SparseIntArray(); in testLinearHistBucketing()
189 private void bucketValueAndVerify(String prefix, long value, SparseIntArray h, in bucketValueAndVerify()
195 private void bucketValueAndVerify(String prefix, int value, SparseIntArray h, int[] hp, in bucketValueAndVerify()
/packages/services/Car/service/src/com/android/car/hal/
DBidirectionalSparseIntArray.java18 import android.util.SparseIntArray;
26 private final SparseIntArray mMap;
27 private final SparseIntArray mInverseMap;
62 mMap = new SparseIntArray(initialCapacity); in BidirectionalSparseIntArray()
63 mInverseMap = new SparseIntArray(initialCapacity); in BidirectionalSparseIntArray()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_scan/
DScanManagerTest.java67 import android.util.SparseIntArray;
380 SparseIntArray scanModeMap = new SparseIntArray(); in testScreenOffStartUnfilteredScan()
413 SparseIntArray scanModeMap = new SparseIntArray(); in testScreenOffStartFilteredScan()
447 SparseIntArray scanModeMap = new SparseIntArray(); in testScreenOffStartEmptyFilterScan()
480 SparseIntArray scanModeMap = new SparseIntArray(); in testScreenOnStartUnfilteredScan()
513 SparseIntArray scanModeMap = new SparseIntArray(); in testScreenOnStartFilteredScan()
546 SparseIntArray scanModeMap = new SparseIntArray(); in testResumeUnfilteredScanAfterScreenOn()
584 SparseIntArray scanModeMap = new SparseIntArray(); in testResumeFilteredScanAfterScreenOn()
622 SparseIntArray scanModeMap = new SparseIntArray(); in testUnfilteredScanTimeout()
673 SparseIntArray scanModeMap = new SparseIntArray(); in testFilteredScanTimeout()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DChartDataUsagePreferenceTest.java25 import android.util.SparseIntArray;
80 final ArgumentCaptor<SparseIntArray> pointsCaptor = in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()
81 ArgumentCaptor.forClass(SparseIntArray.class); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()
91 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()
100 final ArgumentCaptor<SparseIntArray> pointsCaptor = in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
101 ArgumentCaptor.forClass(SparseIntArray.class); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
111 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
121 final ArgumentCaptor<SparseIntArray> pointsCaptor = in calcPoints_shouldNotDrawPointForFutureDate()
122 ArgumentCaptor.forClass(SparseIntArray.class); in calcPoints_shouldNotDrawPointForFutureDate()
183 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_shouldNotDrawPointForFutureDate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/
DDeadKeyCombiner.java20 import android.util.SparseIntArray;
72 static final SparseIntArray sCombiningToAccent = new SparseIntArray();
73 static final SparseIntArray sAccentToCombining = new SparseIntArray();
164 private static final SparseIntArray sNonstandardDeadCombinations = new SparseIntArray();
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardParams.java19 import android.util.SparseIntArray;
158 private final SparseIntArray mHeightHistogram = new SparseIntArray();
159 private final SparseIntArray mWidthHistogram = new SparseIntArray();
171 private static int updateHistogramCounter(final SparseIntArray histogram, final int key) { in updateHistogramCounter()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryFlagParser.java19 import android.util.SparseIntArray;
86 public SparseIntArray getColorArray() { in getColorArray()
87 SparseIntArray ret = new SparseIntArray(); in getColorArray()
/packages/modules/AppSearch/testing/safeparceltests/src/android/app/appsearch/safeparcel/
DSafeParcelableSparseArrayTest.java24 import android.util.SparseIntArray;
110 private static SparseIntArray createSparseIntArray(int[] values) { in createSparseIntArray()
111 SparseIntArray result = new SparseIntArray(); in createSparseIntArray()
134 SparseIntArray integers = createSparseIntArray(new int[] {100, 1000}); in testReadWriteSafeParcelableWithSparseArray()
162 private static void assertEquals(SparseIntArray expected, SparseIntArray actual) { in assertEquals()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/element/
DCarSystemBarElementStatusBarDisableController.java23 import android.util.SparseIntArray;
43 private final SparseIntArray mStatusBarStates = new SparseIntArray();
44 private final SparseIntArray mStatusBar2States = new SparseIntArray();
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/util/
DSparseIntArray.java19 public class SparseIntArray { class
22 public SparseIntArray() { in SparseIntArray() method in SparseIntArray
26 public SparseIntArray(final int initialCapacity) { in SparseIntArray() method in SparseIntArray
/packages/modules/Wifi/service/java/com/android/server/wifi/
DDppMetrics.java37 import android.util.SparseIntArray;
64 private SparseIntArray mHistogramDppFailureCode = new SparseIntArray();
67 private SparseIntArray mHistogramDppConfiguratorSuccessCode = new SparseIntArray();
342 SparseIntArray data) { in consolidateDppFailure()
359 SparseIntArray data) { in consolidateDppSuccess()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DMedicalResourceTypePermissionCategoryMapper.java25 import android.util.SparseIntArray;
32 private static SparseIntArray sMedicalResourceTypeHealthPermissionCategoryMap =
33 new SparseIntArray();
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DPerUidCounter.java19 import android.util.SparseIntArray;
36 final SparseIntArray mUidToCount = new SparseIntArray();
/packages/apps/Camera2/src/com/android/camera/
DSoundPlayer.java23 import android.util.SparseIntArray;
35 private final SparseIntArray mResourceToSoundId = new SparseIntArray();
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DMetricsUtils.java20 import android.util.SparseIntArray;
89 public static int addValueToLogHistogram(long x, SparseIntArray histogram, LogHistParms hp) { in addValueToLogHistogram()
127 public static GenericBucket[] logHistogramToGenericBuckets(SparseIntArray histogram, in logHistogramToGenericBuckets()
152 public static int addValueToLinearHistogram(int x, SparseIntArray histogram, int[] hp) { in addValueToLinearHistogram()
173 public static GenericBucket[] linearHistogramToGenericBuckets(SparseIntArray histogram, in linearHistogramToGenericBuckets()
/packages/modules/Wifi/framework/java/android/net/wifi/
DSoftApConfiguration.java35 import android.util.SparseIntArray;
238 private final SparseIntArray mChannels;
456 @NonNull SparseIntArray channels, in SoftApConfiguration()
484 mChannels = new SparseIntArray(1); in SoftApConfiguration()
645 @Nullable SparseIntArray val) { in writeSparseIntArray()
662 private static SparseIntArray readSparseIntArray(@NonNull Parcel in) { in readSparseIntArray()
665 return new SparseIntArray(); in readSparseIntArray()
667 SparseIntArray sa = new SparseIntArray(n); in readSparseIntArray()
903 public @NonNull SparseIntArray getChannels() { in getChannels()
1294 private SparseIntArray mChannels;
[all …]

1234567