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.java49 private void onFoodSelected(Food food) { in onFoodSelected() argument
52 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() local
84 .setImageIcon(food.getIcon(mContext)); in onBindViewHolder()
86 .setText(food.getName(mContext)); in onBindViewHolder()
DNekoTile.java70 Food food = new Food(foodState); in updateState() local
72 NekoService.registerJobIfNeeded(this, food.getInterval(this)); in updateState()
74 tile.setIcon(food.getIcon(this)); in updateState()
75 tile.setLabel(food.getName(this)); in updateState()
DNekoService.java72 int food = prefs.getFoodState(); in onStartJob() local
73 if (food != 0) { in onStartJob()
80 final float new_cat_prob = (float)((food < probs.length) ? probs[food] : 50) / 100f; in onStartJob()