Lines Matching defs:ai
146 public void bindView(View view, LauncherActivityInfo ai) {
150 v.setTag(ai);
158 v.setTag(ai);
162 if (mUserManager.isUserUnlocked(ai.getUser())
164 mQuery.setPackage(ai.getComponentName().getPackageName());
169 mQuery.setActivity(ai.getComponentName());
171 if (mLauncherApps.getShortcuts(mQuery, ai.getUser()).size() > 0) {
185 line1.setText(ai.getLabel());
188 final Drawable icon = ai.getBadgedIcon(DisplayMetrics.DENSITY_DEFAULT);
195 final LauncherActivityInfo ai = (LauncherActivityInfo) v.getTag();
199 mLauncherApps.startMainActivity(ai.getComponentName(), ai.getUser(),
206 showShortcutsForPackage(ai);
212 private void showShortcutsForPackage(LauncherActivityInfo ai) {
215 ai.getComponentName().getPackageName(),
216 ai.getComponentName(),
217 ai.getUser(),
218 ai.getLabel());