Home
last modified time | relevance | path

Searched refs:food (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoDialog.java51 private void onFoodSelected(Food food) { in onFoodSelected() argument
54 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() local
86 .setImageIcon(food.getIcon(mContext)); in onBindViewHolder()
88 .setText(food.getName(mContext)); in onBindViewHolder()
DNekoTile.java72 Food food = new Food(foodState); in updateState() local
74 NekoService.registerJobIfNeeded(this, food.getInterval(this)); in updateState()
76 tile.setIcon(food.getIcon(this)); in updateState()
77 tile.setLabel(food.getName(this)); in updateState()
DNekoService.java98 int food = prefs.getFoodState(); in triggerFoodResponse() local
99 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()