Home
last modified time | relevance | path

Searched refs:appWidgetId (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Messaging/src/com/android/messaging/widget/
DWidgetConversationProvider.java56 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 …]
DBugleWidgetProvider.java43 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()
DBaseWidgetProvider.java95 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/
DLauncherAppWidgetHost.java74 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 …]
DLauncher.java337 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 …]
DLauncherAppWidgetInfo.java83 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()
DDefaultLayoutParser.java304 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()
DLauncherProvider.java250 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()
DWorkspace.java2822 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/
DPhotoAppWidgetProvider.java49 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 …]
DPhotoAppWidgetBind.java65 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/
DWidgetAddFlowHandler.java54 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/
DWidgetPickConversationActivity.java97 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/
DWidgetDatabaseHelper.java193 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()
DPhotoAppWidgetProvider.java104 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/
DAppWidgetManagerCompat.java64 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
DAppWidgetManagerCompatVL.java83 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/
DSearchWidgetProvider.java118 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/
DCalendarAppWidgetProvider.java123 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/
DRequestPinItemTest.java82 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetNoConfig()
95 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetNoConfig_customPreview()
104 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetWithConfig()
DBindWidgetTest.java128 item.appWidgetId = -33; in testUnboundWidget_removed()
318 item.appWidgetId = widgetId; in createWidgetInfo()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DPinWidgetFlowHandler.java60 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/
DPendingRequestArgs.java97 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/
DLoaderTask.java589 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/
Dlauncher_dump.proto43 optional string item_id = 9; // For Pinned Shortcuts and appWidgetId

12