Lines Matching full:site
65 class Site {
71 // These constants provide the set of features that a site may support
80 public Site(String origin) {
100 * Gets the number of features supported by this site.
111 * Gets the ID of the nth (zero-based) feature supported by this site.
114 * position in the list of features for this site. This is used both
158 class SiteAdapter extends ArrayAdapter<Site>
168 private Site mCurrentSite;
190 * Adds the specified feature to the site corresponding to supplied
191 * origin in the map. Creates the site if it does not already exist.
194 Site site = null;
196 site = (Site) sites.get(origin);
198 site = new Site(origin);
199 sites.put(origin, site);
201 site.addFeature(feature);
216 Map sites = new HashMap<String, Site>();
220 addFeatureToSite(sites, iter.next(), Site.FEATURE_WEB_STORAGE);
234 addFeatureToSite(sites, iter.next(), Site.FEATURE_GEOLOCATION);
246 HashMap hosts = new HashMap<String, Set<Site> >();
251 Site site = (Site) sites.get(origin);
257 hostSites = new HashSet<Site>();
260 hostSites.add(site);
284 Iterator<Site> sitesIter = matchingSites.iterator();
286 Site site = sitesIter.next();
293 if (url.equals(site.getOrigin()) ||
294 (new String(site.getOrigin()+"/")).equals(url)) {
295 site.setTitle(title);
298 site.setIcon(bmp);
312 // We can now simply populate our array with Site instances
317 Site site = (Site) sites.get(origin);
318 add(site);
350 * site's settings, we want to go back to the main
410 Site site = getItem(position);
411 title.setText(site.getPrettyTitle());
412 String subtitleText = site.getPrettyOrigin();
428 Bitmap bmp = site.getIcon();
433 // We set the site as the view's tag,
435 view.setTag(site);
437 String origin = site.getOrigin();
438 if (site.hasFeature(Site.FEATURE_WEB_STORAGE)) {
449 if (site.hasFeature(Site.FEATURE_GEOLOCATION)) {
471 case Site.FEATURE_WEB_STORAGE:
484 case Site.FEATURE_GEOLOCATION:
513 case Site.FEATURE_WEB_STORAGE:
521 // If this site has no more features, then go back to the
523 mCurrentSite.removeFeature(Site.FEATURE_WEB_STORAGE);
534 case Site.FEATURE_GEOLOCATION:
542 mCurrentSite.removeFeature(Site.FEATURE_GEOLOCATION);
555 mCurrentSite = (Site) view.getTag();
560 public Site currentSite() {
599 // If we are not on the sites list (rather on the page for a specific site) or