Searched defs:appWidgetId (Results 1 - 8 of 8) sorted by relevance

/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherAppWidgetHost.java35 protected AppWidgetHostView onCreateView(Context context, int appWidgetId, argument
H A DLauncherAppWidgetInfo.java37 int appWidgetId = NO_ID; field in class:LauncherAppWidgetInfo
64 LauncherAppWidgetInfo(int appWidgetId) { argument
66 this.appWidgetId = appWidgetId;
72 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId);
77 return "AppWidget(id=" + Integer.toString(appWidgetId) + ")";
H A DLauncher.java497 int appWidgetId = args.intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1);
498 completeAddAppWidget(appWidgetId, args.container, args.screen);
539 // Clean up the appWidgetId if we canceled
540 int appWidgetId = data.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1);
541 if (appWidgetId != -1) {
542 mAppWidgetHost.deleteAppWidgetId(appWidgetId);
948 * @param appWidgetId The app widget id
951 private void completeAddAppWidget(final int appWidgetId, long container, int screen) { argument
952 AppWidgetProviderInfo appWidgetInfo = mAppWidgetManager.getAppWidgetInfo(appWidgetId);
979 if (appWidgetId !
1417 addAppWidgetImpl(int appWidgetId, PendingAddWidgetInfo info) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
H A DPhotoAppWidgetProvider.java90 static RemoteViews buildFrameWidget(Context context, int appWidgetId, Entry entry) { argument
98 Log.w(TAG, "cannot load widget image: " + appWidgetId, t);
110 Log.w(TAG, "cannot load widget uri: " + appWidgetId, t);
120 for (int appWidgetId : appWidgetIds) {
121 helper.deleteEntry(appWidgetId);
H A DWidgetDatabaseHelper.java42 private static final String FIELD_APPWIDGET_ID = "appWidgetId";
169 * Store the given bitmap in this database for the given appWidgetId.
171 public boolean setPhoto(int appWidgetId, Uri imageUri, Bitmap bitmap) { argument
182 values.put(FIELD_APPWIDGET_ID, appWidgetId);
210 public Entry getEntry(int appWidgetId) { argument
215 WHERE_CLAUSE, new String[] {String.valueOf(appWidgetId)},
221 return new Entry(appWidgetId, cursor);
231 * Remove any bitmap associated with the given appWidgetId.
233 public void deleteEntry(int appWidgetId) { argument
237 new String[] {String.valueOf(appWidgetId)});
[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/Gallery/src/com/android/camera/
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/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 137 milliseconds