FileDocCategorySizeDatePackage
ProcessMap.javaAPI DocAndroid 1.5 API1625Wed May 06 22:42:00 BST 2009com.android.server

ProcessMap

public class ProcessMap extends Object

Fields Summary
final HashMap
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 java.util.HashMapgetMap()

        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);
            }
        }