package android.app;
|
|
import android.os.IZysjSystemService;
|
|
import java.util.List;
|
import java.util.Map;
|
|
import javax.naming.Context;
|
|
public class ZysjSystemManager {
|
IZysjSystemService mService;
|
|
public static final String STATIC_IP = "ip";
|
public static final String STATIC_GATEWAY = "gateway";
|
public static final String STATIC_NETMASK = "netmask";
|
public static final String STATIC_DNS1 = "dns1";
|
public static final String STATIC_DNS2 = "dns2";
|
|
public ZysjSystemManager(Context context, IZysjSystemService service) {
|
mService = service;
|
}
|
|
public void execSuCmd(String command) {
|
mService.execSuCmd(command);
|
}
|
|
public int get_zysj_gpio_value(int which) {
|
return mService.get_zysj_gpio_value(which);
|
}
|
|
public int set_zysj_gpio_value(int which, int value) {
|
return mService.set_zysj_gpio_value(which, value);
|
}
|
|
public String zYgetDeviceKernelInfo() {
|
return mService.zYgetDeviceKernelInfo();
|
}
|
|
public int setTimeToRtc(int cmd, String date, String time) {
|
return mService.setTimeToRtc(cmd, date, time);
|
}
|
|
public int zYRebootSys() {
|
return mService.zYRebootSys();
|
}
|
|
public int zYShutdownSys() {
|
return mService.zYShutdownSys();
|
}
|
|
public int zYSystemStatusBar(int cmd) {
|
return mService.zYSystemStatusBar(cmd);
|
}
|
|
public int zYSystemNavigationBar(int cmd) {
|
return mService.zYSystemNavigationBar(cmd);
|
}
|
|
public byte[] readDataFromCh34Flash() {
|
return mService.readDataFromCh34Flash();
|
}
|
|
public int witeDataToCh34Flash(String flashData) {
|
return mService.witeDataToCh34Flash(flashData);
|
}
|
|
public String getPowerOnTimeFromCh34() {
|
return mService.getPowerOnTimeFromCh34();
|
}
|
|
public int getPowerOnTimeStatus() {
|
return mService.getPowerOnTimeStatus();
|
}
|
|
public int setWatchDogConfigToCh34(int time, boolean enable) {
|
return mService.setWatchDogConfigToCh34(time, enable);
|
}
|
|
public int getWatchDogStatus() {
|
return mService.getWatchDogStatus();
|
}
|
|
public int feedWatchDog() {
|
return mService.feedWatchDog();
|
}
|
|
public int getWatchDogTimeout() {
|
return mService.getWatchDogTimeout();
|
}
|
|
public int getMcuVersion() {
|
return mService.getMcuVersion();
|
}
|
|
public String zYShotScreen(String picPath, String fileName, int screenId) {
|
return mService.zYShotScreen(picPath, fileName, screenId);
|
}
|
|
public int zYresetSys() {
|
return mService.zYresetSys();
|
}
|
|
public int zYgetBackLight() {
|
return mService.zYgetBackLight();
|
}
|
|
public int zYsetBackLight(int backageLight) {
|
return mService.zYsetBackLight(backageLight);
|
}
|
|
public int zYgetScreenDirection() {
|
return mService.zYgetScreenDirection();
|
}
|
|
public int zYsetScreenDirection(int rotate) {
|
return mService.zYsetScreenDirection(rotate);
|
}
|
|
public boolean zYsetSysTime(String time) {
|
return mService.zYsetSysTime(time);
|
}
|
|
public boolean zYsetTimeZone(String timeZone) {
|
return mService.zYsetTimeZone(timeZone);
|
}
|
|
public void zYsetAdbWiress(boolean enable) {
|
mService.zYsetAdbWiress(enable);
|
}
|
|
public void zYsetAdb(boolean enable) {
|
mService.zYsetAdb(enable);
|
}
|
|
public String zYgetApiVersion() {
|
return mService.zYgetApiVersion();
|
}
|
|
public String zYgetEthIp(String iface) {
|
return mService.zYgetEthIp(iface);
|
}
|
|
public String zYgetEthMacAddress(String iface) {
|
return mService.zYgetEthMacAddress(iface);
|
}
|
|
public String zYgetEthGateway(String iface) {
|
return mService.zYgetEthGateway(iface);
|
}
|
|
public String zYgetEthNetMask(String iface) {
|
return mService.zYgetEthNetMask(iface);
|
}
|
|
public String zYgetEthDns1(String iface) {
|
return mService.zYgetEthDns1(iface);
|
}
|
|
public String zYgetEthDns2(String iface) {
|
return mService.zYgetEthDns2(iface);
|
}
|
|
public int zYgetEthernetIfaceState(String iface) {
|
return mService.zYgetEthernetIfaceState(iface);
|
}
|
|
public boolean zYsetEthernetEnabled(String iface, boolean enabled) {
|
return mService.zYsetEthernetEnabled(iface, enabled);
|
}
|
|
public void zYsetEthernetParams(String iface, int mode, Map<String, String> params) {
|
mService.zYsetEthernetParams(iface, mode, params);
|
}
|
|
public String zYgetWifiIp() {
|
return mService.zYgetWifiIp();
|
}
|
|
public String zYgetWifiMacAddress() {
|
return mService.zYgetWifiMacAddress();
|
}
|
|
public String zYgetWifiNetMask() {
|
return mService.zYgetWifiNetMask();
|
}
|
|
public String zYgetWifiGateway() {
|
return mService.zYgetWifiGateway();
|
}
|
|
public String zYgetWifiDns1() {
|
return mService.zYgetWifiDns1();
|
}
|
|
public String zYgetWifiDns2() {
|
return mService.zYgetWifiDns2();
|
}
|
|
public void zYsetWifiParams(int mode, Map<String, String> params) {
|
mService.zYsetWifiParams(mode, params);
|
}
|
|
public int setPowerOnOffTime(String time, int powerType) {
|
return mService.setPowerOnOffTime(time, powerType);
|
}
|
|
public void setOutputChannel(int channel) {
|
mService.setOutputChannel(channel);
|
}
|
|
public int getOutputChannel() {
|
return mService.getOutputChannel();
|
}
|
|
public int ZYSystemBar(int cmd) {
|
return mService.ZYSystemBar(cmd);
|
}
|
|
public int zYSystemBar(int cmd) {
|
return mService.zYSystemBar(cmd);
|
}
|
|
public String setHotspot(String ssid, String password, boolean enabled) {
|
return mService.setHotspot(ssid, password, enabled);
|
}
|
|
public boolean setWiFiSsid(String ssid) {
|
return mService.setWiFiSsid(ssid);
|
}
|
|
public boolean setWiFiPassword(String password) {
|
return mService.setWiFiPassword(password);
|
}
|
|
public void setWiFiApSW(boolean enabled) {
|
mService.setWiFiApSW(enabled);
|
}
|
|
public void addWhiteList(List<String> list) {
|
mService.addWhiteList(list);
|
}
|
|
public void deleteWhiteList(List<String> list) {
|
mService.deleteWhiteList(list);
|
}
|
|
public List queryWhiteList() {
|
return mService.queryWhiteList();
|
}
|
|
public void keepAlive(int timeOut, String packageName, String className) {
|
mService.keepAlive(timeOut, packageName, className);
|
}
|
|
public int installAPK(String filePath) {
|
return mService.installAPK(filePath);
|
}
|
|
public String getCpuUsage() {
|
return mService.getCpuUsage();
|
}
|
|
public int watchDogFeed() {
|
return mService.watchDogFeed();
|
}
|
|
public int watchDogEnable(int enabled, int timeOut) {
|
return mService.watchDogEnable(enabled, timeOut);
|
}
|
|
public int ZYRebootSys() {
|
return mService.ZYRebootSys();
|
}
|
|
public String zYgetEthGatWay() {
|
return mService.zYgetEthGatWay();
|
}
|
|
public String zYgetWifiGatWay() {
|
return mService.zYgetWifiGatWay();
|
}
|
|
public boolean getWiFiApSW() {
|
return mService.getWiFiApSW();
|
}
|
|
public void bootstrap(String packageName, String className, boolean enabled) {
|
mService.bootstrap(packageName, className, enabled);
|
}
|
|
public void whiteListSwitch(boolean enable) {
|
mService.whiteListSwitch(enable);
|
}
|
|
public boolean whiteListSwitchState() {
|
return mService.whiteListSwitchState();
|
}
|
|
public void whiteListSwitchUn(boolean enable) {
|
mService.whiteListSwitchUn(enable);
|
}
|
|
public boolean whiteListSwitchStateUn() {
|
return mService.whiteListSwitchStateUn();
|
}
|
|
public void addWhiteListUn(List<String> list) {
|
mService.addWhiteListUn(list);
|
}
|
|
public void deleteWhiteListUn(List<String> list) {
|
mService.deleteWhiteListUn(list);
|
}
|
|
public List queryWhiteListUn() {
|
return mService.queryWhiteListUn();
|
}
|
}
|