Home
last modified time | relevance | path

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

/packages/apps/Launcher3/src/com/android/launcher3/qsb/
DQsbContainerView.java209 int widgetId = LauncherPrefs.getPrefs(context).getInt(mKeyWidgetId, -1); in createQsb() local
210 AppWidgetProviderInfo widgetInfo = widgetManager.getAppWidgetInfo(widgetId); in createQsb()
214 int oldWidgetId = widgetId; in createQsb()
216 if (widgetId > -1) { in createQsb()
221 widgetId = mQsbWidgetHost.allocateAppWidgetId(); in createQsb()
223 widgetId, mWidgetInfo.getProfile(), mWidgetInfo.provider, opts); in createQsb()
225 mQsbWidgetHost.deleteAppWidgetId(widgetId); in createQsb()
226 widgetId = -1; in createQsb()
229 if (oldWidgetId != widgetId) { in createQsb()
230 saveWidgetId(widgetId); in createQsb()
[all …]
/packages/apps/DeskClock/src/com/android/alarmclock/
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>()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/
DQuickstepWidgetHolder.java115 int widgetId = mPendingUpdateMap.keyAt(i); in updateDeferredView() local
116 AppWidgetHostView view = mViews.get(widgetId); in updateDeferredView()
133 private <T> void onWidgetUpdate(int widgetId, UpdateKey<T> key, T data) { in onWidgetUpdate() argument
135 AppWidgetHostView view = mViews.get(widgetId); in onWidgetUpdate()
143 PendingUpdate pendingUpdate = mPendingUpdateMap.get(widgetId); in onWidgetUpdate()
146 mPendingUpdateMap.put(widgetId, pendingUpdate); in onWidgetUpdate()
211 public <T> void onWidgetUpdate(int widgetId, UpdateKey<T> key, T data) { in addOnUpdateListener()
287 QuickstepWidgetHolderListener(int widgetId) { in QuickstepWidgetHolderListener() argument
288 mWidgetId = widgetId; in QuickstepWidgetHolderListener()
367 <T> void onWidgetUpdate(int widgetId, UpdateKey<T> key, T data);
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DWidgetUtils.java68 int widgetId = holder.allocateAppWidgetId(); in createWidgetInfo() local
70 .bindAppWidgetIdIfAllowed(widgetId, info, options)) { in createWidgetInfo()
71 holder.deleteAppWidgetId(widgetId); in createWidgetInfo()
74 item.appWidgetId = widgetId; in createWidgetInfo()
/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/model/
DItemInstallQueue.java172 public void queueItem(AppWidgetProviderInfo info, int widgetId) { in queueItem() argument
173 queuePendingShortcutInfo(new PendingInstallShortcutInfo(info, widgetId)); in queueItem()
269 public PendingInstallShortcutInfo(AppWidgetProviderInfo info, int widgetId) { in PendingInstallShortcutInfo() argument
273 .putExtra(EXTRA_APPWIDGET_ID, widgetId); in PendingInstallShortcutInfo()
388 int widgetId = intent.getIntExtra(EXTRA_APPWIDGET_ID, 0); in decode() local
390 AppWidgetManager.getInstance(mContext).getAppWidgetInfo(widgetId); in decode()
395 return new PendingInstallShortcutInfo(info, widgetId); in decode()
DDatabaseHelper.java333 for (int widgetId : allWidgets) { in removeGhostWidgets()
334 if (!validWidgets.contains(widgetId)) { in removeGhostWidgets()
336 FileLog.d(TAG, "Deleting widget not found in db: appWidgetId=" + widgetId); in removeGhostWidgets()
337 holder.deleteAppWidgetId(widgetId); in removeGhostWidgets()
DGridSizeMigrationUtil.java570 int widgetId = c.getInt(indexAppWidgetId); in loadAllWorkspaceEntries() local
572 .getLauncherAppWidgetInfo(widgetId, cn); in loadAllWorkspaceEntries()
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/
DWidgetSizes.java107 public static void updateWidgetSizeRangesAsync(int widgetId, in updateWidgetSizeRangesAsync() argument
109 if (widgetId <= 0 || info == null) { in updateWidgetSizeRangesAsync()
118 widgetManager.getAppWidgetOptions(widgetId).<SizeF>getParcelableArrayList( in updateWidgetSizeRangesAsync()
122 widgetManager.updateAppWidgetOptions(widgetId, sizeOptions); in updateWidgetSizeRangesAsync()
/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/widget/
DLauncherWidgetHolder.java211 public void startConfigActivity(@NonNull BaseDraggingActivity activity, int widgetId, in startConfigActivity() argument
220 mWidgetHost.startAppWidgetConfigureActivityForResult(activity, widgetId, 0, requestCode, in startConfigActivity()
221 getConfigurationActivityOptions(activity, widgetId)); in startConfigActivity()
239 int widgetId) { in getConfigurationActivityOptions() argument
240 LauncherAppWidgetHostView view = mViews.get(widgetId); in getConfigurationActivityOptions()
/packages/apps/Launcher3/src/com/android/launcher3/
DDropTargetHandler.kt45 fun reconfigureWidget(widgetId: Int, info: ItemInfo) { in reconfigureWidget()
46 mLauncher.setWaitingForResult(PendingRequestArgs.forWidgetInfo(widgetId, null, info)) in reconfigureWidget()
49 widgetId, in reconfigureWidget()
DSecondaryDropTarget.java280 int widgetId = getReconfigurableWidgetId(view); in performDropAction() local
281 if (widgetId != INVALID_APPWIDGET_ID) { in performDropAction()
282 mDropTargetHandler.reconfigureWidget(widgetId, info); in performDropAction()
DLauncher.java858 int widgetId = appWidgetId;
860 completeRestoreAppWidget(widgetId, LauncherAppWidgetInfo.FLAG_UI_NOT_READY);
864 .getLauncherAppWidgetInfo(widgetId, info.getTargetComponent());
943 int widgetId = data != null ? data.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1)
945 if (widgetId < 0) {
948 appWidgetId = widgetId;
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DTaplAddConfigWidgetTest.java167 int widgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, in getWidgetId() local
169 assertNotSame("Widget id is NO_ID", widgetId, LauncherAppWidgetInfo.NO_ID); in getWidgetId()
170 return widgetId; in getWidgetId()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java370 private void acceptWidget(int widgetId) { in acceptWidget() argument
372 .queueItem(mRequest.getAppWidgetProviderInfo(this), widgetId); in acceptWidget() local
373 mWidgetOptions.putInt(AppWidgetManager.EXTRA_APPWIDGET_ID, widgetId); in acceptWidget()
397 int widgetId = data != null in onActivityResult() local
401 acceptWidget(widgetId); in onActivityResult()
404 mAppWidgetHolder.deleteAppWidgetId(widgetId); in onActivityResult()
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/testgenerator/
DValidGridMigrationTestCaseGenerator.kt38 val widgetId = AtomicInteger(LauncherAppWidgetInfo.CUSTOM_WIDGET_ID - 1) in <lambda>() constant
74 appWidgetId = widgetId.getAndAdd(-1), in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java460 for (int widgetId : newWidgetIds) { in restoreAppWidgetIds()
461 FileLog.d(TAG, "Deleting widgetId: " + widgetId); in restoreAppWidgetIds()
462 host.deleteAppWidgetId(widgetId); in restoreAppWidgetIds()
544 int widgetId = cursor.getInt(widgetIdColumnIndex); in logDatabaseWidgetInfo() local
548 widgetIdList.add(widgetId); in logDatabaseWidgetInfo()
/packages/apps/DeskClock/src/com/android/deskclock/
DUtils.kt479 fun isWidgetClickable(widgetManager: AppWidgetManager, widgetId: Int): Boolean { in isWidgetClickable()
480 val wo = widgetManager.getAppWidgetOptions(widgetId) in isWidgetClickable()