客户提供了CtsVerifier.apk
可以用来检测cameraFOV的值
经过反编译发现,FOV文件夹应该在工程下有
Y:\6572kkv1g4\alps\cts\apps\CtsVerifier\src\com\android\cts\verifier\camera\fov
存在于此,得知客户的CtsVerifier.apk应该是单编此获得的
根据显示的字串FOV reporter:获得
DetermineFovActivity.java中
mReportedText = getResources().getString(R.string.camera_fov_reported_fov_label);
canvas.drawText(mReportedText + " " + mReportedFovDegrees + " degrees.",
textSize, textSize * (1.0f + TEXT_PADDING), paint);
根据mReportedFovDegrees 获得PhotoCaptureActivity.java中
import android.hardware.Camera;
Camera.Parameters params = mCamera.getParameters();
mReportedFovDegrees = params.getHorizontalViewAngle();
camera.java在Y:\6572kkv1g4\alps\frameworks\base\core\java\android\hardware中
/**
* Gets the horizontal angle of view in degrees.
*
* @return horizontal angle of view. This method will always return a
* valid value.
*/
public float getHorizontalViewAngle() {
return Float.parseFloat(get(KEY_HORIZONTAL_VIEW
可以用来检测cameraFOV的值
经过反编译发现,FOV文件夹应该在工程下有
Y:\6572kkv1g4\alps\cts\apps\CtsVerifier\src\com\android\cts\verifier\camera\fov
存在于此,得知客户的CtsVerifier.apk应该是单编此获得的
根据显示的字串FOV reporter:获得
DetermineFovActivity.java中
mReportedText = getResources().getString(R.string.camera_fov_reported_fov_label);
canvas.drawText(mReportedText + " " + mReportedFovDegrees + " degrees.",
textSize, textSize * (1.0f + TEXT_PADDING), paint);
根据mReportedFovDegrees 获得PhotoCaptureActivity.java中
import android.hardware.Camera;
Camera.Parameters params = mCamera.getParameters();
mReportedFovDegrees = params.getHorizontalViewAngle();
camera.java在Y:\6572kkv1g4\alps\frameworks\base\core\java\android\hardware中
/**
* Gets the horizontal angle of view in degrees.
*
* @return horizontal angle of view. This method will always return a
* valid value.
*/
public float getHorizontalViewAngle() {
return Float.parseFloat(get(KEY_HORIZONTAL_VIEW