HomeSort by relevance Sort by last modified time
    Searched full:sparsearray (Results 1 - 25 of 169) sorted by null

1 2 3 4 5 6 7

  /cts/tests/tests/util/src/android/util/cts/
SparseArrayTest.java 20 import android.util.SparseArray;
30 SparseArray<Integer> sparseArray = new SparseArray<Integer>();
31 assertEquals(0, sparseArray.size());
36 sparseArray.put(KEYS[i], VALUES[i]);
37 assertEquals(i + 1, sparseArray.size());
41 assertEquals(new Integer(i), sparseArray.get(KEYS[i]));
45 assertEquals(sparseArray.indexOfValue(VALUES[i]), sparseArray.indexOfKey(KEYS[i]))
    [all...]
  /frameworks/base/services/java/com/android/server/
ProcessMap.java 19 import android.util.SparseArray;
24 final HashMap<String, SparseArray<E>> mMap
25 = new HashMap<String, SparseArray<E>>();
28 SparseArray<E> uids = mMap.get(name);
34 SparseArray<E> uids = mMap.get(name);
36 uids = new SparseArray<E>(2);
44 SparseArray<E> uids = mMap.get(name);
53 public HashMap<String, SparseArray<E>> getMap() {
AttributeCache.java 26 import android.util.SparseArray;
45 private final SparseArray<HashMap<int[], Entry>> mMap
46 = new SparseArray<HashMap<int[], Entry>>();
  /external/smali/dexlib/src/main/java/org/jf/dexlib/
ReadContext.java 32 import org.jf.dexlib.Util.SparseArray;
44 private SparseArray<TypeListItem> typeListItems = new SparseArray<TypeListItem>(0);
45 private SparseArray<AnnotationSetRefList> annotationSetRefLists = new SparseArray<AnnotationSetRefList>(0);
46 private SparseArray<AnnotationSetItem> annotationSetItems = new SparseArray<AnnotationSetItem>(0);
47 private SparseArray<ClassDataItem> classDataItems = new SparseArray<ClassDataItem>(0);
48 private SparseArray<CodeItem> codeItems = new SparseArray<CodeItem>(0)
    [all...]
  /external/regex-re2/util/
sparse_array.h 7 // SparseArray<T>(m) is a map from integers in [0, m) to T values.
27 // change after visiting. Thus SparseArray can be a convenient
30 // The SparseArray implementation is NOT thread-safe. It is up to the
35 // The SparseArray interface does not present all the usual STL bells and
55 // SparseArray uses a vector dense_ and an array sparse_to_dense_, both of
90 // destroyed when the SparseArray destructor is called.
100 class SparseArray {
102 SparseArray();
103 SparseArray(int max_size);
104 ~SparseArray();
    [all...]
sparse_array_test.cc 5 // Simple tests that SparseArray behaves.
14 TEST(SparseArray, BasicOperations) {
16 SparseArray<int> set(n);
44 for (SparseArray<int>::iterator i = set.begin(); i != set.end(); ++i) {
68 SparseArray<string> str_map_;
69 typedef SparseArray<string>::iterator iterator;
98 SparseArray<string> str_map(5);
114 " SparseArray\\(10\\).set\\(\\).");
121 " SparseArray\\(10\\).set\\(\\).");
128 " SparseArray\\(10\\).set_new\\(\\).")
    [all...]
  /frameworks/base/core/java/android/util/
SparseArray.java 26 public class SparseArray<E> implements Cloneable {
35 * Creates a new SparseArray containing no mappings.
37 public SparseArray() {
42 * Creates a new SparseArray containing no mappings that will not
46 public SparseArray(int initialCapacity) {
56 public SparseArray<E> clone() {
57 SparseArray<E> clone = null;
59 clone = (SparseArray<E>) super.clone();
123 // Log.e("SparseArray", "gc start with " + mSize);
147 // Log.e("SparseArray", "gc end with " + mSize)
    [all...]
  /sdk/sdkmanager/libs/sdklib/src/com/android/sdklib/util/
SparseArray.java 25 public class SparseArray<E> {
30 * Creates a new SparseArray containing no mappings.
32 public SparseArray() {
37 * Creates a new SparseArray containing no mappings that will not
41 public SparseArray(int initialCapacity) {
94 // Log.e("SparseArray", "gc start with " + mSize);
117 // Log.e("SparseArray", "gc end with " + mSize);
152 // Log.e("SparseArray", "grow " + mKeys.length + " to " + n);
161 // Log.e("SparseArray", "move " + (mSize - i));
173 * Returns the number of key-value mappings that this SparseArray
    [all...]
  /frameworks/base/services/java/com/android/server/pm/
PackageSettingBase.java 23 import android.util.SparseArray;
67 private SparseArray<Boolean> stopped = new SparseArray<Boolean>();
70 private SparseArray<Boolean> notLaunched = new SparseArray<Boolean>();
73 private SparseArray<HashSet<String>> disabledComponents = new SparseArray<HashSet<String>>();
75 private SparseArray<HashSet<String>> enabledComponents = new SparseArray<HashSet<String>>();
120 disabledComponents = (SparseArray<HashSet<String>>) base.disabledComponents.clone()
    [all...]
  /frameworks/support/v4/java/android/support/v4/util/
SparseArrayCompat.java 20 * A copy of Honeycomb's {@link android.util.SparseArray}, that
28 * Creates a new SparseArray containing no mappings.
35 * Creates a new SparseArray containing no mappings that will not
114 // Log.e("SparseArray", "gc start with " + mSize);
137 // Log.e("SparseArray", "gc end with " + mSize);
172 // Log.e("SparseArray", "grow " + mKeys.length + " to " + n);
181 // Log.e("SparseArray", "move " + (mSize - i));
193 * Returns the number of key-value mappings that this SparseArray
207 * SparseArray stores.
220 * SparseArray stores
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/state/
GLSparseArrayProperty.java 19 import com.android.sdklib.util.SparseArray;
28 private final SparseArray<IGLProperty> mSparseArray;
33 mSparseArray = new SparseArray<IGLProperty>(20);
37 SparseArray<IGLProperty> contents) {
104 SparseArray<IGLProperty> copy = new SparseArray<IGLProperty>(mSparseArray.size());
  /external/smali/baksmali/src/main/java/org/jf/baksmali/Adaptors/
ClassDefinition.java 39 import org.jf.dexlib.Util.SparseArray;
48 private SparseArray<AnnotationSetItem> methodAnnotationsMap;
49 private SparseArray<AnnotationSetItem> fieldAnnotationsMap;
50 private SparseArray<AnnotationSetRefList> parameterAnnotationsMap;
52 private SparseArray<FieldIdItem> fieldsSetInStaticConstructor;
70 methodAnnotationsMap = new SparseArray<AnnotationSetItem>(0);
71 fieldAnnotationsMap = new SparseArray<AnnotationSetItem>(0);
72 parameterAnnotationsMap = new SparseArray<AnnotationSetRefList>(0);
76 methodAnnotationsMap = new SparseArray<AnnotationSetItem>(annotationDirectory.getMethodAnnotationCount());
83 fieldAnnotationsMap = new SparseArray<AnnotationSetItem>(annotationDirectory.getFieldAnnotationCount())
    [all...]
  /frameworks/support/v4/java/android/support/v4/app/
NoSaveStateFrameLayout.java 21 import android.util.SparseArray;
52 protected void dispatchSaveInstanceState(SparseArray<Parcelable> container) {
60 protected void dispatchRestoreInstanceState(SparseArray<Parcelable> container) {
  /external/smali/dexlib/src/main/java/org/jf/dexlib/Util/
SparseArray.java 36 public class SparseArray<E> {
41 * Creates a new SparseArray containing no mappings.
43 public SparseArray() {
48 * Creates a new SparseArray containing no mappings that will not
52 public SparseArray(int initialCapacity) {
102 // Log.e("SparseArray", "gc start with " + mSize);
125 // Log.e("SparseArray", "gc end with " + mSize);
160 // Log.e("SparseArray", "grow " + mKeys.length + " to " + n);
169 // Log.e("SparseArray", "move " + (mSize - i));
181 * Returns the number of key-value mappings that this SparseArray
    [all...]
  /frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/util/
SparseWeakArray.java 22 import android.util.SparseArray;
27 * This is a custom {@link SparseArray} that uses {@link WeakReference} around the objects added
31 * The code is taken from {@link SparseArray} directly and adapted to use weak references.
49 * Creates a new SparseArray containing no mappings.
56 * Creates a new SparseArray containing no mappings that will not
190 // Log.e("SparseArray", "grow " + mKeys.length + " to " + n);
199 // Log.e("SparseArray", "move " + (mSize - i));
211 * Returns the number of key-value mappings that this SparseArray
225 * SparseArray stores.
238 * SparseArray stores
    [all...]
DynamicIdMap.java 22 import android.util.SparseArray;
30 private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<Pair<ResourceType, String>>();
  /external/smali/dexlib/src/main/java/org/jf/dexlib/EncodedValue/
ValueType.java 31 import org.jf.dexlib.Util.SparseArray;
55 private final static SparseArray<ValueType> valueTypeIntegerMap;
59 valueTypeIntegerMap = new SparseArray<ValueType>(16);
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/resources/manager/
DynamicIdMap.java 20 import com.android.sdklib.util.SparseArray;
29 private final SparseArray<Pair<ResourceType, String>> mRevDynamicIds = new SparseArray<Pair<ResourceType, String>>();
  /frameworks/base/docs/html/sdk/api_diff/14/changes/
android.util.SparseArray.html 10 android.util.SparseArray
74 Class android.util.<A HREF="../../../../reference/android/util/SparseArray.html" target="_top"><font size="+2"><code>SparseArray</code></font></A>
87 <A NAME="android.util.SparseArray.clone_changed()"></A>
88 <nobr><code>SparseArray&lt;E&gt;</code>&nbsp;<A HREF="../../../../reference/android/util/SparseArray.html#clone()" target="_top"><code>clone</code></A>() </nobr>
91 Change in return type from <code>Object</code> to <code>SparseArray&lt;E&gt;</code>.<br>
  /frameworks/base/graphics/java/android/graphics/
Typeface.java 20 import android.util.SparseArray;
48 private static final SparseArray<SparseArray<Typeface>> sTypefaceCache =
49 new SparseArray<SparseArray<Typeface>>(3);
114 SparseArray<Typeface> styles = sTypefaceCache.get(ni);
125 styles = new SparseArray<Typeface>(4);
  /frameworks/base/telephony/java/com/android/internal/telephony/
AdnRecordCache.java 23 import android.util.SparseArray;
40 SparseArray<ArrayList<AdnRecord>> adnLikeFiles
41 = new SparseArray<ArrayList<AdnRecord>>();
44 SparseArray<ArrayList<Message>> adnLikeWaiters
45 = new SparseArray<ArrayList<Message>>();
48 SparseArray<Message> userWriteResponse = new SparseArray<Message>();
  /sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gldebugger/
GLServerShader.java 20 import com.android.sdklib.util.SparseArray;
80 public SparseArray<GLShader> shaders = new SparseArray<GLShader>();
81 public SparseArray<GLProgram> programs = new SparseArray<GLProgram>();
95 copy.shaders = new SparseArray<GLShader>(shaders.size());
99 copy.programs = new SparseArray<GLProgram>(programs.size());
  /frameworks/base/docs/html/sdk/api_diff/11/changes/
android.util.SparseArray.html 10 android.util.SparseArray
74 Class android.util.<A HREF="../../../../reference/android/util/SparseArray.html" target="_top"><font size="+2"><code>SparseArray</code></font></A>
86 <A NAME="android.util.SparseArray.removeAt_added(int)"></A>
87 <nobr><code>void</code>&nbsp;<A HREF="../../../../reference/android/util/SparseArray.html#removeAt(int)" target="_top"><code>removeAt</code></A>(<code>int</code>)</nobr>
  /frameworks/base/core/tests/coretests/src/android/view/menu/
MenuScenario.java 22 import android.util.SparseArray;
152 private SparseArray<CharSequence> itemTitles = new SparseArray<CharSequence>();
  /frameworks/base/policy/src/com/android/internal/policy/impl/
ShortcutManager.java 26 import android.util.SparseArray;
50 private SparseArray<Intent> mShortcutIntents;
56 mShortcutIntents = new SparseArray<Intent>();

Completed in 742 milliseconds

1 2 3 4 5 6 7