package com.secspace.lib.common.env;

/**
 * Created by cyw_m on 2018/3/29.
 */

public class Providers {

    // 域内的系统设置
    public static final class Settings {
        public static final String AUTHORITY = "com.secspace.app.settings.provider";
        public static final String GET_FREFER_APN = "getPreferApn";
        public static final String IS_CLEAR_CACHE = "isClearCache";
        public static final String IS_CHECK_ROOT = "isCheckRoot";
        public static final String IS_BIND_APN = "isBindApn";
        public static final String IS_CHECK_INTERNET = "isCheckInternet";
        public static final String IS_OPEN_WATER_MARK = "isOpenWaterMark";
        public static final String GET_ENCRYPT_APP_LIST = "getEncryptAppList";
    }

    //在线管控
    public static final class OnlineMdm {
        public static final String AUTHORITY = "com.secspace.app.mdm.provider";
        public static final String GET_APN = "getApn";
    }

    // 域内配置文件
    public static final class SecConfig {
        public static final String AUTHORITY = "com.secspace.config";
        public static final String GET_INNER_APN = "getInnerApn";
        public static final String GET_OUTER_APN = "getOuterApn";
    }

    //整机管控
    public static final class ProviderMdm {
        public static final String PROVIDER_MDM_AUTHORITY = "com.secspace.provider.MDM";
        public static final String METHOD_ISROOT = "isRoot";
        public static final String METHOD_IS_BLUETOOTH_DISABLED = "isBluetoothDisabled";
        public static final String METHOD_IS_WIFI_DISABLED = "isWifiDisabled";
        public static final String METHOD_IS_DATA_CONNECTIVITY_DISABLED = "isDataConnectivityDisabled";
        public static final String METHOD_IS_GPS_DISABLED = "isGPSDisabled";
        public static final String METHOD_IS_SMS_DISABLED = "isSMSDisabled";
        public static final String METHOD_IS_VOICE_DISABLED = "isVoiceDisabled";
        public static final String METHOD_IS_MICROPHONE_DISABLED = "isMicrophoneDisabled";
        public static final String METHOD_IS_CAMERA_DISABLED = "isCameraDisabled";
        public static final String METHOD_IS_USB_DATA_DISABLED = "isUSBDataDisabled";////禁用、启用 USB 数据传输功能，仅保持充电功能；
        public static final String METHOD_IS_EXTERNAL_STORAGE_DISABLED = "isExternalStorageDisabled";
        public static final String METHOD_IS_ADB_DISABLED = "isAdbDisabled";
        public static final String METHOD_IS_USB_OTG_DISABLED = "isUSBOtgDisabled";
        public static final String METHOD_WIPE_DATA = "wipeData";
        public static final String METHOD_INSTALL_PACKAGE = "installPackage";
        public static final String METHOD_UNINSTALL_PACKAGE = "uninstallPackage";
        public static final String METHOD_SET_PREFER_APN = "setPreferApn";

    }

