Lines Matching refs:pid
73 for(int pid : getPids()) { in toJson()
76 proc.put(PID_JSON_KEY, pid); in toJson()
77 proc.put(NAME_JSON_KEY, getName(pid)); in toJson()
78 proc.put(PSS_JSON_KEY, getPss(pid)); in toJson()
79 proc.put(SWAP_JSON_KEY, getSwap(pid)); in toJson()
80 proc.put(TYPE_JSON_KEY, getType(pid)); in toJson()
81 proc.put(ACTIVITIES_JSON_KEY, hasActivities(pid)); in toJson()
110 private Map<String, Object> get(int pid) { in get() argument
111 return mPids.get(pid); in get()
117 public void addPid(int pid, String name, String type, long pss, long swap, boolean activities) { in addPid() argument
124 mPids.put(pid, attributes); in addPid()
130 public String getName(int pid) { in getName() argument
131 return (String)get(pid).get(NAME_ATTR_KEY); in getName()
137 public long getPss(int pid) { in getPss() argument
138 return (Long)get(pid).get(PSS_ATTR_KEY); in getPss()
144 public long getSwap(int pid) { in getSwap() argument
145 return (Long)get(pid).get(SWAP_ATTR_KEY); in getSwap()
152 public String getType(int pid) { in getType() argument
153 return (String)get(pid).get(TYPE_ATTR_KEY); in getType()
159 public boolean hasActivities(int pid) { in hasActivities() argument
160 return (Boolean)get(pid).get(ACTIVITIES_ATTR_KEY); in hasActivities()