Home
last modified time | relevance | path

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

/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 …]
DDigitalAppWidgetProvider.kt123 DataModel.ACTION_WORLD_CITIES_CHANGED -> widgetIds.forEach { widgetId -> in <lambda>() method
124 relayoutWidget(context, wm, widgetId, wm.getAppWidgetOptions(widgetId)) in <lambda>()
142 widgetIds.forEach { widgetId -> in <lambda>() method
143 relayoutWidget(context, wm, widgetId, wm.getAppWidgetOptions(widgetId)) in <lambda>()
153 widgetId: Int, in <lambda>()
156 super.onAppWidgetOptionsChanged(context, wm, widgetId, options) in <lambda>()
159 relayoutWidget(context, AppWidgetManager.getInstance(context), widgetId, options) in <lambda>()
301 widgetId: Int, in <lambda>()
304 val portrait: RemoteViews = relayoutWidget(context, wm, widgetId, options, true) in <lambda>()
305 val landscape: RemoteViews = relayoutWidget(context, wm, widgetId, options, false) in <lambda>()
[all …]
DAnalogAppWidgetProvider.kt51 widgetIds.forEach { widgetId -> in <lambda>() method
56 if (Utils.isWidgetClickable(wm, widgetId)) { in <lambda>()
61 wm.updateAppWidget(widgetId, widget) in <lambda>()
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/Launcher3/src/com/android/launcher3/qsb/
DQsbContainerView.java204 int widgetId = Utilities.getPrefs(context).getInt(mKeyWidgetId, -1); in createQsb() local
205 AppWidgetProviderInfo widgetInfo = widgetManager.getAppWidgetInfo(widgetId); in createQsb()
209 int oldWidgetId = widgetId; in createQsb()
211 if (widgetId > -1) { in createQsb()
216 widgetId = mQsbWidgetHost.allocateAppWidgetId(); in createQsb()
218 widgetId, mWidgetInfo.getProfile(), mWidgetInfo.provider, opts); in createQsb()
220 mQsbWidgetHost.deleteAppWidgetId(widgetId); in createQsb()
221 widgetId = -1; in createQsb()
224 if (oldWidgetId != widgetId) { in createQsb()
225 saveWidgetId(widgetId); in createQsb()
[all …]
/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.java273 private void acceptWidget(int widgetId) { in acceptWidget() argument
274 … InstallShortcutReceiver.queueWidget(mRequest.getAppWidgetProviderInfo(this), widgetId, this); in acceptWidget() local
275 mWidgetOptions.putInt(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); in acceptWidget()
290 int widgetId = data != null in onActivityResult() local
294 acceptWidget(widgetId); in onActivityResult()
297 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.java171 protected void deletePreferences(final int widgetId) { in deletePreferences() argument
185 for (final int widgetId : appWidgetIds) { in onDeleted()
186 deletePreferences(widgetId); in onDeleted()
/packages/apps/Launcher3/src/com/android/launcher3/
DInstallShortcutReceiver.java248 public static void queueWidget(AppWidgetProviderInfo info, int widgetId, Context context) { in queueWidget() argument
249 queuePendingShortcutInfo(new PendingInstallShortcutInfo(info, widgetId, context), context); in queueWidget()
401 AppWidgetProviderInfo info, int widgetId, Context context) { in PendingInstallShortcutInfo() argument
411 .putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); in PendingInstallShortcutInfo()
548 int widgetId = decoder.launcherIntent in decode() local
551 .getAppWidgetInfo(widgetId); in decode()
556 return new PendingInstallShortcutInfo(info, widgetId, context); in decode()
DAppWidgetsRestoredReceiver.java62 for (int widgetId : newWidgetIds) { in restoreAppWidgetIds()
63 Log.d(TAG, "Deleting widgetId: " + widgetId); in restoreAppWidgetIds()
64 appWidgetHost.deleteAppWidgetId(widgetId); in restoreAppWidgetIds()
DSecondaryDropTarget.java225 int widgetId = getReconfigurableWidgetId(view); in performDropAction() local
226 if (widgetId != INVALID_APPWIDGET_ID) { in performDropAction()
227 mLauncher.getAppWidgetHost().startConfigActivity(mLauncher, widgetId, -1); in performDropAction()
DLauncherAppWidgetHost.java281 public void startConfigActivity(BaseActivity activity, int widgetId, int requestCode) { in startConfigActivity() argument
288 startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, null); in startConfigActivity()
DLauncherProvider.java834 for (int widgetId : allWidgets) { in removeGhostWidgets()
835 if (!validWidgets.contains(widgetId)) { in removeGhostWidgets()
837 FileLog.d(TAG, "Deleting invalid widget " + widgetId); in removeGhostWidgets()
838 host.deleteAppWidgetId(widgetId); in removeGhostWidgets()
DLauncher.java654 int widgetId = appWidgetId; in completeAdd() local
656 completeRestoreAppWidget(widgetId, LauncherAppWidgetInfo.FLAG_UI_NOT_READY); in completeAdd()
660 .getLauncherAppWidgetInfo(widgetId); in completeAdd()
722 int widgetId = data != null ? data.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1) in handleActivityResult() local
724 if (widgetId < 0) { in handleActivityResult()
727 appWidgetId = widgetId; in handleActivityResult()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DAddConfigWidgetTest.java153 int widgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, in getWidgetId() local
155 assertNotSame(widgetId, LauncherAppWidgetInfo.NO_ID); in getWidgetId()
156 return widgetId; in getWidgetId()
DBindWidgetTest.java313 int widgetId = host.allocateAppWidgetId(); in createWidgetInfo() local
314 if (!mWidgetManager.bindAppWidgetIdIfAllowed(widgetId, info, options)) { in createWidgetInfo()
315 host.deleteAppWidgetId(widgetId); in createWidgetInfo()
318 item.appWidgetId = widgetId; in createWidgetInfo()
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/
DCustomWidgetManager.java144 public LauncherAppWidgetProviderInfo getWidgetProvider(int widgetId) { in getWidgetProvider() argument
145 ComponentName cn = mWidgetsIdMap.get(LauncherAppWidgetInfo.CUSTOM_WIDGET_ID - widgetId); in getWidgetProvider()
/packages/apps/DeskClock/src/com/android/deskclock/
DUtils.java494 public static boolean isWidgetClickable(AppWidgetManager widgetManager, int widgetId) { in isWidgetClickable() argument
495 final Bundle wo = widgetManager.getAppWidgetOptions(widgetId); in isWidgetClickable()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java725 int widgetId = c.getInt(indexAppWidgetId);
727 mContext).getLauncherAppWidgetInfo(widgetId);