    //域内管控，比如域内的插件安装白名单，区别于MdmProvider,MdmProvider是整机的（包括整机的应用管控）
    public static final class InnerMdm {
        public static final String PROVIDER_INNER_MDM_AUTHORITY = "com.secspace.provider.INNER_MDM";
        // 添加白名单
        public static final String METHOD_ADD_WHITE_INSTALL_APPS = "addWhiteInstallApps";
        // 移除白名单
        public static final String METHOD_REMOVE_WHITE_INSTALL_APPS = "removeWhiteInstallApps";
        // 是否禁用第三方安装源
        public static final String METHOD_DISABLE_THIRD_INSTALL_SOURCE = "setThirdInstallSourceDisabled";
        // 添加防卸载
        public static final String METHOD_ADD_DISALLOWED_UNINSTALL_PACKAGES = "addDisallowedUninstallPackages";
        // 水印白名单
        public static final String METHOD_WATER_MSRK_PACKAGE_NAMES_LIST = "addWaterMarkPackageslist";
        // 水印白名单对应的水印
        public static final String METHOD_WATER_MSRK_NAMES_LIST = "addWaterMarkNamesList";
        // 设置水印白名单内容
        public static final String METHOD_SET_WATER_MARK_TEXT = "setWatermarkText";
        // 获取水印白名单内容
        public static final String METHOD_GET_WATER_MARK_TEXT = "getWatermarkText";
        // 移除防卸载
        public static final String METHOD_REMOVE_DISALLOWED_UNINSTALL_PACKAGES = "removeDisallowedUninstallPackages";
        // 获取防卸载列表
        public static final String METHOD_DISALLOWED_UNINSTALL_PACKAGES = "getDisallowedUninstallPackages";
        // 获取白名单
        public static final String METHOD_WHITE_INSTALL_APPS = "getWhiteInstallApps";
        // 静默安装应用
        public static final String METHOD_INSTALL_PACKAGE = "installPackage";
        // 静默卸载应用
        public static final String METHOD_UNINSTALL_PACKAGE = "uninstallPackage";
        // 添加不允许运行名单
        public static final String METHOD_ADD_DISALLOWED_RUNNING_APPS = "addDisallowedRunningApps";
        // 移除不允许运行名单
        public static final String METHOD_REMOVE_DISALLOWED_RUNNING_APPS = "removeDisallowedRunningApps";
        // 获取不允许运行名单
        public static final String METHOD_DISALLOWED_RUNNING_APPS = "getDisallowedRunningApps";
        // 启用设置
        public static final String METHOD_ENABLED_SETTING = "enableSetting";
        // 启用浏览器
        public static final String METHOD_ENABLED_BROWSER = "enableBrowser";
        // 设置是否启用
        public static final String METHOD_IS_SETTING_ENABLE = "isSettingEnable";
        // 浏览器是否启用
        public static final String METHOD_IS_BROWSER_ENABLE = "isBrowserEnable";
        // 密码策略最大试错数
        public static final String METHOD_MAX_FAILEPASSWORD = "setMaximumFailedPasswords";
        // 该应用是否允许安装
        public static final String METHOD_ALLOWED_INSTALL = "allowedInstall";
        // 该应用是否允许卸载
        public static final String METHOD_ALLOWED_DELETE = "allowedDelete";
        // 设置通话黑白名单
        public static final String METHOD_ADD_CALL_NUMBER = "addCallNumber";
        // 移除通话黑白名单
        public static final String METHOD_REMOVE_CALL_NUMBER = "removeCallNumber";
        // 清空通话黑白名单
        public static final String METHOD_CLEAR_CALL_NUMBER = "clearCallNumber";
        // 获取通话黑白名单
        public static final String METHOD_GET_CALL_NUMBER = "getCallNumber";
        // 设置短信黑白名单
        public static final String METHOD_ADD_SMS_NUMBER = "addSmsNumber";
        // 移除短信黑白名单
        public static final String METHOD_REMOVE_SMS_NUMBER = "removeSmsNumber";
        // 清空短信黑白名单
        public static final String METHOD_CLEAR_SMS_NUMBER = "clearSmsNumber";
        // 获取短信黑白名单
        public static final String METHOD_GET_SMS_NUMBER = "getSmsNumber";
        // 获取系统应用
        public static final String METHOD_GET_SYSTEM_APPS = "getSystemApps";
    }

    //va 应用服务
    public static final class ProviderVAApp {
        public static final String PROVIDER_VAAPP_AUTHORITY = "com.secspace.provider.VAApp";
        public static final String METHOD_LAUNCH_APP_SYNC = "launuchAppSync";
        public static final String METHOD_LAUNCH_APP_ASYNC = "launuchAppASync";
        public static final String METHOD_KILL_APP = "killApp";
        public static final String METHOD_KILL_ALL_APP = "killAllApp";
        public static final String METHOD_KILL_EXEMPT_APP = "killExemptApp";
        public static final String METHOD_GET_INSTALLED_APPS = "getInstalledApplications";
        public static final String METHOD_GET_INSTALLED_PKGS = "getInstalledPkgs";
        public static final String METHOD_GET_INSTALLED_PACKAGEINFOS = "getInstalledPackageInfos";
        public static final String METHOD_GET_RUNNING_APPS = "getRunningApps";
        public static final String METHOD_GET_RUNNING_PKGS = "getRunningPkgs";
        public static final String METHOD_GET_BAN_CLEAR_DATA_APPS = "getBanClearDataApps";
        public static final String METHOD_GET_PACKAGEINFO = "getPackageInfo";
        public static final String METHOD_INSALL_APP_NORMAL = "installAppNormal";
        public static final String METHOD_INSALL_APP_SILENT = "installAppSilent";
        public static final String METHOD_UNINSTALL_APP = "unInstallApp";
        public static final String METHOD_IS_RUNNING = "isRunning";
        public static final String METHOD_IS_INSTALLED = "isInstalled";
    }

    //va engine server
    public static final class ProviderVAEngine {
        public static final String PROVIDER_VAENGINE_AUTHORITY = "com.secspace.provider.Engine";
        public static final String METHOD_START_ACTIVITY = "startActivity";
        public static final String METHOD_SEND_BROADCAST = "sendBroadcast";
        public static final String METHOD_START_SERVICE = "startService";
    }


