/frameworks/base/core/java/android/appwidget/ |
AppWidgetProvider.java | 59 int[] appWidgetIds = extras.getIntArray(AppWidgetManager.EXTRA_APPWIDGET_IDS); 60 if (appWidgetIds != null && appWidgetIds.length > 0) { 61 this.onUpdate(context, AppWidgetManager.getInstance(context), appWidgetIds); 92 * @param appWidgetIds The appWidgetIds for which an update is needed. Note that this 98 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 110 * @param appWidgetIds The appWidgetIds that have been deleted from their host. 114 public void onDeleted(Context context, int[] appWidgetIds) { [all...] |
AppWidgetManager.java | 106 * An intent extra that contains multiple appWidgetIds. 111 public static final String EXTRA_APPWIDGET_IDS = "appWidgetIds"; 147 * <td>The appWidgetIds to update. This may be all of the AppWidgets created for this 153 * @see AppWidgetProvider#onUpdate AppWidgetProvider.onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) 160 * @see AppWidgetProvider#onDeleted AppWidgetProvider.onDeleted(Context context, int[] appWidgetIds) 225 * Set the RemoteViews to use for the specified appWidgetIds. 236 * @param appWidgetIds The AppWidget instances for which to set the RemoteViews. 239 public void updateAppWidget(int[] appWidgetIds, RemoteViews views) { 241 sService.updateAppWidgetIds(appWidgetIds, views); 268 * Perform an incremental update or command on the widget(s) specified by appWidgetIds [all...] |
/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) {
|
/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,
|
/frameworks/base/core/java/com/android/internal/appwidget/ |
IAppWidgetService.aidl | 44 void updateAppWidgetIds(in int[] appWidgetIds, in RemoteViews views); 45 void partiallyUpdateAppWidgetIds(in int[] appWidgetIds, in RemoteViews views); 47 void notifyAppWidgetViewDataChanged(in int[] appWidgetIds, int viewId);
|
/packages/apps/Email/src/com/android/email/provider/ |
WidgetProvider.java | 54 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 58 super.onUpdate(context, appWidgetManager, appWidgetIds); 59 WidgetManager.getInstance().createWidgets(context, appWidgetIds); 63 public void onDeleted(Context context, int[] appWidgetIds) { 67 WidgetManager.getInstance().deleteWidgets(context, appWidgetIds); 68 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) {
|
/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 | 51 AppWidgetManager appWidgetManager, int[] appWidgetIds) { 54 for (int id : appWidgetIds) { 66 super.onUpdate(context, appWidgetManager, appWidgetIds); 117 public void onDeleted(Context context, int[] appWidgetIds) { 120 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 | 292 pw.println("AppWidgetIds:"); 534 // Add it to the mapping of RemoteViewsService to appWidgetIds so that we can determine 625 HashSet<Integer> appWidgetIds = null; 627 appWidgetIds = mRemoteViewsServicesAppWidgets.get(fc); 629 appWidgetIds = new HashSet<Integer>(); 630 mRemoteViewsServicesAppWidgets.put(fc, appWidgetIds); 632 appWidgetIds.add(appWidgetId); 691 public void updateAppWidgetIds(int[] appWidgetIds, RemoteViews views) { 692 if (appWidgetIds == null) { 695 if (appWidgetIds.length == 0) [all...] |
/packages/apps/Contacts/src/com/android/contacts/socialwidget/ |
SocialWidgetProvider.java | 63 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 64 for (int appWidgetId : appWidgetIds) { 68 for (int appWidgetId : appWidgetIds) { 74 public void onDeleted(Context context, int[] appWidgetIds) { 75 for (int appWidgetId : appWidgetIds) { 83 SocialWidgetSettings.getInstance().remove(context, appWidgetIds);
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
CalendarAppWidgetProvider.java | 92 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 93 performUpdate(context, appWidgetManager, appWidgetIds, null /* no eventIds */); 106 * Process and push out an update for the given appWidgetIds. This call 112 * @param appWidgetIds List of specific appWidgetIds to update, or null for 118 AppWidgetManager appWidgetManager, int[] appWidgetIds, 121 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) {
|
/development/samples/WiktionarySimple/src/com/example/android/simplewiktionary/ |
WordWidget.java | 46 int[] appWidgetIds) {
|
/packages/apps/Settings/src/com/android/settings/widget/ |
SettingsAppWidgetProvider.java | 597 int[] appWidgetIds) { 601 for (int i = 0; i < appWidgetIds.length; i++) { 602 appWidgetManager.updateAppWidget(appWidgetIds[i], view); 661 // Update specific list of appWidgetIds if given, otherwise default to all [all...] |