/*
 * This file is auto-generated.  DO NOT MODIFY.
 * Original file: /home/lipeng/disk256/workspase_kotlin/WizarViewAgentAssistant/example/src/main/aidl/com/wizarpos/wizarviewagentassistant/aidl/ISystemExtApi.aidl
 */
package com.wizarpos.wizarviewagentassistant.aidl;
public interface ISystemExtApi extends android.os.IInterface
{
/** Local-side IPC implementation stub class. */
public static abstract class Stub extends android.os.Binder implements com.wizarpos.wizarviewagentassistant.aidl.ISystemExtApi
{
private static final java.lang.String DESCRIPTOR = "com.wizarpos.wizarviewagentassistant.aidl.ISystemExtApi";
/** Construct the stub at attach it to the interface. */
public Stub()
{
this.attachInterface(this, DESCRIPTOR);
}
/**
 * Cast an IBinder object into an com.wizarpos.wizarviewagentassistant.aidl.ISystemExtApi interface,
 * generating a proxy if needed.
 */
public static com.wizarpos.wizarviewagentassistant.aidl.ISystemExtApi asInterface(android.os.IBinder obj)
{
if ((obj==null)) {
return null;
}
android.os.IInterface iin = obj.queryLocalInterface(DESCRIPTOR);
if (((iin!=null)&&(iin instanceof com.wizarpos.wizarviewagentassistant.aidl.ISystemExtApi))) {
return ((com.wizarpos.wizarviewagentassistant.aidl.ISystemExtApi)iin);
}
return new com.wizarpos.wizarviewagentassistant.aidl.ISystemExtApi.Stub.Proxy(obj);
}
@Override public android.os.IBinder asBinder()
{
return this;
}
@Override public boolean onTransact(int code, android.os.Parcel data, android.os.Parcel reply, int flags) throws android.os.RemoteException
{
switch (code)
{
case INTERFACE_TRANSACTION:
{
reply.writeString(DESCRIPTOR);
return true;
}
case TRANSACTION_getPreferredNetworkType:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _result = this.getPreferredNetworkType(_arg0);
reply.writeNoException();
reply.writeInt(_result);
return true;
}
case TRANSACTION_setPreferredNetworkType:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
boolean _result = this.setPreferredNetworkType(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_startLockTaskMode:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
boolean _result = this.startLockTaskMode(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setScreenOffTimeout:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
boolean _result = this.setScreenOffTimeout(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setMobileDataEnabled:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
boolean _arg1;
_arg1 = (0!=data.readInt());
boolean _result = this.setMobileDataEnabled(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setMobileDataRoamingEnabled:
{
data.enforceInterface(DESCRIPTOR);
int _arg0;
_arg0 = data.readInt();
int _arg1;
_arg1 = data.readInt();
boolean _result = this.setMobileDataRoamingEnabled(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setBatteryCounterMode:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
boolean _result = this.setBatteryCounterMode(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_getSupportedNetworkTypes:
{
data.enforceInterface(DESCRIPTOR);
com.wizarpos.wizarviewagentassistant.aidl.NetworkType[] _result = this.getSupportedNetworkTypes();
reply.writeNoException();
reply.writeTypedArray(_result, android.os.Parcelable.PARCELABLE_WRITE_RETURN_VALUE);
return true;
}
case TRANSACTION_setTouchScreenWakeupValue:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
boolean _result = this.setTouchScreenWakeupValue(_arg0);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_getTouchScreenWakeupValue:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _result = this.getTouchScreenWakeupValue();
reply.writeNoException();
reply.writeString(_result);
return true;
}
case TRANSACTION_enableAutoTimezone:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.enableAutoTimezone(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_isEnableAutoTimezone:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isEnableAutoTimezone();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_enableAutoTimezoneGUI:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.enableAutoTimezoneGUI(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_isEnableAutoTimezoneGUI:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isEnableAutoTimezoneGUI();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_enableAutoTime:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.enableAutoTime(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_isEnableAutoTime:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isEnableAutoTime();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_enableAutoTimeGUI:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.enableAutoTimeGUI(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_isEnableAutoTimeGUI:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isEnableAutoTimeGUI();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setDeviceOwner:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
java.lang.String _arg1;
_arg1 = data.readString();
boolean _result = this.setDeviceOwner(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setUsrProp:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
java.lang.String _arg1;
_arg1 = data.readString();
boolean _result = this.setUsrProp(_arg0, _arg1);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_enableShowTouches:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.enableShowTouches(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getShowTouchesState:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.getShowTouchesState();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setStatusBarLocked:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.setStatusBarLocked(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_setPowerKeyBlocked:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.setPowerKeyBlocked(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_isPowerKeyBlocked:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.isPowerKeyBlocked();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_enableMtp:
{
data.enforceInterface(DESCRIPTOR);
boolean _arg0;
_arg0 = (0!=data.readInt());
this.enableMtp(_arg0);
reply.writeNoException();
return true;
}
case TRANSACTION_getMtpStatus:
{
data.enforceInterface(DESCRIPTOR);
boolean _result = this.getMtpStatus();
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
case TRANSACTION_setLanguage:
{
data.enforceInterface(DESCRIPTOR);
java.lang.String _arg0;
_arg0 = data.readString();
java.lang.String _arg1;
_arg1 = data.readString();
java.lang.String _arg2;
_arg2 = data.readString();
boolean _result = this.setLanguage(_arg0, _arg1, _arg2);
reply.writeNoException();
reply.writeInt(((_result)?(1):(0)));
return true;
}
}
return super.onTransact(code, data, reply, flags);
}
private static class Proxy implements com.wizarpos.wizarviewagentassistant.aidl.ISystemExtApi
{
private android.os.IBinder mRemote;
Proxy(android.os.IBinder remote)
{
mRemote = remote;
}
@Override public android.os.IBinder asBinder()
{
return mRemote;
}
public java.lang.String getInterfaceDescriptor()
{
return DESCRIPTOR;
}
@Override public int getPreferredNetworkType(int phoneId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
int _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(phoneId);
mRemote.transact(Stub.TRANSACTION_getPreferredNetworkType, _data, _reply, 0);
_reply.readException();
_result = _reply.readInt();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * Set the preferred network type.
     * Used for device configuration by some CDMA operators.
     * <p>
     * Requires Permission:
     *   {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
     * Or the calling app has carrier privileges. @see #hasCarrierPrivileges
     *
     * @param subId the id of the subscription to set the preferred network type for.
     * @param networkType the preferred network type, defined in RILConstants.java.
     * @return true on success; false on any failure.
     * @hide
     */
@Override public boolean setPreferredNetworkType(int phoneId, int networkType) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(phoneId);
_data.writeInt(networkType);
mRemote.transact(Stub.TRANSACTION_setPreferredNetworkType, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * Request to put this activity in a mode where the user is locked to a restricted set of applications.
     * <p>
     * Requires Permission:
     *	{@link android.Manifest.permission#MANAGE_ACTIVITY_STACKS} 
     * @param taskid.
     * @return true on success; false on any failure.
     * @hide
     */
@Override public boolean startLockTaskMode(int taskId) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(taskId);
mRemote.transact(Stub.TRANSACTION_startLockTaskMode, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
	 * Added by Stone for task #22834 to add a interface to set screen off timeout.
	 * @param milliseconds the time you want to set, can be one of following:
	 *        15000 - 15s
	 *        30000 - 30s
	 *        60000 - 1 minute
	 *        120000 - 2 minutes
	 *        300000 - 5 minutes
	 *        600000 - 10 minutes
	 *        1800000 - 30 minutes
	 *        2147483647(Integer.MAX_VALUE) - never
	 * @return whether the new milliseconds has been set.
	 */
@Override public boolean setScreenOffTimeout(int milliseconds) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(milliseconds);
mRemote.transact(Stub.TRANSACTION_setScreenOffTimeout, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
	 * Added by Stone for task #22857 to add a interface to enable/disable mobile data.
	 * @param enable true if it should be enabled, false if it should be disabled.
	 * @return whether the new state has been set.
	 */
@Override public boolean setMobileDataEnabled(int slot, boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(slot);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_setMobileDataEnabled, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
	 * Added by Stone for task #22857 to add a interface to enable/disable mobile data roaming.
	 * @param roaming 1 if it should be enabled, 0 if it should be disabled.
	 * @return whether the new state has been set.
	 */
@Override public boolean setMobileDataRoamingEnabled(int slot, int roaming) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(slot);
_data.writeInt(roaming);
mRemote.transact(Stub.TRANSACTION_setMobileDataRoamingEnabled, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
	 * @param enable: true means enable counter mode, false means disable counter mode.
     * @return true on success; false on any failure.
	 */
@Override public boolean setBatteryCounterMode(boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_setBatteryCounterMode, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
    * get supported network type array
    * NetworkMode: name, modeId;
    * @return network type array.
    * */
@Override public com.wizarpos.wizarviewagentassistant.aidl.NetworkType[] getSupportedNetworkTypes() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
com.wizarpos.wizarviewagentassistant.aidl.NetworkType[] _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getSupportedNetworkTypes, _data, _reply, 0);
_reply.readException();
_result = _reply.createTypedArray(com.wizarpos.wizarviewagentassistant.aidl.NetworkType.CREATOR);
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * @param touch:Add wake on touch；none: Only the power button wakes up
     * @return return result for success or failed!.
     * */
@Override public boolean setTouchScreenWakeupValue(java.lang.String value) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(value);
mRemote.transact(Stub.TRANSACTION_setTouchScreenWakeupValue, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
@Override public java.lang.String getTouchScreenWakeupValue() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
java.lang.String _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getTouchScreenWakeupValue, _data, _reply, 0);
_reply.readException();
_result = _reply.readString();
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * enable/disable auto timezone item.
     * @param enable true: enable; false: disable
     * */
@Override public void enableAutoTimezone(boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_enableAutoTimezone, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
     * get status for enable/disable auto timezone item.
     * @return enable true: enable; false: disable
     * */
@Override public boolean isEnableAutoTimezone() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_isEnableAutoTimezone, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * enable/disable show auto timezone item GUI.
     * @param enable true: enable; false: disable
     * */
@Override public void enableAutoTimezoneGUI(boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_enableAutoTimezoneGUI, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
     * get status for enable/disable auto timezone item GUI.
     * @return enable true: enable; false: disable
     * */
@Override public boolean isEnableAutoTimezoneGUI() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_isEnableAutoTimezoneGUI, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * enable/disable auto time item.
     * @param enable true: enable; false: disable
     * */
@Override public void enableAutoTime(boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_enableAutoTime, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
     * get status for enable/disable auto time item.
     * @return enable true: enable; false: disable
     * */
@Override public boolean isEnableAutoTime() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_isEnableAutoTime, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * enable/disable show auto time item GUI.
     * @param enable true: enable; false: disable
     * */
@Override public void enableAutoTimeGUI(boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_enableAutoTimeGUI, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
     * get status for enable/disable auto time item GUI.
     * @return enable true: enable; false: disable
     * */
@Override public boolean isEnableAutoTimeGUI() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_isEnableAutoTimeGUI, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * @param pkg: package name.
     * @param deviceCls: policyReceiver's class name.
     * @return active success for true ; active failed for false
     * */
@Override public boolean setDeviceOwner(java.lang.String pkg, java.lang.String deviceCls) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(pkg);
_data.writeString(deviceCls);
mRemote.transact(Stub.TRANSACTION_setDeviceOwner, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     *  Set "persist.wp.custom.${key}"'s property
     * Permission： android.permission.CLOUDPOS_SET_USR_PROP
     * @param key: property's key, length less than 16. for example: persist.wp.usr.${key} ${value}.
     * @param value: property's value, length less than 32.
     * @return set success for true ; set failed for false
     * */
@Override public boolean setUsrProp(java.lang.String key, java.lang.String value) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(key);
_data.writeString(value);
mRemote.transact(Stub.TRANSACTION_setUsrProp, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * Enabling ‘show touches’ in Android screen recordings for user research.
     * @param enbale: true, false;
     *
     **/
@Override public void enableShowTouches(boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_enableShowTouches, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
     * get ‘show touches’ state for enable or disable.
     * @return ture: enable ‘show touches’; false: disable ‘show touches’.
     **/
@Override public boolean getShowTouchesState() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getShowTouchesState, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * Set the status bar locked as true will make the status bar can not be pull down.
     * @permission: android.permission.CLOUDPOS_LOCK_STATUS_BAR
     * @param lock, true for lock, false for disable lock.
     **/
@Override public void setStatusBarLocked(boolean lock) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((lock)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_setStatusBarLocked, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
     * Block or Release The Power Key
     * @param enbale: true:Block The Power Key ; false:Release The Power Key ;
     * @permission: android.permission.CLOUDPOS_DISABLE_POWER_KEY
     */
@Override public void setPowerKeyBlocked(boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_setPowerKeyBlocked, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
     * check PowerKey Button 's block status.
     * @return true : blocked the power key; false: not block the power key.
     */
@Override public boolean isPowerKeyBlocked() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_isPowerKeyBlocked, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * Enable/Disable MTP
     * @param enbale: true:Enable MTP ; false:Disable MTP;
     */
@Override public void enableMtp(boolean enable) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeInt(((enable)?(1):(0)));
mRemote.transact(Stub.TRANSACTION_enableMtp, _data, _reply, 0);
_reply.readException();
}
finally {
_reply.recycle();
_data.recycle();
}
}
/**
     * Get MTP Status
     * @return true:Enable MTP ; false:Disable MTP;
     */
@Override public boolean getMtpStatus() throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
mRemote.transact(Stub.TRANSACTION_getMtpStatus, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
/**
     * set Language
     * @link https://developer.android.com/reference/java/util/Locale
     * @param language: (Null is not allowed)An ISO 639 alpha-2 or alpha-3 language code, or a language subtag up to 8 characters in length. See the Locale class description about valid language values.
     * @param country : (Null is allowed)An ISO 3166 alpha-2 country code or a UN M.49 numeric-3 area code. See the Locale class description about valid country values.
     * @param variant : (Null is allowed)Any arbitrary value used to indicate a variation of a Locale. See the Locale class description for the details.
     * <p>for example: Locale(String language, String country, String variant) or Locale(String language, String country) or Locale(String language)</p>
     * @return true:set success ; false: set failed;
     *
     */
@Override public boolean setLanguage(java.lang.String language, java.lang.String country, java.lang.String variant) throws android.os.RemoteException
{
android.os.Parcel _data = android.os.Parcel.obtain();
android.os.Parcel _reply = android.os.Parcel.obtain();
boolean _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data.writeString(language);
_data.writeString(country);
_data.writeString(variant);
mRemote.transact(Stub.TRANSACTION_setLanguage, _data, _reply, 0);
_reply.readException();
_result = (0!=_reply.readInt());
}
finally {
_reply.recycle();
_data.recycle();
}
return _result;
}
}
static final int TRANSACTION_getPreferredNetworkType = (android.os.IBinder.FIRST_CALL_TRANSACTION + 0);
static final int TRANSACTION_setPreferredNetworkType = (android.os.IBinder.FIRST_CALL_TRANSACTION + 1);
static final int TRANSACTION_startLockTaskMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 2);
static final int TRANSACTION_setScreenOffTimeout = (android.os.IBinder.FIRST_CALL_TRANSACTION + 3);
static final int TRANSACTION_setMobileDataEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 4);
static final int TRANSACTION_setMobileDataRoamingEnabled = (android.os.IBinder.FIRST_CALL_TRANSACTION + 5);
static final int TRANSACTION_setBatteryCounterMode = (android.os.IBinder.FIRST_CALL_TRANSACTION + 6);
static final int TRANSACTION_getSupportedNetworkTypes = (android.os.IBinder.FIRST_CALL_TRANSACTION + 7);
static final int TRANSACTION_setTouchScreenWakeupValue = (android.os.IBinder.FIRST_CALL_TRANSACTION + 8);
static final int TRANSACTION_getTouchScreenWakeupValue = (android.os.IBinder.FIRST_CALL_TRANSACTION + 9);
static final int TRANSACTION_enableAutoTimezone = (android.os.IBinder.FIRST_CALL_TRANSACTION + 10);
static final int TRANSACTION_isEnableAutoTimezone = (android.os.IBinder.FIRST_CALL_TRANSACTION + 11);
static final int TRANSACTION_enableAutoTimezoneGUI = (android.os.IBinder.FIRST_CALL_TRANSACTION + 12);
static final int TRANSACTION_isEnableAutoTimezoneGUI = (android.os.IBinder.FIRST_CALL_TRANSACTION + 13);
static final int TRANSACTION_enableAutoTime = (android.os.IBinder.FIRST_CALL_TRANSACTION + 14);
static final int TRANSACTION_isEnableAutoTime = (android.os.IBinder.FIRST_CALL_TRANSACTION + 15);
static final int TRANSACTION_enableAutoTimeGUI = (android.os.IBinder.FIRST_CALL_TRANSACTION + 16);
static final int TRANSACTION_isEnableAutoTimeGUI = (android.os.IBinder.FIRST_CALL_TRANSACTION + 17);
static final int TRANSACTION_setDeviceOwner = (android.os.IBinder.FIRST_CALL_TRANSACTION + 18);
static final int TRANSACTION_setUsrProp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 19);
static final int TRANSACTION_enableShowTouches = (android.os.IBinder.FIRST_CALL_TRANSACTION + 20);
static final int TRANSACTION_getShowTouchesState = (android.os.IBinder.FIRST_CALL_TRANSACTION + 21);
static final int TRANSACTION_setStatusBarLocked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 22);
static final int TRANSACTION_setPowerKeyBlocked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 23);
static final int TRANSACTION_isPowerKeyBlocked = (android.os.IBinder.FIRST_CALL_TRANSACTION + 24);
static final int TRANSACTION_enableMtp = (android.os.IBinder.FIRST_CALL_TRANSACTION + 25);
static final int TRANSACTION_getMtpStatus = (android.os.IBinder.FIRST_CALL_TRANSACTION + 26);
static final int TRANSACTION_setLanguage = (android.os.IBinder.FIRST_CALL_TRANSACTION + 27);
}
public int getPreferredNetworkType(int phoneId) throws android.os.RemoteException;
/**
     * Set the preferred network type.
     * Used for device configuration by some CDMA operators.
     * <p>
     * Requires Permission:
     *   {@link android.Manifest.permission#MODIFY_PHONE_STATE MODIFY_PHONE_STATE}
     * Or the calling app has carrier privileges. @see #hasCarrierPrivileges
     *
     * @param subId the id of the subscription to set the preferred network type for.
     * @param networkType the preferred network type, defined in RILConstants.java.
     * @return true on success; false on any failure.
     * @hide
     */
public boolean setPreferredNetworkType(int phoneId, int networkType) throws android.os.RemoteException;
/**
     * Request to put this activity in a mode where the user is locked to a restricted set of applications.
     * <p>
     * Requires Permission:
     *	{@link android.Manifest.permission#MANAGE_ACTIVITY_STACKS} 
     * @param taskid.
     * @return true on success; false on any failure.
     * @hide
     */
public boolean startLockTaskMode(int taskId) throws android.os.RemoteException;
/**
	 * Added by Stone for task #22834 to add a interface to set screen off timeout.
	 * @param milliseconds the time you want to set, can be one of following:
	 *        15000 - 15s
	 *        30000 - 30s
	 *        60000 - 1 minute
	 *        120000 - 2 minutes
	 *        300000 - 5 minutes
	 *        600000 - 10 minutes
	 *        1800000 - 30 minutes
	 *        2147483647(Integer.MAX_VALUE) - never
	 * @return whether the new milliseconds has been set.
	 */
public boolean setScreenOffTimeout(int milliseconds) throws android.os.RemoteException;
/**
	 * Added by Stone for task #22857 to add a interface to enable/disable mobile data.
	 * @param enable true if it should be enabled, false if it should be disabled.
	 * @return whether the new state has been set.
	 */
public boolean setMobileDataEnabled(int slot, boolean enable) throws android.os.RemoteException;
/**
	 * Added by Stone for task #22857 to add a interface to enable/disable mobile data roaming.
	 * @param roaming 1 if it should be enabled, 0 if it should be disabled.
	 * @return whether the new state has been set.
	 */
public boolean setMobileDataRoamingEnabled(int slot, int roaming) throws android.os.RemoteException;
/**
	 * @param enable: true means enable counter mode, false means disable counter mode.
     * @return true on success; false on any failure.
	 */
public boolean setBatteryCounterMode(boolean enable) throws android.os.RemoteException;
/**
    * get supported network type array
    * NetworkMode: name, modeId;
    * @return network type array.
    * */
public com.wizarpos.wizarviewagentassistant.aidl.NetworkType[] getSupportedNetworkTypes() throws android.os.RemoteException;
/**
     * @param touch:Add wake on touch；none: Only the power button wakes up
     * @return return result for success or failed!.
     * */
public boolean setTouchScreenWakeupValue(java.lang.String value) throws android.os.RemoteException;
public java.lang.String getTouchScreenWakeupValue() throws android.os.RemoteException;
/**
     * enable/disable auto timezone item.
     * @param enable true: enable; false: disable
     * */
public void enableAutoTimezone(boolean enable) throws android.os.RemoteException;
/**
     * get status for enable/disable auto timezone item.
     * @return enable true: enable; false: disable
     * */
public boolean isEnableAutoTimezone() throws android.os.RemoteException;
/**
     * enable/disable show auto timezone item GUI.
     * @param enable true: enable; false: disable
     * */
public void enableAutoTimezoneGUI(boolean enable) throws android.os.RemoteException;
/**
     * get status for enable/disable auto timezone item GUI.
     * @return enable true: enable; false: disable
     * */
public boolean isEnableAutoTimezoneGUI() throws android.os.RemoteException;
/**
     * enable/disable auto time item.
     * @param enable true: enable; false: disable
     * */
public void enableAutoTime(boolean enable) throws android.os.RemoteException;
/**
     * get status for enable/disable auto time item.
     * @return enable true: enable; false: disable
     * */
public boolean isEnableAutoTime() throws android.os.RemoteException;
/**
     * enable/disable show auto time item GUI.
     * @param enable true: enable; false: disable
     * */
public void enableAutoTimeGUI(boolean enable) throws android.os.RemoteException;
/**
     * get status for enable/disable auto time item GUI.
     * @return enable true: enable; false: disable
     * */
public boolean isEnableAutoTimeGUI() throws android.os.RemoteException;
/**
     * @param pkg: package name.
     * @param deviceCls: policyReceiver's class name.
     * @return active success for true ; active failed for false
     * */
public boolean setDeviceOwner(java.lang.String pkg, java.lang.String deviceCls) throws android.os.RemoteException;
/**
     *  Set "persist.wp.custom.${key}"'s property
     * Permission： android.permission.CLOUDPOS_SET_USR_PROP
     * @param key: property's key, length less than 16. for example: persist.wp.usr.${key} ${value}.
     * @param value: property's value, length less than 32.
     * @return set success for true ; set failed for false
     * */
public boolean setUsrProp(java.lang.String key, java.lang.String value) throws android.os.RemoteException;
/**
     * Enabling ‘show touches’ in Android screen recordings for user research.
     * @param enbale: true, false;
     *
     **/
public void enableShowTouches(boolean enable) throws android.os.RemoteException;
/**
     * get ‘show touches’ state for enable or disable.
     * @return ture: enable ‘show touches’; false: disable ‘show touches’.
     **/
public boolean getShowTouchesState() throws android.os.RemoteException;
/**
     * Set the status bar locked as true will make the status bar can not be pull down.
     * @permission: android.permission.CLOUDPOS_LOCK_STATUS_BAR
     * @param lock, true for lock, false for disable lock.
     **/
public void setStatusBarLocked(boolean lock) throws android.os.RemoteException;
/**
     * Block or Release The Power Key
     * @param enbale: true:Block The Power Key ; false:Release The Power Key ;
     * @permission: android.permission.CLOUDPOS_DISABLE_POWER_KEY
     */
public void setPowerKeyBlocked(boolean enable) throws android.os.RemoteException;
/**
     * check PowerKey Button 's block status.
     * @return true : blocked the power key; false: not block the power key.
     */
public boolean isPowerKeyBlocked() throws android.os.RemoteException;
/**
     * Enable/Disable MTP
     * @param enbale: true:Enable MTP ; false:Disable MTP;
     */
public void enableMtp(boolean enable) throws android.os.RemoteException;
/**
     * Get MTP Status
     * @return true:Enable MTP ; false:Disable MTP;
     */
public boolean getMtpStatus() throws android.os.RemoteException;
/**
     * set Language
     * @link https://developer.android.com/reference/java/util/Locale
     * @param language: (Null is not allowed)An ISO 639 alpha-2 or alpha-3 language code, or a language subtag up to 8 characters in length. See the Locale class description about valid language values.
     * @param country : (Null is allowed)An ISO 3166 alpha-2 country code or a UN M.49 numeric-3 area code. See the Locale class description about valid country values.
     * @param variant : (Null is allowed)Any arbitrary value used to indicate a variation of a Locale. See the Locale class description for the details.
     * <p>for example: Locale(String language, String country, String variant) or Locale(String language, String country) or Locale(String language)</p>
     * @return true:set success ; false: set failed;
     *
     */
public boolean setLanguage(java.lang.String language, java.lang.String country, java.lang.String variant) throws android.os.RemoteException;
}
