/frameworks/base/core/java/com/android/internal/appwidget/ |
IAppWidgetHost.aidl | 25 void updateAppWidget(int appWidgetId, in RemoteViews views); 26 void providerChanged(int appWidgetId, in AppWidgetProviderInfo info); 27 void viewDataChanged(int appWidgetId, int viewId);
|
IAppWidgetService.aidl | 36 void deleteAppWidgetId(int appWidgetId); 39 RemoteViews getAppWidgetViews(int appWidgetId); 49 AppWidgetProviderInfo getAppWidgetInfo(int appWidgetId); 50 void bindAppWidgetId(int appWidgetId, in ComponentName provider); 51 void bindRemoteViewsService(int appWidgetId, in Intent intent, in IBinder connection); 52 void unbindRemoteViewsService(int appWidgetId, in Intent intent);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
LauncherAppWidgetInfo.java | 37 int appWidgetId = NO_ID; 64 LauncherAppWidgetInfo(int appWidgetId) { 66 this.appWidgetId = appWidgetId; 72 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); 77 return "AppWidget(id=" + Integer.toString(appWidgetId) + ")";
|
LauncherAppWidgetHost.java | 35 protected AppWidgetHostView onCreateView(Context context, int appWidgetId,
|
Launcher.java | 497 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); [all...] |
LauncherProvider.java | 253 "appWidgetId INTEGER NOT NULL DEFAULT -1," + 375 // upgrade 1,2 -> 3 added appWidgetId column 380 "ADD COLUMN appWidgetId INTEGER NOT NULL DEFAULT -1;"); 645 // Allocate and update database with new appWidgetId 647 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); 650 Log.d(TAG, "allocated appWidgetId=" + appWidgetId 655 values.put(Favorites.APPWIDGET_ID, appWidgetId); 670 appWidgetManager.bindAppWidgetId(appWidgetId, 674 appWidgetManager.bindAppWidgetId(appWidgetId, [all...] |
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/ |
AppWidgetHostActivity.java | 59 protected AppWidgetHostView onCreateView(Context context, int appWidgetId, AppWidgetProviderInfo appWidget) { 60 return new MyAppWidgetView(appWidgetId); 89 void configureAppWidget(int requestCode, int appWidgetId, ComponentName configure) { 92 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); 94 prefs.putInt(PENDING_APPWIDGET_ID, appWidgetId); 102 int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID); 105 AppWidgetProviderInfo appWidget = mAppWidgetManager.getAppWidgetInfo(appWidgetId); 109 configureAppWidget(CONFIGURE_APPWIDGET_REQUEST, appWidgetId, appWidget.configure); 112 addAppWidgetView(appWidgetId, appWidget); 115 mHost.deleteAppWidgetId(appWidgetId); [all...] |
/frameworks/base/core/java/android/appwidget/ |
AppWidgetHost.java | 54 public void updateAppWidget(int appWidgetId, RemoteViews views) { 56 msg.arg1 = appWidgetId; 61 public void providerChanged(int appWidgetId, AppWidgetProviderInfo info) { 63 msg.arg1 = appWidgetId; 68 public void viewDataChanged(int appWidgetId, int viewId) { 70 msg.arg1 = appWidgetId; 156 * Get a appWidgetId for a host in the calling process. 158 * @return a appWidgetId 175 public void deleteAppWidgetId(int appWidgetId) { 177 mViews.remove(appWidgetId); [all...] |
AppWidgetManager.java | 56 * <td>A newly allocated appWidgetId, which will be bound to the AppWidget provider 67 * <td>The appWidgetId that you supplied in the original intent.</td> 75 * the appWidgetId. 91 * <td>The appWidgetId to configure.</td> 104 * An intent extra that contains one appWidgetId. 109 public static final String EXTRA_APPWIDGET_ID = "appWidgetId"; 137 * A sentiel value that the AppWidget manager will never return as a appWidgetId. 255 * Set the RemoteViews to use for the specified appWidgetId. 266 * @param appWidgetId The AppWidget instance for which to set the RemoteViews. 269 public void updateAppWidget(int appWidgetId, RemoteViews views) [all...] |
AppWidgetProvider.java | 73 final int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID); 74 this.onDeleted(context, new int[] { appWidgetId });
|
AppWidgetHostView.java | 114 public void setAppWidget(int appWidgetId, AppWidgetProviderInfo info) { 115 mAppWidgetId = appWidgetId;
|
/packages/apps/Gallery/src/com/android/camera/ |
PhotoAppWidgetBind.java | 42 // 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);
|
PhotoAppWidgetProvider.java | 47 // 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, 77 Bitmap bitmap = helper.getPhoto(appWidgetId); 92 static final String FIELD_APPWIDGET_ID = "appWidgetId"; [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/appwidget/ |
ExampleAppWidgetProvider.java | 60 int appWidgetId = appWidgetIds[i]; 61 String titlePrefix = ExampleAppWidgetConfigure.loadTitlePref(context, appWidgetId); 62 updateAppWidget(context, appWidgetManager, appWidgetId, titlePrefix); 103 int appWidgetId, String titlePrefix) { 104 Log.d(TAG, "updateAppWidget appWidgetId=" + appWidgetId + " titlePrefix=" + titlePrefix); 108 ExampleAppWidgetConfigure.loadTitlePref(context, appWidgetId), 118 appWidgetManager.updateAppWidget(appWidgetId, views);
|
ExampleAppWidgetConfigure.java | 98 // Make sure we pass back the original appWidgetId 107 static void saveTitlePref(Context context, int appWidgetId, String text) { 109 prefs.putString(PREF_PREFIX_KEY + appWidgetId, text); 115 static String loadTitlePref(Context context, int appWidgetId) { 117 String prefix = prefs.getString(PREF_PREFIX_KEY + appWidgetId, null); 125 static void deleteTitlePref(Context context, int appWidgetId) {
|
/packages/apps/Email/src/com/android/email/widget/ |
WidgetManager.java | 119 static void saveWidgetPrefs(Context context, int appWidgetId, long accountId, long mailboxId) { 122 .putLong(ACCOUNT_ID_PREFIX + appWidgetId, accountId) 123 .putLong(MAILBOX_ID_PREFIX + appWidgetId, mailboxId) 128 static void removeWidgetPrefs(Context context, int appWidgetId) { 132 if (key.endsWith("_" + appWidgetId)) { 143 static long loadAccountIdPref(Context context, int appWidgetId) { 145 long accountId = prefs.getLong(ACCOUNT_ID_PREFIX + appWidgetId, Account.NO_ACCOUNT); 153 static long loadMailboxIdPref(Context context, int appWidgetId) { 155 long mailboxId = prefs.getLong(MAILBOX_ID_PREFIX + appWidgetId, Mailbox.NO_MAILBOX);
|
/development/apps/WidgetPreview/src/com/android/widgetpreview/ |
WidgetPreviewActivity.java | 113 int appWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID; 115 appWidgetId = data.getExtras().getInt(AppWidgetManager.EXTRA_APPWIDGET_ID); 119 setAppWidget(appWidgetId); 121 mAppWidgetHost.deleteAppWidgetId(appWidgetId); 129 int appWidgetId = data.getExtras().getInt( 132 finishSetAppWidget(appWidgetId); 134 mAppWidgetHost.deleteAppWidgetId(appWidgetId); 140 private void setAppWidget(int appWidgetId) { 147 AppWidgetManager.getInstance(getBaseContext()).getAppWidgetInfo(appWidgetId); 152 configureIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); [all...] |
/packages/apps/Browser/src/com/android/browser/widget/ |
BookmarkThumbnailWidgetProvider.java | 87 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/ |
PhotoAppWidgetProvider.java | 90 static RemoteViews buildFrameWidget(Context context, int appWidgetId, Entry entry) { 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);
|
WidgetDatabaseHelper.java | 42 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) { 182 values.put(FIELD_APPWIDGET_ID, appWidgetId); 210 public Entry getEntry(int appWidgetId) { 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) { 237 new String[] {String.valueOf(appWidgetId)}); [all...] |
/frameworks/base/services/java/com/android/server/ |
AppWidgetService.java | 97 ArrayList<AppWidgetId> instances = new ArrayList<AppWidgetId>(); 108 ArrayList<AppWidgetId> instances = new ArrayList<AppWidgetId>(); 115 static class AppWidgetId { 116 int appWidgetId; 171 final ArrayList<AppWidgetId> mAppWidgetIds = new ArrayList<AppWidgetId>(); 257 private void dumpAppWidgetId(AppWidgetId id, int index, PrintWriter pw) { 259 pw.println(id.appWidgetId); [all...] |
/packages/apps/Contacts/src/com/android/contacts/socialwidget/ |
SocialWidgetProvider.java | 64 for (int appWidgetId : appWidgetIds) { 65 Log.d(TAG, "onUpdate called for " + appWidgetId); 68 for (int appWidgetId : appWidgetIds) { 69 loadWidgetData(context, appWidgetManager, appWidgetId, false); 75 for (int appWidgetId : appWidgetIds) { 76 ContactLoader loader = sLoaders.get(appWidgetId); 78 Log.d(TAG, "Stopping loader for widget with id=" + appWidgetId); 80 sLoaders.delete(appWidgetId);
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
CalendarAppWidgetProvider.java | 121 for (int appWidgetId : appWidgetIds) { 124 updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); 143 views.setRemoteAdapter(appWidgetId, R.id.events_list, updateIntent); 144 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, R.id.events_list); 162 appWidgetManager.updateAppWidget(appWidgetId, views);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SearchWidgetProvider.java | 118 private static SearchWidgetState getSearchWidgetState(Context context, int appWidgetId) { 119 if (DBG) Log.d(TAG, "Creating appwidget state " + appWidgetId); 120 SearchWidgetState state = new SearchWidgetState(appWidgetId); 150 public SearchWidgetState(int appWidgetId) { 151 mAppWidgetId = appWidgetId;
|
/development/samples/StackWidget/src/com/example/android/stackwidget/ |
StackWidgetProvider.java | 51 int appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID,
|