Searched refs:eventKey (Results 1 – 1 of 1) sorted by relevance
89 public boolean hasReachedMaxCount(@EventCountKey String eventKey) { in hasReachedMaxCount() argument90 return hasReachedMaxCount(getCount(eventKey), eventKey); in hasReachedMaxCount()93 private boolean hasReachedMaxCount(int count, @EventCountKey String eventKey) { in hasReachedMaxCount() argument94 return count >= MAX_COUNTS.get(eventKey); in hasReachedMaxCount()113 public boolean incrementEventCount(@EventCountKey String eventKey) { in incrementEventCount() argument114 int count = getCount(eventKey); in incrementEventCount()115 if (hasReachedMaxCount(count, eventKey)) { in incrementEventCount()119 mSharedPrefs.edit().putInt(eventKey, count).apply(); in incrementEventCount()120 return hasReachedMaxCount(count, eventKey); in incrementEventCount()