Searched refs:appWidgetId (Results 1 - 16 of 16) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherAppWidgetInfo.java37 int appWidgetId = NO_ID; field in class:LauncherAppWidgetInfo
53 LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { argument
55 this.appWidgetId = appWidgetId;
67 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId);
90 return "AppWidget(id=" + Integer.toString(appWidgetId) + ")";
H A DLauncherAppWidgetHost.java35 protected AppWidgetHostView onCreateView(Context context, int appWidgetId, argument
H A DLauncher.java557 int appWidgetId = args.intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1);
558 completeAddAppWidget(appWidgetId, args.container, args.screen, null, null);
576 int appWidgetId = data != null ?
579 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId);
581 addAppWidgetImpl(appWidgetId, mPendingAddInfo, null, mPendingAddWidgetInfo);
592 int appWidgetId = data != null ?
594 if (appWidgetId < 0) {
595 Log.e(TAG, "Error: appWidgetId (EXTRA_APPWIDGET_ID) was not returned from the \\" +
597 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId);
599 completeTwoStageWidgetDrop(resultCode, appWidgetId);
629 completeTwoStageWidgetDrop(final int resultCode, final int appWidgetId) argument
1081 completeAddAppWidget(final int appWidgetId, long container, int screen, AppWidgetHostView hostView, AppWidgetProviderInfo appWidgetInfo) argument
1577 addAppWidgetImpl(final int appWidgetId, ItemInfo info, AppWidgetHostView boundWidget, AppWidgetProviderInfo appWidgetInfo) argument
[all...]
H A DLauncherProvider.java272 "appWidgetId INTEGER NOT NULL DEFAULT -1," +
402 // upgrade 1,2 -> 3 added appWidgetId column
407 "ADD COLUMN appWidgetId INTEGER NOT NULL DEFAULT -1;");
696 // Allocate and update database with new appWidgetId
698 int appWidgetId = mAppWidgetHost.allocateAppWidgetId();
701 Log.d(TAG, "allocated appWidgetId=" + appWidgetId
706 values.put(Favorites.APPWIDGET_ID, appWidgetId);
722 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId,
727 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId,
[all...]
H A DDeleteDropTarget.java244 appWidgetHost.deleteAppWidgetId(launcherAppWidgetInfo.appWidgetId);
H A DLauncherModel.java1174 int appWidgetId = c.getInt(appWidgetIdIndex);
1178 widgets.getAppWidgetInfo(appWidgetId);
1183 + id + " appWidgetId=" + appWidgetId;
1188 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId,
/packages/apps/Gallery/src/com/android/camera/
H A DPhotoAppWidgetBind.java42 // appWidgetId, which probably is happening during a Launcher upgrade.
65 int appWidgetId = appWidgetIds[i];
66 helper.setPhoto(appWidgetId, bitmaps.get(i));
70 PhotoAppWidgetProvider.buildUpdate(this, appWidgetId,
72 appWidgetManager.updateAppWidget(new int[] { appWidgetId }, views);
H A DPhotoAppWidgetProvider.java47 // Update each requested appWidgetId with its unique photo
49 for (int appWidgetId : appWidgetIds) {
50 int[] specificAppWidget = new int[] { appWidgetId };
51 RemoteViews views = buildUpdate(context, appWidgetId, helper);
54 + " for id=" + appWidgetId);
65 for (int appWidgetId : appWidgetIds) {
66 helper.deletePhoto(appWidgetId);
74 static RemoteViews buildUpdate(Context context, int appWidgetId, argument
77 Bitmap bitmap = helper.getPhoto(appWidgetId);
92 static final String FIELD_APPWIDGET_ID = "appWidgetId";
122 setPhoto(int appWidgetId, Bitmap bitmap) argument
164 getPhoto(int appWidgetId) argument
198 deletePhoto(int appWidgetId) argument
[all...]
/packages/apps/Email/src/com/android/email/widget/
H A DWidgetManager.java119 static void saveWidgetPrefs(Context context, int appWidgetId, long accountId, long mailboxId) { argument
122 .putLong(ACCOUNT_ID_PREFIX + appWidgetId, accountId)
123 .putLong(MAILBOX_ID_PREFIX + appWidgetId, mailboxId)
128 static void removeWidgetPrefs(Context context, int appWidgetId) { argument
132 if (key.endsWith("_" + appWidgetId)) {
143 static long loadAccountIdPref(Context context, int appWidgetId) { argument
145 long accountId = prefs.getLong(ACCOUNT_ID_PREFIX + appWidgetId, Account.NO_ACCOUNT);
153 static long loadMailboxIdPref(Context context, int appWidgetId) { argument
155 long mailboxId = prefs.getLong(MAILBOX_ID_PREFIX + appWidgetId, Mailbox.NO_MAILBOX);
/packages/apps/Browser/src/com/android/browser/widget/
H A DBookmarkThumbnailWidgetProvider.java87 for (int appWidgetId : appWidgetIds) {
89 updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
95 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, R.id.bookmarks_list);
100 appWidgetManager.updateAppWidget(appWidgetId, views);
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DPhotoAppWidgetProvider.java94 static RemoteViews buildFrameWidget(Context context, int appWidgetId, Entry entry) { argument
102 Log.w(TAG, "cannot load widget image: " + appWidgetId, t);
114 Log.w(TAG, "cannot load widget uri: " + appWidgetId, t);
124 for (int appWidgetId : appWidgetIds) {
125 helper.deleteEntry(appWidgetId);
H A DWidgetDatabaseHelper.java43 private static final String FIELD_APPWIDGET_ID = "appWidgetId";
177 * Store the given bitmap in this database for the given appWidgetId.
179 public boolean setPhoto(int appWidgetId, Uri imageUri, Bitmap bitmap) { argument
190 values.put(FIELD_APPWIDGET_ID, appWidgetId);
218 public Entry getEntry(int appWidgetId) { argument
223 WHERE_APPWIDGET_ID, new String[] {String.valueOf(appWidgetId)},
229 return new Entry(appWidgetId, cursor);
281 * Remove any bitmap associated with the given appWidgetId.
283 public void deleteEntry(int appWidgetId) { argument
287 new String[] {String.valueOf(appWidgetId)});
[all...]
/packages/apps/Mms/src/com/android/mms/widget/
H A DMmsWidgetProvider.java78 * Update the widget appWidgetId
80 private static void updateWidget(Context context, int appWidgetId) { argument
82 Log.v(TAG, "updateWidget appWidgetId: " + appWidgetId);
89 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
91 remoteViews.setRemoteAdapter(appWidgetId, R.id.conversation_list, intent);
117 AppWidgetManager.getInstance(context).updateAppWidget(appWidgetId, remoteViews);
/packages/apps/Contacts/src/com/android/contacts/socialwidget/
H A DSocialWidgetProvider.java67 for (int appWidgetId : appWidgetIds) {
68 Log.d(TAG, "onUpdate called for " + appWidgetId);
71 for (int appWidgetId : appWidgetIds) {
72 loadWidgetData(context, appWidgetManager, appWidgetId, false);
78 for (int appWidgetId : appWidgetIds) {
79 ContactLoader loader = sLoaders.get(appWidgetId);
81 Log.d(TAG, "Stopping loader for widget with id=" + appWidgetId);
83 sLoaders.delete(appWidgetId);
/packages/apps/Calendar/src/com/android/calendar/widget/
H A DCalendarAppWidgetProvider.java123 for (int appWidgetId : appWidgetIds) {
126 updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
145 views.setRemoteAdapter(appWidgetId, R.id.events_list, updateIntent);
146 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, R.id.events_list);
164 appWidgetManager.updateAppWidget(appWidgetId, views);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DSearchWidgetProvider.java118 private static SearchWidgetState getSearchWidgetState(Context context, int appWidgetId) { argument
119 if (DBG) Log.d(TAG, "Creating appwidget state " + appWidgetId);
120 SearchWidgetState state = new SearchWidgetState(appWidgetId);
150 public SearchWidgetState(int appWidgetId) { argument
151 mAppWidgetId = appWidgetId;

Completed in 391 milliseconds