com.zx.zxutils.util.ZXLogUtil.logi()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(83)

本文整理了Java中com.zx.zxutils.util.ZXLogUtil.logi()方法的一些代码示例,展示了ZXLogUtil.logi()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZXLogUtil.logi()方法的具体详情如下:
包路径:com.zx.zxutils.util.ZXLogUtil
类名称:ZXLogUtil
方法名:logi

ZXLogUtil.logi介绍

[英]展示Log
[中]展示日志

代码示例

代码示例来源:origin: StannyBing/ZXUtils

@Override
public void confirm() {
  ZXLogUtil.logi("浏览状态下,没有 confirm 事件");
}

代码示例来源:origin: StannyBing/ZXUtils

@Override
public void zoom(float zoom, int type) {
  ZXLogUtil.logi( "zoom");
}

代码示例来源:origin: StannyBing/ZXUtils

@Override
public void cancle(SurfaceHolder holder, float screenProp) {
  ZXLogUtil.logi("浏览状态下,没有 cancle 事件");
}

代码示例来源:origin: StannyBing/ZXUtils

@Override
public void zoom(float zoom, int type) {
  ZXLogUtil.logi("zoom");
}

代码示例来源:origin: StannyBing/ZXUtils

@Override
public void surfaceCreated(SurfaceHolder holder) {
  ZXLogUtil.logi("JCameraView SurfaceCreated");
  new Thread() {
    @Override
    public void run() {
      CameraInterface.getInstance().doOpenCamera(ZXCameraView.this);
    }
  }.start();
}

代码示例来源:origin: StannyBing/ZXUtils

@Override
public void recordZoom(float zoom) {
  ZXLogUtil.logi("recordZoom");
  machine.zoom(zoom, CameraInterface.TYPE_RECORDER);
}

代码示例来源:origin: StannyBing/ZXUtils

public CaptureButton(Context context, int size) {
  super(context);
  this.button_size = size;
  button_radius = size / 2.0f;
  button_outside_radius = button_radius;
  button_inside_radius = button_radius * 0.75f;
  strokeWidth = size / 15;
  outside_add_size = size / 5;
  inside_reduce_size = size / 8;
  mPaint = new Paint();
  mPaint.setAntiAlias(true);
  progress = 0;
  longPressRunnable = new LongPressRunnable();
  state = STATE_IDLE;                //初始化为空闲状态
  button_state = BUTTON_STATE_BOTH;  //初始化按钮为可录制可拍照
  ZXLogUtil.logi("CaptureButtom start");
  duration = 10 * 1000;              //默认最长录制时间为10s
  ZXLogUtil.logi("CaptureButtom end");
  min_duration = 1500;              //默认最短录制时间为1.5s
  center_X = (button_size + outside_add_size * 2) / 2;
  center_Y = (button_size + outside_add_size * 2) / 2;
  rectF = new RectF(
      center_X - (button_radius + outside_add_size - strokeWidth / 2),
      center_Y - (button_radius + outside_add_size - strokeWidth / 2),
      center_X + (button_radius + outside_add_size - strokeWidth / 2),
      center_Y + (button_radius + outside_add_size - strokeWidth / 2));
  timer = new RecordCountDownTimer(duration, duration / 360);    //录制定时器
}

代码示例来源:origin: StannyBing/ZXUtils

@Override
public void surfaceDestroyed(SurfaceHolder holder) {
  ZXLogUtil.logi("JCameraView SurfaceDestroyed");
  CameraInterface.getInstance().doDestroyCamera();
}

代码示例来源:origin: StannyBing/ZXUtils

@Override
public void zoom(float zoom, int type) {
  ZXLogUtil.logi( "zoom");
  CameraInterface.getInstance().setZoom(zoom, type);
}

代码示例来源:origin: StannyBing/ZXUtils

public synchronized void switchCamera(SurfaceHolder holder, float screenProp) {
    if (SELECTED_CAMERA == CAMERA_POST_POSITION) {
      SELECTED_CAMERA = CAMERA_FRONT_POSITION;
    } else {
      SELECTED_CAMERA = CAMERA_POST_POSITION;
    }
    doDestroyCamera();
    ZXLogUtil.logi("open start");
    openCamera(SELECTED_CAMERA);
//        mCamera = Camera.open();
    if (Build.VERSION.SDK_INT > 17 && this.mCamera != null) {
      try {
        this.mCamera.enableShutterSound(false);
      } catch (Exception e) {
        e.printStackTrace();
      }
    }
    ZXLogUtil.logi("open end");
    doStartPreview(holder, screenProp);
  }

