/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | DigitalAppWidgetProvider.java | 151 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 …]
|
D | DigitalAppWidgetProvider.kt | 123 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 …]
|
D | AnalogAppWidgetProvider.kt | 51 widgetIds.forEach { widgetId -> in <lambda>() method 56 if (Utils.isWidgetClickable(wm, widgetId)) { in <lambda>() 61 wm.updateAppWidget(widgetId, widget) in <lambda>()
|
D | AnalogAppWidgetProvider.java | 61 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/ |
D | QsbContainerView.java | 204 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/ |
D | WidgetDatabaseHelper.java | 69 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()
|
D | PhotoAppWidgetProvider.java | 80 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/ |
D | AddItemActivity.java | 273 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/ |
D | WidgetConversationProvider.java | 257 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()
|
D | BaseWidgetProvider.java | 171 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/ |
D | InstallShortcutReceiver.java | 248 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()
|
D | AppWidgetsRestoredReceiver.java | 62 for (int widgetId : newWidgetIds) { in restoreAppWidgetIds() 63 Log.d(TAG, "Deleting widgetId: " + widgetId); in restoreAppWidgetIds() 64 appWidgetHost.deleteAppWidgetId(widgetId); in restoreAppWidgetIds()
|
D | SecondaryDropTarget.java | 225 int widgetId = getReconfigurableWidgetId(view); in performDropAction() local 226 if (widgetId != INVALID_APPWIDGET_ID) { in performDropAction() 227 mLauncher.getAppWidgetHost().startConfigActivity(mLauncher, widgetId, -1); in performDropAction()
|
D | LauncherAppWidgetHost.java | 281 public void startConfigActivity(BaseActivity activity, int widgetId, int requestCode) { in startConfigActivity() argument 288 startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, null); in startConfigActivity()
|
D | LauncherProvider.java | 834 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()
|
D | Launcher.java | 654 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/ |
D | AddConfigWidgetTest.java | 153 int widgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, in getWidgetId() local 155 assertNotSame(widgetId, LauncherAppWidgetInfo.NO_ID); in getWidgetId() 156 return widgetId; in getWidgetId()
|
D | BindWidgetTest.java | 313 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/ |
D | CustomWidgetManager.java | 144 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/ |
D | Utils.java | 494 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/ |
D | GridSizeMigrationTask.java | 725 int widgetId = c.getInt(indexAppWidgetId); 727 mContext).getLauncherAppWidgetInfo(widgetId);
|