/packages/apps/Messaging/src/com/android/messaging/widget/ |
D | WidgetConversationProvider.java | 56 protected void updateWidget(final Context context, final int appWidgetId) { in updateWidget() argument 58 LogUtil.v(TAG, "updateWidget appWidgetId: " + appWidgetId); in updateWidget() 61 rebuildWidget(context, appWidgetId); in updateWidget() 63 AppWidgetManager.getInstance(context).updateAppWidget(appWidgetId, in updateWidget() 78 public static void rebuildWidget(final Context context, final int appWidgetId) { in rebuildWidget() argument 80 LogUtil.v(TAG, "WidgetConversationProvider.rebuildWidget appWidgetId: " + appWidgetId); in rebuildWidget() 86 if (!isWidgetConfigured(appWidgetId)) { in rebuildWidget() 95 uiIntents.getWidgetPendingIntentForConfigurationActivity(context, appWidgetId)); in rebuildWidget() 103 appWidgetId + " going into configure state"); in rebuildWidget() 112 WidgetPickConversationActivity.getConversationIdPref(appWidgetId); in rebuildWidget() [all …]
|
D | BugleWidgetProvider.java | 43 protected void updateWidget(final Context context, final int appWidgetId) { in updateWidget() argument 48 rebuildWidget(context, appWidgetId); in updateWidget() 52 AppWidgetManager.getInstance(context).updateAppWidget(appWidgetId, in updateWidget() 67 public static void rebuildWidget(final Context context, final int appWidgetId) { in rebuildWidget() argument 69 LogUtil.v(TAG, "BugleWidgetProvider.rebuildWidget appWidgetId: " + appWidgetId); in rebuildWidget() 77 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in rebuildWidget() 79 remoteViews.setRemoteAdapter(appWidgetId, R.id.conversation_list, intent); in rebuildWidget() 100 AppWidgetManager.getInstance(context).updateAppWidget(appWidgetId, remoteViews); in rebuildWidget()
|
D | BaseWidgetProvider.java | 88 protected abstract void updateWidget(Context context, int appWidgetId); in updateWidget() argument 91 int appWidgetId) { in getWidgetSize() argument 97 final Bundle options = appWidgetManager.getAppWidgetOptions(appWidgetId); in getWidgetSize() 124 appWidgetManager.updateAppWidgetOptions(appWidgetId, options); in getWidgetSize() 127 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, getListId()); in getWidgetSize() 153 int appWidgetId, Bundle newOptions) { in onAppWidgetOptionsChanged() argument 155 final int widgetSize = getWidgetSize(appWidgetManager, appWidgetId); in onAppWidgetOptionsChanged() 162 super.onAppWidgetOptionsChanged(context, appWidgetManager, appWidgetId, newOptions); in onAppWidgetOptionsChanged()
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | DigitalAppWidgetProvider.java | 90 for (int appWidgetId : appWidgetIds) { in onReceive() 92 notifyAppWidgetViewDataChanged(appWidgetId, in onReceive() 96 float ratio = WidgetUtils.getScaleRatio(context, null, appWidgetId); in onReceive() 100 appWidgetManager.partiallyUpdateAppWidget(appWidgetId, widget); in onReceive() 112 for (int appWidgetId : appWidgetIds) { in onReceive() 116 appWidgetManager.partiallyUpdateAppWidget(appWidgetId, widget); in onReceive() 124 for (int appWidgetId : appWidgetIds) { in onReceive() 126 notifyAppWidgetViewDataChanged(appWidgetId, in onReceive() 138 for (int appWidgetId : appWidgetIds) { in onUpdate() 139 float ratio = WidgetUtils.getScaleRatio(context, null, appWidgetId); in onUpdate() [all …]
|
/packages/apps/Gallery/src/com/android/camera/ |
D | PhotoAppWidgetProvider.java | 49 for (int appWidgetId : appWidgetIds) { in onUpdate() 50 int[] specificAppWidget = new int[] { appWidgetId }; in onUpdate() 51 RemoteViews views = buildUpdate(context, appWidgetId, helper); in onUpdate() 54 + " for id=" + appWidgetId); in onUpdate() 65 for (int appWidgetId : appWidgetIds) { in onDeleted() 66 helper.deletePhoto(appWidgetId); in onDeleted() 74 static RemoteViews buildUpdate(Context context, int appWidgetId, in buildUpdate() argument 77 Bitmap bitmap = helper.getPhoto(appWidgetId); in buildUpdate() 122 public boolean setPhoto(int appWidgetId, Bitmap bitmap) { in setPhoto() argument 135 values.put(PhotoDatabaseHelper.FIELD_APPWIDGET_ID, appWidgetId); in setPhoto() [all …]
|
D | PhotoAppWidgetBind.java | 65 int appWidgetId = appWidgetIds[i]; in onCreate() local 66 helper.setPhoto(appWidgetId, bitmaps.get(i)); in onCreate() 70 PhotoAppWidgetProvider.buildUpdate(this, appWidgetId, in onCreate() 72 appWidgetManager.updateAppWidget(new int[] { appWidgetId }, views); in onCreate()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Launcher.java | 380 int appWidgetId; field in Launcher.PendingAddArguments 704 completeAddAppWidget(args.appWidgetId, args.container, screenId, null, null); in completeAdd() 707 completeRestoreAppWidget(args.appWidgetId); in completeAdd() 734 final int appWidgetId = data != null ? in handleActivityResult() local 737 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); in handleActivityResult() 741 addAppWidgetImpl(appWidgetId, mPendingAddInfo, null, in handleActivityResult() 762 final int appWidgetId; in handleActivityResult() local 766 appWidgetId = pendingAddWidgetId; in handleActivityResult() 768 appWidgetId = widgetId; in handleActivityResult() 772 if (appWidgetId < 0 || resultCode == RESULT_CANCELED) { in handleActivityResult() [all …]
|
D | LauncherAppWidgetInfo.java | 67 int appWidgetId = NO_ID; field in LauncherAppWidgetInfo 89 LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { in LauncherAppWidgetInfo() argument 90 if (appWidgetId == CUSTOM_WIDGET_ID) { in LauncherAppWidgetInfo() 96 this.appWidgetId = appWidgetId; in LauncherAppWidgetInfo() 109 return appWidgetId == CUSTOM_WIDGET_ID; in isCustomWidget() 115 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); in onAddToDatabase() 140 return "AppWidget(id=" + Integer.toString(appWidgetId) + ")"; in toString()
|
D | LauncherAppWidgetHost.java | 52 protected AppWidgetHostView onCreateView(Context context, int appWidgetId, in onCreateView() argument 54 if (appWidgetId == mQsbWidgetId) { in onCreateView() 105 public AppWidgetHostView createView(Context context, int appWidgetId, 116 return super.createView(context, appWidgetId, appWidget); 124 protected void onProviderChanged(int appWidgetId, AppWidgetProviderInfo appWidget) { 127 super.onProviderChanged(appWidgetId, info);
|
D | AutoInstallsLayout.java | 513 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); in parseAndAdd() local 515 if (!appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, cn)) { in parseAndAdd() 521 mValues.put(Favorites.APPWIDGET_ID, appWidgetId); in parseAndAdd() 526 mAppWidgetHost.deleteAppWidgetId(appWidgetId); in parseAndAdd() 535 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in parseAndAdd()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Launcher.java | 637 int appWidgetId = args.intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); in completeAdd() local 638 completeAddAppWidget(appWidgetId, args.container, args.screen, null, null); in completeAdd() 660 int appWidgetId = data != null ? in onActivityResult() local 663 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); in onActivityResult() 665 addAppWidgetImpl(appWidgetId, mPendingAddInfo, null, mPendingAddWidgetInfo); in onActivityResult() 676 final int appWidgetId; in onActivityResult() local 680 appWidgetId = pendingAddWidgetId; in onActivityResult() 682 appWidgetId = widgetId; in onActivityResult() 685 if (appWidgetId < 0) { in onActivityResult() 688 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); in onActivityResult() [all …]
|
D | LauncherAppWidgetInfo.java | 38 int appWidgetId = NO_ID; field in LauncherAppWidgetInfo 54 LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { in LauncherAppWidgetInfo() argument 56 this.appWidgetId = appWidgetId; in LauncherAppWidgetInfo() 68 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); in onAddToDatabase() 91 return "AppWidget(id=" + Integer.toString(appWidgetId) + ")"; in toString()
|
D | LauncherProvider.java | 830 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); in convertWidgets() local 833 Log.d(TAG, "allocated appWidgetId=" + appWidgetId in convertWidgets() 838 values.put(Favorites.APPWIDGET_ID, appWidgetId); in convertWidgets() 854 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets() 859 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets() 864 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets() 1194 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); in addAppWidget() local 1199 values.put(Favorites.APPWIDGET_ID, appWidgetId); in addAppWidget() 1206 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, cn); in addAppWidget() 1213 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in addAppWidget()
|
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
D | WidgetDatabaseHelper.java | 193 public boolean setPhoto(int appWidgetId, Uri imageUri, Bitmap bitmap) { in setPhoto() argument 204 values.put(FIELD_APPWIDGET_ID, appWidgetId); in setPhoto() 233 public Entry getEntry(int appWidgetId) { in getEntry() argument 238 WHERE_APPWIDGET_ID, new String[] {String.valueOf(appWidgetId)}, in getEntry() 242 + appWidgetId); in getEntry() 245 return new Entry(appWidgetId, cursor); in getEntry() 300 public void deleteEntry(int appWidgetId) { in deleteEntry() argument 304 new String[] {String.valueOf(appWidgetId)}); in deleteEntry()
|
D | PhotoAppWidgetProvider.java | 104 static RemoteViews buildFrameWidget(Context context, int appWidgetId, Entry entry) { in buildFrameWidget() argument 112 Log.w(TAG, "cannot load widget image: " + appWidgetId, t); in buildFrameWidget() 124 Log.w(TAG, "cannot load widget uri: " + appWidgetId, t); in buildFrameWidget() 134 for (int appWidgetId : appWidgetIds) { in onDeleted() 135 helper.deleteEntry(appWidgetId); in onDeleted()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | WidgetPickConversationActivity.java | 97 static void saveConversationidPref(int appWidgetId, String conversationId) { in saveConversationidPref() argument 99 prefs.putString(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID + appWidgetId, conversationId); in saveConversationidPref() 103 public static String getConversationIdPref(int appWidgetId) { in getConversationIdPref() argument 105 return prefs.getString(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID + appWidgetId, null); in getConversationIdPref() 109 public static void deleteConversationIdPref(int appWidgetId) { in deleteConversationIdPref() argument 111 prefs.remove(UIIntents.UI_INTENT_EXTRA_CONVERSATION_ID + appWidgetId); in deleteConversationIdPref()
|
/packages/apps/UnifiedEmail/src/com/android/mail/widget/ |
D | WidgetService.java | 74 int appWidgetId, Account account, final int folderType, final int folderCapabilities, in configureValidAccountWidget() argument 76 configureValidAccountWidget(context, remoteViews, appWidgetId, account, folderType, in configureValidAccountWidget() 85 int appWidgetId, Account account, final int folderType, final int folderCapabilities, in configureValidAccountWidget() argument 110 WidgetService.configureValidWidgetIntents(context, remoteViews, appWidgetId, account, in configureValidAccountWidget() 116 int appWidgetId, Account account, final int folderType, final int folderCapabilities, in configureValidWidgetIntents() argument 124 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in configureValidWidgetIntents() 172 public static void saveWidgetInformation(Context context, int appWidgetId, Account account, in saveWidgetInformation() argument 174 MailPrefs.get(context).configureWidget(appWidgetId, account, folderUri); in saveWidgetInformation() 180 public boolean isWidgetConfigured(Context context, int appWidgetId, Account account) { in isWidgetConfigured() argument 182 MailPrefs.get(context).isWidgetConfigured(appWidgetId); in isWidgetConfigured()
|
D | BaseWidgetProvider.java | 295 public static void updateWidget(Context context, int appWidgetId, Account account, in updateWidget() argument 306 updateWidgetIntent.putExtra(EXTRA_WIDGET_ID, appWidgetId); in updateWidget() 323 protected void updateWidgetInternal(Context context, int appWidgetId, Account account, in updateWidgetInternal() argument 341 configureIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in updateWidgetInternal() 349 configureValidAccountWidget(context, remoteViews, appWidgetId, account, folderType, in updateWidgetInternal() 354 AppWidgetManager.getInstance(context).updateAppWidget(appWidgetId, remoteViews); in updateWidgetInternal() 387 int appWidgetId, Account account, final int folderType, final int folderCapabilities, in configureValidAccountWidget() argument 389 WidgetService.configureValidAccountWidget(context, remoteViews, appWidgetId, account, in configureValidAccountWidget()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SearchWidgetProvider.java | 118 private static SearchWidgetState getSearchWidgetState(Context context, int appWidgetId) { in getSearchWidgetState() argument 119 if (DBG) Log.d(TAG, "Creating appwidget state " + appWidgetId); in getSearchWidgetState() 120 SearchWidgetState state = new SearchWidgetState(appWidgetId); in getSearchWidgetState() 149 public SearchWidgetState(int appWidgetId) { in SearchWidgetState() argument 150 mAppWidgetId = appWidgetId; in SearchWidgetState()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetProvider.java | 123 for (int appWidgetId : appWidgetIds) { in performUpdate() 126 updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in performUpdate() 145 views.setRemoteAdapter(appWidgetId, R.id.events_list, updateIntent); in performUpdate() 146 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, R.id.events_list); in performUpdate() 164 appWidgetManager.updateAppWidget(appWidgetId, views); in performUpdate()
|
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/ |
D | MailPrefs.java | 218 public boolean isWidgetConfigured(int appWidgetId) { in isWidgetConfigured() argument 219 return getSharedPreferences().contains(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId); in isWidgetConfigured() 222 public void configureWidget(int appWidgetId, Account account, final String folderUri) { in configureWidget() argument 227 getEditor().putString(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId, in configureWidget() 231 public String getWidgetConfiguration(int appWidgetId) { in getWidgetConfiguration() argument 232 return getSharedPreferences().getString(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId, in getWidgetConfiguration()
|
/packages/apps/Browser/src/com/android/browser/widget/ |
D | BookmarkThumbnailWidgetProvider.java | 87 for (int appWidgetId : appWidgetIds) { in performUpdate() 89 updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in performUpdate() 95 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, R.id.bookmarks_list); in performUpdate() 100 appWidgetManager.updateAppWidget(appWidgetId, views); in performUpdate()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | WidgetProvider.java | 175 static long loadAccountIdPref(Context context, int appWidgetId) { in loadAccountIdPref() argument 177 long accountId = prefs.getLong(LEGACY_ACCOUNT_ID_PREFIX + appWidgetId, Account.NO_ACCOUNT); in loadAccountIdPref() 186 static long loadMailboxIdPref(Context context, int appWidgetId) { in loadMailboxIdPref() argument 188 long mailboxId = prefs.getLong(LEGACY_MAILBOX_ID_PREFIX + appWidgetId, Mailbox.NO_MAILBOX); in loadMailboxIdPref()
|
/packages/apps/Launcher3/src/com/android/launcher3/compat/ |
D | AppWidgetManagerCompat.java | 61 public AppWidgetProviderInfo getAppWidgetInfo(int appWidgetId) { in getAppWidgetInfo() argument 62 return mAppWidgetManager.getAppWidgetInfo(appWidgetId); in getAppWidgetInfo() 70 int appWidgetId, AppWidgetProviderInfo info, Bundle options); in bindAppWidgetIdIfAllowed() argument
|
D | AppWidgetManagerCompatV16.java | 55 public boolean bindAppWidgetIdIfAllowed(int appWidgetId, AppWidgetProviderInfo info, in bindAppWidgetIdIfAllowed() argument 58 return mAppWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, info.provider, options); in bindAppWidgetIdIfAllowed() 60 return mAppWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, info.provider); in bindAppWidgetIdIfAllowed()
|