Home | History | Annotate | Download | only in quicksearchbox

Lines Matching full:context

30 import android.content.Context;
63 public void onReceive(Context context, Intent intent) {
69 updateSearchWidgets(context);
75 private static SearchWidgetState[] getSearchWidgetStates(Context context) {
76 AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(context);
77 int[] appWidgetIds = appWidgetManager.getAppWidgetIds(myComponentName(context));
80 states[i] = getSearchWidgetState(context, appWidgetIds[i]);
89 public static void updateSearchWidgets(Context context) {
91 SearchWidgetState[] states = getSearchWidgetStates(context);
94 state.updateWidget(context, AppWidgetManager.getInstance(context));
101 private static ComponentName myComponentName(Context context) {
102 String pkg = context.getPackageName();
107 private static Intent createQsbActivityIntent(Context context, String action,
110 qsbIntent.setPackage(context.getPackageName());
118 private static SearchWidgetState getSearchWidgetState(Context context, int appWidgetId) {
127 context,
133 Intent voiceSearchIntent = getVoiceSearchIntent(context, widgetAppData);
139 private static Intent getVoiceSearchIntent(Context context, Bundle widgetAppData) {
140 VoiceSearch voiceSearch = QsbApplication.get(context).getVoiceSearch();
161 public void updateWidget(Context context,AppWidgetManager appWidgetMgr) {
163 RemoteViews views = new RemoteViews(context.getPackageName(), R.layout.search_widget);
165 setOnClickActivityIntent(context, views, R.id.search_widget_text,
169 setOnClickActivityIntent(context, views, R.id.search_widget_voice_btn,
179 private void setOnClickActivityIntent(Context context, RemoteViews views, int viewId,
181 PendingIntent pendingIntent = PendingIntent.getActivity(context, 0, intent, 0);