Commit graph

3330 commits

Author SHA1 Message Date
Emilian Peev
9c8c26965b Camera: Add Hal version 1 sendcommand tests
Tests are needed for verifying 'sendCommand' API call.
Several new test cases will be available:
"sendCommandFaceDetection" - This will check whether face detection is
available and try to enable&disable it.
"sendCommandSmoothZoom" - Will try to verify whether smooth zoom can
be enabled&disabled in case the camera supports it.

BUG: 32022758
Test: compile and run the gtest binary on device
Change-Id: Ib56f363126907f24b1af04187b093aa6c8e8ac99
2017-03-15 08:36:27 +00:00
Emilian Peev
5a81965a10 Camera: Add Hal version 1 autofocus test cases
Tests should be available for autofocus verification. The new
cases include:
"autoFocus" - Check whether the camera supports autofocus. In case
 auto is supported it will continue and test all available modes that
allow 'autoFocus' calls.
"cancelAutoFocus" - In case auto is supported, the test will trigger
full AF scan and cancel it immediately.
'CameraParameters' functionality is also required and should be included.

BUG: 32022758
Test: compile and run the gtest binary on device
Change-Id: I3bef25c5fdb6bbfa87517e6d255e4e6e01544d7d
2017-03-15 08:36:21 +00:00
Emilian Peev
cf7b797926 Camera: Add Hal version 1 video recording test cases
Tests involving Hal version 1 video recording APIs are
required. Several cases will be available:
- 'startStopRecording' - Verifies basic video recording
functionality. Metadata support will be tested if available.
- 'startRecordingFail' - Checks that recording can be enabled
only after preview starts.

Bug: 32022758
Test: compile and run the gtest binary on device
Change-Id: Id9dd8d3a554a1aa3bbbae9b836e4d14da5c4446b
2017-03-14 18:21:34 +00:00
Emilian Peev
92c7a65133 Camera: Add Hal version 1 image capture test cases
Tests involving Hal version 1 image capture APIs are
required. Several cases cover this:
- 'takePicture' - Regular image capture after preview gets enabled.
- 'takePictureFail' - Checks correct behavior in case preview is not
running.
- 'cancelPicture' - Verifies that image capture can be cancelled.
- 'cancelPictureFail' - Checks that image capture cancel fails as
expected in case 'takePicture' didn't get called.
Switch to BufferItemConsumer instead of CpuConsumer and use GLConsumer
default usage flags.

Bug: 32022758
Test: compile and run the gtest binary on device
Change-Id: I8db60aa8a21b6f829574fc9538da5644a4051e49
2017-03-13 08:58:49 +00:00
Emilian Peev
24f09645da Camera: Add device ver. 1 preview test cases
Test cases enabling/disabling preview using version 1
camera devices are needed. Test case is also available
for "setPreviewWindow".

BUG: 32022758
Test: compile and run the gtest binary on device
Change-Id: I234881fe940309dbb6ac11bfee7d01cc76d09f59
2017-03-13 08:58:21 +00:00
Emilian Peev
ceb0ee8b96 Camera: Extend camera test cases for camera 1.0 devices
Test cases involving camera version 1.0 devices are
required. The API methods which overlap between 3.x and 1.0
devices should be considered in the respective test cases.

BUG: 32022758
Test: compile and run the gtest binary on device
Change-Id: I044b6586b812aed14d66867d51f97123addcd718
2017-03-13 08:57:43 +00:00
Emilian Peev
a3bba4c43c Camera: Add flush test cases
Camera should flush pending requets and buffers
correctly. Two new test cases will help with
 the verification of this method:
- 'flushPreviewRequest' - Constructs a valid camera request
and sends it to camera. The test will not wait for the request
to complete instead it will call flush immediately. The results
 and notifications that follow are checked for consistency with
expected behavior.
- 'flushEmpty' - Triggers flush without any pending request. Check
 whether the camera behaves as expected.

