/development/samples/StackWidget/src/com/example/android/stackwidget/ |
StackWidgetProvider.java | 33 public void onDeleted(Context context, int[] appWidgetIds) { 34 super.onDeleted(context, appWidgetIds); 60 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 62 for (int i = 0; i < appWidgetIds.length; ++i) { 67 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetIds[i]); 72 rv.setRemoteAdapter(appWidgetIds[i], R.id.stack_view, intent); 84 toastIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetIds[i]); 90 appWidgetManager.updateAppWidget(appWidgetIds[i], rv); 92 super.onUpdate(context, appWidgetManager, appWidgetIds);
|
/packages/apps/Gallery/src/com/android/camera/ |
PhotoAppWidgetBind.java | 44 // appWidgetIds they don't own, so we guard this call at the manifest 50 final int[] appWidgetIds = 55 if (appWidgetIds == null || bitmaps == null 56 || appWidgetIds.length != bitmaps.size()) { 63 for (int i = 0; i < appWidgetIds.length; i++) { 65 int appWidgetId = appWidgetIds[i];
|
PhotoAppWidgetProvider.java | 46 int[] appWidgetIds) { 49 for (int appWidgetId : appWidgetIds) { 62 public void onDeleted(Context context, int[] appWidgetIds) { 65 for (int appWidgetId : appWidgetIds) {
|
/frameworks/base/core/java/android/appwidget/ |
AppWidgetProvider.java | 64 int[] appWidgetIds = extras.getIntArray(AppWidgetManager.EXTRA_APPWIDGET_IDS); 65 if (appWidgetIds != null && appWidgetIds.length > 0) { 66 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); 107 * @param appWidgetIds The appWidgetIds for which an update is needed. Note that this 113 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 144 * @param appWidgetIds The appWidgetIds that have been deleted from their host. 148 public void onDeleted(Context context, int[] appWidgetIds) { [all...] |
AppWidgetManager.java | 179 * An intent extra that contains multiple appWidgetIds. 184 public static final String EXTRA_APPWIDGET_IDS = "appWidgetIds"; 227 * <td>The appWidgetIds to update. This may be all of the AppWidgets created for this 233 * @see AppWidgetProvider#onUpdate AppWidgetProvider.onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) 248 * @see AppWidgetProvider#onDeleted AppWidgetProvider.onDeleted(Context context, int[] appWidgetIds) 313 * Set the RemoteViews to use for the specified appWidgetIds. 328 * @param appWidgetIds The AppWidget instances for which to set the RemoteViews. 331 public void updateAppWidget(int[] appWidgetIds, RemoteViews views) { 333 sService.updateAppWidgetIds(appWidgetIds, views); 404 * Perform an incremental update or command on the widget(s) specified by appWidgetIds [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/appwidget/ |
ExampleBroadcastReceiver.java | 44 ArrayList<Integer> appWidgetIds = new ArrayList<Integer>(); 47 ExampleAppWidgetConfigure.loadAllTitlePrefs(context, appWidgetIds, texts); 49 final int N = appWidgetIds.size(); 51 ExampleAppWidgetProvider.updateAppWidget(context, gm, appWidgetIds.get(i), texts.get(i));
|
ExampleAppWidgetProvider.java | 52 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 58 final int N = appWidgetIds.length; 60 int appWidgetId = appWidgetIds[i]; 67 public void onDeleted(Context context, int[] appWidgetIds) { 70 final int N = appWidgetIds.length; 72 ExampleAppWidgetConfigure.deleteTitlePref(context, appWidgetIds[i]);
|
ExampleAppWidgetConfigure.java | 128 static void loadAllTitlePrefs(Context context, ArrayList<Integer> appWidgetIds,
|
/packages/apps/Email/src/com/android/email/provider/ |
WidgetProvider.java | 56 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 60 super.onUpdate(context, appWidgetManager, appWidgetIds); 61 WidgetManager.getInstance().updateWidgets(context, appWidgetIds); 65 public void onDeleted(Context context, int[] appWidgetIds) { 69 WidgetManager.getInstance().deleteWidgets(context, appWidgetIds); 70 super.onDeleted(context, appWidgetIds);
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
AnalogAppWidgetProvider.java | 46 int[] appWidgetIds = intent.getIntArrayExtra( 50 gm.updateAppWidget(appWidgetIds, views);
|
/packages/apps/Music/src/com/android/music/ |
MediaAppWidgetProvider.java | 49 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 50 defaultAppWidget(context, appWidgetIds); 57 updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS, appWidgetIds); 66 private void defaultAppWidget(Context context, int[] appWidgetIds) { 74 pushUpdate(context, appWidgetIds, views); 77 private void pushUpdate(Context context, int[] appWidgetIds, RemoteViews views) { 78 // Update specific list of appWidgetIds if given, otherwise default to all 80 if (appWidgetIds != null) { 81 gm.updateAppWidget(appWidgetIds, views); 92 int[] appWidgetIds = appWidgetManager.getAppWidgetIds [all...] |
/packages/apps/Browser/src/com/android/browser/widget/ |
BookmarkThumbnailWidgetProvider.java | 58 public void onDeleted(Context context, int[] appWidgetIds) { 59 super.onDeleted(context, appWidgetIds); 60 for (int widgetId : appWidgetIds) { 82 AppWidgetManager appWidgetManager, int[] appWidgetIds) { 87 for (int appWidgetId : appWidgetIds) {
|
/packages/apps/Mms/src/com/android/mms/widget/ |
MmsWidgetProvider.java | 45 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 46 super.onUpdate(context, appWidgetManager, appWidgetIds); 48 for (int i = 0; i < appWidgetIds.length; ++i) { 49 updateWidget(context, appWidgetIds[i]); 66 int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(context, 68 if (appWidgetIds.length > 0) { 69 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetIds[0],
|
/frameworks/base/core/java/com/android/internal/appwidget/ |
IAppWidgetService.aidl | 45 void updateAppWidgetIds(in int[] appWidgetIds, in RemoteViews views); 48 void partiallyUpdateAppWidgetIds(in int[] appWidgetIds, in RemoteViews views); 50 void notifyAppWidgetViewDataChanged(in int[] appWidgetIds, int viewId);
|
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/ |
TestAppWidgetProvider.java | 50 int[] appWidgetIds = extras.getIntArray(AppWidgetManager.EXTRA_APPWIDGET_IDS); 61 gm.updateAppWidget(appWidgetIds, views);
|
/frameworks/base/tests/appwidgets/AppWidgetProviderTest/src/com/android/tests/appwidgetprovider/ |
TestAppWidgetProvider.java | 47 int[] appWidgetIds = extras.getIntArray(AppWidgetManager.EXTRA_APPWIDGET_IDS); 53 gm.updateAppWidget(appWidgetIds, views);
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
PhotoAppWidgetProvider.java | 52 AppWidgetManager appWidgetManager, int[] appWidgetIds) { 58 for (int id : appWidgetIds) { 70 super.onUpdate(context, appWidgetManager, appWidgetIds); 121 public void onDeleted(Context context, int[] appWidgetIds) { 124 for (int appWidgetId : appWidgetIds) {
|
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/ |
WeatherWidgetProvider.java | 144 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 146 for (int i = 0; i < appWidgetIds.length; ++i) { 150 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetIds[i]); 153 rv.setRemoteAdapter(appWidgetIds[i], R.id.weather_list, intent); 164 onClickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetIds[i]); 177 appWidgetManager.updateAppWidget(appWidgetIds[i], rv); 179 super.onUpdate(context, appWidgetManager, appWidgetIds);
|
/frameworks/base/services/java/com/android/server/ |
AppWidgetService.java | 293 int appWidgetIds[] = new int[instancesSize]; 295 appWidgetIds[i] = p.instances.get(i).appWidgetId; 297 return appWidgetIds; 306 public void notifyAppWidgetViewDataChanged(int[] appWidgetIds, int viewId) 308 getImplForUser().notifyAppWidgetViewDataChanged(appWidgetIds, viewId); 312 public void partiallyUpdateAppWidgetIds(int[] appWidgetIds, RemoteViews views) 314 getImplForUser().partiallyUpdateAppWidgetIds(appWidgetIds, views); 328 public void updateAppWidgetIds(int[] appWidgetIds, RemoteViews views) throws RemoteException { 329 getImplForUser().updateAppWidgetIds(appWidgetIds, views);
|
AppWidgetServiceImpl.java | 352 pw.println("AppWidgetIds:"); 660 // Add it to the mapping of RemoteViewsService to appWidgetIds so that we can determine 752 HashSet<Integer> appWidgetIds = null; 754 appWidgetIds = mRemoteViewsServicesAppWidgets.get(fc); 756 appWidgetIds = new HashSet<Integer>(); 757 mRemoteViewsServicesAppWidgets.put(fc, appWidgetIds); 759 appWidgetIds.add(appWidgetId); 817 public void updateAppWidgetIds(int[] appWidgetIds, RemoteViews views) { 818 if (appWidgetIds == null) { 833 if (appWidgetIds.length == 0) [all...] |
/packages/apps/Contacts/src/com/android/contacts/socialwidget/ |
SocialWidgetProvider.java | 66 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 67 for (int appWidgetId : appWidgetIds) { 71 for (int appWidgetId : appWidgetIds) { 77 public void onDeleted(Context context, int[] appWidgetIds) { 78 for (int appWidgetId : appWidgetIds) { 86 SocialWidgetSettings.getInstance().remove(context, appWidgetIds);
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
CalendarAppWidgetProvider.java | 94 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 95 performUpdate(context, appWidgetManager, appWidgetIds, null /* no eventIds */); 108 * Process and push out an update for the given appWidgetIds. This call 114 * @param appWidgetIds List of specific appWidgetIds to update, or null for 120 AppWidgetManager appWidgetManager, int[] appWidgetIds, 123 for (int appWidgetId : appWidgetIds) {
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SearchWidgetProvider.java | 77 int[] appWidgetIds = appWidgetManager.getAppWidgetIds(myComponentName(context)); 78 SearchWidgetState[] states = new SearchWidgetState[appWidgetIds.length]; 79 for (int i = 0; i<appWidgetIds.length; ++i) { 80 states[i] = getSearchWidgetState(context, appWidgetIds[i]);
|
/development/apps/BuildWidget/src/com/android/buildwidget/ |
BuildWidget.java | 44 int[] appWidgetIds) {
|
/development/samples/Wiktionary/src/com/example/android/wiktionary/ |
WordWidget.java | 45 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
|