Commit graph

9887 commits

Author SHA1 Message Date
TreeHugger Robot
a78f67cb72 Merge "fpc: keep fpc in system-background" into pi-dev 2018-03-22 03:29:24 +00:00
Tim Murray
d0fdb4431d fpc: keep fpc in system-background
The fingerprint HAL is insensitive to increased CPU throughput, but it also
has a tendency to spin while waiting for FP hardware. Limit FPC to the
system-background cpuset in order to avoid increased power consumption
when accidentally touching the fingerprint sensor.

bug 76115243
Test: fingerprint in system-background cpuset on taimen

Change-Id: Iaffe6f63bd76b7a1c4acaf0cae980840af515961
2018-03-21 15:42:09 -07:00
TreeHugger Robot
3bf9a53ff3 Merge "Add strongbox KM instance as optional" into pi-dev 2018-03-21 21:22:42 +00:00
Emilian Peev
b99879b106 Camera: Remove length check in case of 'getCameraIdList' am: 51aba6781c
am: 07038cfde1

Change-Id: I3d49fb385056676f48fb9e16daa26467233d3ed2
2018-03-21 09:12:39 +00:00
Emilian Peev
07038cfde1 Camera: Remove length check in case of 'getCameraIdList'
am: 51aba6781c

Change-Id: I652a266528c2eac2e9f9f8531577e565363cb0e7
2018-03-21 09:06:07 +00:00
TreeHugger Robot
14dc815cdc Merge changes from topic "audio-hal-v4" into pi-dev
* changes:
  Audio V4: Update V2 tests to V4
  Fix issues in ReturnIn
  Audio V4: Duplicate V2 tests
2018-03-21 03:13:53 +00:00
TreeHugger Robot
d331fc27af Merge "Remove KM strongbox instance temporarily" into pi-dev 2018-03-20 23:25:58 +00:00
Eino-Ville Talvala
89ff1df0b4 Merge "Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION" into pi-dev 2018-03-20 21:58:15 +00:00
nagendra modadugu
8862966152 Add strongbox KM instance as optional
The strongbox instance of the Keymaster 4.0 HAL
is optional, as not all P devices are expected
to provide an implementation.

Test: builds
Bug: 68112778
Change-Id: I96a18cb31058d82b04ba3486a88ceac26058a7d2
2018-03-20 14:21:42 -07:00
nagendra modadugu
597197a5bf Remove KM strongbox instance temporarily
Strongbox is not supported on all devices
and breaks device builds (cf_x86_phone-userdebug).

This change to be relanded once dependencies are resolved.

Test: builds
Bug: 68112778
Change-Id: I846cdbcfdf7d0a76e0c86518da8a1bb4eeed3caa
2018-03-20 14:08:46 -07:00
TreeHugger Robot
ce77a51349 Merge "Add 5.1.2, 5.1.4, 7.1.2, 7.1.4 output channel masks" into pi-dev 2018-03-20 20:03:33 +00:00
TreeHugger Robot
74978ebac9 Merge "Update Makefiles Missed In Previous Commits" into pi-dev 2018-03-20 18:33:17 +00:00
Emilian Peev
51aba6781c Camera: Remove length check in case of 'getCameraIdList'
Camera providers must be able to report 0 camera devices.

Bug: 75234850
Test: vts-tradefed run vts --skip-all-system-status-check
--skip-preconditions --primary-abi-only --module
VtsHalCameraProviderV2_4Target -l INFO
Change-Id: Id3103ddcb4336fee01ee287c9e450b6f204a3da3
2018-03-20 09:57:07 +00:00
nagendra modadugu
02d1bb7a96 Add strongbox KM instance to compatibilty matrix
Test: builds
Bug: 68112778
Change-Id: If04ff2b5ab95dd1a17c145f509657e5438d00bdc
2018-03-19 18:11:02 -07:00
Nathan Harold
c893754c0d Update Makefiles Missed In Previous Commits
When calling update-makefiles.sh there are
some unrelated changes that were missed in
previous commits.

Bug: 8675309
Test: compilation
Change-Id: I5bf67fbcc809de36bde1869ada7b835566a5198b
2018-03-19 16:37:46 -07:00
TreeHugger Robot
1d8a1c95a0 Merge "Fix order of compatibility matrix." into pi-dev 2018-03-19 20:55:47 +00:00
TreeHugger Robot
ba20b76deb Merge changes I20310606,Ic23b7fb2 into pi-dev
* changes:
  Camera: more external camera CTS fix
  Camera: various external camera CTS fixes
2018-03-19 20:06:27 +00:00
Steven Moreland
6684b2c65c Fix order of compatibility matrix.
Bug: 65028233
Test: N/A
Change-Id: I46a0f86d19ba74186fc6eac32fa7c7b2289bcbdb
2018-03-19 11:23:56 -07:00
Dean Wheatley
ce8b2734f7 Add 5.1.2, 5.1.4, 7.1.2, 7.1.4 output channel masks
They were supposed to be added by the change with id
I2f488462614114e4c82149460b030585981ae15e
but actually were not.

