Home
last modified time | relevance | path

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

12345678910>>...16

/frameworks/base/core/java/com/android/internal/app/
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()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DViewsStateBundle.java19 import android.util.SparseArray;
51 private LruCache<String, SparseArray<Parcelable>> mChildStates;
77 Map<String, SparseArray<Parcelable>> snapshot = mChildStates.snapshot(); in saveAsBundle()
79 for (Iterator<Entry<String, SparseArray<Parcelable>>> i = in saveAsBundle()
81 Entry<String, SparseArray<Parcelable>> e = i.next(); in saveAsBundle()
135 mChildStates = new LruCache<String, SparseArray<Parcelable>>(mLimitNumber); in applyPolicyChanges()
139 mChildStates = new LruCache<String, SparseArray<Parcelable>>(UNLIMITED); in applyPolicyChanges()
157 SparseArray<Parcelable> container = mChildStates.remove(key); in loadView()
173 SparseArray<Parcelable> container = new SparseArray<Parcelable>(); in saveViewUnchecked()
190 SparseArray<Parcelable> container = new SparseArray<Parcelable>(); in saveOnScreenView()
/frameworks/base/services/core/java/com/android/server/hdmi/
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()
DHdmiMhlControllerStub.java20 import android.util.SparseArray;
32 private static final SparseArray<HdmiMhlLocalDeviceStub> mLocalDevices = new SparseArray<>();
73 SparseArray<HdmiMhlLocalDeviceStub> getAllLocalDevices() { in getAllLocalDevices()
DUnmodifiableSparseArray.java19 import android.util.SparseArray;
27 private final SparseArray<E> mArray;
29 public UnmodifiableSparseArray(SparseArray<E> array) { in UnmodifiableSparseArray()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
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()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DMockWifiMonitor.java24 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/
DSparseArrayUtilsTest.java24 import android.util.SparseArray;
39 SparseArray<HashSet<String>> sparseArray = new SparseArray<>(); in union_mergesSets()
51 SparseArray<HashSet<String>> sparseArray = new SparseArray<>(); in union_returnsEmptySetForEmptyList()
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetConfigStore.java24 import android.util.SparseArray;
42 SparseArray<IpConfiguration> networks = readIpAndProxyConfigurations(ipConfigFile); in readIpAndProxyConfigurations()
58 SparseArray<IpConfiguration> networks = new SparseArray<IpConfiguration>(); in writeIpAndProxyConfigurations()
/frameworks/base/core/java/com/android/internal/util/
DMessageUtils.java21 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/
DImsService.java32 import android.util.SparseArray;
96 private final SparseArray<SparseArray<ImsFeature>> mFeatures = new SparseArray<>();
176 SparseArray<ImsFeature> featureMap = mFeatures.get(slotId);
359 SparseArray<ImsFeature> featureMap = mFeatures.get(slotId); in onCreateImsFeatureInternal()
361 featureMap = new SparseArray<>(); in onCreateImsFeatureInternal()
383 SparseArray<ImsFeature> featureMap = mFeatures.get(slotId); in onRemoveImsFeatureInternal()
399 SparseArray<ImsFeature> features = getImsFeatureMap(slotId); in resolveMMTelFeature()
408 private <T extends ImsFeature> T resolveImsFeature(SparseArray<ImsFeature> set, int featureType, in resolveImsFeature()
428 public SparseArray<ImsFeature> getImsFeatureMap(int slotId) { in getImsFeatureMap()
437 public ImsFeature getImsFeatureFromType(SparseArray<ImsFeature> set, int featureType) { in getImsFeatureFromType()
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java31 import android.util.SparseArray;
166 public final ProcessMap<SparseArray<PackageState>> mPackages
167 = new ProcessMap<SparseArray<PackageState>>();
219 ArrayMap<String, SparseArray<SparseArray<PackageState>>> pkgMap = other.mPackages.getMap(); in add()
222 final SparseArray<SparseArray<PackageState>> uids = pkgMap.valueAt(ip); in add()
225 final SparseArray<PackageState> versions = uids.valueAt(iu); in add()
262 ArrayMap<String, SparseArray<ProcessState>> procMap = other.mProcesses.getMap(); in add()
264 SparseArray<ProcessState> uids = procMap.valueAt(ip); in add()
385 ArrayMap<String, SparseArray<ProcessState>> procMap = mProcesses.getMap(); in computeTotalMemoryUse()
387 SparseArray<ProcessState> uids = procMap.valueAt(iproc); in computeTotalMemoryUse()
[all …]
/frameworks/layoutlib/bridge/src/android/content/res/
DAssetManager_Delegate.java21 import android.util.SparseArray;
44 /*package*/ static SparseArray<String> getAssignedPackageIdentifiers(AssetManager manager) { in getAssignedPackageIdentifiers()
45 return new SparseArray<>(); in getAssignedPackageIdentifiers()
/frameworks/base/core/java/android/transition/
DTransitionValuesMaps.java21 import android.util.SparseArray;
27 SparseArray<View> idValues = new SparseArray<View>();
/frameworks/support/transition/src/android/support/transition/
DTransitionValuesMaps.java22 import android.util.SparseArray;
30 final SparseArray<View> mIdValues = new SparseArray<>();
DScene.java23 import android.util.SparseArray;
62 SparseArray<Scene> scenes = in getSceneForLayout()
63 (SparseArray<Scene>) sceneRoot.getTag(R.id.transition_scene_layoutid_cache); in getSceneForLayout()
65 scenes = new SparseArray<>(); in getSceneForLayout()
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/utils/
DResourceCache.java17 import android.util.SparseArray;
26 private final SparseArray<View> mCachedViews = new SparseArray<View>();
/frameworks/base/core/java/android/content/pm/split/
DSplitDependencyLoader.java22 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/services/core/java/com/android/server/policy/
DShortcutManager.java27 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/base/core/java/com/android/internal/widget/
DDecorContentParent.java22 import android.util.SparseArray;
49 void saveToolbarHierarchyState(SparseArray<Parcelable> toolbarStates); in saveToolbarHierarchyState()
50 void restoreToolbarHierarchyState(SparseArray<Parcelable> toolbarStates); in restoreToolbarHierarchyState()
/frameworks/base/core/java/android/bluetooth/le/
DScanRecord.java24 import android.util.SparseArray;
61 private final SparseArray<byte[]> mManufacturerSpecificData;
94 public SparseArray<byte[]> getManufacturerSpecificData() { in getManufacturerSpecificData()
153 SparseArray<byte[]> manufacturerData, in ScanRecord()
188 SparseArray<byte[]> manufacturerData = new SparseArray<byte[]>(); in parseFromBytes()
DBluetoothLeUtils.java20 import android.util.SparseArray;
38 static String toString(SparseArray<byte[]> array) { in toString()
82 static boolean equals(SparseArray<byte[]> array, SparseArray<byte[]> otherArray) { in equals()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DDecorContentParent.java26 import android.util.SparseArray;
55 void saveToolbarHierarchyState(SparseArray<Parcelable> toolbarStates); in saveToolbarHierarchyState()
56 void restoreToolbarHierarchyState(SparseArray<Parcelable> toolbarStates); in restoreToolbarHierarchyState()
/frameworks/support/v17/leanback/api21/android/support/v17/leanback/widget/
DRoundedRectHelperApi21.java18 import android.util.SparseArray;
25 private static SparseArray<ViewOutlineProvider> sRoundedRectProvider;
46 sRoundedRectProvider = new SparseArray<ViewOutlineProvider>(); in setClipToRoundedOutline()
/frameworks/base/services/core/java/com/android/server/wm/
DWallpaperVisibilityListeners.java21 import android.util.SparseArray;
32 private final SparseArray<RemoteCallbackList<IWallpaperVisibilityListener>> mDisplayListeners =
33 new SparseArray<>();

12345678910>>...16