Searched refs:food (Results 1 – 3 of 3) sorted by relevance
49 private void onFoodSelected(Food food) { in onFoodSelected() argument52 if (currentState == 0 && food.getType() != 0) { in onFoodSelected()53 NekoService.registerJob(getContext(), food.getInterval(getContext())); in onFoodSelected()55 MetricsLogger.histogram(getContext(), "egg_neko_offered_food", food.getType()); in onFoodSelected()56 prefs.setFoodState(food.getType()); in onFoodSelected()82 final Food food = mFoods.get(position); in onBindViewHolder() local84 .setImageIcon(food.getIcon(mContext)); in onBindViewHolder()86 .setText(food.getName(mContext)); in onBindViewHolder()
70 Food food = new Food(foodState); in updateState() local72 NekoService.registerJobIfNeeded(this, food.getInterval(this)); in updateState()74 tile.setIcon(food.getIcon(this)); in updateState()75 tile.setLabel(food.getName(this)); in updateState()
72 int food = prefs.getFoodState(); in onStartJob() local73 if (food != 0) { in onStartJob()80 final float new_cat_prob = (float)((food < probs.length) ? probs[food] : 50) / 100f; in onStartJob()