Lines Matching refs:id
52 * Record the current time as the start time of the provided id. If the id has a previously
54 * @param id
56 public void trackStart(String id) {
57 mStartTimes.put(id, SystemClock.uptimeMillis());
69 * @param id id of the event
75 public void logDuration(String id, boolean isDestructive, String category, String name,
78 logDurationAndReturn(id, isDestructive, category, name, label);
88 public long logDurationAndReturn(String id, boolean isDestructive, String category, String name,
90 final Long value = isDestructive ? mStartTimes.remove(id) : mStartTimes.get(id);
92 throw new IllegalStateException("Trying to log id that doesn't exist: " + id);
100 * Removes a previously recorded start time of the provided id, if it exists.
102 public void stopTracking(String id) {
103 mStartTimes.remove(id);