Also, rename OUT_TOP_CENTER_... to OUT_TOP_SIDE_...
according to Dean's suggestion.

Bug: 38184704
Bug: 63901775
Test: make
Change-Id: Ib263b06e4f3aa84525c2255f7a52f9bb39dbebcd
2018-03-19 09:38:00 -07:00
TreeHugger Robot
4f9ad09267 Merge "Camera: Don't limit the camera provider types" into pi-dev 2018-03-19 11:22:19 +00:00
TreeHugger Robot
7371502a1f Merge "VehicleHal::set() should not be able to tamper with a property's AVAILABLE status Properties being (UN)AVAILABLE is used as a one-way communication mechanism from the hardware to the operating system, and not viceversa." into pi-dev 2018-03-17 03:43:20 +00:00
Enrico Granata
74268e6490 VehicleHal::set() should not be able to tamper with a property's AVAILABLE status
Properties being (UN)AVAILABLE is used as a one-way communication mechanism from the hardware
to the operating system, and not viceversa.

Add safety checks in our default HAL implementation to:
  - prevent Android from marking a property as UNAVAILABLE;
  - prevent Android from writing to an UNAVAILABLE property.

The combined effect of these two check is that only AVAILABLE properties are writable,
and they can never be flipped to UNAVAILABLE outside of the HAL implementation itself.

Bug: 74805437
Test: manual
Change-Id: Ib830427d604579015fa142f0fa76f8b73a68a452
2018-03-16 18:31:27 -07:00
Yifan Hong
1d853503ef Update compatibility_matrix.current.xml.
Add the following:
    android.hardware.neuralnetworks@1.0::IDevice/hvx
    android.hardware.soundtrigger@2.1::ISoundTriggerHw/default
    android.hardware.usb.gadget@1.0::IUsbGadget/default
    android.hardware.vibrator@1.2::IVibrator/default
    android.hardware.wifi.hostapd@1.0::IHostapd/default
    android.hardware.wifi.supplicant@1.1::ISupplicant/default
    android.hardware.wifi@1.2::IWifi/default

Test: builds (checks VINTF data at build time)
Bug: 68112778
Change-Id: I3c48f2c35c1a7a63549b1a30c9c2bb02d707a4a2
2018-03-16 16:32:25 -07:00
Eino-Ville Talvala
9171b61588 Camera2: Deprecate LENS_RADIAL_DISTORTION, add LENS_DISTORTION
LENS_RADIAL_DISTORTION is inconsistently defined: in some places, it
is documented to operate on the range [-1...1], and in others, on a
range dependent on the camera lens's intrinsic calibration and focal
length.

Since fixing just the definition will not fix any existing devices
that define this value, deprecate the old key and add a new consistent
one to make sure applications only reference the consistent
definition.

Test: Adjusted camera CTS passes
Bug: 74641761
Change-Id: Icefa3150a5804de264f9e0e98982d038b4dcdb70
2018-03-16 16:17:49 -07:00
TreeHugger Robot
e3558fb720 Merge "When writing a VehiclePropValue to the store, update its status" into pi-dev 2018-03-16 22:41:05 +00:00
TreeHugger Robot
ebc5e9a5ea Merge "blank_screen: shut off all lights" into pi-dev 2018-03-16 19:39:05 +00:00
TreeHugger Robot
dca679a7a9 Merge "light service: mark as shutdown critical" into pi-dev 2018-03-16 19:33:44 +00:00
Steven Moreland
04f859a9b9 blank_screen: shut off all lights
This is used to make the phone appear off by init
during late boot (e.x. fsck for disk health), so
it should shut off all lights (not just the screen).

Bug: 74976325
Test: blank_screen
Change-Id: I790cc3dd856c2c2095fa3cf82519fd30834304ca
2018-03-16 10:31:07 -07:00
Steven Moreland
59dbae92ed light service: mark as shutdown critical
Required because the lights need to be turned off late in boot
(e.x. during fsck for disk health), and before, blank_screen
accessing light encountered a race condition where if it didn't
get scheduled before all of the processes which were getting
shutdown were getting killed, the screen wouldn't blank.

Bug: 74976325
Test: adjusting brightness continues to work
Test: screen blanks during shutdown at the correct time
    including when an artificial 5s delay is inserted when
    the phone normally fscks (which can also be quick)

Change-Id: I57ebc11d7ecf57ee327c681455712f4b53de6fd3
2018-03-16 17:26:21 +00:00
Emilian Peev
36ad119251 Camera: Don't limit the camera provider types
Camera provider types should not be limited to a particular set
of pre-defined values. All providers will be treated equally
by camera framework regardless of their specific type.

