Home
last modified time | relevance | path

Searched refs:mAppWidgetId (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetConfigure.java62 private int mAppWidgetId = -1; field in WidgetConfigure
68 mAppWidgetId = getIntent().getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); in onCreate()
70 if (mAppWidgetId == -1) { in onCreate()
96 RemoteViews views = PhotoAppWidgetProvider.buildWidget(this, mAppWidgetId, entry); in updateWidgetAndFinish()
97 manager.updateAppWidget(mAppWidgetId, views); in updateWidgetAndFinish()
99 AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId)); in updateWidgetAndFinish()
107 AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId)); in onActivityResult()
130 helper.setPhoto(mAppWidgetId, mPickedItem, bitmap); in setPhotoWidget()
131 updateWidgetAndFinish(helper.getEntry(mAppWidgetId)); in setPhotoWidget()
180 helper.setWidget(mAppWidgetId, in setChoosenAlbum()
[all …]
DWidgetService.java55 private final int mAppWidgetId; field in WidgetService.PhotoRVFactory
64 mAppWidgetId = id; in PhotoRVFactory()
79 mAppWidgetId, R.id.appwidget_stack_view); in onCreate()
140 mAppWidgetId, R.id.appwidget_stack_view); in onContentDirty()
/packages/apps/Gallery/src/com/android/camera/
DPhotoAppWidgetConfigure.java35 int mAppWidgetId = -1; field in PhotoAppWidgetConfigure
44 mAppWidgetId = getIntent().getIntExtra( in onCreate()
46 if (mAppWidgetId == -1) { in onCreate()
76 if (resultCode == RESULT_OK && mAppWidgetId != -1) { in onActivityResult()
81 if (helper.setPhoto(mAppWidgetId, bitmap)) { in onActivityResult()
86 mAppWidgetId, helper); in onActivityResult()
89 appWidgetManager.updateAppWidget(new int[] {mAppWidgetId}, in onActivityResult()
99 resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId); in onActivityResult()
/packages/apps/UnifiedEmail/src/com/android/mail/widget/
DWidgetService.java230 private final int mAppWidgetId; field in WidgetService.MailFactory
252 mAppWidgetId = intent.getIntExtra( in MailFactory()
277 BaseWidgetProvider.updateWidget(mContext, mAppWidgetId, mAccount, mFolderType, in MailFactory()
291 saveWidgetInformation(mContext, mAppWidgetId, mAccount, mFolderUri.toString()); in onCreate()
295 if (!mService.isWidgetConfigured(mContext, mAppWidgetId, mAccount)) { in onCreate()
296 BaseWidgetProvider.updateWidget(mContext, mAppWidgetId, mAccount, mFolderType, in onCreate()
549 if (!mService.isWidgetConfigured(mContext, mAppWidgetId, mAccount)) { in onLoadComplete()
550 BaseWidgetProvider.updateWidget(mContext, mAppWidgetId, mAccount, mFolderType, in onLoadComplete()
558 BaseWidgetProvider.updateWidget(mContext, mAppWidgetId, mAccount, mFolderType, in onLoadComplete()
575 mService.configureValidAccountWidget(mContext, remoteViews, mAppWidgetId, in onLoadComplete()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DAllowBindAppWidgetActivity.java45 private int mAppWidgetId; field in AllowBindAppWidgetActivity
58 if (mAppWidgetId != -1 && mComponentName != null && mCallingPackage != null) { in onClick()
60 final boolean bound = mAppWidgetManager.bindAppWidgetIdIfAllowed(mAppWidgetId, in onClick()
64 result.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId); in onClick()
69 + mAppWidgetId + " and component " + mComponentName); in onClick()
99 mAppWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); in onCreate()
114 mAppWidgetId = -1; in onCreate()
DAppWidgetPickActivity.java57 private int mAppWidgetId; field in AppWidgetPickActivity
77 mAppWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, in onCreate()
161 mAppWidgetManager.bindAppWidgetId(mAppWidgetId, intent.getComponent(), options); in onClick()
185 result.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId); in setResultData()
/packages/apps/Settings/src/com/android/settings/
DAllowBindAppWidgetActivity.java45 private int mAppWidgetId; field in AllowBindAppWidgetActivity
58 if (mAppWidgetId != -1 && mComponentName != null && mCallingPackage != null) { in onClick()
60 final boolean bound = mAppWidgetManager.bindAppWidgetIdIfAllowed(mAppWidgetId, in onClick()
64 result.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId); in onClick()
69 + mAppWidgetId + " and component " + mComponentName); in onClick()
99 mAppWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); in onCreate()
114 mAppWidgetId = -1; in onCreate()
DAppWidgetPickActivity.java57 private int mAppWidgetId; field in AppWidgetPickActivity
77 mAppWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, in onCreate()
161 mAppWidgetManager.bindAppWidgetId(mAppWidgetId, intent.getComponent(), options); in onClick()
185 result.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId); in setResultData()
/packages/apps/Messaging/src/com/android/messaging/ui/
DWidgetPickConversationActivity.java34 private int mAppWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID; field in WidgetPickConversationActivity
49 mAppWidgetId = extras.getInt( in onCreate()
54 if (mAppWidgetId == AppWidgetManager.INVALID_APPWIDGET_ID) { in onCreate()
77 saveConversationidPref(mAppWidgetId, conversationListItemData.getConversationId()); in onConversationClick()
80 WidgetConversationProvider.rebuildWidget(this, mAppWidgetId); in onConversationClick()
84 resultValue.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId); in onConversationClick()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DRequestPinItemTest.java66 private int mAppWidgetId; field in RequestPinItemTest
82 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetNoConfig()
95 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetNoConfig_customPreview()
104 ((LauncherAppWidgetInfo) info).appWidgetId == mAppWidgetId && in testPinWidgetWithConfig()
167 mAppWidgetId = result.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, -1); in runTest()
169 assertNotSame(-1, mAppWidgetId); in runTest()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DMailboxSelectionActivity.java71 private int mAppWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID; field in MailboxSelectionActivity
99 mAppWidgetId = getIntent().getIntExtra( in onCreate()
101 if (mAppWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID) { in onCreate()
125 if (mAppWidgetId != AppWidgetManager.INVALID_APPWIDGET_ID) { in onSaveInstanceState()
126 icicle.putInt(WIDGET_ID_KEY, mAppWidgetId); in onSaveInstanceState()
179 mAppWidgetId = icicle.getInt(WIDGET_ID_KEY); in restoreState()
283 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, mAppWidgetId); in selectAccount()
DFolderSelectionActivity.java68 private int mAppWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID; field in FolderSelectionActivity
173 mAppWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, in onCreate()
175 if (mAppWidgetId == AppWidgetManager.INVALID_APPWIDGET_ID) { in onCreate()
253 createWidget(mAppWidgetId, mAccount, mSelectedFolder); in onClick()
302 createWidget(mAppWidgetId, mAccount, mSelectedFolder); in onFolderChanged()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetFactory.java57 protected final int mAppWidgetId; field in BaseWidgetFactory
66 mAppWidgetId = intent.getIntExtra( in BaseWidgetFactory()
70 LogUtil.v(TAG, "BaseWidgetFactory intent: " + intent + "widget id: " + mAppWidgetId); in BaseWidgetFactory()
213 mAppWidgetManager.partiallyUpdateAppWidget(mAppWidgetId, remoteViews);
DWidgetConversationService.java82 LogUtil.v(TAG, "BugleFactory intent: " + intent + "widget id: " + mAppWidgetId); in WidgetConversationFactory()
97 if (!WidgetConversationProvider.isWidgetConfigured(mAppWidgetId)) { in onCreate()
98 WidgetConversationProvider.rebuildWidget(mContext, mAppWidgetId); in onCreate()
220 final Bundle options = mAppWidgetManager.getAppWidgetOptions(mAppWidgetId); in getViewAt()
DWidgetConversationListService.java136 final Bundle options = mAppWidgetManager.getAppWidgetOptions(mAppWidgetId); in getViewAt()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchWidgetProvider.java145 private final int mAppWidgetId; field in SearchWidgetProvider.SearchWidgetState
150 mAppWidgetId = appWidgetId; in SearchWidgetState()
162 if (DBG) Log.d(TAG, "Updating appwidget " + mAppWidgetId); in updateWidget()
176 appWidgetMgr.updateAppWidget(mAppWidgetId, views); in updateWidget()
/packages/apps/Calendar/src/com/android/calendar/widget/
DCalendarAppWidgetService.java133 private int mAppWidgetId; field in CalendarAppWidgetService.CalendarFactory
170 mAppWidgetId = intent.getIntExtra(
383 mLoader.registerListener(mAppWidgetId, this);
545 if (mAppWidgetId == -1) {
551 widgetManager.notifyAppWidgetViewDataChanged(mAppWidgetId, R.id.events_list);
584 mAppWidgetId = -1;