Searched refs:food (Results 1 – 3 of 3) sorted by relevance
51 private void onFoodSelected(Food food) { in onFoodSelected() argument54 if (currentState == 0 && food.getType() != 0) { in onFoodSelected()55 NekoService.registerJob(getContext(), food.getInterval(getContext())); in onFoodSelected()58 prefs.setFoodState(food.getType()); in onFoodSelected()84 final Food food = mFoods.get(position); in onBindViewHolder() local86 .setImageIcon(food.getIcon(mContext)); in onBindViewHolder()88 .setText(food.getName(mContext)); in onBindViewHolder()
72 Food food = new Food(foodState); in updateState() local74 NekoService.registerJobIfNeeded(this, food.getInterval(this)); in updateState()76 tile.setIcon(food.getIcon(this)); in updateState()77 tile.setLabel(food.getName(this)); in updateState()
98 int food = prefs.getFoodState(); in triggerFoodResponse() local99 if (food != 0) { in triggerFoodResponse()107 final float new_cat_prob = (float) ((food < probs.length) in triggerFoodResponse()108 ? probs[food] in triggerFoodResponse()110 Log.v(TAG, "Food type: " + food); in triggerFoodResponse()