Android手动编译运行Camera VTS

在Android中,与Camera相关的HIDL有两处:

  • hardware/interfaces/camera/:该HIDL与cameraserver进行交互,让cameraserver能够发现和访问Camera Hardware。
  • frameworks/hardware/interfaces/cameraservice/:该HIDL接口是提供给非Camera HAL访问Camera使用的。

相应的,都会有VTS,代码分别在:

  • hardware/interfaces/camera/provider/2.4/vts/functional/
  • frameworks/hardware/interfaces/cameraservice/vts/functional/

如何手动执行Camera VTS

编译Camera VTS模块

rk3399为例说明如何编译,其他平台编译方法都是一样的。

编译Camera Provider HIDL

进到根目录下面:

source ./FFTools/build.sh
lunch rk3399_roc_pc_plus-userdebug
mmm hardware/interfaces/camera/provider/2.4/vts

编译后二进制文件存放在:

32bit

out/target/product/rk3399_roc_pc_plus/data/nativetest/VtsHalCameraProviderV2_4TargetTest/VtsHalCameraProviderV2_4TargetTest

64bit

out/target/product/rk3399_roc_pc_plus/data/nativetest64/VtsHalCameraProviderV2_4TargetTest/VtsHalCameraProviderV2_4TargetTest

编译Camera Service HIDL

进到根目录下面:

source ./FFTools/build.sh
lunch rk3399_roc_pc_plus-userdebug

编译后二进制文件存放在:

32bit

out/target/product/rk3399_roc_pc_plus/data/nativetest/VtsHalCameraServiceV2_0TargetTest/VtsHalCameraServiceV2_0TargetTest

64bit

out/target/product/rk3399_roc_pc_plus/data/nativetest64/VtsHalCameraServiceV2_0TargetTest/VtsHalCameraServiceV2_0TargetTest

运行Camera VTS模块


VtsHalCameraProviderV2_4TargetTest
VtsHalCameraServiceV2_0TargetTest
push 到 /data/local/tmp/

adb push out/target/product/rk3399_roc_pc_plus/data/nativetest64/VtsHalCameraServiceV2_0TargetTest/VtsHalCameraServiceV2_0TargetTest /data/local/tmp/

然后adb shell进入到 /data/local/tmp/ 执行相应的bin文件

下面是执行VtsHalCameraServiceV2_0TargetTest例子

rk3399_roc_pc_plus:/data/local/tmp # ./VtsHalCameraServiceV2_0TargetTest                                                                                                          
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from VtsHalCameraServiceV2_0TargetTest
[ RUN      ] VtsHalCameraServiceV2_0TargetTest.BasicCameraLifeCycleTest
Does not find service name for android.frameworks.cameraservice.service@2.0::ICameraService using default name: default
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:423: Failure
Value of: callbacks->waitForStatus(CameraDeviceCallbacks::Status::RESULT_RECEIVED)
  Actual: false
Expected: true
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:424: Failure
Value of: callbacks->waitForIdle()
  Actual: false
Expected: true
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:440: Failure
Value of: callbacks->waitForStatus(CameraDeviceCallbacks::Status::RESULT_RECEIVED)
  Actual: false
Expected: true
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:448: Failure
Expected: (lastFrameNumber) >= (0), actual: -1 vs 0
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:452: Failure
Value of: statusRet.isOk() && statusRet == Status::NO_ERROR
  Actual: false
Expected: true
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:456: Failure
Value of: statusRet.isOk() && statusRet == Status::NO_ERROR
  Actual: false
Expected: true
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:423: Failure
Value of: callbacks->waitForStatus(CameraDeviceCallbacks::Status::RESULT_RECEIVED)
  Actual: false
Expected: true
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:424: Failure
Value of: callbacks->waitForIdle()
  Actual: false
Expected: true
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:440: Failure
Value of: callbacks->waitForStatus(CameraDeviceCallbacks::Status::RESULT_RECEIVED)
  Actual: false
Expected: true
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:448: Failure
Expected: (lastFrameNumber) >= (0), actual: -1 vs 0
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:452: Failure
Value of: statusRet.isOk() && statusRet == Status::NO_ERROR
  Actual: false
Expected: true
frameworks/hardware/interfaces/cameraservice/vts/functional/VtsHalCameraServiceV2_0TargetTest.cpp:456: Failure
Value of: statusRet.isOk() && statusRet == Status::NO_ERROR
  Actual: false
Expected: true
[  FAILED  ] VtsHalCameraServiceV2_0TargetTest.BasicCameraLifeCycleTest (22574 ms)
[----------] 1 test from VtsHalCameraServiceV2_0TargetTest (22574 ms total)

