Home
last modified time | relevance | path

Searched refs:widgetId (Results 1 – 22 of 22) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/qsb/
DQsbContainerView.java132 int widgetId = Utilities.getPrefs(context).getInt(mKeyWidgetId, -1); in createQsb() local
133 AppWidgetProviderInfo widgetInfo = widgetManager.getAppWidgetInfo(widgetId); in createQsb()
137 int oldWidgetId = widgetId; in createQsb()
139 if (widgetId > -1) { in createQsb()
144 widgetId = mQsbWidgetHost.allocateAppWidgetId(); in createQsb()
146 widgetId, mWidgetInfo.getProfile(), mWidgetInfo.provider, opts); in createQsb()
148 mQsbWidgetHost.deleteAppWidgetId(widgetId); in createQsb()
149 widgetId = -1; in createQsb()
152 if (oldWidgetId != widgetId) { in createQsb()
153 saveWidgetId(widgetId); in createQsb()
[all …]
/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.java151 for (int widgetId : widgetIds) { in onReceive()
152 relayoutWidget(context, wm, widgetId, wm.getAppWidgetOptions(widgetId)); in onReceive()
171 for (int widgetId : widgetIds) { in onUpdate()
172 relayoutWidget(context, wm, widgetId, wm.getAppWidgetOptions(widgetId)); in onUpdate()
180 public void onAppWidgetOptionsChanged(Context context, AppWidgetManager wm, int widgetId, in onAppWidgetOptionsChanged() argument
182 super.onAppWidgetOptionsChanged(context, wm, widgetId, options); in onAppWidgetOptionsChanged()
185 relayoutWidget(context, AppWidgetManager.getInstance(context), widgetId, options); in onAppWidgetOptionsChanged()
192 private static void relayoutWidget(Context context, AppWidgetManager wm, int widgetId, in relayoutWidget() argument
194 final RemoteViews portrait = relayoutWidget(context, wm, widgetId, options, true); in relayoutWidget()
195 final RemoteViews landscape = relayoutWidget(context, wm, widgetId, options, false); in relayoutWidget()
[all …]
DAnalogAppWidgetProvider.java61 for (int widgetId : widgetIds) { in onUpdate()
66 if (Utils.isWidgetClickable(wm, widgetId)) { in onUpdate()
72 wm.updateAppWidget(widgetId, widget); in onUpdate()
/packages/apps/Email/provider_src/com/android/email/provider/
DWidgetProvider.java51 for (int widgetId : appWidgetIds) { in onDeleted()
53 editor.remove(LEGACY_ACCOUNT_ID_PREFIX + widgetId); in onDeleted()
54 editor.remove(LEGACY_MAILBOX_ID_PREFIX + widgetId); in onDeleted()
88 protected void migrateLegacyWidgetInformation(Context context, int widgetId) { in migrateLegacyWidgetInformation() argument
92 long accountId = loadAccountIdPref(context, widgetId); in migrateLegacyWidgetInformation()
93 long mailboxId = loadMailboxIdPref(context, widgetId); in migrateLegacyWidgetInformation()
97 " mailboxId: %d widgetId %d", accountId, mailboxId, widgetId); in migrateLegacyWidgetInformation()
109 WidgetService.saveWidgetInformation(context, widgetId, uiAccount, in migrateLegacyWidgetInformation()
112 updateWidgetInternal(context, widgetId, uiAccount, uiFolder.type, uiFolder.capabilities, in migrateLegacyWidgetInformation()
116 editor.remove(LEGACY_ACCOUNT_ID_PREFIX + widgetId); in migrateLegacyWidgetInformation()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DBaseWidgetProvider.java134 final int widgetId = intent.getIntExtra(EXTRA_WIDGET_ID, -1); in onReceive() local
143 if (widgetId != -1 && account != null && folderUri != null) { in onReceive()
144 updateWidgetInternal(context, widgetId, account, folderType, folderCapabilities, in onReceive()
416 for (int widgetId : widgetIds) { in migrateLegacyWidgets()
419 if (!MailPrefs.get(context).isWidgetConfigured(widgetId)) { in migrateLegacyWidgets()
420 migrateLegacyWidgetInformation(context, widgetId); in migrateLegacyWidgets()
427 for (int widgetId : widgetIds) { in validateAllWidgetInformation()
428 final String accountFolder = MailPrefs.get(context).getWidgetConfiguration(widgetId); in validateAllWidgetInformation()
450 updateWidgetInternal(context, widgetId, null, FolderType.DEFAULT, 0, null, null, in validateAllWidgetInformation()
459 protected abstract void migrateLegacyWidgetInformation(Context context, int widgetId); in migrateLegacyWidgetInformation() argument
DWidgetProvider.java23 protected void migrateLegacyWidgetInformation(Context context, int widgetId) { in migrateLegacyWidgetInformation() argument
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetDatabaseHelper.java69 public int widgetId; field in WidgetDatabaseHelper.Entry
79 widgetId = id; in Entry()
120 entry.widgetId = cursor.getInt(0); in saveData()
136 entry.widgetId = cursor.getInt(0); in saveData()
152 values.put(FIELD_APPWIDGET_ID, entry.widgetId); in restoreData()
282 deleteEntry(entry.widgetId); in updateEntry()
285 values.put(FIELD_APPWIDGET_ID, entry.widgetId); in updateEntry()
DPhotoAppWidgetProvider.java80 private static RemoteViews buildStackWidget(Context context, int widgetId, Entry entry) { in buildStackWidget() argument
85 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); in buildStackWidget()
88 intent.setData(Uri.parse("widget://gallery/" + widgetId)); in buildStackWidget()
92 views.setRemoteAdapter(widgetId, R.id.appwidget_stack_view, intent); in buildStackWidget()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java272 private void acceptWidget(int widgetId) { in acceptWidget() argument
273 … InstallShortcutReceiver.queueWidget(mRequest.getAppWidgetProviderInfo(this), widgetId, this); in acceptWidget() local
274 mWidgetOptions.putInt(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); in acceptWidget()
289 int widgetId = data != null in onActivityResult() local
293 acceptWidget(widgetId); in onActivityResult()
296 mAppWidgetHost.deleteAppWidgetId(widgetId); in onActivityResult()
/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationProvider.java257 for (final int widgetId : appWidgetIds) { in onReceive()
260 WidgetPickConversationActivity.getConversationIdPref(widgetId); in onReceive()
263 appWidgetManager.notifyAppWidgetViewDataChanged(widgetId, getListId()); in onReceive()
299 protected void deletePreferences(final int widgetId) { in deletePreferences() argument
300 WidgetPickConversationActivity.deleteConversationIdPref(widgetId); in deletePreferences()
DBaseWidgetProvider.java165 protected void deletePreferences(final int widgetId) { in deletePreferences() argument
179 for (final int widgetId : appWidgetIds) { in onDeleted()
180 deletePreferences(widgetId); in onDeleted()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetsRestoredReceiver.java59 for (int widgetId : newWidgetIds) { in restoreAppWidgetIds()
60 Log.d(TAG, "Deleting widgetId: " + widgetId); in restoreAppWidgetIds()
61 appWidgetHost.deleteAppWidgetId(widgetId); in restoreAppWidgetIds()
DInstallShortcutReceiver.java260 public static void queueWidget(AppWidgetProviderInfo info, int widgetId, Context context) { in queueWidget() argument
261 queuePendingShortcutInfo(new PendingInstallShortcutInfo(info, widgetId, context), context); in queueWidget()
392 AppWidgetProviderInfo info, int widgetId, Context context) { in PendingInstallShortcutInfo() argument
402 .putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); in PendingInstallShortcutInfo()
551 int widgetId = decoder.launcherIntent in decode() local
554 .getAppWidgetInfo(widgetId); in decode()
559 return new PendingInstallShortcutInfo(info, widgetId, context); in decode()
DSecondaryDropTarget.java223 int widgetId = getReconfigurableWidgetId(view); in performDropAction() local
224 if (widgetId != INVALID_APPWIDGET_ID) { in performDropAction()
225 mLauncher.getAppWidgetHost().startConfigActivity(mLauncher, widgetId, -1); in performDropAction()
DLauncherAppWidgetHost.java258 public void startConfigActivity(BaseActivity activity, int widgetId, int requestCode) { in startConfigActivity() argument
265 startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, null); in startConfigActivity()
DLauncherProvider.java836 for (int widgetId : allWidgets) { in removeGhostWidgets()
837 if (!validWidgets.contains(widgetId)) { in removeGhostWidgets()
839 FileLog.d(TAG, "Deleting invalid widget " + widgetId); in removeGhostWidgets()
840 host.deleteAppWidgetId(widgetId); in removeGhostWidgets()
DLauncher.java639 int widgetId = appWidgetId; in completeAdd() local
641 completeRestoreAppWidget(widgetId, LauncherAppWidgetInfo.FLAG_UI_NOT_READY); in completeAdd()
645 .getLauncherAppWidgetInfo(widgetId); in completeAdd()
706 int widgetId = data != null ? data.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1) in handleActivityResult() local
708 if (widgetId < 0) { in handleActivityResult()
711 appWidgetId = widgetId; in handleActivityResult()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DAddConfigWidgetTest.java178 int widgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, in getWidgetId() local
180 assertNotSame(widgetId, LauncherAppWidgetInfo.NO_ID); in getWidgetId()
181 return widgetId; in getWidgetId()
DBindWidgetTest.java311 int widgetId = host.allocateAppWidgetId(); in createWidgetInfo() local
312 if (!mWidgetManager.bindAppWidgetIdIfAllowed(widgetId, info, options)) { in createWidgetInfo()
313 host.deleteAppWidgetId(widgetId); in createWidgetInfo()
316 item.appWidgetId = widgetId; in createWidgetInfo()
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/
DCustomWidgetParser.java71 public static LauncherAppWidgetProviderInfo getWidgetProvider(Context context, int widgetId) { in getWidgetProvider() argument
75 ComponentName cn = sWidgetsIdMap.get(LauncherAppWidgetInfo.CUSTOM_WIDGET_ID - widgetId); in getWidgetProvider()
/packages/apps/DeskClock/src/com/android/deskclock/
DUtils.java487 public static boolean isWidgetClickable(AppWidgetManager widgetManager, int widgetId) { in isWidgetClickable() argument
488 final Bundle wo = widgetManager.getAppWidgetOptions(widgetId); in isWidgetClickable()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java723 int widgetId = c.getInt(indexAppWidgetId);
725 mContext).getLauncherAppWidgetInfo(widgetId);