Search in sources :

Example 11 with Client

use of com.tencent.wstt.gt.manager.Client in project GT by Tencent.

the class GTBinder method registerGlobalInPara.

@Override
public void registerGlobalInPara(InPara para) throws RemoteException {
    Client client = ClientManager.getInstance().getClient(ClientManager.GLOBAL_CLIENT);
    client.register(para);
}
Also used : Client(com.tencent.wstt.gt.manager.Client)

Example 12 with Client

use of com.tencent.wstt.gt.manager.Client in project GT by Tencent.

the class GTBinder method getGlobalInPara.

@Override
public InPara getGlobalInPara(String key) throws RemoteException {
    Client client = ClientManager.getInstance().getClient(ClientManager.GLOBAL_CLIENT);
    InPara para = client.getInPara(key);
    return para;
}
Also used : Client(com.tencent.wstt.gt.manager.Client)

Example 13 with Client

use of com.tencent.wstt.gt.manager.Client in project GT by Tencent.

the class GTBinder method registerGlobalOutPara.

@Override
public void registerGlobalOutPara(OutPara para) throws RemoteException {
    Client client = ClientManager.getInstance().getClient(ClientManager.GLOBAL_CLIENT);
    client.register(para);
}
Also used : Client(com.tencent.wstt.gt.manager.Client)

Example 14 with Client

use of com.tencent.wstt.gt.manager.Client in project GT by Tencent.

the class GTBinder method setInPara.

@Override
public void setInPara(String key, String newValue) throws RemoteException {
    Client client = ClientManager.getInstance().getClient(getCallingUid());
    InPara iv = client.getInPara(key);
    if (null != iv) {
        iv.getValues().remove(newValue);
        iv.getValues().add(0, newValue);
    }
}
Also used : Client(com.tencent.wstt.gt.manager.Client)

Example 15 with Client

use of com.tencent.wstt.gt.manager.Client in project GT by Tencent.

the class GTBinder method setGlobalOutPara.

@Override
public void setGlobalOutPara(String key, String value) throws RemoteException {
    Client client = ClientManager.getInstance().getClient(ClientManager.GLOBAL_CLIENT);
    OutPara para = client.getOutPara(key);
    if (null != para) {
        para.setValue(value);
        // add on 20130923 为了出参支持历史曲线
        if (para.isMonitor()) {
            try {
                long lValue = Long.parseLong(value);
                OpPerfBridge.addHistory(para, value, lValue);
            } catch (Exception e) {
                // 非数字,直接重置
                para.setMonitor(false);
                OpPerfBridge.removeProfilerData(key);
            }
        }
    }
}
Also used : Client(com.tencent.wstt.gt.manager.Client) RemoteException(android.os.RemoteException)

Aggregations

Client (com.tencent.wstt.gt.manager.Client)20 OutPara (com.tencent.wstt.gt.OutPara)4 RemoteException (android.os.RemoteException)3 CommonString (com.tencent.wstt.gt.utils.CommonString)2 ArrayList (java.util.ArrayList)2 Context (android.content.Context)1 Message (android.os.Message)1 CpuUtils (com.tencent.wstt.gt.api.utils.CpuUtils)1 NetUtils (com.tencent.wstt.gt.api.utils.NetUtils)1 ClientFactory (com.tencent.wstt.gt.manager.ClientFactory)1 ConnectedClientFactory (com.tencent.wstt.gt.manager.ConnectedClientFactory)1 TagTimeEntry (com.tencent.wstt.gt.ui.model.TagTimeEntry)1 TimeEntry (com.tencent.wstt.gt.ui.model.TimeEntry)1