/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
WidgetProvider.java | 23 protected void migrateLegacyWidgetInformation(Context context, int widgetId) {
|
BaseWidgetProvider.java | 65 protected static final String EXTRA_WIDGET_ID = "widgetId"; 130 final int widgetId = intent.getIntExtra(EXTRA_WIDGET_ID, -1); 139 if (widgetId != -1 && account != null && folderUri != null) { 140 updateWidgetInternal(context, widgetId, account, folderType, folderCapabilities, 400 for (int widgetId : widgetIds) { 403 if (!MailPrefs.get(context).isWidgetConfigured(widgetId)) { 404 migrateLegacyWidgetInformation(context, widgetId); 411 for (int widgetId : widgetIds) { 412 final String accountFolder = MailPrefs.get(context).getWidgetConfiguration(widgetId); 434 updateWidgetInternal(context, widgetId, null, FolderType.DEFAULT, 0, null, null [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/appwidget/ |
AppWidgetServiceImplTest.java | 137 int widgetId = setupHostAndWidget(); 139 mManager.updateAppWidget(widgetId, view); 140 mManager.updateAppWidget(widgetId, view); 141 mManager.updateAppWidget(widgetId, view); 142 mManager.updateAppWidget(widgetId, view); 145 verify(mMockHost, times(4)).updateAppWidget(eq(widgetId), any(RemoteViews.class)); 148 mManager.notifyAppWidgetViewDataChanged(widgetId, 22); 150 verify(mMockHost, times(1)).viewDataChanged(eq(widgetId), eq(22)); 154 int widgetId = setupHostAndWidget(); 157 mManager.updateAppWidget(widgetId, view) [all...] |
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
AppWidgetManagerTest.java | 41 int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.main); 42 View widgetView = shadowAppWidgetManager.getViewFor(widgetId); 49 int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.main); 50 View widgetView = shadowAppWidgetManager.getViewFor(widgetId); 53 assertSame(widgetView, shadowAppWidgetManager.getViewFor(widgetId)); 58 int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.main); 59 View widgetView = shadowAppWidgetManager.getViewFor(widgetId); 61 assertNotSame(widgetId, 69 int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.main); 70 View originalWidgetView = shadowAppWidgetManager.getViewFor(widgetId); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/qsb/ |
QsbContainerView.java | 119 int widgetId = Utilities.getPrefs(activity).getInt(QSB_WIDGET_ID, -1); 120 AppWidgetProviderInfo widgetInfo = widgetManager.getAppWidgetInfo(widgetId); 124 int oldWidgetId = widgetId; 126 if (widgetId > -1) { 127 // widgetId is already bound and its not the correct provider. reset host. 131 widgetId = mQsbWidgetHost.allocateAppWidgetId(); 132 isWidgetBound = widgetManager.bindAppWidgetIdIfAllowed(widgetId, mWidgetInfo, opts); 134 mQsbWidgetHost.deleteAppWidgetId(widgetId); 135 widgetId = -1; 138 if (oldWidgetId != widgetId) { [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/widget/ |
WidgetCtsProvider.java | 80 int widgetId = (Integer) intent.getExtras().getInt(AppWidgetManager.EXTRA_APPWIDGET_ID, 83 if (sStateMap.get(widgetId) != STATE_BEGIN && sStateMap.get(widgetId) 85 if (!sTestCount.containsKey(widgetId)) { 86 sTestCount.put(widgetId, 0); 88 if (!sPassCount.containsKey(widgetId)) { 89 sPassCount.put(widgetId, 0); 92 sPassCount.put(widgetId, sPassCount.get(widgetId) + (pass ? 1 : 0)); 93 sTestCount.put(widgetId, sTestCount.get(widgetId) + 1) [all...] |
/packages/apps/Email/provider_src/com/android/email/provider/ |
WidgetProvider.java | 51 for (int widgetId : appWidgetIds) { 53 editor.remove(LEGACY_ACCOUNT_ID_PREFIX + widgetId); 54 editor.remove(LEGACY_MAILBOX_ID_PREFIX + widgetId); 88 protected void migrateLegacyWidgetInformation(Context context, int widgetId) { 92 long accountId = loadAccountIdPref(context, widgetId); 93 long mailboxId = loadMailboxIdPref(context, widgetId); 97 " mailboxId: %d widgetId %d", accountId, mailboxId, widgetId); 109 WidgetService.saveWidgetInformation(context, widgetId, uiAccount, 112 updateWidgetInternal(context, widgetId, uiAccount, uiFolder.type, uiFolder.capabilities [all...] |
/packages/apps/DeskClock/src/com/android/alarmclock/ |
AnalogAppWidgetProvider.java | 61 for (int widgetId : widgetIds) { 66 if (Utils.isWidgetClickable(wm, widgetId)) { 72 wm.updateAppWidget(widgetId, widget);
|
DigitalAppWidgetProvider.java | 151 for (int widgetId : widgetIds) { 152 relayoutWidget(context, wm, widgetId, wm.getAppWidgetOptions(widgetId)); 171 for (int widgetId : widgetIds) { 172 relayoutWidget(context, wm, widgetId, wm.getAppWidgetOptions(widgetId)); 180 public void onAppWidgetOptionsChanged(Context context, AppWidgetManager wm, int widgetId, 182 super.onAppWidgetOptionsChanged(context, wm, widgetId, options); 185 relayoutWidget(context, AppWidgetManager.getInstance(context), widgetId, options); 192 private static void relayoutWidget(Context context, AppWidgetManager wm, int widgetId, [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
PolicyTransparencyTestActivity.java | 167 int widgetId = 0; 174 widgetId = R.id.switch_widget; 180 widgetId = testItem.widgetId; 185 updateWidget(widgetId); 188 private void updateWidget(int widgetId) { 189 switch (widgetId) { 217 throw new IllegalArgumentException("Unknown widgetId: " + widgetId); 304 public final int widgetId; [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
PhotoAppWidgetProvider.java | 80 private static RemoteViews buildStackWidget(Context context, int widgetId, Entry entry) { 85 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); 88 intent.setData(Uri.parse("widget://gallery/" + widgetId)); 92 views.setRemoteAdapter(widgetId, R.id.appwidget_stack_view, intent);
|
WidgetDatabaseHelper.java | 69 public int widgetId; 79 widgetId = id; 120 entry.widgetId = cursor.getInt(0); 136 entry.widgetId = cursor.getInt(0); 152 values.put(FIELD_APPWIDGET_ID, entry.widgetId); 282 deleteEntry(entry.widgetId); 285 values.put(FIELD_APPWIDGET_ID, entry.widgetId);
|
/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/widget/ |
DemoAppWidgetProvider.java | 37 for (int widgetId : appWidgetIds) {
84 appWidgetManager.updateAppWidget(widgetId, rv);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowAppWidgetManager.java | 172 * @param widgetId id of the desired widget 173 * @return the widget associated with {@code widgetId} 175 public View getViewFor(int widgetId) { 176 return getWidgetInfo(widgetId).view; 182 * @param widgetId id of the widget whose provider is to be returned 183 * @return the {@code AppWidgetProvider} associated with {@code widgetId} 185 public AppWidgetProvider getAppWidgetProviderFor(int widgetId) { 186 return getWidgetInfo(widgetId).appWidgetProvider; 209 private WidgetInfo getWidgetInfo(int widgetId) { 210 return widgetInfos.get(widgetId); [all...] |
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
AddConfigWidgetTest.java | 192 int widgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, 194 assertNotSame(widgetId, LauncherAppWidgetInfo.NO_ID); 195 return widgetId;
|
BindWidgetTest.java | 265 * @param bindWidget if true the info is bound and a valid widgetId is assigned to 290 int widgetId = host.allocateAppWidgetId(); 291 if (!mWidgetManager.bindAppWidgetIdIfAllowed(widgetId, info, options)) { 292 host.deleteAppWidgetId(widgetId); 295 item.appWidgetId = widgetId;
|
/packages/apps/Messaging/src/com/android/messaging/widget/ |
BaseWidgetProvider.java | 72 getListId() + " first widgetId: " + appWidgetIds[0]); 165 protected void deletePreferences(final int widgetId) { 179 for (final int widgetId : appWidgetIds) { 180 deletePreferences(widgetId);
|
WidgetConversationProvider.java | 257 for (final int widgetId : appWidgetIds) { 260 WidgetPickConversationActivity.getConversationIdPref(widgetId); 263 appWidgetManager.notifyAppWidgetViewDataChanged(widgetId, getListId()); 299 protected void deletePreferences(final int widgetId) { 300 WidgetPickConversationActivity.deleteConversationIdPref(widgetId);
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
AddItemActivity.java | 256 private void acceptWidget(int widgetId) { 257 InstallShortcutReceiver.queueWidget(mRequest.getAppWidgetProviderInfo(this), widgetId, this); 258 mWidgetOptions.putInt(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); 273 int widgetId = data != null 277 acceptWidget(widgetId); 280 mAppWidgetHost.deleteAppWidgetId(widgetId);
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
AppWidgetManagerCompatVL.java | 79 public void startConfigActivity(AppWidgetProviderInfo info, int widgetId, Activity activity, 82 host.startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, null);
|
AppWidgetManagerCompat.java | 79 public abstract void startConfigActivity(AppWidgetProviderInfo info, int widgetId,
|
/frameworks/base/core/java/android/widget/ |
RemoteViewsAdapter.java | 752 final int widgetId; 754 RemoteViewsCacheKey(Intent.FilterComparison filter, int widgetId) { 756 this.widgetId = widgetId; 765 return other.filter.equals(filter) && other.widgetId == widgetId; 770 return (filter == null ? 0 : filter.hashCode()) ^ (widgetId << 2); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/ |
InstallShortcutReceiver.java | 217 public static void queueWidget(AppWidgetProviderInfo info, int widgetId, Context context) { 218 queuePendingShortcutInfo(new PendingInstallShortcutInfo(info, widgetId, context), context); 355 AppWidgetProviderInfo info, int widgetId, Context context) { 365 .putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); 514 int widgetId = decoder.launcherIntent 517 .getAppWidgetInfo(widgetId); 522 return new PendingInstallShortcutInfo(info, widgetId, context);
|
LauncherProvider.java | [all...] |
/packages/apps/DeskClock/src/com/android/deskclock/ |
Utils.java | 487 public static boolean isWidgetClickable(AppWidgetManager widgetManager, int widgetId) { 488 final Bundle wo = widgetManager.getAppWidgetOptions(widgetId);
|