上传修改

This commit is contained in:
Sora丶kong
2026-03-03 10:57:00 +08:00
parent fb16c80a59
commit 82130f6146
2894 changed files with 229 additions and 856196 deletions

View File

@@ -1,132 +0,0 @@
using System.Collections.Generic;
using UnityEngine;
namespace Unity.XR.PICO.TOBSupport
{
public class Intent
{
private string Componentpkg = "";
private string Componentcls = "";
private string Action = "";
private string type = "";
private string url = "";
List<string> categoryList = new List<string>();
Dictionary<string, string> stringPairs = new Dictionary<string, string>();
Dictionary<string, bool> boolPairs = new Dictionary<string, bool>();
Dictionary<string, int> intPairs = new Dictionary<string, int>();
Dictionary<string, float> floatPairs = new Dictionary<string, float>();
Dictionary<string, double> doublePairs = new Dictionary<string, double>();
public void setComponent(string pkg, string cls)
{
Componentpkg = pkg;
Componentcls = cls;
}
public void setAction(string _Action)
{
Action = _Action;
}
public void setType(string _type)
{
type = _type;
}
public void setData(string _url)
{
url = _url;
}
public void addCategory(string _category)
{
categoryList.Add(_category);
}
public void putExtra(string name, string value)
{
stringPairs.Add(name, value);
}
public void putExtra(string name, int value)
{
intPairs.Add(name, value);
}
public void putExtra(string name, float value)
{
floatPairs.Add(name, value);
}
public void putExtra(string name, double value)
{
doublePairs.Add(name, value);
}
public void putExtra(string name, bool value)
{
boolPairs.Add(name, value);
}
public AndroidJavaObject getIntent()
{
AndroidJavaObject intent = new AndroidJavaObject("android.content.Intent");
if (!string.IsNullOrEmpty(Componentpkg) && !string.IsNullOrEmpty(Componentcls))
{
AndroidJavaObject componentName =
new AndroidJavaObject("android.content.ComponentName", Componentpkg, Componentcls);
intent.Call<AndroidJavaObject>("setComponent", componentName);
}
if (!string.IsNullOrEmpty(Action))
{
intent.Call<AndroidJavaObject>("setAction", Action);
}
if (!string.IsNullOrEmpty(type))
{
intent.Call<AndroidJavaObject>("setType", type);
}
// mIntent.setData(Uri.parse(""));
if (!string.IsNullOrEmpty(url))
{
AndroidJavaClass uriClass = new AndroidJavaClass("android.net.Uri"); // 对应的安卓调用函数是Uri.parse()
AndroidJavaObject uriObject = uriClass.CallStatic<AndroidJavaObject>("parse", url);
intent.Call<AndroidJavaObject>("setData", uriObject);
}
if (categoryList.Count != 0)
{
for (int i = 0; i < categoryList.Count; i++)
{
intent.Call<AndroidJavaObject>("addCategory", categoryList[i]);
}
}
foreach (KeyValuePair<string, string> kvp in stringPairs)
{
intent.Call<AndroidJavaObject>("putExtra", kvp.Key, kvp.Value);
}
foreach (KeyValuePair<string, int> kvp in intPairs)
{
intent.Call<AndroidJavaObject>("putExtra", kvp.Key, kvp.Value);
}
foreach (KeyValuePair<string, bool> kvp in boolPairs)
{
intent.Call<AndroidJavaObject>("putExtra", kvp.Key, kvp.Value);
}
foreach (KeyValuePair<string, float> kvp in floatPairs)
{
intent.Call<AndroidJavaObject>("putExtra", kvp.Key, kvp.Value);
}
foreach (KeyValuePair<string, double> kvp in doublePairs)
{
intent.Call<AndroidJavaObject>("putExtra", kvp.Key, kvp.Value);
}
return intent;
}
}
}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 9e2fc05a295c4d17bf17cf1784ef3059
timeCreated: 1709199569

View File

@@ -1,20 +0,0 @@
namespace Unity.XR.PICO.TOBSupport
{
public class LargeSpaceQuickModeInfo
{
public bool status;
public int length;
public int width;
public int originType;
public LargeSpaceQuickModeInfo()
{
}
public override string ToString()
{
return
$"{nameof(status)}: {status}, {nameof(length)}: {length}, {nameof(width)}: {width}, {nameof(originType)}: {originType}";
}
}
}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: fb0961e0f2e64cd5bfff021b5f334bea
timeCreated: 1715673498

View File

@@ -1,38 +0,0 @@
using System.Linq;
namespace Unity.XR.PICO.TOBSupport
{
public class MarkerInfo
{
// position
public double posX;
public double posY;
public double posZ;
// rotation
public double rotationX;
public double rotationY;
public double rotationZ;
public double rotationW;
// 标志位:识别无效=0识别有效=1
public int validFlag;
// 类型:静态=1/动态=0
public int markerType;
// marker id
public int iMarkerId;
// 检测图像的时间戳
public double dTimestamp;
// 预留标志位
public float[] reserve;
public override string ToString()
{
return $"{nameof(posX)}: {posX}, {nameof(posY)}: {posY}, {nameof(posZ)}: {posZ}, {nameof(rotationX)}: {rotationX}, {nameof(rotationY)}: {rotationY}, {nameof(rotationZ)}: {rotationZ}, {nameof(rotationW)}: {rotationW}, {nameof(validFlag)}: {validFlag}, {nameof(markerType)}: {markerType}, {nameof(iMarkerId)}: {iMarkerId}, {nameof(dTimestamp)}: {dTimestamp}, {nameof(reserve)}: {string.Join(" ", reserve)}";
}
}
}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: f68848d9c705ba340a11b2713ae79b83
timeCreated: 1686224373

View File

@@ -1,24 +0,0 @@
using System;
namespace Unity.XR.PICO.TOBSupport
{
public class OffLineSystemUpdateConfig
{
//OTA压缩包路径
public String otaFilePath = null;
//升级完成后是否自动重启
public Boolean autoReboot = true;
//升级过程中是否显示进度
public Boolean showProgress = false;
public OffLineSystemUpdateConfig()
{
}
public OffLineSystemUpdateConfig(string otaFilePath, bool autoReboot, bool showProgress)
{
this.otaFilePath = otaFilePath;
this.autoReboot = autoReboot;
this.showProgress = showProgress;
}
}
}

View File

@@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 886b1052c0d3a734a9e4fdb1a95d5982
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -1,18 +0,0 @@
namespace Unity.XR.PICO.TOBSupport
{
public class Point3D
{
public double x;
public double y;
public double z;
public Point3D()
{
}
public override string ToString()
{
return $"Point3D:{nameof(x)}: {x}, {nameof(y)}: {y}, {nameof(z)}: {z}";
}
}
}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 4808a326866641fdbd01f82a39e44aaf
timeCreated: 1715150347

View File

@@ -1,23 +0,0 @@
namespace Unity.XR.PICO.TOBSupport
{
public class WifiDisplayModel
{
public static int STATUS_NOT_CONNECT = -1;
public static int STATUS_NONE = 0;
public static int STATUS_SCANNING = 1;
public static int STATUS_CONNECTING = 2;
public static int STATUS_AVAILABLE = 3;
public static int STATUS_NOT_AVAILABLE = 4;
public static int STATUS_IN_USE = 5;
public static int STATUS_CONNECTED = 6;
public string deviceAddress;
public string deviceName;
public bool isAvailable;
public bool canConnect;
public bool isRemembered;
public int statusCode;
public string status;
public string description;
}
}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: 39f5fd05aee2d0047932945fab6f46a1
timeCreated: 1686050281