    //host
    public static final class ProviderHost {
        public static final String PROVIDER_HOST_AUTHORITY = "com.secspace.provider.Host";
        public static final String METHOD_ISAPPINSTALLED = "isInstalled";
        public static final String METHOD_GETVERSIONNAME = "getVersionName";
        public static final String METHOD_IF_IN_SECSPACE = "ifInSecSpace";
        public static final String METHOD_IS_OUTWORKING_SECSPACE = "isOutworkingSecspace";
        public static final String METHOD_IF_SECSPACE_CREATED = "ifSecSpaceCreated";
        public static final String METHOD_GET_SYSTEM_PLUGINS = "getSystemPlugins";
        public static final String METHOD_GET_WHITE_UNINSTALL_PLUGINS = "getWhiteUninstallPlugins";
        public static final String METHOD_SET_CLEAR_CACHE = "setClearCache";
        public static final String METHOD_GET_SECSPACE_NAME = "getSecSpaceName";
        public static final String METHOD_CLEAR_SECSPACE_DEVICE_OWNER = "clearSecSpaceDeviceOwner";
        public static final String METHOD_CHECK_UPDATE = "checkUpdate";
        public static final String METHOD_HAS_UPDATE = "hasUpdate";
        public static final String METHOD_SET_PREF_APN = "setPrefApn";
        public static final String METHOD_GET_APN_MODE = "getApnMode";
        public static final String METHOD_SET_APN_MODE = "setApnMode";
        // 禁用/启用外网
        public static final String METHOD_IS_INTERNET_DISABLED = "isInternetDisabled";
        public static final String METHOD_SET_INTERNET_DISABLED = "setInternetDisabled";

        //SharedPreference相关
        public static final String METHOD_CLEAR_SP_COMMON = "clearSpCommon";
        public static final String METHOD_CLEAR_SP_PWD = "clearSpPWD";
        public static final String METHOD_CLEAR_SP_INNER_MDM = "clearSpInnerMdm";
        // 水印相关
        public static final String METHOD_SET_WATERMARK_STATE = "setWatermarkState";
        public static final String METHOD_GET_WATERMARK_STATE = "getWatermarkState";
        // 检查root开关相关
        public static final String METHOD_SET_CHECK_ROOT_STATE = "setCheckRootState";
        public static final String METHOD_GET_CHECK_ROOT_STATE = "getCheckRootState";
        // 电话
        public static final String METHOD_ANSWER_CALL = "answerCall";
        public static final String METHOD_HANGUP_CALL = "hangUpCall";
        public static final String METHOD_PLAY_DTMF_TONE = "playDtmfTone";
        public static final String METHOD_STOP_DTMF_TONE = "stopDtmfTone";
        public static final String METHOD_TURN_SPEAKER = "turnSpeaker";
        public static final String METHOD_MUTED = "setMuted";
        // 退出
        public static final String METHOD_EXIT_SEC_SPACE = "exitSecSpace";
        // 锁定
        public static final String METHOD_SET_LOCK = "setLock";

        // 跳转模拟卡界面
        public static final String METHOD_SIMULATION_CARD = "onSimulationCard";
        // 获取卡ID
        public static final String METHOD_GET_CARDID = "onGetCardId";
        // 设置卡ID
        public static final String METHOD_SET_CARDID = "onSetCardId";
        // 擦除安全域数据
        public static final String METHOD_WIPE_DATA = "wipeData";
        // 设置锁屏密码
        public static final String METHOD_SET_LOCK_PASSWORD = "setLockPassword";
    }

    //pwd
    public static final class ProviderPwd {
        public static final String PROVIDER_PWD_AUTHORITY = "com.sec.provider.Pwd";
        public static final String METHOD_PWD_IF_DEAD_LOCK = "ifDeadLock";//是否死锁
        public static final String METHOD_PWD_GET_REST = "getRest";//死锁后获取死锁时长，返回long型
    }


    //插件事件处理
    public static final class ProviderPluginEvent {
        public static final String METHOD_TELL_SECSPACE_ENABLE_CONNECT_DATA = "tellSecSpaceEnableConnectData";//通知安全域启用了数据流量
    }

    //插件事件处理
    public static final class IpcServer {
        public static final String AUTHORITY = "com.secspace.provider.IpcServer";
    }

    //系统权限代理
    public static final class IpcMdmAgent {
        public static final String AUTHORITY = "com.sec.systemagent";
        public static final String OPEN_WIFI = "openWifi";
        public static final String OPEN_BT = "openBluetooth";
        public static final String OPEN_DEFAULT_DATA = "openDefaultData";
        public static final String OPEN_SLOT_DATA = "openSlotData";
        public static final String SEND_MULTIPART_TEXT_MESSAGE = "sendMultipartTextMessage";
        public static final String CLEAR_APPLICATION_USER_DATA = "clearApplicationUserData";

    }

    //中间件
    public static final class Middleware {
        public static final String AUTHORITY = "com.sec.middleware.mdm";

    }

    //增强件
    public static final class MdmEnhance {
        public static final String AUTHORITY = "com.sec.middleware.mdmenhance";

    }

}
