/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/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 | LauncherWidgetHolder.java | 164 public void deleteAppWidgetId(int appWidgetId) { in deleteAppWidgetId() argument 165 mWidgetHost.deleteAppWidgetId(appWidgetId); in deleteAppWidgetId() 166 mViews.remove(appWidgetId); in deleteAppWidgetId() 263 int appWidgetId, @NonNull AppWidgetProviderInfo info, int requestCode) { in startBindFlow() argument 270 .putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId) in startBindFlow() 310 int appWidgetId, LauncherAppWidgetProviderInfo appWidget, Runnable callback) { in addOnUpdateListener() argument 311 if (createView(appWidgetId, appWidget) instanceof ListenableHostView lhv) { in addOnUpdateListener() 328 int appWidgetId, @NonNull LauncherAppWidgetProviderInfo appWidget) { in createView() argument 336 LauncherAppWidgetHostView view = createViewInternal(appWidgetId, appWidget); in createView() 339 mViews.put(appWidgetId, view); in createView() [all …]
|
D | WidgetManagerHelper.java | 69 int appWidgetId, ComponentName componentName) { in getLauncherAppWidgetInfo() argument 72 if (appWidgetId <= LauncherAppWidgetInfo.CUSTOM_WIDGET_ID) { in getLauncherAppWidgetInfo() 76 AppWidgetProviderInfo info = mAppWidgetManager.getAppWidgetInfo(appWidgetId); in getLauncherAppWidgetInfo() 80 + " appWidgetId=" + appWidgetId in getLauncherAppWidgetInfo() 117 public boolean bindAppWidgetIdIfAllowed(int appWidgetId, AppWidgetProviderInfo info, in bindAppWidgetIdIfAllowed() argument 122 if (appWidgetId <= LauncherAppWidgetInfo.CUSTOM_WIDGET_ID) { in bindAppWidgetIdIfAllowed() 126 appWidgetId, info.getProfile(), info.provider, options); in bindAppWidgetIdIfAllowed() 147 public boolean isAppWidgetRestored(int appWidgetId) { in isAppWidgetRestored() argument 148 return WIDGETS_ENABLED && mAppWidgetManager.getAppWidgetOptions(appWidgetId) in isAppWidgetRestored()
|
D | WidgetAddFlowHandler.java | 56 public void startBindFlow(Launcher launcher, int appWidgetId, ItemInfo info, int requestCode) { in startBindFlow() argument 57 launcher.setWaitingForResult(PendingRequestArgs.forWidgetInfo(appWidgetId, this, info)); in startBindFlow() 59 .startBindFlow(launcher, appWidgetId, mProviderInfo, requestCode); in startBindFlow() 67 return startConfigActivity(launcher, info.appWidgetId, info, requestCode); in startConfigActivity() 74 public boolean startConfigActivity(Launcher launcher, int appWidgetId, ItemInfo info, in startConfigActivity() argument 79 launcher.setWaitingForResult(PendingRequestArgs.forWidgetInfo(appWidgetId, this, info)); in startConfigActivity() 80 launcher.getAppWidgetHolder().startConfigActivity(launcher, appWidgetId, requestCode); in startConfigActivity()
|
D | WidgetInflater.kt | 73 widgetHelper.getLauncherAppWidgetInfo(item.appWidgetId, item.targetComponent) in inflateAppWidget() 75 if (item.appWidgetId <= LauncherAppWidgetInfo.CUSTOM_WIDGET_ID) { in inflateAppWidget() 108 item.appWidgetId = it.allocateAppWidgetId() in inflateAppWidget() 133 item.appWidgetId, in inflateAppWidget() 168 if (widgetHelper.isAppWidgetRestored(item.appWidgetId)) { in inflateAppWidget() 178 FileLog.e(Launcher.TAG, "Removing invalid widget: id=" + item.appWidgetId) in inflateAppWidget()
|
D | LauncherAppWidgetHost.java | 88 public LauncherAppWidgetHostView onCreateView(Context context, int appWidgetId, in onCreateView() argument 100 protected void onProviderChanged(int appWidgetId, @NonNull AppWidgetProviderInfo appWidget) { in onProviderChanged() argument 103 super.onProviderChanged(appWidgetId, info); in onProviderChanged() 115 public void onAppWidgetRemoved(int appWidgetId) { in onAppWidgetRemoved() argument 122 () -> mAppWidgetRemovedCallback.accept(appWidgetId))); in onAppWidgetRemoved()
|
D | LauncherAppWidgetHostView.java | 122 public void setAppWidget(int appWidgetId, AppWidgetProviderInfo info) { in setAppWidget() argument 123 super.setAppWidget(appWidgetId, info); in setAppWidget() 126 Trace.beginAsyncSection(TRACE_METHOD_NAME + info.provider, appWidgetId); in setAppWidget() 127 Log.i(TAG, "App widget created with id: " + appWidgetId); in setAppWidget()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | LauncherAppWidgetInfo.java | 109 public int appWidgetId = NO_ID; field in LauncherAppWidgetInfo 149 public LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { in LauncherAppWidgetInfo() argument 150 this.appWidgetId = appWidgetId; in LauncherAppWidgetInfo() 169 public LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName, in LauncherAppWidgetInfo() argument 171 this(appWidgetId, providerName); in LauncherAppWidgetInfo() 181 return appWidgetId <= CUSTOM_WIDGET_ID; in isCustomWidget() 193 writer.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId) in onAddToDatabase() 205 + " appWidgetId=" + appWidgetId; in dumpProperties()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/ |
D | QuickstepWidgetHolder.java | 167 public void deleteAppWidgetId(int appWidgetId) { in deleteAppWidgetId() argument 168 super.deleteAppWidgetId(appWidgetId); in deleteAppWidgetId() 169 sListeners.remove(appWidgetId); in deleteAppWidgetId() 207 public SafeCloseable addOnUpdateListener(int appWidgetId, in addOnUpdateListener() argument 217 QuickstepWidgetHolderListener holderListener = getHolderListener(appWidgetId); in addOnUpdateListener() 239 int appWidgetId, @NonNull LauncherAppWidgetProviderInfo appWidget) { in createViewInternal() argument 242 widgetView.setAppWidget(appWidgetId, appWidget); in createViewInternal() 243 widgetView.updateAppWidget(getHolderListener(appWidgetId).addHolder(mUpdateHandler)); in createViewInternal() 247 private static QuickstepWidgetHolderListener getHolderListener(int appWidgetId) { in getHolderListener() argument 248 QuickstepWidgetHolderListener listener = sListeners.get(appWidgetId); in getHolderListener() [all …]
|
D | QuickstepAppWidgetHost.java | 58 public void onAppWidgetRemoved(int appWidgetId) { in onAppWidgetRemoved() argument 62 () -> mAppWidgetRemovedCallback.accept(appWidgetId))); in onAppWidgetRemoved() 66 protected void onProviderChanged(int appWidgetId, @NonNull AppWidgetProviderInfo appWidget) { in onProviderChanged() argument 69 super.onProviderChanged(appWidgetId, info); in onProviderChanged()
|
/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/ |
D | Launcher.java | 835 int requestCode, Intent intent, int appWidgetId, PendingRequestArgs info) { 851 completeAddAppWidget(appWidgetId, info, null, null, false, true, null); 855 completeRestoreAppWidget(appWidgetId, LauncherAppWidgetInfo.RESTORE_COMPLETED); 858 int widgetId = appWidgetId; 922 final int appWidgetId = data != null ? 925 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId, requestArgs); 930 appWidgetId, requestArgs, null, 942 final int appWidgetId; 946 appWidgetId = pendingAddWidgetId; 948 appWidgetId = widgetId; [all …]
|
D | DefaultLayoutParser.java | 277 int appWidgetId = mAppWidgetHolder.allocateAppWidgetId(); in verifyAndInsert() local 279 if (!appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, cn)) { in verifyAndInsert() 281 mAppWidgetHolder.deleteAppWidgetId(appWidgetId); in verifyAndInsert() 285 mValues.put(Favorites.APPWIDGET_ID, appWidgetId); in verifyAndInsert() 290 mAppWidgetHolder.deleteAppWidgetId(appWidgetId); in verifyAndInsert() 299 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in verifyAndInsert()
|
D | LauncherProvider.java | 110 int appWidgetId = widgetHolder.allocateAppWidgetId(); in insert() 111 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); in insert() 113 .bindAppWidgetIdIfAllowed(appWidgetId, cn)) { in insert() 114 widgetHolder.deleteAppWidgetId(appWidgetId); in insert()
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetProvider.kt | 115 for (appWidgetId in appWidgetIds) { in performUpdate() method 118 updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId) in performUpdate() 140 views.setRemoteAdapter(appWidgetId, R.id.events_list, updateIntent) in performUpdate() 141 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, R.id.events_list) in performUpdate() 158 appWidgetManager.updateAppWidget(appWidgetId, views) in performUpdate()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | TaplBindWidgetTest.java | 125 item -> item.appWidgetId = -33); in testUnboundWidget_removed() 165 int appWidgetId = mCursor.getInt( in testPendingWidget_withConfigScreen() local 172 appWidgetManager.updateAppWidgetOptions(appWidgetId, b); in testPendingWidget_withConfigScreen() 173 appWidgetManager.updateAppWidget(appWidgetId, remoteViews); in testPendingWidget_withConfigScreen() 177 l -> appWidgetManager.getAppWidgetOptions(appWidgetId).getBoolean( in testPendingWidget_withConfigScreen()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | WorkspaceItemProcessorTest.kt | 522 whenever(appWidgetId).thenReturn(expectedAppWidgetId) in When valid TYPE_REAL App Widget then add item() 539 appWidgetId = expectedAppWidgetId in When valid TYPE_REAL App Widget then add item() 573 assertThat(appWidgetId).isEqualTo(expectedWidgetInfo.appWidgetId) in When valid TYPE_REAL App Widget then add item() 594 whenever(appWidgetId).thenReturn(0) in When valid Pending Widget then checkAndAddItem() 639 whenever(appWidgetId).thenReturn(0) in When Unrestored Pending App Widget then mark deleted() 690 whenever(appWidgetId).thenReturn(expectedAppWidgetId) in When Pending App Widget has not started restore then update db and add item() 725 appWidgetId = expectedAppWidgetId in When Pending App Widget has not started restore then update db and add item() 744 assertThat(appWidgetId).isEqualTo(expectedWidgetInfo.appWidgetId) in When Pending App Widget has not started restore then update db and add item() 774 whenever(appWidgetId).thenReturn(0) in When Archived Pending App Widget then checkAndAddItem()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/testgenerator/ |
D | ValidGridMigrationTestCaseGenerator.kt | 55 appWidgetId = -1, in <lambda>() 74 appWidgetId = widgetId.getAndAdd(-1), in <lambda>() 94 appWidgetId = -1, in <lambda>()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SearchWidgetProvider.kt | 132 private fun getSearchWidgetState(context: Context?, appWidgetId: Int): SearchWidgetState { in getSearchWidgetState() 133 if (DBG) Log.d(TAG, "Creating appwidget state $appWidgetId") in getSearchWidgetState() 134 val state: SearchWidgetState = SearchWidgetState(appWidgetId) in getSearchWidgetState()
|