forked from xenia-canary/xenia-canary
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/xenia-project/xenia into …
…canary_experimental
- Loading branch information
Showing
169 changed files
with
40,167 additions
and
37,935 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...id/android_studio_project/app/src/main/java/jp/xenia/emulator/GpuTraceViewerActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package jp.xenia.emulator; | ||
|
||
import android.os.Bundle; | ||
|
||
public class GpuTraceViewerActivity extends WindowedAppActivity { | ||
@Override | ||
protected String getWindowedAppIdentifier() { | ||
return "xenia_gpu_vulkan_trace_viewer"; | ||
} | ||
|
||
@Override | ||
protected void onCreate(final Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
setContentView(R.layout.activity_gpu_trace_viewer); | ||
setWindowSurfaceView(findViewById(R.id.gpu_trace_viewer_surface_view)); | ||
} | ||
} |
45 changes: 45 additions & 0 deletions
45
android/android_studio_project/app/src/main/java/jp/xenia/emulator/LauncherActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package jp.xenia.emulator; | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
import android.net.Uri; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
|
||
public class LauncherActivity extends Activity { | ||
private static final int REQUEST_OPEN_GPU_TRACE_VIEWER = 0; | ||
|
||
@Override | ||
protected void onCreate(final Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
|
||
setContentView(R.layout.activity_launcher); | ||
} | ||
|
||
@Override | ||
protected void onActivityResult( | ||
final int requestCode, final int resultCode, final Intent data) { | ||
if (requestCode == REQUEST_OPEN_GPU_TRACE_VIEWER && resultCode == RESULT_OK) { | ||
final Uri uri = data.getData(); | ||
if (uri != null) { | ||
final Intent gpuTraceViewerIntent = new Intent(this, GpuTraceViewerActivity.class); | ||
final Bundle gpuTraceViewerLaunchArguments = new Bundle(); | ||
gpuTraceViewerLaunchArguments.putString("target_trace_file", uri.toString()); | ||
gpuTraceViewerIntent.putExtra( | ||
WindowedAppActivity.EXTRA_CVARS, gpuTraceViewerLaunchArguments); | ||
startActivity(gpuTraceViewerIntent); | ||
} | ||
} | ||
} | ||
|
||
public void onLaunchGpuTraceViewerClick(final View view) { | ||
final Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT); | ||
intent.addCategory(Intent.CATEGORY_OPENABLE); | ||
intent.setType("application/octet-stream"); | ||
startActivityForResult(intent, REQUEST_OPEN_GPU_TRACE_VIEWER); | ||
} | ||
|
||
public void onLaunchWindowDemoClick(final View view) { | ||
startActivity(new Intent(this, WindowDemoActivity.class)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
android/android_studio_project/app/src/main/res/layout/activity_gpu_trace_viewer.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<jp.xenia.emulator.WindowSurfaceView xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/gpu_trace_viewer_surface_view" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context="jp.xenia.emulator.GpuTraceViewerActivity" /> |
27 changes: 27 additions & 0 deletions
27
android/android_studio_project/app/src/main/res/layout/activity_launcher.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ScrollView 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" | ||
tools:context="jp.xenia.emulator.LauncherActivity"> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical"> | ||
|
||
<Button | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:onClick="onLaunchGpuTraceViewerClick" | ||
android:text="@string/activity_label_gpu_trace_viewer" /> | ||
|
||
<Button | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:onClick="onLaunchWindowDemoClick" | ||
android:text="@string/activity_label_window_demo" /> | ||
|
||
</LinearLayout> | ||
|
||
</ScrollView> |
3 changes: 2 additions & 1 deletion
3
android/android_studio_project/app/src/main/res/values/strings.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<resources> | ||
<string name="app_name">Xenia</string> | ||
<string name="activity_label_window_demo">Xenia Window Demo</string> | ||
<string name="activity_label_gpu_trace_viewer">GPU Trace Viewer</string> | ||
<string name="activity_label_window_demo">Window Demo</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
android/android_studio_project/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Mon Nov 01 23:19:20 MSK 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.