/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 | 37 void deleteAppWidgetId(int appWidgetId); 40 RemoteViews getAppWidgetViews(int appWidgetId); 46 void updateAppWidgetOptions(int appWidgetId, in Bundle extras); 47 Bundle getAppWidgetOptions(int appWidgetId); 52 AppWidgetProviderInfo getAppWidgetInfo(int appWidgetId); 55 void bindAppWidgetId(int appWidgetId, in ComponentName provider); 57 in String packageName, int appWidgetId, in ComponentName provider); 58 void bindRemoteViewsService(int appWidgetId, in Intent intent, in IBinder connection); 59 void unbindRemoteViewsService(int appWidgetId, in Intent intent);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
LauncherAppWidgetInfo.java | 37 int appWidgetId = NO_ID; 53 LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { 55 this.appWidgetId = appWidgetId; 67 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); 90 return "AppWidget(id=" + Integer.toString(appWidgetId) + ")";
|
LauncherAppWidgetHost.java | 35 protected AppWidgetHostView onCreateView(Context context, int appWidgetId,
|
Launcher.java | 584 int appWidgetId = args.intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); 585 completeAddAppWidget(appWidgetId, args.container, args.screen, null, null); 603 int appWidgetId = data != null ? 606 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); 608 addAppWidgetImpl(appWidgetId, mPendingAddInfo, null, mPendingAddWidgetInfo); 619 int appWidgetId = data != null ? 621 if (appWidgetId < 0) { 622 Log.e(TAG, "Error: appWidgetId (EXTRA_APPWIDGET_ID) was not returned from the \\" + 624 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); 626 completeTwoStageWidgetDrop(resultCode, 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 | 57 * <td>A newly allocated appWidgetId, which will be bound to the AppWidget provider 68 * <td>The appWidgetId that you supplied in the original intent.</td> 76 * the appWidgetId. 90 * <td>A newly allocated appWidgetId, which will be bound to the AppWidget provider 106 * <td>The appWidgetId that you supplied in the original intent.</td> 115 * the appWidgetId. 132 * <td>The appWidgetId to configure.</td> 145 * An intent extra that contains one appWidgetId. 150 public static final String EXTRA_APPWIDGET_ID = "appWidgetId"; 211 * A sentiel value that the AppWidget manager will never return as a appWidgetId [all...] |
AppWidgetProvider.java | 73 final int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID); 74 this.onDeleted(context, new int[] { appWidgetId }); 81 int appWidgetId = extras.getInt(AppWidgetManager.EXTRA_APPWIDGET_ID); 84 appWidgetId, widgetExtras); 126 * @param appWidgetId The appWidgetId of the widget who's size changed. 127 * @param newOptions The appWidgetId of the widget who's size changed. 132 int appWidgetId, Bundle newOptions) {
|
/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) {
|
/frameworks/base/services/java/com/android/server/ |
AppWidgetService.java | 66 ArrayList<AppWidgetId> instances = new ArrayList<AppWidgetId>(); 77 ArrayList<AppWidgetId> instances = new ArrayList<AppWidgetId>(); 84 static class AppWidgetId { 85 int appWidgetId; 131 final ArrayList<AppWidgetId> mAppWidgetIds = new ArrayList<AppWidgetId>(); 191 public void deleteAppWidgetId(int appWidgetId) throws RemoteException { 192 getImplForUser().deleteAppWidgetId(appWidgetId); [all...] |
AppWidgetServiceImpl.java | 94 ArrayList<AppWidgetId> instances = new ArrayList<AppWidgetId>(); 105 ArrayList<AppWidgetId> instances = new ArrayList<AppWidgetId>(); 112 static class AppWidgetId { 113 int appWidgetId; 168 final ArrayList<AppWidgetId> mAppWidgetIds = new ArrayList<AppWidgetId>(); 315 private void dumpAppWidgetId(AppWidgetId id, int index, PrintWriter pw) { 317 pw.println(id.appWidgetId); [all...] |
/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 | 94 static RemoteViews buildFrameWidget(Context context, int appWidgetId, Entry entry) { 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);
|
WidgetDatabaseHelper.java | 43 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) { 190 values.put(FIELD_APPWIDGET_ID, appWidgetId); 218 public Entry getEntry(int appWidgetId) { 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) { 287 new String[] {String.valueOf(appWidgetId)}); [all...] |
/packages/apps/Mms/src/com/android/mms/widget/ |
MmsWidgetProvider.java | 78 * Update the widget appWidgetId 80 private static void updateWidget(Context context, int appWidgetId) { 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/ |
SocialWidgetProvider.java | 67 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/ |
CalendarAppWidgetProvider.java | 123 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/ |
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,
|