Home | History | Annotate | Download | only in features

Lines Matching defs:Feature

48      * Simple storage class for data about an Android feature.
50 static class Feature {
52 * The name of the feature. Should be one of the PackageManager.FEATURE*
74 public Feature(String name, boolean required) {
84 } else if (o == null || !(o instanceof Feature)) {
87 Feature feature = (Feature) o;
88 return name.equals(feature.name);
98 public static final Feature[] ALL_ECLAIR_FEATURES = {
99 new Feature(PackageManager.FEATURE_CAMERA, true),
100 new Feature(PackageManager.FEATURE_CAMERA_AUTOFOCUS, false),
101 new Feature(PackageManager.FEATURE_CAMERA_FLASH, false),
102 new Feature(PackageManager.FEATURE_LIVE_WALLPAPER, false),
103 new Feature(PackageManager.FEATURE_SENSOR_LIGHT, false),
104 new Feature(PackageManager.FEATURE_SENSOR_PROXIMITY, false),
105 new Feature(PackageManager.FEATURE_TELEPHONY, false),
106 new Feature(PackageManager.FEATURE_TELEPHONY_CDMA, false),
107 new Feature(PackageManager.FEATURE_TELEPHONY_GSM, false),
110 public static final Feature[] ALL_FROYO_FEATURES = {
111 new Feature("android.hardware.bluetooth", true),
112 new Feature("android.hardware.location", true),
113 new Feature("android.hardware.location.gps", true),
114 new Feature("android.hardware.location.network", true),
115 new Feature("android.hardware.microphone", true),
116 new Feature("android.hardware.sensor.accelerometer", true),
117 new Feature("android.hardware.sensor.compass", true),
118 new Feature("android.hardware.touchscreen", true),
119 new Feature("android.hardware.touchscreen.multitouch", false),
120 new Feature("android.hardware.touchscreen.multitouch.distinct", false),
121 new Feature("android.hardware.wifi", false),
124 public static final Feature[] ALL_GINGERBREAD_FEATURES = {
126 new Feature("android.hardware.bluetooth", false),
127 new Feature("android.hardware.camera", false),
128 new Feature("android.hardware.location.gps", false),
129 new Feature("android.hardware.microphone", false),
130 new Feature("android.hardware.sensor.accelerometer", false),
131 new Feature("android.hardware.sensor.compass", false),
134 new Feature("android.hardware.audio.low_latency", false),
135 new Feature("android.hardware.camera.front", false),
136 new Feature("android.hardware.nfc", false),
137 new Feature("android.hardware.sensor.barometer", false),
138 new Feature("android.hardware.sensor.gyroscope", false),
139 new Feature("android.hardware.touchscreen.multitouch.jazzhand", false),
140 new Feature("android.software.sip", false),
141 new Feature("android.software.sip.voip", false),
144 public static final Feature[] ALL_GINGERBREAD_MR1_FEATURES = {
145 new Feature("android.hardware.usb.accessory", false),
148 public static final Feature[] ALL_HONEYCOMB_FEATURES = {
150 new Feature("android.hardware.touchscreen", false),
152 new Feature("android.hardware.faketouch", true),
155 public static final Feature[] ALL_HONEYCOMB_MR1_FEATURES = {
156 new Feature("android.hardware.usb.host", false),
157 new Feature("android.hardware.usb.accessory", false),
160 public static final Feature[] ALL_HONEYCOMB_MR2_FEATURES = {
161 new Feature("android.hardware.faketouch.multitouch.distinct", false),
162 new Feature("android.hardware.faketouch.multitouch.jazzhand", false),
163 new Feature("android.hardware.screen.landscape", false),
164 new Feature("android.hardware.screen.portrait", false),
167 public static final Feature[] ALL_ICE_CREAM_SANDWICH_FEATURES = {
168 new Feature(PackageManager.FEATURE_WIFI_DIRECT, false),
171 public static final Feature[] ALL_JELLY_BEAN_FEATURES = {
173 new Feature(PackageManager.FEATURE_FAKETOUCH, false),
175 //new feature in JB
176 new Feature(PackageManager.FEATURE_TELEVISION, false),
179 public static final Feature[] ALL_JELLY_BEAN_MR2_FEATURES = {
180 new Feature("android.software.app_widgets", false),
181 new Feature("android.software.input_methods", false),
182 new Feature("android.software.home_screen", false),
183 new Feature("android.hardware.bluetooth_le", false),
184 new Feature("android.hardware.camera.any", false),
187 public static final Feature[] ALL_KITKAT_FEATURES = {
188 new Feature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION, false),
189 new Feature(PackageManager.FEATURE_CONSUMER_IR, false),
190 new Feature(PackageManager.FEATURE_DEVICE_ADMIN, false),
191 new Feature(PackageManager.FEATURE_SENSOR_STEP_COUNTER, false),
192 new Feature(PackageManager.FEATURE_SENSOR_STEP_DETECTOR, false),
195 public static final Feature[] ALL_KITKAT_WATCH_FEATURES = {
196 new Feature(PackageManager.FEATURE_SENSOR_HEART_RATE, false),
197 new Feature(PackageManager.FEATURE_BACKUP, false),
198 new Feature(PackageManager.FEATURE_PRINTING, false),
199 new Feature(PackageManager.FEATURE_WATCH, false),
200 new Feature(PackageManager.FEATURE_WEBVIEW, false),
201 new Feature(PackageManager.FEATURE_CAMERA_EXTERNAL, false),
204 public static final Feature[] ALL_LOLLIPOP_FEATURES = {
206 new Feature(PackageManager.FEATURE_AUDIO_OUTPUT, false),
207 new Feature(PackageManager.FEATURE_CAMERA_CAPABILITY_MANUAL_POST_PROCESSING, false),
208 new Feature(PackageManager.FEATURE_CAMERA_CAPABILITY_MANUAL_SENSOR, false),
209 new Feature(PackageManager.FEATURE_CAMERA_CAPABILITY_RAW, false),
210 new Feature(PackageManager.FEATURE_CAMERA_LEVEL_FULL, false),
211 new Feature(PackageManager.FEATURE_CONNECTION_SERVICE, false),
212 new Feature(PackageManager.FEATURE_GAMEPAD, false),
213 new Feature(PackageManager.FEATURE_LEANBACK, false),
214 new Feature(PackageManager.FEATURE_LIVE_TV, false),
215 new Feature(PackageManager.FEATURE_MANAGED_USERS, false),
216 new Feature(PackageManager.FEATURE_OPENGLES_EXTENSION_PACK, false),
217 new Feature(PackageManager.FEATURE_SECURELY_REMOVES_USERS, false),
218 new Feature(PackageManager.FEATURE_SENSOR_AMBIENT_TEMPERATURE, false),
219 new Feature(PackageManager.FEATURE_SENSOR_HEART_RATE_ECG, false),
220 new Feature(PackageManager.FEATURE_SENSOR_RELATIVE_HUMIDITY, false),
221 new Feature(PackageManager.FEATURE_VERIFIED_BOOT, false),
224 new Feature(PackageManager.FEATURE_LOCATION_NETWORK, false),
227 new Feature("android.hardware.ethernet", false),
228 new Feature("android.hardware.hdmi.cec", false),
229 new Feature("android.software.leanback_only", false),
230 new Feature("android.software.voice_recognizers", false),
233 public static final Feature[] ALL_MNC_FEATURES = {
234 new Feature(PackageManager.FEATURE_MIDI, false),
235 new Feature(PackageManager.FEATURE_AUDIO_PRO, false),
236 new Feature(PackageManager.FEATURE_AUTOMOTIVE, false),
237 new Feature(PackageManager.FEATURE_HIFI_SENSORS, false),
238 new Feature(PackageManager.FEATURE_FINGERPRINT, false),
241 public static final Feature[] ALL_NYC_FEATURES = {
242 new Feature(PackageManager.FEATURE_VR_MODE, false),
243 new Feature(PackageManager.FEATURE_VR_MODE_HIGH_PERFORMANCE, false),
244 new Feature(PackageManager.FEATURE_VULKAN_HARDWARE_VERSION, false),
245 new Feature(PackageManager.FEATURE_VULKAN_HARDWARE_LEVEL, false),
246 new Feature(PackageManager.FEATURE_NFC_HOST_CARD_EMULATION_NFCF, false),
247 new Feature(PackageManager.FEATURE_PICTURE_IN_PICTURE, false),
248 new Feature(PackageManager.FEATURE_FREEFORM_WINDOW_MANAGEMENT, false),
250 new Feature("android.software.file_based_encryption", false),
253 public static final Feature[] ALL_O_FEATURES = {
254 new Feature(PackageManager.FEATURE_VULKAN_HARDWARE_COMPUTE, false),
256 new Feature("android.hardware.telephony.carrierlock", false),
257 new Feature(PackageManager.FEATURE_WIFI_AWARE, false),
258 new Feature(PackageManager.FEATURE_EMBEDDED, false),
259 new Feature(PackageManager.FEATURE_COMPANION_DEVICE_SETUP, false),
260 new Feature(PackageManager.FEATURE_ACTIVITIES_ON_SECONDARY_DISPLAYS, false),
261 new Feature(PackageManager.FEATURE_VR_HEADTRACKING, false),
263 new Feature("android.software.cts", false),
264 new Feature(PackageManager.FEATURE_WIFI_AWARE, false),
294 Set<Feature> features = new LinkedHashSet<Feature>();
346 for (Feature f : features) {
366 row.put("feature", f.name);
371 for (String feature : actualFeatures.keySet()) {
372 if (feature == null || "".equals(feature))
376 row.put("feature", feature);
377 if (feature.startsWith("android")) { // intentionally not "android."
400 return ((String) left.get("feature")).compareTo((String) right.get("feature"));
411 "feature", "icon"