[----------] Global test environment tear-down
[==========] 1 test from 1 test suite ran. (22574 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] VtsHalCameraServiceV2_0TargetTest.BasicCameraLifeCycleTest

 1 FAILED TEST

下面是执行VtsHalCameraProviderV2_4TargetTest例子

rk3399_roc_pc_plus:/data/local/tmp # ./VtsHalCameraProviderV2_4TargetTest                                                                                                         
[==========] Running 43 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 43 tests from CameraHidlTest
[ RUN      ] CameraHidlTest.noHal1AfterP
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.noHal1AfterP (2 ms)
[ RUN      ] CameraHidlTest.isTorchModeSupported
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.isTorchModeSupported (2 ms)
[ RUN      ] CameraHidlTest.getCameraIdList
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.getCameraIdList (1 ms)
[ RUN      ] CameraHidlTest.getVendorTags
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.getVendorTags (2 ms)
[ RUN      ] CameraHidlTest.setCallback
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.setCallback (2 ms)
[ RUN      ] CameraHidlTest.getCameraDeviceInterface
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.getCameraDeviceInterface (1 ms)
[ RUN      ] CameraHidlTest.getResourceCost
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.getResourceCost (2 ms)
[ RUN      ] CameraHidlTest.getCameraInfo
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.getCameraInfo (1 ms)
[ RUN      ] CameraHidlTest.setPreviewWindow
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.setPreviewWindow (2 ms)
[ RUN      ] CameraHidlTest.setPreviewWindowInvalid
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.setPreviewWindowInvalid (2 ms)
[ RUN      ] CameraHidlTest.startStopPreview
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.startStopPreview (1 ms)
[ RUN      ] CameraHidlTest.startStopPreviewDelayed
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.startStopPreviewDelayed (2 ms)
[ RUN      ] CameraHidlTest.takePicture
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.takePicture (1 ms)
[ RUN      ] CameraHidlTest.takePictureFail
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.takePictureFail (2 ms)
[ RUN      ] CameraHidlTest.cancelPicture
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.cancelPicture (1 ms)
[ RUN      ] CameraHidlTest.cancelPictureNOP
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.cancelPictureNOP (1 ms)
[ RUN      ] CameraHidlTest.startStopRecording
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.startStopRecording (2 ms)
[ RUN      ] CameraHidlTest.startRecordingFail
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.startRecordingFail (1 ms)
[ RUN      ] CameraHidlTest.autoFocus
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.autoFocus (1 ms)
[ RUN      ] CameraHidlTest.cancelAutoFocus
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.cancelAutoFocus (2 ms)
[ RUN      ] CameraHidlTest.sendCommandFaceDetection
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.sendCommandFaceDetection (1 ms)
[ RUN      ] CameraHidlTest.sendCommandSmoothZoom
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.sendCommandSmoothZoom (2 ms)
[ RUN      ] CameraHidlTest.getSetParameters
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.getSetParameters (1 ms)
[ RUN      ] CameraHidlTest.getCameraCharacteristics
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.getCameraCharacteristics (1 ms)
[ RUN      ] CameraHidlTest.setTorchMode
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.setTorchMode (1 ms)
[ RUN      ] CameraHidlTest.dumpState
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.dumpState (2 ms)
[ RUN      ] CameraHidlTest.openClose
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.openClose (1 ms)
[ RUN      ] CameraHidlTest.constructDefaultRequestSettings
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.constructDefaultRequestSettings (1 ms)
[ RUN      ] CameraHidlTest.configureStreamsAvailableOutputs
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.configureStreamsAvailableOutputs (2 ms)
[ RUN      ] CameraHidlTest.configureStreamsInvalidOutputs
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.configureStreamsInvalidOutputs (2 ms)
[ RUN      ] CameraHidlTest.configureStreamsZSLInputOutputs
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.configureStreamsZSLInputOutputs (1 ms)
[ RUN      ] CameraHidlTest.configureStreamsWithSessionParameters
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.configureStreamsWithSessionParameters (1 ms)
[ RUN      ] CameraHidlTest.configureStreamsPreviewStillOutputs
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.configureStreamsPreviewStillOutputs (2 ms)
[ RUN      ] CameraHidlTest.configureStreamsConstrainedOutputs
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.configureStreamsConstrainedOutputs (2 ms)
[ RUN      ] CameraHidlTest.configureStreamsVideoStillOutputs
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.configureStreamsVideoStillOutputs (1 ms)
[ RUN      ] CameraHidlTest.processCaptureRequestPreview
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.processCaptureRequestPreview (2 ms)
[ RUN      ] CameraHidlTest.processMultiCaptureRequestPreview
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.processMultiCaptureRequestPreview (2 ms)
[ RUN      ] CameraHidlTest.processCaptureRequestBurstISO
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.processCaptureRequestBurstISO (1 ms)
[ RUN      ] CameraHidlTest.processCaptureRequestInvalidSinglePreview
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.processCaptureRequestInvalidSinglePreview (2 ms)
[ RUN      ] CameraHidlTest.processCaptureRequestInvalidBuffer
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.processCaptureRequestInvalidBuffer (2 ms)
[ RUN      ] CameraHidlTest.flushPreviewRequest
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.flushPreviewRequest (2 ms)
[ RUN      ] CameraHidlTest.flushEmpty
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.flushEmpty (2 ms)
[ RUN      ] CameraHidlTest.providerDeviceStateNotification
Does not find service name for android.hardware.camera.provider@2.4::ICameraProvider using default name: default
hardware/interfaces/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp:556: Failure
Expected: (mProvider) != (nullptr), actual: 8-byte object <00-00 00-00 00-00 00-00> vs (nullptr)
[  FAILED  ] CameraHidlTest.providerDeviceStateNotification (1 ms)
[----------] 43 tests from CameraHidlTest (69 ms total)

