/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) {
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/provider/ |
AppWidgetProviderCallbacks.java | 37 int[] appWidgetIds); 42 public abstract void onDeleted(Context context, int[] appWidgetIds);
|
StubbableAppWidgetProvider.java | 26 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 29 callbacks.onUpdate(context, appWidgetManager, appWidgetIds); 43 public void onDeleted(Context context, int[] appWidgetIds) { 46 callbacks.onDeleted(context, appWidgetIds);
|
/packages/apps/Messaging/src/com/android/messaging/widget/ |
BaseWidgetProvider.java | 44 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 45 super.onUpdate(context, appWidgetManager, appWidgetIds); 47 for (int i = 0; i < appWidgetIds.length; ++i) { 48 updateWidget(context, appWidgetIds[i]); 65 final int[] appWidgetIds = appWidgetManager.getAppWidgetIds(new ComponentName(context, 68 if (appWidgetIds.length > 0) { 72 getListId() + " first widgetId: " + appWidgetIds[0]); 74 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetIds, getListId()); 172 public void onDeleted(Context context, int[] appWidgetIds) { 173 super.onDeleted(context, 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]);
|
/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); 114 * @param appWidgetIds The appWidgetIds for which an update is needed. Note that this 120 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 151 * @param appWidgetIds The appWidgetIds that have been deleted from their host. 155 public void onDeleted(Context context, int[] appWidgetIds) { [all...] |
AppWidgetManager.java | 205 * An intent extra that contains multiple appWidgetIds. 210 public static final String EXTRA_APPWIDGET_IDS = "appWidgetIds"; 282 * <td>The appWidgetIds to update. This may be all of the AppWidgets created for this 288 * @see AppWidgetProvider#onUpdate AppWidgetProvider.onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) 310 * @see AppWidgetProvider#onDeleted AppWidgetProvider.onDeleted(Context context, int[] appWidgetIds) 346 * <td>The set of appWidgetIds represented in a restored backup that have been successfully 348 * to this application, or just a subset. Each entry in this array of appWidgetIds has 353 * <td>The set of appWidgetIds now valid for this application. The app should look at 379 * <td>The set of appWidgetIds represented in a restored backup that have been successfully 381 * to this application, or just a subset. Each entry in this array of appWidgetIds ha [all...] |
/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...] |
/frameworks/base/core/java/com/android/internal/appwidget/ |
IAppWidgetService.aidl | 37 in int[] appWidgetIds); 51 void updateAppWidgetIds(String callingPackage, in int[] appWidgetIds, in RemoteViews views); 54 void partiallyUpdateAppWidgetIds(String callingPackage, in int[] appWidgetIds, 57 void notifyAppWidgetViewDataChanged(String packageName, 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/DeskClock/src/com/android/alarmclock/ |
AnalogAppWidgetProvider.java | 47 final int[] appWidgetIds = intent.getIntArrayExtra(AppWidgetManager.EXTRA_APPWIDGET_IDS); 48 AppWidgetManager.getInstance(context).updateAppWidget(appWidgetIds, views);
|
DigitalAppWidgetProvider.java | 90 int[] appWidgetIds = appWidgetManager.getAppWidgetIds(getComponentName(context)); 91 for (int appWidgetId : appWidgetIds) { 114 int[] appWidgetIds = appWidgetManager.getAppWidgetIds(getComponentName(context)); 115 for (int appWidgetId : appWidgetIds) { 124 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 128 for (int appWidgetId : appWidgetIds) { 133 super.onUpdate(context, appWidgetManager, appWidgetIds);
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
AppWidgetManagerTest.java | 87 int[] appWidgetIds = appWidgetManager.getAppWidgetIds( 92 assertEquals(1, appWidgetIds.length); 93 assertEquals(expectedWidgetId, appWidgetIds[0]); 102 @Override public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 105 appWidgetManager.updateAppWidget(appWidgetIds, remoteViews);
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
PhotoAppWidgetProvider.java | 54 AppWidgetManager appWidgetManager, int[] appWidgetIds) { 63 for (int id : appWidgetIds) { 75 super.onUpdate(context, appWidgetManager, appWidgetIds); 131 public void onDeleted(Context context, int[] appWidgetIds) { 134 for (int appWidgetId : appWidgetIds) {
|
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/widget/ |
DemoAppWidgetProvider.java | 36 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) {
37 for (int widgetId : appWidgetIds) {
|
/device/sample/apps/LeanbackWidget/src/com/google/android/leanbacklauncher/partnerwidget/ |
ClockWidgetProvider.java | 47 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 49 super.onUpdate(context, appWidgetManager, 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]);
|
/developers/samples/android/content/WidgetData/Application/src/main/java/com/example/android/widgetdata/ |
WeatherWidgetProvider.java | 207 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 209 for (int i = 0; i < appWidgetIds.length; ++i) { 210 RemoteViews layout = buildLayout(context, appWidgetIds[i], mIsLargeLayout); 211 appWidgetManager.updateAppWidget(appWidgetIds[i], layout); 213 super.onUpdate(context, appWidgetManager, appWidgetIds);
|
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/ |
WeatherWidgetProvider.java | 207 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 209 for (int i = 0; i < appWidgetIds.length; ++i) { 210 RemoteViews layout = buildLayout(context, appWidgetIds[i], mIsLargeLayout); 211 appWidgetManager.updateAppWidget(appWidgetIds[i], layout); 213 super.onUpdate(context, appWidgetManager, appWidgetIds);
|
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
BaseWidgetProvider.java | 73 public void onDeleted(Context context, int[] appWidgetIds) { 74 super.onDeleted(context, appWidgetIds); 77 MailPrefs.get(context).clearWidgets(appWidgetIds); 191 public void onUpdate(Context context, AppWidgetManager appWidgetManager, int[] appWidgetIds) { 192 migrateLegacyWidgets(context, appWidgetIds); 194 super.onUpdate(context, appWidgetManager, appWidgetIds); 197 new BulkUpdateAsyncTask(context, appWidgetIds).execute((Void[]) null); 204 public BulkUpdateAsyncTask(final Context context, final int[] appWidgetIds) { 206 mAppWidgetIds = appWidgetIds;
|