FileDocCategorySizeDatePackage
ProcessMap.javaAPI DocAndroid 5.1 API1637Thu Mar 12 22:22:10 GMT 2015com.android.internal.app

ProcessMap

public class ProcessMap extends Object

Fields Summary
final android.util.ArrayMap
mMap
Constructors Summary
Methods Summary
public Eget(java.lang.String name, int uid)

    
          
        SparseArray<E> uids = mMap.get(name);
        if (uids == null) return null;
        return uids.get(uid);
    
public android.util.ArrayMapgetMap()

        return mMap;
    
public Eput(java.lang.String name, int uid, E value)

        SparseArray<E> uids = mMap.get(name);
        if (uids == null) {
            uids = new SparseArray<E>(2);
            mMap.put(name, uids);
        }
        uids.put(uid, value);
        return value;
    
public voidremove(java.lang.String name, int uid)

        SparseArray<E> uids = mMap.get(name);
        if (uids != null) {
            uids.remove(uid);
            if (uids.size() == 0) {
                mMap.remove(name);
            }
        }