Home
last modified time | relevance | path

Searched refs:ai (Results 1 – 7 of 7) sorted by relevance

/development/samples/ShortcutDemo/launcher/src/com/example/android/pm/shortcutlauncherdemo/
DAppListFragment.java37 protected void onBindAction2(Button v, LauncherActivityInfo ai, OnClickListener listener) { in onBindAction2() argument
39 if (mUserManager.isUserUnlocked(ai.getUser()) in onBindAction2()
41 mQuery.setPackage(ai.getComponentName().getPackageName()); in onBindAction2()
46 mQuery.setActivity(ai.getComponentName()); in onBindAction2()
48 if (mLauncherApps.getShortcuts(mQuery, ai.getUser()).size() > 0) { in onBindAction2()
60 protected void onLaunch(LauncherActivityInfo ai) { in onLaunch() argument
61 mLauncherApps.startMainActivity(ai.getComponentName(), ai.getUser(), null, null); in onLaunch()
65 protected void onAction2(LauncherActivityInfo ai) { in onAction2() argument
68 ai.getComponentName().getPackageName(), in onAction2()
69 ai.getComponentName(), in onAction2()
[all …]
DBaseActivityListFragment.java150 public void bindView(View view, LauncherActivityInfo ai) { in bindView() argument
154 v.setTag(ai); in bindView()
161 v.setTag(ai); in bindView()
165 onBindAction2(v, ai, this); in bindView()
174 line1.setText(ai.getLabel()); in bindView()
177 final Drawable icon = ai.getBadgedIcon(DisplayMetrics.DENSITY_DEFAULT); in bindView()
184 final LauncherActivityInfo ai = (LauncherActivityInfo) v.getTag(); in onClick() local
188 onLaunch(ai); in onClick()
195 onAction2(ai); in onClick()
204 protected void onBindAction2(Button v, LauncherActivityInfo ai, in onBindAction2() argument
[all …]
DShortcutTemplateListFragment.java39 protected void onLaunch(LauncherActivityInfo ai) { in onLaunch() argument
40 final IntentSender is = mLauncherApps.getShortcutConfigActivityIntent(ai); in onLaunch()
DMyBaseListFragment.java114 final ApplicationInfo ai = pm.getApplicationInfo(packageName, 0); in getAppLabel() local
115 return pm.getApplicationLabel(ai).toString(); in getAppLabel()
/development/apps/Development/src/com/android/development/
DPackageSummary.java172 ActivityInfo ai = info.activities[i]; in onCreate() local
174 if (ai != null) { in onCreate()
178 new ComponentName(ai.applicationInfo.packageName, in onCreate()
179 ai.name))); in onCreate()
180 setItemText(view, info, ai.name); in onCreate()
191 ActivityInfo ai = info.receivers[i]; in onCreate() local
194 Log.i("foo", "Receiver #" + i + " of " + N + ": " + ai); in onCreate()
195 setItemText(view, info, ai.name); in onCreate()
/development/samples/ShortcutDemo/common/src/com/example/android/pm/shortcutdemo/
DAppLabelCache.java39 final ApplicationInfo ai = pm.getApplicationInfo(packageName, 0); in getAppLabel() local
40 name = pm.getApplicationLabel(ai).toString(); in getAppLabel()
/development/apps/PushApiAuthenticator/src/com/example/android/pushapiauthenticator/
DMainActivity.java121 for (ApplicationInfo ai :list) { in onCreate()
122 String label = (String) ai.processName; in onCreate()