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.java53 for (int appWidgetId : appWidgetIds) { in onUpdate()
54 float ratio = WidgetUtils.getScaleRatio(ctxt, null, appWidgetId); in onUpdate()
55 updateClock(ctxt, appWidgetManager, appWidgetId, ratio); in onUpdate()
63 int appWidgetId, Bundle newOptions) { in onAppWidgetOptionsChanged() argument
65 float ratio = WidgetUtils.getScaleRatio(context, newOptions, appWidgetId); in onAppWidgetOptionsChanged()
67 updateClock(context, widgetManager, appWidgetId, ratio); in onAppWidgetOptionsChanged()
75 Context c, AppWidgetManager appWidgetManager, int appWidgetId, float ratio) { in updateClock() argument
78 Bundle newOptions = appWidgetManager.getAppWidgetOptions(appWidgetId); in updateClock()
88 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in updateClock()
90 widget.setRemoteAdapter(appWidgetId, R.id.digital_appwidget_listview, intent); in updateClock()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncher.java608 int appWidgetId = args.intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); in completeAdd() local
609 completeAddAppWidget(appWidgetId, args.container, args.screen, null, null); in completeAdd()
627 int appWidgetId = data != null ? in onActivityResult() local
630 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); in onActivityResult()
632 addAppWidgetImpl(appWidgetId, mPendingAddInfo, null, mPendingAddWidgetInfo); in onActivityResult()
643 int appWidgetId = data != null ? in onActivityResult() local
645 if (appWidgetId < 0) { in onActivityResult()
648 completeTwoStageWidgetDrop(RESULT_CANCELED, appWidgetId); in onActivityResult()
650 completeTwoStageWidgetDrop(resultCode, appWidgetId); in onActivityResult()
680 private void completeTwoStageWidgetDrop(final int resultCode, final int appWidgetId) { in completeTwoStageWidgetDrop() argument
[all …]
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()
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()
DLauncherModel.java1430 int appWidgetId = c.getInt(appWidgetIdIndex); in loadWorkspace() local
1434 widgets.getAppWidgetInfo(appWidgetId); in loadWorkspace()
1439 + id + " appWidgetId=" + appWidgetId; in loadWorkspace()
1444 appWidgetInfo = new LauncherAppWidgetInfo(appWidgetId, in loadWorkspace()
DLauncherAppWidgetHost.java39 protected AppWidgetHostView onCreateView(Context context, int appWidgetId, in onCreateView() argument
DDeleteDropTarget.java243 appWidgetHost.deleteAppWidgetId(launcherAppWidgetInfo.appWidgetId); in completeDrop()
/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/Settings/src/com/android/settings/
DKeyguardAppWidgetPickActivity.java554 int appWidgetId; in onActivityResult() local
556 appWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID ; in onActivityResult()
558 appWidgetId = data.getIntExtra( in onActivityResult()
565 appWidget = appWidgetManager.getAppWidgetInfo(appWidgetId); in onActivityResult()
572 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in onActivityResult()
580 mLockPatternUtils.addAppWidget(appWidgetId, 0); in onActivityResult()
581 finishDelayedAndShowLockScreen(appWidgetId); in onActivityResult()
593 private void finishDelayedAndShowLockScreen(int appWidgetId) { in finishDelayedAndShowLockScreen() argument
597 if (appWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID) { in finishDelayedAndShowLockScreen()
599 opts.putInt(LockPatternUtils.KEYGUARD_SHOW_APPWIDGET, appWidgetId); in finishDelayedAndShowLockScreen()
/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/
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/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/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()