Remove esinfo, WorkDir
BIN
WorkDir/SDL.dll
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="gen"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||
<classpathentry kind="output" path="bin/classes"/>
|
||||
</classpath>
|
|
@ -1,33 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>OpenGL ES info</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
<buildCommand>
|
||||
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
|
@ -1,4 +0,0 @@
|
|||
eclipse.preferences.version=1
|
||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
|
||||
org.eclipse.jdt.core.compiler.compliance=1.5
|
||||
org.eclipse.jdt.core.compiler.source=1.5
|
|
@ -1,25 +0,0 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.example.ogles_info"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0" >
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="8"
|
||||
android:targetSdkVersion="15" />
|
||||
|
||||
<application
|
||||
android:icon="@drawable/ic_launcher"
|
||||
android:label="@string/app_name"
|
||||
android:theme="@style/AppTheme" >
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/title_activity_main" >
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
<category android:name="android.intent.category.LAUNCHER" />
|
||||
</intent-filter>
|
||||
</activity>
|
||||
</application>
|
||||
|
||||
</manifest>
|
|
@ -1,92 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project name="MainActivity" default="help">
|
||||
|
||||
<!-- The local.properties file is created and updated by the 'android' tool.
|
||||
It contains the path to the SDK. It should *NOT* be checked into
|
||||
Version Control Systems. -->
|
||||
<property file="local.properties" />
|
||||
|
||||
<!-- The ant.properties file can be created by you. It is only edited by the
|
||||
'android' tool to add properties to it.
|
||||
This is the place to change some Ant specific build properties.
|
||||
Here are some properties you may want to change/update:
|
||||
|
||||
source.dir
|
||||
The name of the source directory. Default is 'src'.
|
||||
out.dir
|
||||
The name of the output directory. Default is 'bin'.
|
||||
|
||||
For other overridable properties, look at the beginning of the rules
|
||||
files in the SDK, at tools/ant/build.xml
|
||||
|
||||
Properties related to the SDK location or the project target should
|
||||
be updated using the 'android' tool with the 'update' action.
|
||||
|
||||
This file is an integral part of the build system for your
|
||||
application and should be checked into Version Control Systems.
|
||||
|
||||
-->
|
||||
<property file="ant.properties" />
|
||||
|
||||
<!-- if sdk.dir was not set from one of the property file, then
|
||||
get it from the ANDROID_HOME env var.
|
||||
This must be done before we load project.properties since
|
||||
the proguard config can use sdk.dir -->
|
||||
<property environment="env" />
|
||||
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
|
||||
<isset property="env.ANDROID_HOME" />
|
||||
</condition>
|
||||
|
||||
<!-- The project.properties file is created and updated by the 'android'
|
||||
tool, as well as ADT.
|
||||
|
||||
This contains project specific properties such as project target, and library
|
||||
dependencies. Lower level build properties are stored in ant.properties
|
||||
(or in .classpath for Eclipse projects).
|
||||
|
||||
This file is an integral part of the build system for your
|
||||
application and should be checked into Version Control Systems. -->
|
||||
<loadproperties srcFile="project.properties" />
|
||||
|
||||
<!-- quick check on sdk.dir -->
|
||||
<fail
|
||||
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
|
||||
unless="sdk.dir"
|
||||
/>
|
||||
|
||||
<!--
|
||||
Import per project custom build rules if present at the root of the project.
|
||||
This is the place to put custom intermediary targets such as:
|
||||
-pre-build
|
||||
-pre-compile
|
||||
-post-compile (This is typically used for code obfuscation.
|
||||
Compiled code location: ${out.classes.absolute.dir}
|
||||
If this is not done in place, override ${out.dex.input.absolute.dir})
|
||||
-post-package
|
||||
-post-build
|
||||
-pre-clean
|
||||
-->
|
||||
<import file="custom_rules.xml" optional="true" />
|
||||
|
||||
<!-- Import the actual build file.
|
||||
|
||||
To customize existing targets, there are two options:
|
||||
- Customize only one target:
|
||||
- copy/paste the target into this file, *before* the
|
||||
<import> task.
|
||||
- customize it to your needs.
|
||||
- Customize the whole content of build.xml
|
||||
- copy/paste the content of the rules files (minus the top node)
|
||||
into this file, replacing the <import> task.
|
||||
- customize to your needs.
|
||||
|
||||
***********************
|
||||
****** IMPORTANT ******
|
||||
***********************
|
||||
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
|
||||
in order to avoid having your file be overridden by tools such as "android update project"
|
||||
-->
|
||||
<!-- version-tag: 1 -->
|
||||
<import file="${sdk.dir}/tools/ant/build.xml" />
|
||||
|
||||
</project>
|
Before Width: | Height: | Size: 48 KiB |
|
@ -1,10 +0,0 @@
|
|||
LOCAL_PATH:= $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := jnitest
|
||||
LOCAL_CFLAGS := -Werror
|
||||
LOCAL_SRC_FILES := jnitest.c
|
||||
LOCAL_LDLIBS := -llog
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
|
@ -1,13 +0,0 @@
|
|||
#include <jni.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
JNIEXPORT jint JNICALL
|
||||
Java_com_example_ogles_1info_jnitest_test(JNIEnv * env, jobject obj)
|
||||
{
|
||||
int sz= 512*1024*1024 + 16*1024*1024;
|
||||
void* rv=mmap(0, sz, PROT_NONE, MAP_PRIVATE | MAP_ANON, -1, 0);
|
||||
if (rv != MAP_FAILED) {
|
||||
munmap(rv,sz);
|
||||
}
|
||||
return rv != MAP_FAILED;
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
# To enable ProGuard in your project, edit project.properties
|
||||
# to define the proguard.config property as described in that file.
|
||||
#
|
||||
# Add project specific ProGuard rules here.
|
||||
# By default, the flags in this file are appended to flags specified
|
||||
# in ${sdk.dir}/tools/proguard/proguard-android.txt
|
||||
# You can edit the include path and order by changing the ProGuard
|
||||
# include property in project.properties.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# Add any project specific keep options here:
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
|
@ -1,14 +0,0 @@
|
|||
# This file is automatically generated by Android Tools.
|
||||
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
|
||||
#
|
||||
# This file must be checked in Version Control Systems.
|
||||
#
|
||||
# To customize properties used by the Ant build system edit
|
||||
# "ant.properties", and override values to adapt the script to your
|
||||
# project structure.
|
||||
#
|
||||
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
|
||||
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
||||
|
||||
# Project target.
|
||||
target=android-15
|
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 987 B |
Before Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.7 KiB |
|
@ -1,62 +0,0 @@
|
|||
<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/menu_list"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:orientation="horizontal" >
|
||||
|
||||
<ToggleButton
|
||||
android:id="@+id/tbn_alpha"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textOff="Alpha"
|
||||
android:textOn="Alpha" />
|
||||
|
||||
<ToggleButton
|
||||
android:id="@+id/tbn_24bits"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textOff="True Color"
|
||||
android:textOn="True Color" />
|
||||
|
||||
<ToggleButton
|
||||
android:id="@+id/tbn_depth"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="ToggleButton"
|
||||
android:textOff="Depth"
|
||||
android:textOn="Depth" />
|
||||
|
||||
<ToggleButton
|
||||
android:id="@+id/tbn_stencil"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="ToggleButton"
|
||||
android:textOff="Stencil"
|
||||
android:textOn="Stencil" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/menu_list" >
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical"
|
||||
android:id="@+id/caps_list" >
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</RelativeLayout>
|
|
@ -1,6 +0,0 @@
|
|||
<menu xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<item android:id="@+id/menu_settings"
|
||||
android:title="@string/menu_settings"
|
||||
android:orderInCategory="100"
|
||||
android:showAsAction="never" />
|
||||
</menu>
|
|
@ -1,7 +0,0 @@
|
|||
<resources>
|
||||
|
||||
<dimen name="padding_small">8dp</dimen>
|
||||
<dimen name="padding_medium">16dp</dimen>
|
||||
<dimen name="padding_large">16dp</dimen>
|
||||
|
||||
</resources>
|
|
@ -1,5 +0,0 @@
|
|||
<resources>
|
||||
|
||||
<style name="AppTheme" parent="android:Theme.Holo.Light" />
|
||||
|
||||
</resources>
|
|
@ -1,5 +0,0 @@
|
|||
<resources>
|
||||
|
||||
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar" />
|
||||
|
||||
</resources>
|
|
@ -1,7 +0,0 @@
|
|||
<resources>
|
||||
|
||||
<dimen name="padding_small">8dp</dimen>
|
||||
<dimen name="padding_medium">8dp</dimen>
|
||||
<dimen name="padding_large">16dp</dimen>
|
||||
|
||||
</resources>
|
|
@ -1,8 +0,0 @@
|
|||
<resources>
|
||||
|
||||
<string name="app_name">reicast tests</string>
|
||||
<string name="hello_world">Hello world!</string>
|
||||
<string name="menu_settings">Settings</string>
|
||||
<string name="title_activity_main">reicast tests</string>
|
||||
|
||||
</resources>
|
|
@ -1,5 +0,0 @@
|
|||
<resources>
|
||||
|
||||
<style name="AppTheme" parent="android:Theme.Light" />
|
||||
|
||||
</resources>
|
|
@ -1,162 +0,0 @@
|
|||
package com.example.ogles_info;
|
||||
|
||||
import javax.microedition.khronos.egl.EGL10;
|
||||
import javax.microedition.khronos.egl.EGL11;
|
||||
import javax.microedition.khronos.egl.EGLConfig;
|
||||
import javax.microedition.khronos.egl.EGLContext;
|
||||
import javax.microedition.khronos.egl.EGLDisplay;
|
||||
import javax.microedition.khronos.opengles.GL11;
|
||||
|
||||
import android.opengl.GLES20;
|
||||
import android.os.Bundle;
|
||||
import android.app.Activity;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuItem;
|
||||
import android.view.View;
|
||||
import android.view.View.OnClickListener;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.ListView;
|
||||
import android.widget.TextView;
|
||||
import android.widget.ToggleButton;
|
||||
import android.support.v4.app.NavUtils;
|
||||
import android.widget.Toast;
|
||||
|
||||
public class MainActivity extends Activity {
|
||||
|
||||
LinearLayout lv;
|
||||
ToggleButton tbn_alpha;
|
||||
ToggleButton tbn_24bits;
|
||||
ToggleButton tbn_depth;
|
||||
ToggleButton tbn_stencil;
|
||||
|
||||
@Override
|
||||
public void onCreate(Bundle savedInstanceState) {
|
||||
final boolean jnt = jnitest.test()!=0;
|
||||
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_main);
|
||||
lv = (LinearLayout)findViewById(R.id.caps_list);
|
||||
|
||||
Toast.makeText(getApplicationContext(), jnt ? "jni test passed" : "jni test failed", Toast.LENGTH_SHORT).show();
|
||||
|
||||
OnClickListener ocl =new OnClickListener() { public void onClick(View v) { MainActivity.this.populate_list(jnt); } };
|
||||
|
||||
tbn_24bits=(ToggleButton)findViewById(R.id.tbn_24bits);
|
||||
tbn_depth=(ToggleButton)findViewById(R.id.tbn_depth);
|
||||
tbn_stencil=(ToggleButton)findViewById(R.id.tbn_stencil);
|
||||
tbn_alpha=(ToggleButton)findViewById(R.id.tbn_alpha);
|
||||
|
||||
tbn_24bits.setOnClickListener(ocl);
|
||||
tbn_depth.setOnClickListener(ocl);
|
||||
tbn_stencil.setOnClickListener(ocl);
|
||||
tbn_alpha.setOnClickListener(ocl);
|
||||
|
||||
populate_list(jnt);
|
||||
}
|
||||
|
||||
void add_string(String s)
|
||||
{
|
||||
TextView tv = new TextView(this);
|
||||
tv.setText(s);
|
||||
|
||||
lv.addView(tv);
|
||||
}
|
||||
void populate_list(boolean jnt)
|
||||
{
|
||||
lv.removeAllViews();
|
||||
|
||||
add_string("MMAP ALLOC TEST: " + (jnt ? "PASSED":"FAILED"));
|
||||
add_string("BOARD: " + android.os.Build.BOARD);
|
||||
add_string("BOOTLOADER: " + android.os.Build.BOOTLOADER);
|
||||
add_string("BRAND: " + android.os.Build.BRAND);
|
||||
add_string("CPU_ABI: " + android.os.Build.CPU_ABI);
|
||||
add_string("CPU_ABI2: " + android.os.Build.CPU_ABI2);
|
||||
add_string("DEVICE: " + android.os.Build.DEVICE);
|
||||
add_string("DISPLAY: " + android.os.Build.DISPLAY);
|
||||
add_string("FINGERPRINT: " + android.os.Build.FINGERPRINT);
|
||||
add_string("HARDWARE: " + android.os.Build.HARDWARE);
|
||||
add_string("HOST: " + android.os.Build.HOST);
|
||||
add_string("ID: " + android.os.Build.ID);
|
||||
add_string("MANUFACTURER: " + android.os.Build.MANUFACTURER);
|
||||
add_string("MODEL: " + android.os.Build.MODEL);
|
||||
add_string("PRODUCT: " + android.os.Build.PRODUCT);
|
||||
//add_string("SERIAL: " + android.os.Build.SERIAL);
|
||||
add_string("TAGS: " + android.os.Build.TAGS);
|
||||
add_string("TYPE: " + android.os.Build.TYPE);
|
||||
add_string("CODENAME: " + android.os.Build.VERSION.CODENAME);
|
||||
add_string("RELEASE: " + android.os.Build.VERSION.RELEASE);
|
||||
add_string("INCREMENTAL: " + android.os.Build.VERSION.INCREMENTAL);
|
||||
add_string("SDK: " + android.os.Build.VERSION.SDK_INT);
|
||||
|
||||
EGL10 e = (EGL10)EGLContext.getEGL();
|
||||
//EGL10 e = (EGL10)GLES20.glGetString(name)
|
||||
|
||||
EGLConfig[] cfgs = new EGLConfig[1000];
|
||||
|
||||
int[] cfg_cnt= new int[1];
|
||||
EGLDisplay disp=e.eglGetDisplay(EGL10.EGL_DEFAULT_DISPLAY);
|
||||
|
||||
int[] version = new int[2];
|
||||
e.eglInitialize(disp, version);
|
||||
|
||||
e.eglGetConfigs(disp, cfgs, cfgs.length, cfg_cnt);
|
||||
|
||||
for (int i=0;i<cfg_cnt[0];i++)
|
||||
{
|
||||
EGLConfig cfg=cfgs[i];
|
||||
|
||||
int[] temp= new int[1];
|
||||
|
||||
e.eglGetConfigAttrib(disp, cfg, EGL10.EGL_RENDERABLE_TYPE, temp);
|
||||
|
||||
|
||||
|
||||
if (0!= (temp[0]&4) )
|
||||
{
|
||||
String s="";
|
||||
|
||||
e.eglGetConfigAttrib(disp, cfg, EGL10.EGL_BUFFER_SIZE, temp);
|
||||
if (tbn_24bits.isChecked() && temp[0]<24)
|
||||
continue;
|
||||
|
||||
e.eglGetConfigAttrib(disp, cfg, EGL10.EGL_RED_SIZE, temp);
|
||||
s+="R" + temp[0];
|
||||
|
||||
e.eglGetConfigAttrib(disp, cfg, EGL10.EGL_GREEN_SIZE, temp);
|
||||
s+="G" + temp[0];
|
||||
|
||||
e.eglGetConfigAttrib(disp, cfg, EGL10.EGL_BLUE_SIZE, temp);
|
||||
s+="B" + temp[0];
|
||||
|
||||
e.eglGetConfigAttrib(disp, cfg, EGL10.EGL_ALPHA_SIZE, temp);
|
||||
if (tbn_alpha.isChecked() && temp[0]==0)
|
||||
continue;
|
||||
s+="A" + temp[0];
|
||||
|
||||
s+=" ";
|
||||
|
||||
e.eglGetConfigAttrib(disp, cfg, EGL10.EGL_DEPTH_SIZE, temp);
|
||||
s+="D" + temp[0];
|
||||
|
||||
if (tbn_depth.isChecked() && temp[0]==0)
|
||||
continue;
|
||||
|
||||
|
||||
e.eglGetConfigAttrib(disp, cfg, EGL10.EGL_STENCIL_SIZE, temp);
|
||||
s+="S" + temp[0];
|
||||
|
||||
if (tbn_stencil.isChecked() && temp[0]==0)
|
||||
continue;
|
||||
|
||||
add_string(s);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onCreateOptionsMenu(Menu menu) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|