summaryrefslogtreecommitdiffstats
path: root/apps/Development/src/com
diff options
context:
space:
mode:
authorSuchi Amalapurapu <asuchitra@google.com>2009-06-05 14:33:17 -0700
committerSuchi Amalapurapu <asuchitra@google.com>2009-06-08 10:02:52 -0700
commit28004750d09ec5ba2b1ccc198c8f12e79d1e79a8 (patch)
treee6e8ce9d3b3f7653bc8932a0e311f84893e4f45b /apps/Development/src/com
parent5589930805c71791ecdd3c4847bd18aab5eed937 (diff)
downloadandroid_development-28004750d09ec5ba2b1ccc198c8f12e79d1e79a8.tar.gz
android_development-28004750d09ec5ba2b1ccc198c8f12e79d1e79a8.tar.bz2
android_development-28004750d09ec5ba2b1ccc198c8f12e79d1e79a8.zip
Add new text display attribute for gles version number
Diffstat (limited to 'apps/Development/src/com')
-rw-r--r--apps/Development/src/com/android/development/AppHwPref.java39
1 files changed, 22 insertions, 17 deletions
diff --git a/apps/Development/src/com/android/development/AppHwPref.java b/apps/Development/src/com/android/development/AppHwPref.java
index bf0f84fa3..79add80fd 100644
--- a/apps/Development/src/com/android/development/AppHwPref.java
+++ b/apps/Development/src/com/android/development/AppHwPref.java
@@ -54,6 +54,7 @@ public class AppHwPref extends Activity {
private static final int TOUCHSCREEN = BASE + 1;
private static final int KEYBOARD_TYPE = BASE + 2;
private static final int NAVIGATION = BASE + 3;
+ private static final int GLES_VERSION = BASE + 4;
@Override
protected void onCreate(Bundle icicle) {
@@ -79,31 +80,32 @@ public class AppHwPref extends Activity {
setContentView(R.layout.application_hw_pref);
if(appHwPref != null) {
- displayTextView(R.id.attr_package, pInfo.applicationInfo.loadLabel(mPm));
- displayTextView(R.id.attr_touchscreen, appHwPref, TOUCHSCREEN);
- displayTextView(R.id.attr_input_method, appHwPref, KEYBOARD_TYPE);
- displayTextView(R.id.attr_navigation, appHwPref, NAVIGATION);
- displayFlag(R.id.attr_hard_keyboard, ConfigurationInfo.INPUT_FEATURE_HARD_KEYBOARD, appHwPref);
- displayFlag(R.id.attr_five_way_nav, ConfigurationInfo.INPUT_FEATURE_FIVE_WAY_NAV, appHwPref);
+ displayTextView(R.id.attr_package, pInfo.applicationInfo.loadLabel(mPm));
+ displayTextView(R.id.attr_touchscreen, appHwPref, TOUCHSCREEN);
+ displayTextView(R.id.attr_input_method, appHwPref, KEYBOARD_TYPE);
+ displayTextView(R.id.attr_navigation, appHwPref, NAVIGATION);
+ displayFlag(R.id.attr_hard_keyboard, ConfigurationInfo.INPUT_FEATURE_HARD_KEYBOARD, appHwPref);
+ displayFlag(R.id.attr_five_way_nav, ConfigurationInfo.INPUT_FEATURE_FIVE_WAY_NAV, appHwPref);
+ displayTextView(R.id.attr_gles_version, appHwPref, GLES_VERSION);
}
}
void displayFlag(int viewId, int flagMask, ConfigurationInfo[] appHwPref) {
- if(appHwPref == null) {
- return;
- }
- boolean flag = false;
- for (int i = 0; i < appHwPref.length; i++) {
- ConfigurationInfo pref = appHwPref[i];
- if((pref.reqInputFeatures & flagMask) != 0) {
- flag = true;
- break;
- }
+ if(appHwPref == null) {
+ return;
+ }
+ boolean flag = false;
+ for (int i = 0; i < appHwPref.length; i++) {
+ ConfigurationInfo pref = appHwPref[i];
+ if((pref.reqInputFeatures & flagMask) != 0) {
+ flag = true;
+ break;
+ }
}
if(flag) {
displayTextView(viewId, "true");
} else {
- displayTextView(viewId, "false");
+ displayTextView(viewId, "false");
}
}
@@ -140,6 +142,9 @@ public class AppHwPref extends Activity {
case NAVIGATION:
str = getNavigationStr(config[i]);
break;
+ case GLES_VERSION:
+ str = config[i].getGlEsVersion();
+ break;
}
if(str != null) {
list.add(str);