BUG: 32022758
Test: compile and run the gtest binary on device

Change-Id: Iab9e37b3864491f970a783a68952a9c0c1703520
2017-03-13 08:57:38 +00:00
Emilian Peev
40f6211413 Camera: Enable and check for torch callbacks
The expected torch callbacks can be verified during
 the torch set test.

BUG: 32022758
Test: compile and run the gtest binary on device
Change-Id: Idaa1a4c6eb5306f1a2e1d126f54fcb26aaa1dc7c
2017-03-13 08:57:27 +00:00
Etan Cohen
13690d2315 Merge "[WIFI][HIDL] Add device-based feature flag support" am: 48b4ce2e99 am: d15376f05c
am: 733015b56e

Change-Id: Ia12e5aef8c2260a2a3b35da1318ee1a73f6a6728
2017-03-11 19:12:09 +00:00
Etan Cohen
733015b56e Merge "[WIFI][HIDL] Add device-based feature flag support" am: 48b4ce2e99
am: d15376f05c

Change-Id: If13d2a7e8993d93f23082fcd4ccf2732aaacba6f
2017-03-11 19:08:08 +00:00
Etan Cohen
d15376f05c Merge "[WIFI][HIDL] Add device-based feature flag support"
am: 48b4ce2e99

Change-Id: I74d285740511b9e8604a9bac5bcc8ab54688c0d8
2017-03-11 19:04:09 +00:00
Etan Cohen
48b4ce2e99 Merge "[WIFI][HIDL] Add device-based feature flag support" 2017-03-11 18:57:41 +00:00
TreeHugger Robot
19c1e106bf Merge "Revert "Revert "Add return status to IGraphicBufferSource methods""" 2017-03-11 10:43:53 +00:00
TreeHugger Robot
a9675ebfde Merge "EvsCamera: %zd -> %zu for size_t print" 2017-03-11 08:46:45 +00:00
Roshan Pius
1a429dc9d8 wifi(implementation): Add null checks for RTT result am: 78cfef9f0c am: 841ba1b367
am: 53c158606b

Change-Id: Ia36f323770af2f72bf416f686ac6e521adcf5ff4
2017-03-11 07:05:30 +00:00
Roshan Pius
53c158606b wifi(implementation): Add null checks for RTT result am: 78cfef9f0c
am: 841ba1b367

Change-Id: Id2ce5421a1d4ae08fbedb6983477c80542e90001
2017-03-11 07:00:59 +00:00
Roshan Pius
841ba1b367 wifi(implementation): Add null checks for RTT result
am: 78cfef9f0c

Change-Id: I9a58ca156d3e2f61fda8346d39b8de355302690f
2017-03-11 06:56:59 +00:00
Roshan Pius
78cfef9f0c wifi(implementation): Add null checks for RTT result
According to the legacy HAL header file, the LCI & LCR fields may not
always be populated. So, add null checks for them.

Bug: 36141536
Test: Compiles
Change-Id: Id2a5f5fd0eaf21b3a4d5cfcd26124c9fb6c90869
2017-03-11 05:41:59 +00:00
Steven Moreland
25197e9240 EvsCamera: %zd -> %zu for size_t print
%zd doesn't throw a warning, but %zu is technically correct.

Change-Id: I3762d01cc424ecf84e73c21afe5a5a3d295fe782
2017-03-10 21:05:09 -08:00
Robert Shih
a27875035c Revert "Revert "Add return status to IGraphicBufferSource methods""
This reverts commit b729637648.

