byte[] apiProxyMakeSyncCall(String method, byte[] request) {
return ApiProxy.makeSyncCall(PACKAGE, method, request);
}
static SocketException translateError(int error, String detail) {
ErrorCode errorCode = RemoteSocketServiceError.ErrorCode.valueOf(error);
switch (errorCode) {
case SYSTEM_ERROR:
return new SocketException("System error: " + detail);
case GAI_ERROR: