|
@@ -224,73 +224,6 @@ public class StartActivity extends AppCompatActivity {
|
|
|
@Override
|
|
|
public void onSuccess(Pair<Boolean, String> result) {
|
|
|
if (result.first) {
|
|
|
-// // 状态栏是否开启
|
|
|
-// boolean isStatusBarEnable = InfoDisplayApi.getStatusBarEnable();
|
|
|
-// // 导航栏是否开启
|
|
|
-// boolean isNavBarEnable = InfoDisplayApi.getNavigationBarEnable();
|
|
|
-//
|
|
|
-// EthernetConfig ethernetConfig = InfoNetworkApi.getEthernetConfig();
|
|
|
-// // Ip
|
|
|
-// String ip = ethernetConfig.getIpAddress();
|
|
|
-// // dhcp
|
|
|
-// int dhcp = ethernetConfig.getDhcp();
|
|
|
-// // dns1
|
|
|
-// String dns1 = ethernetConfig.getDns1Address();
|
|
|
-// // dns2
|
|
|
-// String dns2 = ethernetConfig.getDns2Address();
|
|
|
-// // mac
|
|
|
-// String mac = ethernetConfig.getMacAddress();
|
|
|
-// // route
|
|
|
-// String route = ethernetConfig.getRouteAddress();
|
|
|
-// // subnetMask
|
|
|
-// String subnetMask = ethernetConfig.getSubnetMask();
|
|
|
-// // 最优Ip地址 以太网>无线网>3、4G
|
|
|
-// String optimalIp = InfoNetworkApi.getOptimalIp();
|
|
|
-// // 设备型号
|
|
|
-// String deviceType = InfoSystemApi.getDeviceType();
|
|
|
-// // 设备序列号
|
|
|
-// String sn = InfoSystemApi.getSerialNumber();
|
|
|
-// // adb状态
|
|
|
-// int adbStatus = InfoSystemApi.getAdbStatus();
|
|
|
-// // 设备箱体温度
|
|
|
-// String temperature = InfoSystemApi.getTemperature();
|
|
|
-// // 系统编译版本号 V2.0.0 build 171226
|
|
|
-// String buildDesc = InfoSystemApi.getBuildDesc();
|
|
|
-// // 系统MCU版本号 V1.0.0 build 171226
|
|
|
-// String mcuVersion = InfoSystemApi.getMcuVersion();
|
|
|
-// // CPU使用率 当前 Cpu 的使用率,百分比,获取失败时返回”-1.00”字符串
|
|
|
-// String cpuUsageRate = InfoSystemApi.getCpuUsageRate();
|
|
|
-// // GPU使用率 当前 Gpu 的使用率,百分比,获取失败时返回”-1.00”字符串
|
|
|
-// String gpuUsageRate = InfoSystemApi.getGpuUsageRate();
|
|
|
-// // 获取内存使用情况
|
|
|
-// MemoryInfo memoryInfo = InfoSystemApi.getMemoryUsage();
|
|
|
-// // MemoryInfo .used 已使用内存大小(单位 MB)
|
|
|
-// int used = memoryInfo.used;
|
|
|
-// // MemoryInfo.total 总内存大小(MB)
|
|
|
-// int total = memoryInfo.total;
|
|
|
-// // MemoryInfo.describe 583.00MB/1.96GB
|
|
|
-// String describe = memoryInfo.describe;
|
|
|
-// int describeContents = memoryInfo.describeContents();
|
|
|
-// // 获取SDK版本 返回 SDK 版本号,获取失败返回”none”字符串
|
|
|
-// String sdkVersion = InfoSystemApi.getSdkVersion();
|
|
|
-// // 如果系统不支持该接口,则 currentLauncherName 和 preferredLauncherName 的值均为空字符串(“”)。
|
|
|
-// // 关于“默认“一词,默认 Launcher 即多个 Launcher 应用中优先级最高的,默认启动的。
|
|
|
-// LauncherInfo launcherInfo = InfoSystemApi.getLauncherName();
|
|
|
-// // 为当前生效的默认 Launcher 应用包名,默认(始终)Launcher 应用修改后该值即时更新。如果当前系统未设置默认(始终)Launcher,则该值为空字符串(“”)。
|
|
|
-// String currentLauncherName = launcherInfo.getCurrentLauncherName();
|
|
|
-// // 为持久化文件中保存的默认 Launcher 应用包名,默认 Launcher 应用修改后约 10 秒后该值才会更新,该值仅当系统内存在 2 个及以上Launcher 应用时才会存在,否则为空字符串(“”)。
|
|
|
-// String preferredLauncherName = launcherInfo.getPreferredLauncherName();
|
|
|
-// // 获取定时开关机计划
|
|
|
-// TimeSwitchConfig timeSwitchConfig = InfoTimeApi.getTimeSwitch();
|
|
|
-// // 开机时间 默认-1
|
|
|
-// long onTime = timeSwitchConfig.setOnTime;
|
|
|
-// // 关机时间 默认-1
|
|
|
-// long offTime = timeSwitchConfig.setOffTime;
|
|
|
-// // 门禁点锁状态1 true-当前锁处于上电锁门状态
|
|
|
-// // false-当前锁处于断电开门状态或参数错误
|
|
|
-// boolean electricLock1 = InfoUtilApi.getElectricLock(1);
|
|
|
-// // 门禁点锁状态2
|
|
|
-// boolean electricLock2 = InfoUtilApi.getElectricLock(2);
|
|
|
ThreadUtils.cancel(simpleTask);
|
|
|
// 监听分钟广播
|
|
|
timeTickReceiver = new TimeTickReceiver();
|