Home
last modified time | relevance | path

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

/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/DeskClock/src/com/android/alarmclock/
DDigitalAppWidgetProvider.java51 for (int appWidgetId : appWidgetIds) { in onUpdate()
52 float ratio = WidgetUtils.getScaleRatio(ctxt, null, appWidgetId); in onUpdate()
53 updateClock(ctxt, appWidgetManager, appWidgetId, ratio); in onUpdate()
61 int appWidgetId, Bundle newOptions) { in onAppWidgetOptionsChanged() argument
63 float ratio = WidgetUtils.getScaleRatio(context, newOptions, appWidgetId); in onAppWidgetOptionsChanged()
65 updateClock(context, widgetManager, appWidgetId, ratio); in onAppWidgetOptionsChanged()
73 Context c, AppWidgetManager appWidgetManager, int appWidgetId, float ratio) { in updateClock() argument
80 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in updateClock()
82 widget.setRemoteAdapter(appWidgetId, R.id.digital_appwidget_listview, intent); in updateClock()
86 appWidgetId, R.id.digital_appwidget_listview); in updateClock()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherAppWidgetInfo.java37 int appWidgetId = NO_ID; field in LauncherAppWidgetInfo
53 LauncherAppWidgetInfo(int appWidgetId, ComponentName providerName) { in LauncherAppWidgetInfo() argument
55 this.appWidgetId = appWidgetId; in LauncherAppWidgetInfo()
67 values.put(LauncherSettings.Favorites.APPWIDGET_ID, appWidgetId); in onAddToDatabase()
90 return "AppWidget(id=" + Integer.toString(appWidgetId) + ")"; in toString()
DLauncher.java604 int appWidgetId = args.intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); in completeAdd() local
605 completeAddAppWidget(appWidgetId, args.container, args.screen, null, null); in completeAdd()
623 int appWidgetId = data != null ? in onActivityResult() local
626 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); in onActivityResult()
628 addAppWidgetImpl(appWidgetId, mPendingAddInfo, null, mPendingAddWidgetInfo); in onActivityResult()
639 int appWidgetId = data != null ? in onActivityResult() local
641 if (appWidgetId < 0) { in onActivityResult()
644 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); in onActivityResult()
646 completeTwoStageWidgetDrop(resultCode, appWidgetId); in onActivityResult()
676 private void completeTwoStageWidgetDrop(final int resultCode, final int appWidgetId) { in completeTwoStageWidgetDrop() argument
[all …]
DLauncherAppWidgetHost.java39 protected AppWidgetHostView onCreateView(Context context, int appWidgetId, in onCreateView() argument
DLauncherProvider.java713 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); in convertWidgets() local
716 Log.d(TAG, "allocated appWidgetId=" + appWidgetId in convertWidgets()
721 values.put(Favorites.APPWIDGET_ID, appWidgetId); in convertWidgets()
737 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets()
742 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets()
747 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, in convertWidgets()
1077 int appWidgetId = mAppWidgetHost.allocateAppWidgetId(); in addAppWidget() local
1082 values.put(Favorites.APPWIDGET_ID, appWidgetId); in addAppWidget()
1089 appWidgetManager.bindAppWidgetIdIfAllowed(appWidgetId, cn); in addAppWidget()
1096 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in addAppWidget()
DDeleteDropTarget.java243 appWidgetHost.deleteAppWidgetId(launcherAppWidgetInfo.appWidgetId); in completeDrop()
DLauncherModel.java1395 int appWidgetId = c.getInt(appWidgetIdIndex); in loadWorkspace() local
1399 widgets.getAppWidgetInfo(appWidgetId); in loadWorkspace()
1404 + id + " appWidgetId=" + appWidgetId; in loadWorkspace()
1409 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
/packages/apps/Email/src/com/android/email/widget/
DWidgetManager.java119 static void saveWidgetPrefs(Context context, int appWidgetId, long accountId, long mailboxId) { in saveWidgetPrefs() argument
122 .putLong(ACCOUNT_ID_PREFIX + appWidgetId, accountId) in saveWidgetPrefs()
123 .putLong(MAILBOX_ID_PREFIX + appWidgetId, mailboxId) in saveWidgetPrefs()
128 static void removeWidgetPrefs(Context context, int appWidgetId) { in removeWidgetPrefs() argument
132 if (key.endsWith("_" + appWidgetId)) { in removeWidgetPrefs()
143 static long loadAccountIdPref(Context context, int appWidgetId) { in loadAccountIdPref() argument
145 long accountId = prefs.getLong(ACCOUNT_ID_PREFIX + appWidgetId, Account.NO_ACCOUNT); in loadAccountIdPref()
153 static long loadMailboxIdPref(Context context, int appWidgetId) { in loadMailboxIdPref() argument
155 long mailboxId = prefs.getLong(MAILBOX_ID_PREFIX + appWidgetId, Mailbox.NO_MAILBOX); in loadMailboxIdPref()
/packages/apps/Mms/src/com/android/mms/widget/
DMmsWidgetProvider.java70 for (int appWidgetId : appWidgetIds) { in onReceive()
71 appWidgetManager.notifyAppWidgetViewDataChanged(appWidgetId, in onReceive()
82 private static void updateWidget(Context context, int appWidgetId) { in updateWidget() argument
84 Log.v(TAG, "updateWidget appWidgetId: " + appWidgetId); in updateWidget()
91 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in updateWidget()
93 remoteViews.setRemoteAdapter(appWidgetId, R.id.conversation_list, intent); in updateWidget()
119 AppWidgetManager.getInstance(context).updateAppWidget(appWidgetId, remoteViews); in updateWidget()
/packages/apps/Contacts/src/com/android/contacts/socialwidget/
DSocialWidgetProvider.java65 for (int appWidgetId : appWidgetIds) { in onUpdate()
66 Log.d(TAG, "onUpdate called for " + appWidgetId); in onUpdate()
69 for (int appWidgetId : appWidgetIds) { in onUpdate()
70 loadWidgetData(context, appWidgetManager, appWidgetId, false); in onUpdate()
76 for (int appWidgetId : appWidgetIds) { in onDeleted()
77 ContactLoader loader = sLoaders.get(appWidgetId); in onDeleted()
79 Log.d(TAG, "Stopping loader for widget with id=" + appWidgetId); in onDeleted()
81 sLoaders.delete(appWidgetId); in onDeleted()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
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()
DWidgetDatabaseHelper.java179 public boolean setPhoto(int appWidgetId, Uri imageUri, Bitmap bitmap) { in setPhoto() argument
190 values.put(FIELD_APPWIDGET_ID, appWidgetId); in setPhoto()
218 public Entry getEntry(int appWidgetId) { in getEntry() argument
223 WHERE_APPWIDGET_ID, new String[] {String.valueOf(appWidgetId)}, in getEntry()
229 return new Entry(appWidgetId, cursor); in getEntry()
283 public void deleteEntry(int appWidgetId) { in deleteEntry() argument
287 new String[] {String.valueOf(appWidgetId)}); in deleteEntry()
/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/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/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/Settings/src/com/android/settings/
DKeyguardAppWidgetPickActivity.java551 int appWidgetId; in onActivityResult() local
553 appWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID ; in onActivityResult()
555 appWidgetId = data.getIntExtra( in onActivityResult()
562 appWidget = appWidgetManager.getAppWidgetInfo(appWidgetId); in onActivityResult()
569 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in onActivityResult()
577 mLockPatternUtils.addAppWidget(appWidgetId, 0); in onActivityResult()
578 finishDelayedAndShowLockScreen(appWidgetId); in onActivityResult()
589 private void finishDelayedAndShowLockScreen(int appWidgetId) { in finishDelayedAndShowLockScreen() argument
593 if (appWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID) { in finishDelayedAndShowLockScreen()
595 opts.putInt(LockPatternUtils.KEYGUARD_SHOW_APPWIDGET, appWidgetId); in finishDelayedAndShowLockScreen()