aboutsummaryrefslogtreecommitdiff
path: root/android/res
diff options
context:
space:
mode:
Diffstat (limited to 'android/res')
-rw-r--r--android/res/drawable/menu_about.pngbin0 -> 1983 bytes
-rw-r--r--android/res/drawable/menu_delete.pngbin0 -> 1413 bytes
-rw-r--r--android/res/drawable/menu_load.pngbin0 -> 1094 bytes
-rw-r--r--android/res/drawable/menu_results.pngbin0 -> 1369 bytes
-rw-r--r--android/res/drawable/menu_save.pngbin0 -> 1248 bytes
-rw-r--r--android/res/drawable/menu_settings.pngbin0 -> 1851 bytes
-rw-r--r--android/res/layout/activity_about.xml43
-rw-r--r--android/res/layout/activity_editor.xml34
-rw-r--r--android/res/layout/activity_main.xml20
-rw-r--r--android/res/layout/activity_results.xml15
-rw-r--r--android/res/layout/list_header.xml5
-rw-r--r--android/res/layout/list_item.xml32
-rw-r--r--android/res/layout/save_dialog.xml28
-rw-r--r--android/res/menu/main_options_menu.xml26
-rw-r--r--android/res/values/strings.xml46
-rw-r--r--android/res/xml/preferences.xml15
16 files changed, 264 insertions, 0 deletions
diff --git a/android/res/drawable/menu_about.png b/android/res/drawable/menu_about.png
new file mode 100644
index 0000000..6a7a1e9
--- /dev/null
+++ b/android/res/drawable/menu_about.png
Binary files differ
diff --git a/android/res/drawable/menu_delete.png b/android/res/drawable/menu_delete.png
new file mode 100644
index 0000000..24d8f6a
--- /dev/null
+++ b/android/res/drawable/menu_delete.png
Binary files differ
diff --git a/android/res/drawable/menu_load.png b/android/res/drawable/menu_load.png
new file mode 100644
index 0000000..e2d9bc1
--- /dev/null
+++ b/android/res/drawable/menu_load.png
Binary files differ
diff --git a/android/res/drawable/menu_results.png b/android/res/drawable/menu_results.png
new file mode 100644
index 0000000..95a3217
--- /dev/null
+++ b/android/res/drawable/menu_results.png
Binary files differ
diff --git a/android/res/drawable/menu_save.png b/android/res/drawable/menu_save.png
new file mode 100644
index 0000000..36fc7f4
--- /dev/null
+++ b/android/res/drawable/menu_save.png
Binary files differ
diff --git a/android/res/drawable/menu_settings.png b/android/res/drawable/menu_settings.png
new file mode 100644
index 0000000..5321f82
--- /dev/null
+++ b/android/res/drawable/menu_settings.png
Binary files differ
diff --git a/android/res/layout/activity_about.xml b/android/res/layout/activity_about.xml
new file mode 100644
index 0000000..6402727
--- /dev/null
+++ b/android/res/layout/activity_about.xml
@@ -0,0 +1,43 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:padding="10dp">
+
+ <TextView android:id="@+id/name_version"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:text="@string/about_name_version_format" />
+
+ <TextView android:id="@+id/description"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:text="@string/about_description" />
+
+ <TextView android:id="@+id/copyright"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:text="@string/about_copyright" />
+
+ <TextView android:id="@+id/url"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:text="@string/about_url" />
+
+ <TextView android:id="@+id/license1"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:text="@string/about_license_1" />
+
+ <TextView android:id="@+id/license2"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:gravity="center_horizontal"
+ android:text="@string/about_license_2" />
+</LinearLayout>
+
diff --git a/android/res/layout/activity_editor.xml b/android/res/layout/activity_editor.xml
new file mode 100644
index 0000000..c59f7c2
--- /dev/null
+++ b/android/res/layout/activity_editor.xml
@@ -0,0 +1,34 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <LinearLayout android:id="@+id/buttonLinearLayout"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true">
+
+ <Button android:id="@+id/runButton"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.0"
+ android:layout_alignParentBottom="true"
+ android:text="@string/runButtonText" />
+
+ <Button android:id="@+id/saveButton"
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_weight="1.0"
+ android:layout_alignParentBottom="true"
+ android:text="@string/saveButtonText" />
+
+ </LinearLayout>
+
+
+ <ListView android:id="@+id/editorListView"
+ android:layout_above="@id/buttonLinearLayout"
+ android:layout_weight="1.0"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_alignParentTop="true" />
+</RelativeLayout>
diff --git a/android/res/layout/activity_main.xml b/android/res/layout/activity_main.xml
new file mode 100644
index 0000000..c9342be
--- /dev/null
+++ b/android/res/layout/activity_main.xml
@@ -0,0 +1,20 @@
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <Button android:id="@+id/runButton"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:text="@string/runButtonText" />
+
+ <ListView android:id="@+id/benchmarkListView"
+ android:layout_above="@id/runButton"
+ android:layout_weight="1.0"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_alignParentTop="true" />
+
+
+</RelativeLayout>
diff --git a/android/res/layout/activity_results.xml b/android/res/layout/activity_results.xml
new file mode 100644
index 0000000..46c8f66
--- /dev/null
+++ b/android/res/layout/activity_results.xml
@@ -0,0 +1,15 @@
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <HorizontalScrollView android:layout_width="match_parent"
+ android:layout_height="wrap_content">
+
+ <TextView android:id="@+id/results"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:typeface="monospace" />
+
+ </HorizontalScrollView>
+
+</ScrollView>
diff --git a/android/res/layout/list_header.xml b/android/res/layout/list_header.xml
new file mode 100644
index 0000000..9c5bd8f
--- /dev/null
+++ b/android/res/layout/list_header.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ style="?android:attr/listSeparatorTextViewStyle"
+ android:id="@+id/listHeader" />
diff --git a/android/res/layout/list_item.xml b/android/res/layout/list_item.xml
new file mode 100644
index 0000000..7b3233d
--- /dev/null
+++ b/android/res/layout/list_item.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:minHeight="?android:attr/listPreferredItemHeight"
+ android:gravity="center_vertical"
+ android:paddingRight="?android:attr/scrollbarSize" >
+
+ <RelativeLayout android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="15dip"
+ android:layout_marginRight="6dip"
+ android:layout_marginTop="6dip"
+ android:layout_marginBottom="6dip"
+ android:layout_weight="1">
+
+ <TextView android:id="@+id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:textAppearance="?android:attr/textAppearanceLarge" />
+
+ <TextView android:id="@+id/summary"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignLeft="@id/title"
+ android:layout_below="@id/title"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorSecondary" />
+
+ </RelativeLayout>
+
+</LinearLayout>
diff --git a/android/res/layout/save_dialog.xml b/android/res/layout/save_dialog.xml
new file mode 100644
index 0000000..1074b52
--- /dev/null
+++ b/android/res/layout/save_dialog.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="center_vertical" >
+
+ <RelativeLayout android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_marginLeft="15dip"
+ android:layout_marginRight="15dip"
+ android:layout_marginTop="6dip"
+ android:layout_marginBottom="6dip"
+ android:layout_weight="1">
+
+ <EditText android:id="@+id/listName"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" />
+
+ <CheckBox android:id="@+id/external"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignLeft="@id/listName"
+ android:layout_below="@id/listName"
+ android:text="@string/externalSaveDialogText"/>
+
+ </RelativeLayout>
+
+</LinearLayout>
diff --git a/android/res/menu/main_options_menu.xml b/android/res/menu/main_options_menu.xml
new file mode 100644
index 0000000..e833173
--- /dev/null
+++ b/android/res/menu/main_options_menu.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="utf-8"?>
+<menu xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:id="@+id/save_benchmark_list"
+ android:title="@string/saveMainOptionsText"
+ android:icon="@drawable/menu_save" />
+
+ <item android:id="@+id/load_benchmark_list"
+ android:title="@string/loadMainOptionsText"
+ android:icon="@drawable/menu_load" />
+
+ <item android:id="@+id/delete_benchmark_list"
+ android:title="@string/deleteMainOptionsText"
+ android:icon="@drawable/menu_delete" />
+
+ <item android:id="@+id/settings"
+ android:title="@string/settingsMainOptionsText"
+ android:icon="@drawable/menu_settings" />
+
+ <item android:id="@+id/results"
+ android:title="@string/resultsMainOptionsText"
+ android:icon="@drawable/menu_results" />
+
+ <item android:id="@+id/about"
+ android:title="@string/aboutMainOptionsText"
+ android:icon="@drawable/menu_about" />
+</menu>
diff --git a/android/res/values/strings.xml b/android/res/values/strings.xml
new file mode 100644
index 0000000..571541c
--- /dev/null
+++ b/android/res/values/strings.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="app_name">GLMark2</string>
+ <string name="title_activity_main">GLMark2</string>
+ <string name="title_activity_editor">GLMark2 Benchmark Editor</string>
+ <string name="title_activity_preferences">GLMark2 Settings</string>
+ <string name="title_activity_about">About GLMark2</string>
+ <string name="title_activity_results">GLMark2 Results</string>
+ <string name="title_activity_glmark2">GLMark2</string>
+ <string name="runButtonText">Run</string>
+ <string name="saveButtonText">Save</string>
+
+ <string name="saveMainOptionsText">Save list</string>
+ <string name="loadMainOptionsText">Load list</string>
+ <string name="deleteMainOptionsText">Delete list</string>
+ <string name="settingsMainOptionsText">Settings</string>
+ <string name="resultsMainOptionsText">Last results</string>
+ <string name="aboutMainOptionsText">About</string>
+
+ <string name="externalSaveDialogText">Save to external storage</string>
+
+ <string name="runForeverPreferenceTitle">Run forever</string>
+ <string name="runForeverPreferenceSummary">Run indefinitely, looping from the last benchmark back to the first</string>
+ <string name="logDebugPreferenceTitle">Log debug messages</string>
+ <string name="logDebugPreferenceSummary">Display debug messages in the log</string>
+ <string name="showResultsPreferenceTitle">Show benchmark results</string>
+ <string name="showResultsPreferenceSummary">Show results after running benchmarks</string>
+
+ <string name="about_name_version_format">GLMark2 %1$s</string>
+ <string name="about_description">OpenGL (ES) 2.0 benchmark suite</string>
+ <string name="about_copyright">Copyright © 2010-2012 Linaro Limited</string>
+ <string name="about_url">http://launchpad.net/glmark2</string>
+ <string name="about_license_1">
+ glmark2 is free software: you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the
+ Free Software Foundation, either version 3 of the License, or (at your
+ option) any later version
+ </string>
+ <string name="about_license_2">
+ glmark2 is distributed in the hope that it will be useful, but WITHOUT ANY
+ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ details.
+ </string>
+
+</resources>
diff --git a/android/res/xml/preferences.xml b/android/res/xml/preferences.xml
new file mode 100644
index 0000000..be88f2a
--- /dev/null
+++ b/android/res/xml/preferences.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
+ <CheckBoxPreference android:key="run_forever"
+ android:title="@string/runForeverPreferenceTitle"
+ android:summary="@string/runForeverPreferenceSummary"
+ android:defaultValue="false" />
+ <CheckBoxPreference android:key="log_debug"
+ android:title="@string/logDebugPreferenceTitle"
+ android:summary="@string/logDebugPreferenceSummary"
+ android:defaultValue="false" />
+ <CheckBoxPreference android:key="show_results"
+ android:title="@string/showResultsPreferenceTitle"
+ android:summary="@string/showResultsPreferenceSummary"
+ android:defaultValue="true" />
+</PreferenceScreen>