Searched refs:appWidgetId (Results 1 – 5 of 5) sorted by relevance
/development/apps/WidgetPreview/src/com/android/widgetpreview/ |
D | WidgetPreviewActivity.java | 113 int appWidgetId = AppWidgetManager.INVALID_APPWIDGET_ID; in onActivityResult() local 115 appWidgetId = data.getExtras().getInt(AppWidgetManager.EXTRA_APPWIDGET_ID); in onActivityResult() 119 setAppWidget(appWidgetId); in onActivityResult() 121 mAppWidgetHost.deleteAppWidgetId(appWidgetId); in onActivityResult() 129 int appWidgetId = data.getExtras().getInt( in onActivityResult() local 132 finishSetAppWidget(appWidgetId); in onActivityResult() 134 mAppWidgetHost.deleteAppWidgetId(appWidgetId); in onActivityResult() 140 private void setAppWidget(int appWidgetId) { in setAppWidget() argument 147 AppWidgetManager.getInstance(getBaseContext()).getAppWidgetInfo(appWidgetId); in setAppWidget() 152 configureIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in setAppWidget() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/appwidget/ |
D | ExampleAppWidgetProvider.java | 60 int appWidgetId = appWidgetIds[i]; in onUpdate() local 61 String titlePrefix = ExampleAppWidgetConfigure.loadTitlePref(context, appWidgetId); in onUpdate() 62 updateAppWidget(context, appWidgetManager, appWidgetId, titlePrefix); in onUpdate() 103 int appWidgetId, String titlePrefix) { in updateAppWidget() argument 104 Log.d(TAG, "updateAppWidget appWidgetId=" + appWidgetId + " titlePrefix=" + titlePrefix); in updateAppWidget() 108 ExampleAppWidgetConfigure.loadTitlePref(context, appWidgetId), in updateAppWidget() 118 appWidgetManager.updateAppWidget(appWidgetId, views); in updateAppWidget()
|
D | ExampleAppWidgetConfigure.java | 107 static void saveTitlePref(Context context, int appWidgetId, String text) { in saveTitlePref() argument 109 prefs.putString(PREF_PREFIX_KEY + appWidgetId, text); in saveTitlePref() 115 static String loadTitlePref(Context context, int appWidgetId) { in loadTitlePref() argument 117 String prefix = prefs.getString(PREF_PREFIX_KEY + appWidgetId, null); in loadTitlePref() 125 static void deleteTitlePref(Context context, int appWidgetId) { in deleteTitlePref() argument
|
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/ |
D | WeatherWidgetProvider.java | 138 final int appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, in onReceive() local 142 final int appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, in onReceive() local 152 private RemoteViews buildLayout(Context context, int appWidgetId, boolean largeLayout) { in buildLayout() argument 158 intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in buildLayout() 161 rv.setRemoteAdapter(appWidgetId, R.id.weather_list, intent); in buildLayout() 172 onClickIntent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId); in buildLayout() 218 int appWidgetId, Bundle newOptions) { in onAppWidgetOptionsChanged() argument 231 layout = buildLayout(context, appWidgetId, mIsLargeLayout); in onAppWidgetOptionsChanged() 232 appWidgetManager.updateAppWidget(appWidgetId, layout); in onAppWidgetOptionsChanged()
|
/development/samples/StackWidget/src/com/example/android/stackwidget/ |
D | StackWidgetProvider.java | 51 int appWidgetId = intent.getIntExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, in onReceive() local
|