Lines Matching defs:widgets

132     // Bump if the stored widgets need to be upgraded.
227 // of the widgets when the locale changes.
511 ArrayList<Widget> instances = host.widgets;
579 host.widgets.add(widget);
608 // sure the caller can only access widgets it hosts or provides.
696 // sure the caller can only access widgets it hosts or provides.
758 // A special permission or white listing is required to bind widgets.
765 // sure the caller can only access widgets it hosts or provides.
816 provider.widgets.add(widget);
818 final int widgetCount = provider.widgets.size();
831 registerForBroadcastsLocked(provider, getWidgetIds(provider.widgets));
863 return getWidgetIds(provider.widgets);
890 return getWidgetIds(host.widgets);
913 // sure the caller can only access widgets it hosts or provides.
998 // sure the caller can only access widgets it hosts or provides.
1097 // sure the caller can only access widgets it hosts or provides.
1124 // sure the caller can only access widgets it hosts or provides.
1151 // sure the caller can only access widgets it hosts or provides.
1184 // sure the caller can only access widgets it hosts or provides.
1240 // sure the caller can only access widgets it hosts or provides.
1275 ArrayList<Widget> instances = provider.widgets;
1352 // sure the caller can only access widgets it hosts or provides.
1398 final int N = host.widgets.size();
1400 Widget widget = host.widgets.remove(i);
1414 host.widgets.remove(widget);
1421 provider.widgets.remove(widget);
1426 if (provider.widgets.isEmpty()) {
1470 // Check if we need to destroy any services (if no other app widgets are
1795 if (host.widgets.size() == 0 && host.callbacks == null) {
1874 int N = provider.widgets.size();
1876 Widget widget = provider.widgets.remove(i);
1880 widget.host.widgets.remove(widget);
1953 private static int[] getWidgetIds(ArrayList<Widget> widgets) {
1954 int instancesSize = widgets.size();
1957 appWidgetIds[i] = widgets.get(i).appWidgetId;
1988 pw.print(" widgets.size="); pw.print(host.widgets.size());
2248 if (provider.widgets.size() > 0) {
2250 int[] appWidgetIds = getWidgetIds(provider.widgets);
2260 // We can bind the widgets to host and providers only after
2290 Slog.w(TAG, "Failed to read state, clearing widgets and hosts.");
2295 mProviders.get(i).widgets.clear();
2319 widget.provider.widgets.add(widget);
2320 widget.host.widgets.add(widget);
2364 * that have bound widgets.
2379 * If there are other widgets with the same package, leaves it in the cache, otherwise it
2412 * Clears all widgets and associated cache of packages with bound widgets.
2508 if (provider.widgets.size() > 0) {
2526 // Save only widgets hosted by the user.
2695 // We can match widgets with hosts and providers only after hosts
2771 // Remove widgets that have both host and provider in the user.
2780 // If both host and provider are in the user, just drop the widgets
2785 widget.host.widgets.remove(widget);
2788 widget.provider.widgets.remove(widget);
2799 crossProfileWidgetsChanged |= !host.widgets.isEmpty();
2809 crossProfileWidgetsChanged |= !provider.widgets.isEmpty();
2891 final int M = provider.widgets.size();
2893 int[] appWidgetIds = getWidgetIds(provider.widgets);
2902 Widget widget = provider.widgets.get(j);
3021 // the group parent as only the parent can add widgets from the
3332 ArrayList<Widget> widgets = new ArrayList<>();
3349 final int N = widgets.size();
3351 Widget widget = widgets.get(i);
3417 ArrayList<Widget> widgets = new ArrayList<>();
3432 final int N = widgets.size();
3434 Provider provider = widgets.get(i).provider;
3614 // Skip cross-user widgets.
3636 // Preflight: if this app neither hosts nor provides any live widgets
3658 if (!provider.widgets.isEmpty()
3672 if (!host.widgets.isEmpty()
3834 id.host.widgets.add(id);
3837 id.provider.widgets.add(id);
3999 // Skip cross-user widgets.
4005 // this package is hosting widgets, so it knows widget IDs.
4011 // someone is hosting this app's widgets, so it knows widget IDs.
4102 host.widgets.remove(widget);
4103 provider.widgets.remove(widget);
4117 // Backup only widgets hosted or provided by the owner profile.