Home | History | Annotate | Download | only in launcher2

Lines Matching refs:INTENT

28 import android.content.Intent;
29 import android.content.Intent.ShortcutIconResource;
289 modelShortcut.intent.filterEquals(shortcut.intent) &&
498 * we identify a shortcut by its title and intent.
500 static boolean shortcutExists(Context context, String title, Intent intent) {
503 new String[] { "title", "intent" }, "title=? and intent=?",
504 new String[] { title, intent.toUri(0) }, null);
850 public void onReceive(Context context, Intent intent) {
851 if (DEBUG_LOADERS) Log.d(TAG, "onReceive intent=" + intent);
853 final String action = intent.getAction();
854 if (Intent.ACTION_LOCALE_CHANGED.equals(action)) {
857 } else if (Intent.ACTION_CONFIGURATION_CHANGED.equals(action)) {
1299 (LauncherSettings.Favorites.INTENT);
1336 Intent intent;
1355 intent = Intent.parseUri(intentDescription, 0);
1362 manager, intent, user, context, c, iconIndex,
1370 // didn't always have the correct intent flags set, so do that
1372 if (intent.getAction() != null &&
1373 intent.getCategories() != null &&
1374 intent.getAction().equals(Intent.ACTION_MAIN) &&
1375 intent.getCategories().contains(Intent.CATEGORY_LAUNCHER)) {
1376 intent.addFlags(
1377 Intent.FLAG_ACTIVITY_NEW_TASK |
1378 Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
1383 info.intent = intent;
1390 info.intent.putExtra(ItemInfo.EXTRA_PROFILE, info.user);
1902 final Intent mainIntent = new Intent(Intent.ACTION_MAIN, null);
1903 mainIntent.addCategory(Intent.CATEGORY_LAUNCHER);
2175 Intent shortcutsIntent = new Intent(Intent.ACTION_CREATE_SHORTCUT);
2185 * This is called from the code that adds shortcuts from the intent receiver. This
2188 public ShortcutInfo getShortcutInfo(PackageManager manager, Intent intent, UserHandle user,
2190 return getShortcutInfo(manager, intent, user, context, null, -1, -1, null);
2198 public ShortcutInfo getShortcutInfo(PackageManager manager, Intent intent, UserHandle user,
2205 ComponentName componentName = intent.getComponent();
2210 LauncherActivityInfo lai = mLauncherApps.resolveActivity(intent, user);
2256 * Returns the set of workspace ShortcutInfos with the specified intent.
2258 static ArrayList<ItemInfo> getWorkspaceShortcutItemInfosWithIntent(Intent intent) {
2264 if (shortcut.intent.toUri(0).equals(intent.toUri(0))) {
2355 ShortcutInfo addShortcut(Context context, Intent data, long container, int screen,
2389 final Intent supportsIntent =
2390 new Intent(InstallWidgetReceiver.ACTION_SUPPORTS_CLIPDATA_MIMETYPE);
2419 ShortcutInfo infoFromShortcutIntent(Context context, Intent data, Bitmap fallbackIcon) {
2420 Intent intent = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_INTENT);
2421 String name = data.getStringExtra(Intent.EXTRA_SHORTCUT_NAME);
2422 Parcelable bitmap = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_ICON);
2426 if (intent == null) {
2427 // If the intent is null, we can't construct a valid ShortcutInfo, so we return null
2428 Log.e(TAG, "Can't construct ShorcutInfo with null intent");
2440 Parcelable extra = data.getParcelableExtra(Intent.EXTRA_SHORTCUT_ICON_RESOURCE);
2471 info.intent = intent;