[----------] Global test environment tear-down
[==========] 43 tests from 1 test suite ran. (70 ms total)
[  PASSED  ] 0 tests.
[  FAILED  ] 43 tests, listed below:
[  FAILED  ] CameraHidlTest.noHal1AfterP
[  FAILED  ] CameraHidlTest.isTorchModeSupported
[  FAILED  ] CameraHidlTest.getCameraIdList
[  FAILED  ] CameraHidlTest.getVendorTags
[  FAILED  ] CameraHidlTest.setCallback
[  FAILED  ] CameraHidlTest.getCameraDeviceInterface
[  FAILED  ] CameraHidlTest.getResourceCost
[  FAILED  ] CameraHidlTest.getCameraInfo
[  FAILED  ] CameraHidlTest.setPreviewWindow
[  FAILED  ] CameraHidlTest.setPreviewWindowInvalid
[  FAILED  ] CameraHidlTest.startStopPreview
[  FAILED  ] CameraHidlTest.startStopPreviewDelayed
[  FAILED  ] CameraHidlTest.takePicture
[  FAILED  ] CameraHidlTest.takePictureFail
[  FAILED  ] CameraHidlTest.cancelPicture
[  FAILED  ] CameraHidlTest.cancelPictureNOP
[  FAILED  ] CameraHidlTest.startStopRecording
[  FAILED  ] CameraHidlTest.startRecordingFail
[  FAILED  ] CameraHidlTest.autoFocus
[  FAILED  ] CameraHidlTest.cancelAutoFocus
[  FAILED  ] CameraHidlTest.sendCommandFaceDetection
[  FAILED  ] CameraHidlTest.sendCommandSmoothZoom
[  FAILED  ] CameraHidlTest.getSetParameters
[  FAILED  ] CameraHidlTest.getCameraCharacteristics
[  FAILED  ] CameraHidlTest.setTorchMode
[  FAILED  ] CameraHidlTest.dumpState
[  FAILED  ] CameraHidlTest.openClose
[  FAILED  ] CameraHidlTest.constructDefaultRequestSettings
[  FAILED  ] CameraHidlTest.configureStreamsAvailableOutputs
[  FAILED  ] CameraHidlTest.configureStreamsInvalidOutputs
[  FAILED  ] CameraHidlTest.configureStreamsZSLInputOutputs
[  FAILED  ] CameraHidlTest.configureStreamsWithSessionParameters
[  FAILED  ] CameraHidlTest.configureStreamsPreviewStillOutputs
[  FAILED  ] CameraHidlTest.configureStreamsConstrainedOutputs
[  FAILED  ] CameraHidlTest.configureStreamsVideoStillOutputs
[  FAILED  ] CameraHidlTest.processCaptureRequestPreview
[  FAILED  ] CameraHidlTest.processMultiCaptureRequestPreview
[  FAILED  ] CameraHidlTest.processCaptureRequestBurstISO
[  FAILED  ] CameraHidlTest.processCaptureRequestInvalidSinglePreview
[  FAILED  ] CameraHidlTest.processCaptureRequestInvalidBuffer
[  FAILED  ] CameraHidlTest.flushPreviewRequest
[  FAILED  ] CameraHidlTest.flushEmpty
[  FAILED  ] CameraHidlTest.providerDeviceStateNotification

43 FAILED TESTS

Camera课程

Python教程

Java教程

Web教程

数据库教程

图形图像教程

办公软件教程

Linux教程

计算机教程

大数据教程

开发工具教程