Home
last modified time | relevance | path

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

12

/packages/apps/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.java90 for (int appWidgetId : appWidgetIds) { in onReceive()
92 notifyAppWidgetViewDataChanged(appWidgetId, in onReceive()
96 float ratio = WidgetUtils.getScaleRatio(context, null, appWidgetId); in onReceive()
100 appWidgetManager.partiallyUpdateAppWidget(appWidgetId, widget); in onReceive()
113 for (int appWidgetId : appWidgetIds) { in onReceive()
117 appWidgetManager.partiallyUpdateAppWidget(appWidgetId, widget); in onReceive()
125 for (int appWidgetId : appWidgetIds) { in onReceive()
127 notifyAppWidgetViewDataChanged(appWidgetId, in onReceive()
139 for (int appWidgetId : appWidgetIds) { in onUpdate()
140 float ratio = WidgetUtils.getScaleRatio(context, null, appWidgetId); in onUpdate()
[all …]
/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/
DLauncher.java371 int appWidgetId; field in Launcher.PendingAddArguments
727 completeAddAppWidget(args.appWidgetId, args.container, screenId, null, null); in completeAdd()
730 completeRestoreAppWidget(args.appWidgetId); in completeAdd()
756 final int appWidgetId = data != null ? in handleActivityResult() local
759 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); in handleActivityResult()
763 addAppWidgetImpl(appWidgetId, mPendingAddInfo, null, in handleActivityResult()
780 final int appWidgetId; in handleActivityResult() local
784 appWidgetId = pendingAddWidgetId; in handleActivityResult()
786 appWidgetId = widgetId; in handleActivityResult()
790 if (appWidgetId < 0 || resultCode == RESULT_CANCELED) { in handleActivityResult()
[all …]
DLauncherAppWidgetInfo.java62 int appWidgetId = NO_ID; field in LauncherAppWidgetInfo
88 LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { in LauncherAppWidgetInfo() argument
90 this.appWidgetId = appWidgetId; in LauncherAppWidgetInfo()
105 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); in onAddToDatabase()
130 return "AppWidget(id=" + Integer.toString(appWidgetId) + ")"; in toString()
DLauncherProvider.java1171 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); in convertWidgets() local
1174 Log.d(TAG, "allocated appWidgetId=" + appWidgetId in convertWidgets()
1179 values.put(Favorites.APPWIDGET_ID, appWidgetId); in convertWidgets()
1195 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets()
1200 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets()
1205 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets()
1246 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); in initializeExternalAdd() local
1247 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); in initializeExternalAdd()
1248 if (!appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId,cn)) { in initializeExternalAdd()
DAutoInstallsLayout.java461 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); in parseAndAdd() local
463 if (!appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, cn)) { in parseAndAdd()
469 mValues.put(Favorites.APPWIDGET_ID, appWidgetId); in parseAndAdd()
474 mAppWidgetHost.deleteAppWidgetId(appWidgetId); in parseAndAdd()
483 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in parseAndAdd()
DLauncherModel.java2178 int appWidgetId = c.getInt(appWidgetIdIndex); in loadWorkspace() local
2192 ? widgets.getAppWidgetInfo(appWidgetId) in loadWorkspace()
2198 + "id=" + id + " appWidgetId=" + appWidgetId; in loadWorkspace()
2204 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
2227 + " appWidgetId=" + appWidgetId in loadWorkspace()
2229 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncher.java611 int appWidgetId = args.intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); in completeAdd() local
612 completeAddAppWidget(appWidgetId, args.container, args.screen, null, null); in completeAdd()
634 int appWidgetId = data != null ? in onActivityResult() local
637 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); in onActivityResult()
639 addAppWidgetImpl(appWidgetId, mPendingAddInfo, null, mPendingAddWidgetInfo); in onActivityResult()
650 final int appWidgetId; in onActivityResult() local
654 appWidgetId = pendingAddWidgetId; in onActivityResult()
656 appWidgetId = widgetId; in onActivityResult()
659 if (appWidgetId < 0) { in onActivityResult()
662 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); in onActivityResult()
[all …]
DLauncherAppWidgetInfo.java38 int appWidgetId = NO_ID; field in LauncherAppWidgetInfo
54 LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { in LauncherAppWidgetInfo() argument
56 this.appWidgetId = appWidgetId; in LauncherAppWidgetInfo()
68 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); in onAddToDatabase()
91 return "AppWidget(id=" + Integer.toString(appWidgetId) + ")"; in toString()
DLauncherProvider.java771 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); in convertWidgets() local
774 Log.d(TAG, "allocated appWidgetId=" + appWidgetId in convertWidgets()
779 values.put(Favorites.APPWIDGET_ID, appWidgetId); in convertWidgets()
795 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets()
800 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets()
805 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets()
1135 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); in addAppWidget() local
1140 values.put(Favorites.APPWIDGET_ID, appWidgetId); in addAppWidget()
1147 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, cn); in addAppWidget()
1154 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in addAppWidget()
DLauncherModel.java1455 int appWidgetId = c.getInt(appWidgetIdIndex); in loadWorkspace() local
1459 widgets.getAppWidgetInfo(appWidgetId); in loadWorkspace()
1464 + id + " appWidgetId=" + appWidgetId; in loadWorkspace()
1469 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
/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/UnifiedEmail/src/com/android/mail/widget/
DWidgetService.java74 int appWidgetId, Account account, final int folderType, final int folderCapabilities, in configureValidAccountWidget() argument
76 configureValidAccountWidget(context, remoteViews, appWidgetId, account, folderType, in configureValidAccountWidget()
85 int appWidgetId, Account account, final int folderType, final int folderCapabilities, in configureValidAccountWidget() argument
110 WidgetService.configureValidWidgetIntents(context, remoteViews, appWidgetId, account, in configureValidAccountWidget()
116 int appWidgetId, Account account, final int folderType, final int folderCapabilities, in configureValidWidgetIntents() argument
124 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in configureValidWidgetIntents()
172 public static void saveWidgetInformation(Context context, int appWidgetId, Account account, in saveWidgetInformation() argument
174 MailPrefs.get(context).configureWidget(appWidgetId, account, folderUri); in saveWidgetInformation()
180 public boolean isWidgetConfigured(Context context, int appWidgetId, Account account) { in isWidgetConfigured() argument
182 MailPrefs.get(context).isWidgetConfigured(appWidgetId); in isWidgetConfigured()
DBaseWidgetProvider.java295 public static void updateWidget(Context context, int appWidgetId, Account account, in updateWidget() argument
306 updateWidgetIntent.putExtra(EXTRA_WIDGET_ID, appWidgetId); in updateWidget()
323 protected void updateWidgetInternal(Context context, int appWidgetId, Account account, in updateWidgetInternal() argument
341 configureIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in updateWidgetInternal()
349 configureValidAccountWidget(context, remoteViews, appWidgetId, account, folderType, in updateWidgetInternal()
354 AppWidgetManager.getInstance(context).updateAppWidget(appWidgetId, remoteViews); in updateWidgetInternal()
387 int appWidgetId, Account account, final int folderType, final int folderCapabilities, in configureValidAccountWidget() argument
389 WidgetService.configureValidAccountWidget(context, remoteViews, appWidgetId, account, in configureValidAccountWidget()
/packages/apps/Mms/src/com/android/mms/widget/
DMmsWidgetProvider.java80 private static void updateWidget(Context context, int appWidgetId) { in updateWidget() argument
82 Log.v(TAG, "updateWidget appWidgetId: " + appWidgetId); in updateWidget()
89 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in updateWidget()
91 remoteViews.setRemoteAdapter(appWidgetId, R.id.conversation_list, intent); in updateWidget()
117 AppWidgetManager.getInstance(context).updateAppWidget(appWidgetId, remoteViews); in updateWidget()
/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/UnifiedEmail/src/com/android/mail/preferences/
DMailPrefs.java218 public boolean isWidgetConfigured(int appWidgetId) { in isWidgetConfigured() argument
219 return getSharedPreferences().contains(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId); in isWidgetConfigured()
222 public void configureWidget(int appWidgetId, Account account, final String folderUri) { in configureWidget() argument
227 getEditor().putString(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId, in configureWidget()
231 public String getWidgetConfiguration(int appWidgetId) { in getWidgetConfiguration() argument
232 return getSharedPreferences().getString(PreferenceKeys.WIDGET_ACCOUNT_PREFIX + appWidgetId, in getWidgetConfiguration()
/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/Browser/src/com/android/browser/widget/
DBookmarkThumbnailWidgetProvider.java87 for (int appWidgetId : appWidgetIds) { in performUpdate()
89 updateIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in performUpdate()
95 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, R.id.bookmarks_list); in performUpdate()
100 appWidgetManager.updateAppWidget(appWidgetId, views); in performUpdate()
/packages/apps/Email/provider_src/com/android/email/provider/
DWidgetProvider.java175 static long loadAccountIdPref(Context context, int appWidgetId) { in loadAccountIdPref() argument
177 long accountId = prefs.getLong(LEGACY_ACCOUNT_ID_PREFIX + appWidgetId, Account.NO_ACCOUNT); in loadAccountIdPref()
186 static long loadMailboxIdPref(Context context, int appWidgetId) { in loadMailboxIdPref() argument
188 long mailboxId = prefs.getLong(LEGACY_MAILBOX_ID_PREFIX + appWidgetId, Mailbox.NO_MAILBOX); in loadMailboxIdPref()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DAppWidgetManagerCompat.java60 public AppWidgetProviderInfo getAppWidgetInfo(int appWidgetId) { in getAppWidgetInfo() argument
61 return mAppWidgetManager.getAppWidgetInfo(appWidgetId); in getAppWidgetInfo()
69 int appWidgetId, AppWidgetProviderInfo info, Bundle options); in bindAppWidgetIdIfAllowed() argument
DAppWidgetManagerCompatV16.java52 public boolean bindAppWidgetIdIfAllowed(int appWidgetId, AppWidgetProviderInfo info, in bindAppWidgetIdIfAllowed() argument
55 return mAppWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, info.provider); in bindAppWidgetIdIfAllowed()
57 return mAppWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, info.provider, options); in bindAppWidgetIdIfAllowed()
DAppWidgetManagerCompatVL.java73 public boolean bindAppWidgetIdIfAllowed(int appWidgetId, AppWidgetProviderInfo info, in bindAppWidgetIdIfAllowed() argument
76 appWidgetId, info.getProfile(), info.provider, options); in bindAppWidgetIdIfAllowed()

12