Bug: 73738052
Test: run vts --skip-all-system-status-check --skip-preconditions
--primary-abi-only --module VtsHalCameraProviderV2_4Target -l INFO
Change-Id: I379c015d9e2fc4f68a7ad3ae7cd92b9d230dea33
2018-03-16 09:32:13 +00:00
Enrico Granata
0dd64f7b78 When writing a VehiclePropValue to the store, update its status
Bug: 74805437
Test: manual
Change-Id: I0269ae3b2584af3959d3fd3beaf06e3c4272f793
2018-03-15 17:16:10 -07:00
TreeHugger Robot
4f0aaea33d Merge "Fix violation of least privilege principle" into pi-dev 2018-03-15 21:26:35 +00:00
TreeHugger Robot
8f35174d18 Merge "Some changes required for the actual integration with a GUI renderer" into pi-dev 2018-03-15 21:26:20 +00:00
Yu-Han Yang
79b848a796 Merge "Fix breakage by removing #include gps.h" into pi-dev 2018-03-15 19:03:10 +00:00
Steven Moreland
bd417192c1 Merge "Freeze HALs for Android P" into pi-dev 2018-03-15 17:57:22 +00:00
Yu-Han Yang
f2b1866a13 Fix breakage by removing #include gps.h
Bug: 74951218
Fixes: 74951218

Test: aosp_arm64-eng builds
Change-Id: Iae66fc56b5cba01a3a1cb363f62dabd223743438
2018-03-15 17:35:35 +00:00
Wyatt Riley
4bd3e45305 Merge "Mock blacklisting satellites in default implementation" into pi-dev 2018-03-15 15:19:15 +00:00
Kevin Rocard
e3afd40e91 Audio V4: Update V2 tests to V4
Bug: 74037175
Bug: 38184704
Test: vts-tradefed run commandAndExit vts --module VtsHalAudioV4_0Target
Change-Id: Ic8da941fc042b7ef838edf8fdac36b2f0fa1fd32
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-14 19:38:03 -07:00
Kevin Rocard
8532f6b2cc Fix issues in ReturnIn
Bug: 74037175
Test: compile
Change-Id: Icc3a0d1d489474de7c6255a014dccecc4dda4aa2
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-14 19:38:03 -07:00
Kevin Rocard
18f463eeae Audio V4: Duplicate V2 tests
Because VTS must no be modified for old API version (except bug fixes),
as that could break retrocompatiblity.
As a result, a full copy is made. This commit is only:
$ cp -r core/2.0/vts/ core/4.0/vts
$ cp -r effect/2.0/vts/ effect/4.0/vts

With a V2 replaced by V4 test target name to avoid conflict.

Bug: 38184704
Test: Compile
Change-Id: Iddf9e7a9d42bfe84cf067a08d249a9cc0e6b7241
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-03-14 19:38:03 -07:00
Yu-Han Yang
8c7a0309ab Call SetGnssCallback in SetUp
- Each VTS test requires a valid GnssCallback

Bug: 73845705

Test: tested Gnss v1.1 VTS on gce_x86
Change-Id: I2ca8e6b86aeadc60d7ceacbc2ffaf05ea75c0f40
2018-03-15 01:51:27 +00:00
TreeHugger Robot
4f244a3df4 Merge "Update OWNERS" into pi-dev 2018-03-15 01:45:13 +00:00
Steven Moreland
c7f45fa3f7 Freeze HALs for Android P
Bug: 68112778
Test: none
Change-Id: I96fa3748e24230abaf7fb02429c9ceb78ff4d88d
2018-03-14 16:12:32 -07:00
Yu-Han Yang
78652a09fd Update OWNERS
- Add yuhany to 1.1/vts/OWNERS
- Add OWNER file to 1.1/default/

Bug: 73845705
Test: N/A

Change-Id: Id83805edd841d161f1dbfe1907af97d5d7cb2b06
2018-03-14 21:26:41 +00:00
Yu-Han Yang
a2f77322b4 Mock blacklisting satellites in default implementation
- Mock GnssDebug to pass the sanity check.

Bug: 73845705

Test: All Gnss v1.1 VTS tests are passing on gce_x86

Change-Id: I258fb1671d2b682f471207192b8a0feb138c16ab
2018-03-14 14:23:30 -07:00
Janis Danisevskis
3beaef8de4 Fix violation of least privilege principle
The confirmationui HAL does not need to run as user system.

Bug: 63928580
Test: All required services boot and can access what they need
Change-Id: Ic2d6edabf8cca8384a7e0ce49dfc5445a6ec1658
2018-03-14 14:02:36 -07:00
Janis Danisevskis
bb6377e679 Some changes required for the actual integration with a GUI renderer
These changes accumulated during the integration with the Pixel specific
impelemtation. The make it easiser to integrate an GUI renderer with the
core logic.

Bug: 63928580
Test: VTS tests and manual tests
Change-Id: I7001f60709ce806a16f098492bdb71eb05e6ca9a
2018-03-14 14:02:36 -07:00
TreeHugger Robot
31857339ef Merge "graphics: restart HWC when SurfaceFlinger stops" into pi-dev 2018-03-13 22:07:47 +00:00
Yin-Chia Yeh
0d72ef929f Camera: external camera VTS fixes
Test: VTS pass for external camera
Bug: 72261912
Change-Id: I4f1da37081d0b8c1519ecc0ecc0cc6c3850ee2bb
2018-03-13 17:41:33 +00:00
Petri Gynther
3f8211d403 Merge "audio: Register Bluetooth service with audio HAL" into pi-dev 2018-03-13 02:00:33 +00:00