代码示例来源:origin: StannyBing/ZXUtils

@Override
public boolean onTouchEvent(MotionEvent event) {
  switch (event.getAction()) {
    case MotionEvent.ACTION_DOWN:
      ZXLogUtil.logi("state = " + state);
      if (event.getPointerCount() > 1 || state != STATE_IDLE)
        break;
      event_Y = event.getY();     //记录Y值
      state = STATE_PRESS;        //修改当前状态为点击按下
      //判断按钮状态是否为可录制状态
      if ((button_state == BUTTON_STATE_ONLY_RECORDER || button_state == BUTTON_STATE_BOTH))
        postDelayed(longPressRunnable, 500);    //同时延长500启动长按后处理的逻辑Runnable
      break;
    case MotionEvent.ACTION_MOVE:
      if (captureLisenter != null
          && state == STATE_RECORDERING
          && (button_state == BUTTON_STATE_ONLY_RECORDER || button_state == BUTTON_STATE_BOTH)) {
        //记录当前Y值与按下时候Y值的差值,调用缩放回调接口
        captureLisenter.recordZoom(event_Y - event.getY());
      }
      break;
    case MotionEvent.ACTION_UP:
      //根据当前按钮的状态进行相应的处理
      handlerUnpressByState();
      break;
  }
  return true;
}

代码示例来源:origin: StannyBing/ZXUtils

private void initData() {
  layout_width = ZXScreenUtil.getScreenWidth();
  //缩放梯度
  zoomGradient = (int) (layout_width / 16f);
  ZXLogUtil.logi("zoom = " + zoomGradient);
  machine = new CameraMachine(getContext(), this, this);
}

代码示例来源:origin: StannyBing/ZXUtils

@Override
public void startPreviewCallback() {
  ZXLogUtil.logi("startPreviewCallback");
  handlerFoucs(mFoucsView.getWidth() / 2, mFoucsView.getHeight() / 2);
}

代码示例来源:origin: StannyBing/ZXUtils

@Override
  public void onItemClick(int position) {
    switch (position) {
      case 0://error
        ZXLogUtil.loge("这是error信息");
        break;
      case 1://debug
        ZXLogUtil.logd("提示", "这是debug信息");
        break;
      case 2://info
        ZXLogUtil.logi("这是info信息");
        break;
      case 3://warn
        ZXLogUtil.logw("提示", "这是warn信息");
        break;
    }
  }
}

代码示例来源:origin: StannyBing/ZXUtils

@Override
  public void captureResult(Bitmap bitmap, boolean isVertical) {
    machine.getView().showPicture(bitmap, isVertical);
    machine.setState(machine.getBorrowPictureState());
    ZXLogUtil.logi("capture");
  }
});

代码示例来源:origin: StannyBing/ZXUtils

@Override
public void foucs(float x, float y, CameraInterface.FocusCallback callback) {
  ZXLogUtil.logi("preview state foucs");
  if (machine.getView().handlerFoucs(x, y)) {
    CameraInterface.getInstance().handleFocus(machine.getContext(), x, y, callback);
  }
}

代码示例来源:origin: StannyBing/ZXUtils

public void onPause() {
  ZXLogUtil.logi("JCameraView onPause");
  stopVideo();
  resetState(TYPE_PICTURE);
  CameraInterface.getInstance().isPreview(false);
  CameraInterface.getInstance().unregisterSensorManager(mContext);
}

代码示例来源:origin: StannyBing/ZXUtils

mCamera.setParameters(mParams);
ZXLogUtil.logi("setZoom = " + nowScaleRate);
break;

代码示例来源:origin: StannyBing/ZXUtils

public void onResume() {
  ZXLogUtil.logi("JCameraView onResume");
  resetState(TYPE_DEFAULT); //重置状态
  CameraInterface.getInstance().registerSensorManager(mContext);
  CameraInterface.getInstance().setSwitchView(mSwitchCamera, mFlashLamp);
  machine.start(mVideoView.getHolder(), screenProp);
}

代码示例来源:origin: StannyBing/ZXUtils

ZXLogUtil.logi("doStartPreview isPreviewing");

相关文章