Bug: 36110748
Change-Id: Ia12c00d57b9e8d4b66265018c3970416c265091a
2017-03-11 01:22:12 +00:00
Connor O'Brien
a20c517278 Merge "memtrack: eliminate dependency on surfaceflinger in VTS test" 2017-03-11 00:24:46 +00:00
TreeHugger Robot
721a8fc0c2 Merge "Revert "Add return status to IGraphicBufferSource methods"" 2017-03-10 23:32:20 +00:00
TreeHugger Robot
727690c27c Merge "audio: use vts target test base class" 2017-03-10 23:16:36 +00:00
Ashutosh Joshi
dfeb5973ac Merge "Do not crash fatally when recovering from system server restart." 2017-03-10 23:15:37 +00:00
Yuexi Ma
161b564b35 audio: use vts target test base class
Test: make vts succeed
Change-Id: I8008392e016e0604f8aa9a292f1ec6c6e7c3b384
2017-03-10 21:53:53 +00:00
Rachad Alao
b729637648 Revert "Add return status to IGraphicBufferSource methods"
Bug: 36110748

This reverts commit ed32ff5150.

Change-Id: Ibb5e72fc11f705a571491103fc5c68005cf54a30
2017-03-10 21:48:02 +00:00
Yuexi Ma
ed2bb4e8f8 Change vts target base test class name
Test: make vts succeed, vts kernel tests and nfc hal tests passed
Change-Id: I95f10ad7a66f261c9030357edd411fe6d94150e8
2017-03-10 21:14:48 +00:00
Yuexi Ma
5e1e202bcc Merge "Change vts target base test class name" am: 4f4fdaf664 am: a8239094f4
am: 649a2c13d7

Change-Id: I376e83c09515ba50a7e033e3cb75e0c5f8a24ccf
2017-03-10 21:11:23 +00:00
Yuexi Ma
649a2c13d7 Merge "Change vts target base test class name" am: 4f4fdaf664
am: a8239094f4

Change-Id: If6245264c41f92dc6f89a0bfd6001db07e211de4
2017-03-10 21:07:23 +00:00
Yuexi Ma
a8239094f4 Merge "Change vts target base test class name"
am: 4f4fdaf664

Change-Id: Id82295a163c4abbd0b9fc1ac8fde12ebd9a43030
2017-03-10 21:03:52 +00:00
Yuexi Ma
4f4fdaf664 Merge "Change vts target base test class name" 2017-03-10 20:58:04 +00:00
Ashutosh Joshi
2af9dacc3a Do not crash fatally when recovering from system server restart.
Log(FATAL) is creating lots of nuisance bugs.

Test: Sensor service continues to recover from a system server
      restart and sensors are available.
      No crash log is created.
Bug: 36094522
Bug: 36115683

Change-Id: Idc2d086709dc2132c98aab806aa44728fbdaa189
2017-03-10 12:53:31 -08:00
TreeHugger Robot
88cfac9540 Merge "graphics: fix a potential use after free" 2017-03-10 20:51:48 +00:00
TreeHugger Robot
d46602235b Merge "graphics: really reset HWC2 on SF crashes" 2017-03-10 20:42:39 +00:00
TreeHugger Robot
54baa3b101 Merge "Add SurfaceFlinger phase offset to configStore" 2017-03-10 19:23:37 +00:00
Myles Watson
b0ebfdebed Bluetooth: Power off after closing the UART am: 66a4ca3c92 am: a62b176c5c
am: 0eb1c4a753

Change-Id: I09afc5f2c4b086749a093fe4114ece747e498c2d
2017-03-10 19:20:45 +00:00
Myles Watson
0eb1c4a753 Bluetooth: Power off after closing the UART am: 66a4ca3c92
am: a62b176c5c

Change-Id: I18c58eb31b35b8f589134541babff80194232bbe
2017-03-10 19:17:14 +00:00
Myles Watson
a62b176c5c Bluetooth: Power off after closing the UART
am: 66a4ca3c92

Change-Id: Iccea3216281ddb5e6ccd608d9743c49dca21293a
2017-03-10 19:12:43 +00:00
Chia-I Wu
41a1c15a40 graphics: fix a potential use after free
We cannot lookup _and_ update buffer cache entry in lookupBuffer.
The old buffer is still in use by hwcomposer2.  Add updateBuffer to
do the update after the new buffer has replaced the old buffer in
hwcomposer2.

