Home
last modified time | relevance | path

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

1234567891011

/packages/services/Car/service/src/com/android/car/storagemonitoring/
DIoStatsTracker.java21 import android.util.SparseArray;
52 private SparseArray<IoStatsEntry> mTotal;
54 private SparseArray<IoStatsEntry> mCurrentSample;
58 mTotal = new SparseArray<>(initialValue.size()); in IoStatsTracker()
68 public void update(SparseArray<UidIoRecord> newMetrics) { in update()
76 SparseArray<IoStatsEntry> newSample = new SparseArray<>(); in update()
77 SparseArray<IoStatsEntry> newTotal = new SparseArray<>(); in update()
129 public SparseArray<IoStatsEntry> getTotal() { in getTotal()
138 public SparseArray<IoStatsEntry> getCurrentSample() { in getCurrentSample()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/storage/
DUserIconLoader.java23 import android.util.SparseArray;
33 public class UserIconLoader extends AsyncLoaderCompat<SparseArray<Drawable>> {
40 SparseArray<Drawable> getUserIcons(); in getUserIcons()
47 void handleUserIcons(SparseArray<Drawable> fetchedIcons); in handleUserIcons()
56 public SparseArray<Drawable> loadInBackground() { in loadInBackground()
61 protected void onDiscardResult(SparseArray<Drawable> result) {} in onDiscardResult()
67 public static SparseArray<Drawable> loadUserIconsWithContext(Context context) { in loadUserIconsWithContext()
68 SparseArray<Drawable> value = new SparseArray<>(); in loadUserIconsWithContext()
DStorageAsyncLoader.java33 import android.util.SparseArray;
48 extends AsyncLoaderCompat<SparseArray<StorageAsyncLoader.AppsStorageResult>> {
67 public SparseArray<AppsStorageResult> loadInBackground() { in loadInBackground()
71 private SparseArray<AppsStorageResult> loadApps() { in loadApps()
73 SparseArray<AppsStorageResult> result = new SparseArray<>(); in loadApps()
164 protected void onDiscardResult(SparseArray<AppsStorageResult> result) { in onDiscardResult()
182 void handleResult(SparseArray<AppsStorageResult> result); in handleResult()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DUserIconLoader.java23 import android.util.SparseArray;
32 public class UserIconLoader extends AsyncLoaderCompat<SparseArray<Drawable>> {
39 SparseArray<Drawable> getUserIcons(); in getUserIcons()
46 void handleUserIcons(SparseArray<Drawable> fetchedIcons); in handleUserIcons()
55 public SparseArray<Drawable> loadInBackground() { in loadInBackground()
60 protected void onDiscardResult(SparseArray<Drawable> result) {} in onDiscardResult()
66 public static SparseArray<Drawable> loadUserIconsWithContext(Context context) { in loadUserIconsWithContext()
67 SparseArray<Drawable> value = new SparseArray<>(); in loadUserIconsWithContext()
DStorageAsyncLoader.java33 import android.util.SparseArray;
48 extends AsyncLoaderCompat<SparseArray<StorageAsyncLoader.AppsStorageResult>> {
67 public SparseArray<AppsStorageResult> loadInBackground() { in loadInBackground()
71 private SparseArray<AppsStorageResult> loadApps() { in loadApps()
73 SparseArray<AppsStorageResult> result = new SparseArray<>(); in loadApps()
164 protected void onDiscardResult(SparseArray<AppsStorageResult> result) { in onDiscardResult()
182 void handleResult(SparseArray<AppsStorageResult> result); in handleResult()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/deviceinfo/
DStorageDashboardFragment.java30 import android.util.SparseArray;
64 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> {
73 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsResult;
212 SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in updateSecondaryUserControllers()
253 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader()
263 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished()
264 SparseArray<StorageAsyncLoader.AppsStorageResult> data) { in onLoadFinished()
271 public void onLoaderReset(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader) { in onLoaderReset()
290 public SparseArray<StorageAsyncLoader.AppsStorageResult> getAppsStorageResult() { in getAppsStorageResult()
295 public void setAppsStorageResult(SparseArray<StorageAsyncLoader.AppsStorageResult> info) { in setAppsStorageResult()
[all …]
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageDashboardFragment.java30 import android.util.SparseArray;
64 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> {
73 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsResult;
219 SparseArray<StorageAsyncLoader.AppsStorageResult> stats) { in updateSecondaryUserControllers()
259 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader()
269 public void onLoadFinished(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished()
270 SparseArray<StorageAsyncLoader.AppsStorageResult> data) { in onLoadFinished()
277 public void onLoaderReset(Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader) { in onLoaderReset()
296 public SparseArray<StorageAsyncLoader.AppsStorageResult> getAppsStorageResult() { in getAppsStorageResult()
301 public void setAppsStorageResult(SparseArray<StorageAsyncLoader.AppsStorageResult> info) { in setAppsStorageResult()
[all …]
DStorageProfileFragment.java26 import android.util.SparseArray;
50 implements LoaderManager.LoaderCallbacks<SparseArray<AppsStorageResult>> {
115 public Loader<SparseArray<AppsStorageResult>> onCreateLoader(int id, Bundle args) { in onCreateLoader()
125 public void onLoadFinished(Loader<SparseArray<AppsStorageResult>> loader, in onLoadFinished()
126 SparseArray<AppsStorageResult> result) { in onLoadFinished()
131 public void onLoaderReset(Loader<SparseArray<AppsStorageResult>> loader) { in onLoaderReset()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DStorageSettingsManagerTest.java30 import android.util.SparseArray;
56 .LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>>> mAppsStorageResult;
91 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in volumeSizeCallback_onLoadFinished_listenerOnSizeCalculatedCalled()
109 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in appsStorageResult_unregisterListener_onlyOneListenerOnDataLoadedCalled()
130 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in onReceivedSizes_storageResultNotLoaded_noListenersCalled()
150 SparseArray<StorageAsyncLoader.AppsStorageResult> data = new SparseArray<>(); in onReceivedSizes_volumeSizeNotLoaded_noListenersCalled()
DStorageAsyncLoaderTest.java35 import android.util.SparseArray;
105 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLoadingApps()
116 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered()
129 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered()
140 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored()
155 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testMultipleUsers()
168 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted()
178 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testVideoAppsAreFiltered()
194 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash()
215 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testPackageIsNotDoubleCounted()
[all …]
DStorageUsageBasePreferenceControllerTest.java25 import android.util.SparseArray;
62 SparseArray<StorageAsyncLoader.AppsStorageResult> result, long usedSizeBytes) { in calculateCategoryUsage()
86 SparseArray<StorageAsyncLoader.AppsStorageResult> results = new SparseArray<>(); in onDataLoaded_setsSummary()
103 SparseArray<StorageAsyncLoader.AppsStorageResult> results = new SparseArray<>(); in onDataLoaded_setProgressBarPercentage()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DDiagnosticJson.java22 import android.util.SparseArray;
31 public final SparseArray<Integer> intValues;
32 public final SparseArray<Float> floatValues;
38 SparseArray<Integer> intValues, in DiagnosticJson()
39 SparseArray<Float> floatValues, in DiagnosticJson()
86 final SparseArray<Integer> mIntValues = new SparseArray<>();
87 final SparseArray<Float> mFloatValues = new SparseArray<>();
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageSettingsManager.java26 import android.util.SparseArray;
52 void onDataLoaded(SparseArray<StorageAsyncLoader.AppsStorageResult> result, in onDataLoaded()
64 private SparseArray<StorageAsyncLoader.AppsStorageResult> mAppsStorageResultSparseArray;
138 LoaderManager.LoaderCallbacks<SparseArray<StorageAsyncLoader.AppsStorageResult>> {
142 public Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> onCreateLoader(int id, in onCreateLoader()
149 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader, in onLoadFinished()
150 SparseArray<StorageAsyncLoader.AppsStorageResult> data) { in onLoadFinished()
157 @NonNull Loader<SparseArray<StorageAsyncLoader.AppsStorageResult>> loader) { in onLoaderReset()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageAsyncLoaderTest.java36 import android.util.SparseArray;
95 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLoadingApps()
106 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testGamesAreFiltered()
119 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testLegacyGamesAreFiltered()
130 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testCacheIsNotIgnored()
146 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testMultipleUsers()
159 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testUpdatedSystemAppCodeSizeIsCounted()
169 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testVideoAppsAreFiltered()
185 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testRemovedPackageDoesNotCrash()
206 SparseArray<StorageAsyncLoader.AppsStorageResult> result = mLoader.loadInBackground(); in testPackageIsNotDoubleCounted()
[all …]
/packages/apps/Terminal/src/com/android/terminal/
DTerminalActivity.java33 import android.util.SparseArray;
76 private SparseArray<SparseArray<Parcelable>>
77 mSavedState = new SparseArray<SparseArray<Parcelable>>();
96 final SparseArray<Parcelable> state = mSavedState.get(term.key);
111 SparseArray<Parcelable> state = mSavedState.get(key);
113 state = new SparseArray<Parcelable>();
/packages/services/Car/service/src/com/android/car/
DUtils.java24 import android.util.SparseArray;
46 private static final SparseArray<String> sAdapterStates = new SparseArray<String>();
47 private static final SparseArray<String> sBondStates = new SparseArray<String>();
48 private static final SparseArray<String> sConnectionStates = new SparseArray<String>();
49 private static final SparseArray<String> sProfileNames = new SparseArray<String>();
DInputCaptureClientController.java31 import android.util.SparseArray;
190 private final SparseArray<LinkedList<ClientInfoForDisplay>> mFullDisplayEventCapturers =
191 new SparseArray<>(2);
198 private final SparseArray<SparseArray<LinkedList<ClientInfoForDisplay>>>
199 mPerInputTypeCapturers = new SparseArray<>(2);
203 private final SparseArray<HashMap<IBinder, ClientInfoForDisplay>> mAllClients =
204 new SparseArray<>(1);
302 SparseArray<LinkedList<ClientInfoForDisplay>> perInputStacks = in requestInputEventCapture()
305 perInputStacks = new SparseArray<LinkedList<ClientInfoForDisplay>>(); in requestInputEventCapture()
444 SparseArray<LinkedList<ClientInfoForDisplay>> perInputStacks = in releaseInputEventCapture()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/
DTunnelModeChildSessionParamsTest.java40 import android.util.SparseArray;
90 SparseArray expectedAttrCntMap, TunnelModeChildSessionParams childParams) { in verifyAttrTypes()
93 SparseArray<Integer> atrrCntMap = expectedAttrCntMap.clone(); in verifyAttrTypes()
150 SparseArray<Integer> expectedAttrCntMap = new SparseArray<>(); in testBuildChildSessionParamsWithAddressReq()
171 SparseArray<Integer> expectedAttrCntMap = new SparseArray<>(); in testBuildChildSessionParamsWithDnsServerReq()
191 SparseArray<Integer> expectedAttrCntMap = new SparseArray<>(); in testBuildChildSessionParamsWithDhcpServerReq()
/packages/services/Car/service/src/com/android/car/user/
DUserMetrics.java33 import android.util.SparseArray;
74 private SparseArray<UserStartingMetric> mUserStartingMetrics;
76 private SparseArray<UserStoppingMetric> mUserStoppingMetrics;
133 SparseArray<UserStartingMetric> getUserStartMetrics() { in getUserStartMetrics()
140 SparseArray<UserStoppingMetric> getUserStopMetrics() { in getUserStopMetrics()
148 mUserStartingMetrics = new SparseArray<>(INITIAL_CAPACITY); in onUserStartingEventLocked()
187 mUserStoppingMetrics = new SparseArray<>(INITIAL_CAPACITY); in onUserStoppingEventLocked()
207 @NonNull SparseArray<? extends BaseUserMetric> metrics, @UserIdInt int userId) { in getExistingMetricsLocked()
221 private void removeExistingMetricsLogged(@NonNull SparseArray<? extends BaseUserMetric> metrics, in removeExistingMetricsLogged()
300 @NonNull SparseArray<? extends BaseUserMetric> metrics) { in dump()
/packages/services/Car/service/src/com/android/car/watchdog/
DCarWatchdogService.java48 import android.util.SparseArray;
93 private final SparseArray<ArrayList<ClientInfo>> mClientMap = new SparseArray<>();
100 private final SparseArray<SparseArray<ClientInfo>> mPingedClientMap = new SparseArray<>();
107 private final SparseArray<Boolean> mClientCheckInProgress = new SparseArray<>();
126 mPingedClientMap.put(timeout, new SparseArray<ClientInfo>()); in init()
250 SparseArray<ClientInfo> pingedClients = mPingedClientMap.get(timeout); in tellClientAlive()
332 SparseArray<ClientInfo> pingedClients = mPingedClientMap.get(timeout); in analyzeClientResponse()
347 SparseArray<ClientInfo> pingedClients = mPingedClientMap.get(timeout); in sendPingToClients()
514 SparseArray<ClientInfo> pingedClients = mPingedClientMap.get(timeout); in prepareHealthCheck()
/packages/modules/IPsec/src/java/android/net/ipsec/ike/
DSaProposal.java23 import android.util.SparseArray;
85 private static final SparseArray<String> SUPPORTED_ENCRYPTION_ALGO_TO_STR;
88 SUPPORTED_ENCRYPTION_ALGO_TO_STR = new SparseArray<>();
132 private static final SparseArray<String> SUPPORTED_PRF_TO_STR;
135 SUPPORTED_PRF_TO_STR = new SparseArray<>();
168 private static final SparseArray<String> SUPPORTED_INTEGRITY_ALGO_TO_STR;
171 SUPPORTED_INTEGRITY_ALGO_TO_STR = new SparseArray<>();
199 private static final SparseArray<String> SUPPORTED_DH_GROUP_TO_STR;
202 SUPPORTED_DH_GROUP_TO_STR = new SparseArray<>();
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateAppOpsBridge.java30 import android.util.SparseArray;
136 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in loadAllExtraInfo()
157 private SparseArray<ArrayMap<String, PermissionState>> getEntries() { in getEntries()
174 SparseArray<ArrayMap<String, PermissionState>> entries = new SparseArray<>(); in getEntries()
201 private void loadPermissionsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { in loadPermissionsStates()
239 private void loadAppOpsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { in loadAppOpsStates()
280 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in getNumPackagesDeclaredPermission()
293 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in getNumPackagesAllowedByAppOps()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictDecoderEncoderTests.java23 import android.util.SparseArray;
63 private static final SparseArray<List<Integer>> sEmptyBigrams = new SparseArray<>();
64 private static final SparseArray<List<Integer>> sStarBigrams = new SparseArray<>();
65 private static final SparseArray<List<Integer>> sChainBigrams = new SparseArray<>();
143 final SparseArray<List<Integer>> bigrams) { in addBigrams()
184 final SparseArray<List<Integer>> bigrams) { in checkDictionary()
214 final SparseArray<List<Integer>> bigrams, final int bufferType) { in timeReadingAndCheckDict()
236 final SparseArray<List<Integer>> bigrams, in runReadAndWrite()
358 final SparseArray<List<Integer>> expectedBigrams, in checkWordMap()
407 final List<String> words, final SparseArray<List<Integer>> bigrams,
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DConnectivityFragment.java40 import android.util.SparseArray;
70 private SparseArray<Network> mNetworks = new SparseArray<Network>();
115 SparseArray<NetworkByIdCallback> mNetworkCallbacks = new SparseArray<NetworkByIdCallback>();
252 private static final SparseArray<String> sTransportNames = new SparseArray<String>();
253 private static final SparseArray<String> sCapabilityNames = new SparseArray<String>();
287 private static final SparseArray<String> sWifiStaStates = new SparseArray<>();
296 private static final SparseArray<String> sWifiApStates = new SparseArray<>();
/packages/apps/DeskClock/src/com/android/deskclock/uidata/
DFormattedStringModel.java24 import android.util.SparseArray;
48 private final SparseArray<SparseArray<String>> mNumberFormatCache = new SparseArray<>(3);
112 SparseArray<String> valueCache = mNumberFormatCache.get(lengthCacheKey); in getFormattedNumber()
114 valueCache = new SparseArray<>((int) Math.pow(10, length)); in getFormattedNumber()

1234567891011