Home
last modified time | relevance | path

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

/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.java130 final int widgetId = intent.getIntExtra(EXTRA_WIDGET_ID, -1); in onReceive() local
139 if (widgetId != -1 && account != null && folderUri != null) { in onReceive()
140 updateWidgetInternal(context, widgetId, account, folderType, folderCapabilities, in onReceive()
400 for (int widgetId : widgetIds) { in migrateLegacyWidgets()
403 if (!MailPrefs.get(context).isWidgetConfigured(widgetId)) { in migrateLegacyWidgets()
404 migrateLegacyWidgetInformation(context, widgetId); in migrateLegacyWidgets()
411 for (int widgetId : widgetIds) { in validateAllWidgetInformation()
412 final String accountFolder = MailPrefs.get(context).getWidgetConfiguration(widgetId); in validateAllWidgetInformation()
434 updateWidgetInternal(context, widgetId, null, FolderType.DEFAULT, 0, null, null, in validateAllWidgetInformation()
443 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/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/
DLauncherAppWidgetHost.java48 public void setQsbWidgetId(int widgetId) { in setQsbWidgetId() argument
49 mQsbWidgetId = widgetId; in setQsbWidgetId()
DLauncher.java740 int widgetId = data != null ? data.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1) in handleActivityResult() local
742 if (widgetId < 0) { in handleActivityResult()
745 appWidgetId = widgetId; in handleActivityResult()
2568 int widgetId = info.appWidgetId; in onClickPendingWidget() local
2570 mAppWidgetManager.getLauncherAppWidgetInfo(widgetId); in onClickPendingWidget()
2574 mPendingAddWidgetId = widgetId; in onClickPendingWidget()
3631 int widgetId = mSharedPrefs.getInt(QSB_WIDGET_ID, -1); in getOrCreateQsbBar() local
3632 AppWidgetProviderInfo widgetInfo = mAppWidgetManager.getAppWidgetInfo(widgetId); in getOrCreateQsbBar()
3638 if (widgetId > -1) { in getOrCreateQsbBar()
3639 mAppWidgetHost.deleteAppWidgetId(widgetId); in getOrCreateQsbBar()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DAppWidgetManagerCompatV16.java73 public void startConfigActivity(AppWidgetProviderInfo info, int widgetId, Activity activity, in startConfigActivity() argument
77 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); in startConfigActivity()
DAppWidgetManagerCompatVL.java92 public void startConfigActivity(AppWidgetProviderInfo info, int widgetId, Activity activity, in startConfigActivity() argument
95 host.startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, null); in startConfigActivity()
DAppWidgetManagerCompat.java82 public abstract void startConfigActivity(AppWidgetProviderInfo info, int widgetId, in startConfigActivity() argument
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java738 int widgetId = c.getInt(indexAppWidgetId);
740 mContext).getLauncherAppWidgetInfo(widgetId);
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncher.java677 int widgetId = data != null ? data.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1) in onActivityResult() local
679 if (widgetId < 0) { in onActivityResult()
682 appWidgetId = widgetId; in onActivityResult()