While at it, s/BufferClone/BufferCacheEntry/g.

Bug: 36064845
Test: manual
Change-Id: I59b61c0198ad528c40020fdebbe27a6cc359226f
2017-03-10 10:53:32 -08:00
TreeHugger Robot
96fdc8a42f Merge changes Ic451761c,I0652f1bf,I928cae71
* changes:
  Add VTS for the audio primary device
  Fix segfault in Primary audio hal hidl wrapper getDevice
  Do not skip failing Audio vts tests
2017-03-10 18:17:15 +00:00
Etan Cohen
c57004008a [WIFI][HIDL] Add device-based feature flag support
Add mechanism to define feature support flags to
configure set of Wi-Fi features supported on a particular
device.

Bug: 32997844
Test: integration tests
Change-Id: Iffbf3ba237013f1030b24c0173641234a9c27e5c
2017-03-10 10:07:16 -08:00
Myles Watson
66a4ca3c92 Bluetooth: Power off after closing the UART
Bug: 36084266
Test: angler & marlin switch users (Toggle Bluetooth under load)
Change-Id: I1e0c34e334d11b9dcf9df62cbde3d5556c537bd7
2017-03-10 09:27:23 -08:00
Tomasz Wasilczyk
b39197c5d1 Merge "Add generic flags to ProgramInfo struct." 2017-03-10 16:01:54 +00:00
Yuexi Ma
6b8720110b Change vts target base test class name
Test: make vts succeed, vts kernel tests and nfc hal tests passed
Change-Id: I38ae6cc940d0f17bb3352f360efdf9c70697c76b
2017-03-10 00:42:13 -08:00
Kevin Rocard
3c405a7acf Add VTS for the audio primary device
Its base class was tested but not the primary
device getters and setters.

Test: run the corresponding vts test
Test: vts-tradefed r vts-hal-hidl -m VtsHalAudioV2_0Target

Bug: 34170075
Change-Id: Ic451761c7b8b29fd302a62aba83be6ce7be35f64
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-03-09 18:23:42 -08:00
Kevin Rocard
fd067c3f54 Fix segfault in Primary audio hal hidl wrapper getDevice
Test: run the corresponding vts test
Test: vts-tradefed r vts-hal-hidl -m VtsHalAudioV2_0Target

Bug: 34170075
Change-Id: I0652f1bf748de99a8a2594630daf5ea2acec8934
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-03-09 18:23:41 -08:00
Kevin Rocard
d1e98aef14 Do not skip failing Audio vts tests
Previously failing tests were commented because I thought
our implementation had to pass all tests.

As a mater of facts, it is not the case and tests are allowed to fail.
Bugs will be raised for those failure.
This is much better way to track the fixes that FIXMEs.

Test: run the corresponding vts test
Test: vts-tradefed r vts-hal-hidl -m VtsHalAudioV2_0Target

Bug: 34170075
Change-Id: I928cae712a1cb4411f907b3a9583014ba6487abd
Signed-off-by: Kevin Rocard <krocard@google.com>
2017-03-09 18:23:29 -08:00
Roshan Pius
ee4c11a190 Merge changes If83c1cbe,I12ad2665 am: cdca05557d am: 3b815eee2a
am: b005b3ae2d

Change-Id: Ib9f77fbe6c43c4706cce89a6bcd99d9b840915e1
2017-03-10 01:26:40 +00:00
Roshan Pius
b005b3ae2d Merge changes If83c1cbe,I12ad2665 am: cdca05557d
am: 3b815eee2a

Change-Id: I3fe19d41a610b80fcb28e0db4f1264770b1659f3
2017-03-10 01:23:30 +00:00
Roshan Pius
3b815eee2a Merge changes If83c1cbe,I12ad2665
am: cdca05557d

Change-Id: Ifc3dbe11f88ceb83d77f0334894f739bbc64e1c9
2017-03-10 01:21:09 +00:00