Lines Matching refs:feature
72 // They must be consecutive. To add a new feature, add a new FEATURE_XXX
87 public void addFeature(int feature) {
88 mFeatures |= (1 << feature);
91 public void removeFeature(int feature) {
92 mFeatures &= ~(1 << feature);
95 public boolean hasFeature(int feature) {
96 return (mFeatures & (1 << feature)) != 0;
111 * Gets the ID of the nth (zero-based) feature supported by this site.
112 * The return value is a feature ID - one of the FEATURE_XXX values.
113 * This is required to determine which feature is displayed at a given
190 * Adds the specified feature to the site corresponding to supplied
193 private void addFeatureToSite(Map sites, String origin, int feature) {
201 site.addFeature(feature);