• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

packages/apps/Settings


コミットメタ情報

リビジョン3de30ed9d2e49dd7fb4b02815cd78908245d1654 (tree)
日時2014-03-04 17:23:43
作者Lukasz Anaczkowski <lukasz.anaczkowski@inte...>
コミッターChih-Wei Huang

ログメッセージ

Add information about OpenGL driver version

Change-Id: Icf107642b6d84a85c90c7411d6e42e9b6c6ef739
Signed-off-by: Lukasz Anaczkowski <lukasz.anaczkowski@intel.com>

変更サマリ

差分

--- a/res/values/strings.xml
+++ b/res/values/strings.xml
@@ -1964,6 +1964,7 @@
19641964 <string name="baseband_version">Baseband version</string>
19651965 <!-- About phone screen, setting option name-->
19661966 <string name="kernel_version">Kernel version</string>
1967+ <string name="opengl_version">OpenGL driver version</string>
19671968 <!-- About phone screen, setting option name-->
19681969 <string name="build_number">Build number</string>
19691970 <!-- About phone screen, setting option name-->
--- a/res/xml/device_info_settings.xml
+++ b/res/xml/device_info_settings.xml
@@ -131,6 +131,12 @@
131131 android:title="@string/kernel_version"
132132 android:summary="@string/device_info_default"/>
133133
134+ <!-- OpenGL Version -->
135+ <Preference android:key="opengl_version"
136+ style="?android:preferenceInformationStyle"
137+ android:title="@string/opengl_version"
138+ android:summary="@string/device_info_default"/>
139+
134140 <!-- Detailed build version -->
135141 <Preference android:key="build_number"
136142 style="?android:preferenceInformationStyle"
--- a/src/com/android/settings/DeviceInfoSettings.java
+++ b/src/com/android/settings/DeviceInfoSettings.java
@@ -30,6 +30,7 @@ import android.preference.PreferenceGroup;
3030 import android.preference.PreferenceScreen;
3131 import android.util.Log;
3232 import android.widget.Toast;
33+import android.opengl.GLES20;
3334
3435 import java.io.BufferedReader;
3536 import java.io.FileReader;
@@ -55,6 +56,7 @@ public class DeviceInfoSettings extends RestrictedSettingsFragment {
5556 private static final String PROPERTY_URL_SAFETYLEGAL = "ro.url.safetylegal";
5657 private static final String PROPERTY_SELINUX_STATUS = "ro.build.selinux";
5758 private static final String KEY_KERNEL_VERSION = "kernel_version";
59+ private static final String KEY_OPENGL_VERSION = "opengl_version";
5860 private static final String KEY_BUILD_NUMBER = "build_number";
5961 private static final String KEY_DEVICE_MODEL = "device_model";
6062 private static final String KEY_SELINUX_STATUS = "selinux_status";
@@ -85,6 +87,10 @@ public class DeviceInfoSettings extends RestrictedSettingsFragment {
8587 // This will keep us from entering developer mode without a PIN.
8688 protectByRestrictions(KEY_BUILD_NUMBER);
8789
90+ String opengl_version = "GL Vendor: " + GLES20.glGetString(GLES20.GL_VENDOR) + "\n" +
91+ "GL Renderer: " + GLES20.glGetString(GLES20.GL_RENDERER) + "\n" +
92+ "GL Version: " + GLES20.glGetString(GLES20.GL_VERSION);
93+
8894 setStringSummary(KEY_FIRMWARE_VERSION, Build.VERSION.RELEASE);
8995 findPreference(KEY_FIRMWARE_VERSION).setEnabled(true);
9096 setValueSummary(KEY_BASEBAND_VERSION, "gsm.version.baseband");
@@ -94,6 +100,7 @@ public class DeviceInfoSettings extends RestrictedSettingsFragment {
94100 setStringSummary(KEY_BUILD_NUMBER, Build.DISPLAY);
95101 findPreference(KEY_BUILD_NUMBER).setEnabled(true);
96102 findPreference(KEY_KERNEL_VERSION).setSummary(getFormattedKernelVersion());
103+ findPreference(KEY_OPENGL_VERSION).setSummary(opengl_version);
97104 setStringSummary(KEY_DEVICE_MANUFACTURER, Build.MANUFACTURER);
98105
99106 if (!SELinux.isSELinuxEnabled()) {