/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 | 95 protected abstract void updateWidget(Context context, int appWidgetId); in updateWidget() argument 97 private int getWidgetSize(AppWidgetManager appWidgetManager, int appWidgetId) { in getWidgetSize() argument 103 final Bundle options = appWidgetManager.getAppWidgetOptions(appWidgetId); in getWidgetSize() 130 appWidgetManager.updateAppWidgetOptions(appWidgetId, options); in getWidgetSize() 133 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, getListId()); in getWidgetSize() 159 int appWidgetId, Bundle newOptions) { in onAppWidgetOptionsChanged() argument 161 final int widgetSize = getWidgetSize(appWidgetManager, appWidgetId); in onAppWidgetOptionsChanged() 168 super.onAppWidgetOptionsChanged(context, appWidgetManager, appWidgetId, newOptions); in onAppWidgetOptionsChanged()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherAppWidgetHost.java | 74 protected LauncherAppWidgetHostView onCreateView(Context context, int appWidgetId, in onCreateView() argument 77 mViews.put(appWidgetId, view); in onCreateView() 192 public AppWidgetHostView createView(Context context, int appWidgetId, in createView() argument 201 view.setAppWidget(appWidgetId, appWidget); in createView() 202 mViews.put(appWidgetId, view); in createView() 206 return super.createView(context, appWidgetId, appWidget); in createView() 215 LauncherAppWidgetHostView view = mViews.get(appWidgetId); in createView() 217 view = onCreateView(mContext, appWidgetId, appWidget); in createView() 219 view.setAppWidget(appWidgetId, appWidget); in createView() 230 protected void onProviderChanged(int appWidgetId, AppWidgetProviderInfo appWidget) { in onProviderChanged() argument [all …]
|
D | Launcher.java | 337 appWidgetId -> getWorkspace().removeWidget(appWidgetId)); in onCreate() 635 int requestCode, Intent intent, int appWidgetId, PendingRequestArgs info) { in completeAdd() argument 648 completeAddAppWidget(appWidgetId, info, null, null); in completeAdd() 651 completeRestoreAppWidget(appWidgetId, LauncherAppWidgetInfo.RESTORE_COMPLETED); in completeAdd() 654 int widgetId = appWidgetId; in completeAdd() 701 final int appWidgetId = data != null ? in handleActivityResult() local 704 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId, requestArgs); in handleActivityResult() 709 appWidgetId, requestArgs, null, in handleActivityResult() 721 final int appWidgetId; in handleActivityResult() local 725 appWidgetId = pendingAddWidgetId; in handleActivityResult() [all …]
|
D | LauncherAppWidgetInfo.java | 83 public int appWidgetId = NO_ID; field in LauncherAppWidgetInfo 114 public LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { in LauncherAppWidgetInfo() argument 115 this.appWidgetId = appWidgetId; in LauncherAppWidgetInfo() 139 return appWidgetId <= CUSTOM_WIDGET_ID; in isCustomWidget() 145 writer.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId) in onAddToDatabase() 165 return super.dumpProperties() + " appWidgetId=" + appWidgetId; in dumpProperties()
|
D | DefaultLayoutParser.java | 304 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); in verifyAndInsert() local 306 if (!appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, cn)) { in verifyAndInsert() 308 mAppWidgetHost.deleteAppWidgetId(appWidgetId); in verifyAndInsert() 312 mValues.put(Favorites.APPWIDGET_ID, appWidgetId); in verifyAndInsert() 317 mAppWidgetHost.deleteAppWidgetId(appWidgetId); in verifyAndInsert() 326 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in verifyAndInsert()
|
D | LauncherProvider.java | 250 int appWidgetId = widgetHost.allocateAppWidgetId(); in initializeExternalAdd() local 251 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); in initializeExternalAdd() 252 if (!appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId,cn)) { in initializeExternalAdd() 253 widgetHost.deleteAppWidgetId(appWidgetId); in initializeExternalAdd()
|
D | Workspace.java | 2822 public void removeWidget(int appWidgetId) { 2826 if (appWidgetInfo.appWidgetId == appWidgetId) { 2983 public LauncherAppWidgetHostView getWidgetForAppWidgetId(final int appWidgetId) { in getWidgetForAppWidgetId() argument 2986 ((LauncherAppWidgetInfo) info).appWidgetId == appWidgetId); in getWidgetForAppWidgetId() 3239 .getLauncherAppWidgetInfo(item.appWidgetId); in widgetsRestored()
|
/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/widget/ |
D | WidgetAddFlowHandler.java | 54 public void startBindFlow(Launcher launcher, int appWidgetId, ItemInfo info, int requestCode) { in startBindFlow() argument 55 launcher.setWaitingForResult(PendingRequestArgs.forWidgetInfo(appWidgetId, this, info)); in startBindFlow() 57 .startBindFlow(launcher, appWidgetId, mProviderInfo, requestCode); in startBindFlow() 65 return startConfigActivity(launcher, info.appWidgetId, info, requestCode); in startConfigActivity() 72 public boolean startConfigActivity(Launcher launcher, int appWidgetId, ItemInfo info, in startConfigActivity() argument 77 launcher.setWaitingForResult(PendingRequestArgs.forWidgetInfo(appWidgetId, this, info)); in startConfigActivity() 78 launcher.getAppWidgetHost().startConfigActivity(launcher, appWidgetId, requestCode); in startConfigActivity()
|
/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/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/Launcher3/src/com/android/launcher3/compat/ |
D | AppWidgetManagerCompat.java | 64 public LauncherAppWidgetProviderInfo getLauncherAppWidgetInfo(int appWidgetId) { in getLauncherAppWidgetInfo() argument 65 if (appWidgetId <= LauncherAppWidgetInfo.CUSTOM_WIDGET_ID) { in getLauncherAppWidgetInfo() 66 return CustomWidgetManager.INSTANCE.get(mContext).getWidgetProvider(appWidgetId); in getLauncherAppWidgetInfo() 68 AppWidgetProviderInfo info = mAppWidgetManager.getAppWidgetInfo(appWidgetId); in getLauncherAppWidgetInfo() 76 int appWidgetId, AppWidgetProviderInfo info, Bundle options); in bindAppWidgetIdIfAllowed() argument
|
D | AppWidgetManagerCompatVL.java | 83 public boolean bindAppWidgetIdIfAllowed(int appWidgetId, AppWidgetProviderInfo info, in bindAppWidgetIdIfAllowed() argument 88 if (appWidgetId <= LauncherAppWidgetInfo.CUSTOM_WIDGET_ID) { in bindAppWidgetIdIfAllowed() 92 appWidgetId, info.getProfile(), info.provider, options); in bindAppWidgetIdIfAllowed()
|
/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/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | RequestPinItemTest.java | 82 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetNoConfig() 95 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetNoConfig_customPreview() 104 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetWithConfig()
|
D | BindWidgetTest.java | 128 item.appWidgetId = -33; in testUnboundWidget_removed() 318 item.appWidgetId = widgetId; in createWidgetInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | PinWidgetFlowHandler.java | 60 public boolean startConfigActivity(Launcher launcher, int appWidgetId, ItemInfo info, in startConfigActivity() argument 63 extras.putInt(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in startConfigActivity()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | PendingRequestArgs.java | 97 int appWidgetId, WidgetAddFlowHandler widgetHandler, ItemInfo info) { in forWidgetInfo() argument 99 new PendingRequestArgs(appWidgetId, TYPE_APP_WIDGET, widgetHandler); in forWidgetInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | LoaderTask.java | 589 int appWidgetId = c.getInt(appWidgetIdIndex); in loadWorkspace() local 623 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace() 644 + " appWidgetId=" + appWidgetId in loadWorkspace() 646 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
|
/packages/apps/Launcher3/protos/ |
D | launcher_dump.proto | 43 optional string item_id = 9; // For Pinned Shortcuts and appWidgetId
|