Lines Matching refs:data

144     public void onReceive(Context context, Intent data) {
145 if (!ACTION_INSTALL_SHORTCUT.equals(data.getAction())) {
148 PendingInstallShortcutInfo info = createPendingInfo(context, data);
174 private static PendingInstallShortcutInfo createPendingInfo(Context context, Intent data) {
175 if (!isValidExtraType(data, Intent.EXTRA_SHORTCUT_INTENT, Intent.class) ||
176 !(isValidExtraType(data, Intent.EXTRA_SHORTCUT_ICON_RESOURCE,
178 !(isValidExtraType(data, Intent.EXTRA_SHORTCUT_ICON, Bitmap.class))) {
184 PendingInstallShortcutInfo info = new PendingInstallShortcutInfo(data, context);
193 public static ShortcutInfo fromShortcutIntent(Context context, Intent data) {
194 PendingInstallShortcutInfo info = createPendingInfo(context, data);
269 final Intent data;
278 public PendingInstallShortcutInfo(Intent data, Context context) {
279 this.data = data;
282 launchIntent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT);
283 label = data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME);
292 this.data = null;
331 Bitmap icon = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_ICON);
333 data.getParcelableExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE);
363 return LauncherAppState.getInstance().getModel().infoFromShortcutIntent(mContext, data);
399 Intent data = new Intent();
400 data.putExtra(Intent.EXTRA_SHORTCUT_INTENT, launcherIntent);
401 data.putExtra(Intent.EXTRA_SHORTCUT_NAME, object.getString(NAME_KEY));
409 data.putExtra(Intent.EXTRA_SHORTCUT_ICON, b);
415 data.putExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE, iconResource);
418 return new PendingInstallShortcutInfo(data, context);