Searched refs:cats (Results 1 – 6 of 6) sorted by relevance
104 List<Cat> cats = prefs.getCats(); in triggerFoodResponse() local113 if (cats.size() == 0 || rng.nextFloat() <= new_cat_prob) { in triggerFoodResponse()140 final List<Cat> cats = prefs.getCats(); in getExistingCat() local141 if (cats.size() == 0) return null; in getExistingCat()142 return cats.get(new Random().nextInt(cats.size())); in getExistingCat()
105 Cat[] cats; in updateCats() local107 cats = new Cat[50]; in updateCats()108 for (int i = 0; i < cats.length; i++) { in updateCats()109 cats[i] = Cat.create(this); in updateCats()124 cats = list.toArray(new Cat[0]); in updateCats()126 mAdapter.setCats(cats); in updateCats()127 return cats.length; in updateCats()181 public void setCats(Cat[] cats) { in setCats() argument182 mCats = cats; in setCats()
58 ArrayList<Cat> cats = new ArrayList<>(); in getCats() local65 cats.add(cat); in getCats()68 return cats; in getCats()
144 final StringBuilder cats = new StringBuilder("Intent d="); in parseIntentInfo() local145 cats.append(intentInfo.isHasDefault()); in parseIntentInfo()146 cats.append(", cat="); in parseIntentInfo()151 cats.append(' '); in parseIntentInfo()152 cats.append(it.next()); in parseIntentInfo()155 Slog.d(TAG, cats.toString()); in parseIntentInfo()
5867 final StringBuilder cats = new StringBuilder("Intent d="); in parseIntent() local5868 cats.append(outInfo.hasDefault); in parseIntent()5869 cats.append(", cat="); in parseIntent()5874 cats.append(' '); in parseIntent()5875 cats.append(it.next()); in parseIntent()5878 Slog.d(TAG, cats.toString()); in parseIntent()
7759 HashSet<String> cats = new HashSet<String>(baseIntent.getCategories()); in parseCommandArgs() local7760 for (String c : cats) { in parseCommandArgs()