/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...] |
/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...] |
/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-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowAppWidgetManagerTest.java | 48 int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.main); 49 View widgetView = shadowAppWidgetManager.getViewFor(widgetId); 56 int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.main); 57 View widgetView = shadowAppWidgetManager.getViewFor(widgetId); 60 assertSame(widgetView, shadowAppWidgetManager.getViewFor(widgetId)); 65 int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.main); 66 View widgetView = shadowAppWidgetManager.getViewFor(widgetId); 68 assertNotSame(widgetId, 76 int widgetId = shadowAppWidgetManager.createWidget(SpanishTestAppWidgetProvider.class, R.layout.main); 77 View originalWidgetView = shadowAppWidgetManager.getViewFor(widgetId); [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/qsb/ |
QsbContainerView.java | 130 int widgetId = Utilities.getPrefs(activity).getInt(QSB_WIDGET_ID, -1); 131 AppWidgetProviderInfo widgetInfo = widgetManager.getAppWidgetInfo(widgetId); 135 int oldWidgetId = widgetId; 137 if (widgetId > -1) { 138 // widgetId is already bound and its not the correct provider. reset host. 142 widgetId = mQsbWidgetHost.allocateAppWidgetId(); 144 widgetId, mWidgetInfo.getProfile(), mWidgetInfo.provider, opts); 146 mQsbWidgetHost.deleteAppWidgetId(widgetId); 147 widgetId = -1; 150 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...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
PolicyTransparencyTestActivity.java | 166 int widgetId = 0; 173 widgetId = R.id.switch_widget; 179 widgetId = testItem.widgetId; 184 updateWidget(widgetId); 187 private void updateWidget(int widgetId) { 188 switch (widgetId) { 216 throw new IllegalArgumentException("Unknown widgetId: " + widgetId); 302 public final int widgetId; [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...] |
/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/src/com/android/launcher3/ |
AppWidgetsRestoredReceiver.java | 67 for (int widgetId : newWidgetIds) { 68 Log.d(TAG, "Deleting widgetId: " + widgetId); 69 appWidgetHost.deleteAppWidgetId(widgetId);
|
SecondaryDropTarget.java | 225 int widgetId = getReconfigurableWidgetId(view); 226 if (widgetId != INVALID_APPWIDGET_ID) { 227 mLauncher.getAppWidgetHost().startConfigActivity(mLauncher, widgetId, -1);
|
LauncherAppWidgetHost.java | 262 public void startConfigActivity(BaseActivity activity, int widgetId, int requestCode) { 269 startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, null);
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
AddConfigWidgetTest.java | 177 int widgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, 179 assertNotSame(widgetId, LauncherAppWidgetInfo.NO_ID); 180 return widgetId;
|
BindWidgetTest.java | 291 * @param bindWidget if true the info is bound and a valid widgetId is assigned to 316 int widgetId = host.allocateAppWidgetId(); 317 if (!mWidgetManager.bindAppWidgetIdIfAllowed(widgetId, info, options)) { 318 host.deleteAppWidgetId(widgetId); 321 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);
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowAppWidgetManager.java | 219 * @param widgetId id of the desired widget 220 * @return the widget associated with {@code widgetId} 222 public View getViewFor(int widgetId) { 223 return widgetInfos.get(widgetId).view; 227 * @param widgetId id of the widget whose provider is to be returned 228 * @return the {@code AppWidgetProvider} associated with {@code widgetId} 230 public AppWidgetProvider getAppWidgetProviderFor(int widgetId) { 231 return widgetInfos.get(widgetId).appWidgetProvider;
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/ |
CustomWidgetParser.java | 71 public static LauncherAppWidgetProviderInfo getWidgetProvider(Context context, int widgetId) { 75 ComponentName cn = sWidgetsIdMap.get(LauncherAppWidgetInfo.CUSTOM_WIDGET_ID - widgetId);
|