Home
last modified time | relevance | path

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

123456

/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/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/apps/Settings/src/com/android/settings/widget/
DUsageGraph.java34 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();
134 public void addPath(SparseIntArray points) { in addPath()
138 public void addProjectedPath(SparseIntArray points) { in addProjectedPath()
143 SparseIntArray points, SparseIntArray paths, SparseIntArray localPaths) { in addPathAndUpdate()
177 void calculateLocalPaths(SparseIntArray paths, SparseIntArray localPaths) { in calculateLocalPaths()
271 private void drawLinePath(Canvas canvas, SparseIntArray localPaths, Paint paint) { in drawLinePath()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/util/
DGsmAlphabet.java21 import android.util.SparseIntArray;
242 SparseIntArray charToLanguageTable = sCharsToGsmTables[0]; in stringToGsm8BitUnpackedField()
243 SparseIntArray charToShiftTable = sCharsToShiftTables[0]; in stringToGsm8BitUnpackedField()
289 SparseIntArray charToLanguageTable = sCharsToGsmTables[languageTable]; in countGsmSeptetsUsingTables()
290 SparseIntArray charToShiftTable = sCharsToShiftTables[languageShiftTable]; in countGsmSeptetsUsingTables()
330 private static final SparseIntArray[] sCharsToGsmTables;
333 private static final SparseIntArray[] sCharsToShiftTables;
682 sCharsToGsmTables = new SparseIntArray[numTables];
692 SparseIntArray charToGsmTable = new SparseIntArray(tableLen);
700 sCharsToShiftTables = new SparseIntArray[numShiftTables];
[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;
83 private final HashMap<Integer, SparseIntArray> mIfaceIndexToPolicyIdBpfMapIndex;
87 mIfaceIndexToPolicyIdBpfMapIndex = new HashMap<Integer, SparseIntArray>(); in DscpPolicyTracker()
95 for (SparseIntArray ifacePolicies : mIfaceIndexToPolicyIdBpfMapIndex.values()) { in isUnusedIndex()
112 SparseIntArray ifacePolicies = mIfaceIndexToPolicyIdBpfMapIndex.get(ifIndex); in findIndex()
165 SparseIntArray ifacePolicies = mIfaceIndexToPolicyIdBpfMapIndex.get(ifIndex); in addDscpPolicyInternal()
167 ifacePolicies = new SparseIntArray(MAX_POLICIES); in addDscpPolicyInternal()
283 SparseIntArray ifacePolicies = mIfaceIndexToPolicyIdBpfMapIndex.get(getIfaceIndex(nai)); in removeDscpPolicy()
314 SparseIntArray ifacePolicies = mIfaceIndexToPolicyIdBpfMapIndex.get(getIfaceIndex(nai)); in removeAllDscpPolicies()
/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/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/gatt/
DScanManagerTest.java58 import android.util.SparseIntArray;
287 SparseIntArray scanModeMap = new SparseIntArray(); in testScreenOffStartUnfilteredScan()
316 SparseIntArray scanModeMap = new SparseIntArray(); in testScreenOffStartFilteredScan()
345 SparseIntArray scanModeMap = new SparseIntArray(); in testScreenOnStartUnfilteredScan()
374 SparseIntArray scanModeMap = new SparseIntArray(); in testScreenOnStartFilteredScan()
403 SparseIntArray scanModeMap = new SparseIntArray(); in testResumeUnfilteredScanAfterScreenOn()
437 SparseIntArray scanModeMap = new SparseIntArray(); in testResumeFilteredScanAfterScreenOn()
471 SparseIntArray scanModeMap = new SparseIntArray(); in testUnfilteredScanTimeout()
516 SparseIntArray scanModeMap = new SparseIntArray(); in testFilteredScanTimeout()
561 SparseIntArray scanModeMap = new SparseIntArray(); in testSwitchForeBackgroundUnfilteredScan()
[all …]
/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/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/services/Car/service/src/com/android/car/hal/
DBidirectionalSparseIntArray.java18 import android.util.SparseIntArray;
26 private final SparseIntArray mMap;
27 private final SparseIntArray mInverseMap;
48 mMap = new SparseIntArray(initialCapacity); in BidirectionalSparseIntArray()
49 mInverseMap = new SparseIntArray(initialCapacity); in BidirectionalSparseIntArray()
/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()
88 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_dataAvailableFromCycleStart_shouldAddDataPointsOnly()
96 final ArgumentCaptor<SparseIntArray> pointsCaptor = in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
97 ArgumentCaptor.forClass(SparseIntArray.class); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
104 final SparseIntArray points = pointsCaptor.getValue(); in calcPoints_dataNotAvailableAtCycleStart_shouldIndicateStartOfData()
113 final ArgumentCaptor<SparseIntArray> pointsCaptor = in calcPoints_shouldNotDrawPointForFutureDate()
114 ArgumentCaptor.forClass(SparseIntArray.class); in calcPoints_shouldNotDrawPointForFutureDate()
152 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/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryInfoTest.java40 import android.util.SparseIntArray;
316 verify(view, times(1)).addPath(any(SparseIntArray.class)); in assertOnlyHistory()
317 verify(view, never()).addProjectedPath(any(SparseIntArray.class)); in assertOnlyHistory()
327 verify(view, times(1)).addPath(any(SparseIntArray.class)); in assertHistoryAndLinearProjection()
328 ArgumentCaptor<SparseIntArray> pointsActual = ArgumentCaptor.forClass(SparseIntArray.class); in assertHistoryAndLinearProjection()
341 SparseIntArray pointsExpected = new SparseIntArray(); in assertHistoryAndEnhancedProjection()
350 verify(view, times(1)).addPath(any(SparseIntArray.class)); in assertHistoryAndEnhancedProjection()
351 ArgumentCaptor<SparseIntArray> pointsActual = ArgumentCaptor.forClass(SparseIntArray.class); in assertHistoryAndEnhancedProjection()
/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()
DBatteryActiveView.java22 import android.util.SparseIntArray;
54 SparseIntArray array = mProvider.getColorArray(); in onDraw()
73 SparseIntArray getColorArray(); in getColorArray()
/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/Wifi/framework/java/android/net/wifi/
DSoftApConfiguration.java34 import android.util.SparseIntArray;
243 private final SparseIntArray mChannels;
454 @Nullable String passphrase, boolean hiddenSsid, @NonNull SparseIntArray channels, in SoftApConfiguration()
473 mChannels = new SparseIntArray(1); in SoftApConfiguration()
612 @Nullable SparseIntArray val) { in writeSparseIntArray()
629 private static SparseIntArray readSparseIntArray(@NonNull Parcel in) { in readSparseIntArray()
632 return new SparseIntArray(); in readSparseIntArray()
634 SparseIntArray sa = new SparseIntArray(n); in readSparseIntArray()
850 public @NonNull SparseIntArray getChannels() { in getChannels()
1231 private SparseIntArray mChannels;
[all …]
/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/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/apps/Launcher3/src/com/android/launcher3/widget/
DLocalColorExtractor.java23 import android.util.SparseIntArray;
43 void onColorsChanged(SparseIntArray extractedColors); in onColorsChanged()
76 public SparseIntArray generateColorsOverride(WallpaperColors colors) { in generateColorsOverride()
/packages/apps/Camera2/src/com/android/camera/
DSoundPlayer.java23 import android.util.SparseIntArray;
35 private final SparseIntArray mResourceToSoundId = new SparseIntArray();
/packages/apps/WallpaperPicker2/src/com/android/customization/model/color/
DWallpaperColorResources.java20 import android.util.SparseIntArray;
29 private final SparseIntArray mColorOverlay = new SparseIntArray();
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DVehicleStubUnitTest.java23 import android.util.SparseIntArray;
40 SparseIntArray statusCodeToCarPropMgrError = new SparseIntArray(); in testConvertHalToCarPropertyManagerErrorStatus()

123456