Commit graph

1311 commits

Author SHA1 Message Date
Xin Li
d0dcc4afc1 Merge pi-dev-plus-aosp-without-vendor into stage-aosp-master
Bug: 79597307
Change-Id: Ia326704cf26c693f948b52290b489e7d98c559d5
2018-06-08 11:07:52 -07:00
Tri Vo
d68e357f36 Merge "libpower: log errors to logcat" am: 12e55bef5b
am: 437c5a096e

Change-Id: I900b2e782e10bfed0d4011c54bd3a3e405b05fc4
2018-05-17 15:28:04 -07:00
Tri Vo
437c5a096e Merge "libpower: log errors to logcat"
am: 12e55bef5b

Change-Id: I5ce53f069fecd395b1bbf6633f56405626d46112
2018-05-17 15:24:02 -07:00
Treehugger Robot
12e55bef5b Merge "libpower: log errors to logcat" 2018-05-17 22:15:48 +00:00
Tri Vo
80cdb8d1d0 libpower: log errors to logcat
Bug: n/a
Test: failure to open /sys/power/wake_lock is now recorded in logcat
Change-Id: Ifb390888d0e83b411295a35a3addbef604c930d0
2018-05-17 13:34:33 -07:00
Bernie Innocenti
efe0474c98 Add wifi_read_packet_filter() to the legacy wifi hal
am: 8c64fe9b12

Change-Id: I5c9d0e03cfb80a5d38274c901700c26874c36bde
2018-03-27 04:02:21 +00:00
Bernie Innocenti
8c64fe9b12 Add wifi_read_packet_filter() to the legacy wifi hal
This is used to implement readApfPacketFilterData() for legacy wifi
drivers.

Bug: 73804303
Test: builds!
Change-Id: I562911cc064efec747629628df4eab8128449b51
(cherry picked from commit f70b864ede)
2018-03-16 03:13:59 +00:00
Steven Moreland
521c029cc0 Add OWNERS to libhardware_legacy.
am: 8564c41780  -s ours

Change-Id: If6fd995149ac483fa02e95acf1ddef954c6ddbc2
2018-03-09 22:32:52 +00:00
Etan Cohen
9b1ac85633 Merge "[RTT][AWARE] Introduce NAN ranging status codes" into pi-dev
am: 166e1f9b89

Change-Id: I476bc8068f89026417c811daa333f21f3ba0edd3
2018-03-09 20:16:35 +00:00
Steven Moreland
8564c41780 Add OWNERS to libhardware_legacy.
libhardware_legacy is the legacy deprecated version
of the legacy and deprecated library libhardware.
In it are defined vendor/system interfaces. One common
pattern is for the following call flow to happen:

<vendor code>
  -> legacy interface
      -> HIDL
          -> legacy interface
              -> <framework client code>

Because of this, it's possible to circumvent the stable ABI
provided in HIDL by accidentally passing through data which
is not represented in the vendor interface. This causes
coupling of system/vendor components by way of an undeclared
ABI.

This initial OWNERS file was created with the following groups:
    <HIDL specific players>
    <common committers> intersect <familiarity with this problem>

Bug: 70526789
Bug: 37280010
Test: N/A

Merged-In: Icebeb958b41cb505d76341f3d53a3e175a3c92bd
Change-Id: Icebeb958b41cb505d76341f3d53a3e175a3c92bd
2018-03-09 10:48:17 -08:00
Etan Cohen
166e1f9b89 Merge "[RTT][AWARE] Introduce NAN ranging status codes" into pi-dev 2018-03-09 16:10:02 +00:00
Steven Moreland
25ff26ca77 Merge "Add OWNERS to libhardware_legacy." am: a0f1235676
am: 80b54883a7

Change-Id: I86d75497e9532fb0bfb608ef1028f5a2fc181983
2018-03-09 03:03:01 +00:00
Steven Moreland
80b54883a7 Merge "Add OWNERS to libhardware_legacy."
am: a0f1235676

Change-Id: I0361284025da6c7ac845e6079d08e4efb3647f96
2018-03-09 02:30:32 +00:00
Treehugger Robot
a0f1235676 Merge "Add OWNERS to libhardware_legacy." 2018-03-09 02:22:19 +00:00
Srinivas Dasari
fbf63f350a [RTT][AWARE] Introduce NAN ranging status codes
Bug: 73176307
Test: RangeAwareTest with known failures
Change-Id: I3149f9658b8657908a282af219c466b4a6bfacc7
2018-03-08 13:38:41 -08:00
Steven Moreland
cdd3222423 Add OWNERS to libhardware_legacy.
libhardware_legacy is the legacy deprecated version
of the legacy and deprecated library libhardware.
In it are defined vendor/system interfaces. One common
pattern is for the following call flow to happen:

<vendor code>
  -> legacy interface
      -> HIDL
          -> legacy interface
              -> <framework client code>

Because of this, it's possible to circumvent the stable ABI
provided in HIDL by accidentally passing through data which
is not represented in the vendor interface. This causes
coupling of system/vendor components by way of an undeclared
ABI.

This initial OWNERS file was created with the following groups:
    <HIDL specific players>
    <common committers> intersect <familiarity with this problem>

Bug: 70526789
Bug: 37280010
Test: N/A

Change-Id: Icebeb958b41cb505d76341f3d53a3e175a3c92bd
2018-03-08 13:05:44 -08:00
Ahmed ElArabawy
27176c7aef WiFi: Vendor HAL function to wait for driver ready
am: 9dfdd473dc

Change-Id: I6b72dea82d3a2d2ff6b4ed450fbfbd0d20cd7648
2018-03-06 22:59:00 +00:00
Ahmed ElArabawy
9dfdd473dc WiFi: Vendor HAL function to wait for driver ready
This commit adds a vendor hal function to wait for the driver to be
ready. This ensures the driver is ready for operatin before framework
starts to use it

Bug: 73482286
Test: Manual test (reboot and make sure wifi comes up consistently)
Test: The reboot test has been performed more than 10 times in a row
Test: Also, tested toggling wifi off/on then rebooted, wifi starts fine

Change-Id: I31bc594525762454b0c2f491486ffe575843c858
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-03-06 19:54:05 +00:00
Ahmed ElArabawy
f0d31da98c WiFi: Add more Power Limit Scenarios for SAR
This commit extends SAR by adding more scenarios to handle near
body/head cases

Bug: 65174506
Test: Manual

Change-Id: I02fe09e450b7ca4800750169f14b1ad05308b8b0
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2018-01-26 14:18:02 -08:00
Kevin Rocard
3a106ee0e0 Merge "Revert "Audio V4: Split system and vendor Audio.h"" 2018-01-24 06:26:16 +00:00
Kevin Rocard
049b71876c Revert "Audio V4: Split system and vendor Audio.h"
This reverts commit c9eb1ead66.

Reason for revert: Breaks the build of multiple devices

Change-Id: I2a4fe487d60b484c19d8b07d1439af934b852913
2018-01-24 06:13:30 +00:00
Kevin Rocard
475fd0d15f Merge "Audio V4: Split system and vendor Audio.h" 2018-01-24 04:04:47 +00:00
Srinivas Dasari
53fb062ce8 wifi: Added new event callback to fetch hardware mode
Introduce new event callback to fetch current wifi hardware
mode.
i.e on_radio_mode_change

Bug: 68349158
Test: Compiles

(cherry-picked from 4a419dbf8550ad057574c7851e7fa0d0ca8ced0e)

Change-Id: Ib31ad152d24b91d8f184f1e16a53a47488ab4df9
2018-01-23 06:56:36 -08:00
Kevin Rocard
c9eb1ead66 Audio V4: Split system and vendor Audio.h
audio.h and its dependencies (audio-effect.h, sound_trigger.h...)
used to be shared between system and vendor code.

This led to multiple problems:

1) Such sharing contradicts the Treble policy of
strict independence of framework and vendor code.

2) When audio.h was changed, every vendor needed to update
its code in the next release. This meant that audio*.h
headers were mostly changed in backward compatible manner.
Nevertheless, for P the HIDL interface and thus the audio.h
interface are changed in backward incompatible way.
(Some enum are becoming 64 bit long).

3) As the headers were common, some API used only by the framework
needed to be visible to the vendors (mostly enum values).

4) Treble policy is to support at least one previous HAL version

As a result the audio*.h headers are now duplicated,
one set for the framework, and one for the vendor.

Each set will evolve independently. After this split,
the framework-only APIs will be removed from the vendor headers
and vice versa.

The split is implements as such:

 + for system code

    - NOT moving the libaudio_system_headers
      Eg: system/audio.h and system/audio_effects/effect_equalizer.h
          are still in system/media/audio

    - the legacy audio HAL API that were in libhardware headers
          are now in libaudiohal_legacy_headers
      Eg: hardware/audio.h and hardware/audio_effect.h
          are now in frameworks/av/media/libaudiohal/legacy/

 + for vendor code

    - moving libaudio_system_headers and the legacy audio HAL API
          that were in libhardware_headers in
          android.hardware.audio.common.legacy@2.0
      Note that those headers are now versioned, so migrating to a @4.0
          HIDL HAL will mean changing the legacy dependency too.
      Eg: system/audio.h, system/audio-effect.h, hardware/audio.h
          are now in hardware/interfaces/audio/common/2.0/legacy

    - the legacy audio effect HAL API that was in libaudioeffects
          is now moved in android.hardware.audio.effect.legacy@2.0
      Eg: audio_effects/effect*.h are now in
          hardware/interfaces/audio/effect/2.0/legacy

    - the legacy sound trigger HAL API that were in libhardware_headers
          is now moved in android.hardware.soundtrigger.legacy@2.0
      Eg: hardware/sound_trigger.h is now in
          hardware/interfaces/audio/effect/2.0/legacy

libaudioutil being used by both system and vendor, had
to be renamed for system to libaudioutil_system.

Vendor libs that now depend on the audio.h of a specific
version and are not extensively referenced in non google code,
append @2.0 to their name.

Note that headers that are not expected to change in the 4.0 HAL are
left in all-versions folder to avoid duplication.
This is an implementation detail as the versioned libraries export
the all-versions headers.

Note that strict vendor-system separation is enforced by the
build-system. The system headers are not available for vendor
libs and vice-versa.

Note that this patch is split between numerous git repository (>10),
all the commits having the same Change-id for searchability.

Note that audio_policy.h is no longer exposed to vendors
as the legacy audio policy HAL API was never officially supported.
As a result the audiopolicy stub implementation has been removed.

Test: compile taimen-userdebug walleye-userdebug
              sailfish-userdebug marlin-userdebug
              gce_x86_phone-userdebug gce_x86_phone
              full-eng aosp_arm aosp_x86-eng
Test: check that the emulator booted and played audio
Test: full QA on sailfish-userdebug and taimen-userdebug
Bug: 38184704
Change-Id: I950f4e0a55613d72e32eba31bd563cb5bafe2d1a
Signed-off-by: Kevin Rocard <krocard@google.com>
2018-01-20 21:39:40 -08:00
Subhani Shaik
a5d8dde1a9 [AWARE]: Modifying the range measurements to millimeters
Bug: 69428593
Test: builds (integration tests pending firmware update)
Change-Id: I070c2126329a487450e3b91ac8eb191ed9948e92
2017-12-14 18:07:52 -08:00
Subhani Shaik
c13dd63623 [AWARE]: Add channel info to confirm, schedule update
Bug: 37007030
Test: builds, integration tests passing
Change-Id: I65322a8e673cfeb5699f022628bcfc2476946bcc
2017-12-12 16:19:25 -08:00
Subhani Shaik
a470c8fb33 [AWARE]: Enable new config options in Enable/Config APIs
1) Enable device level ranging option.
2) config nss.
3) config dw early termination.

Bug: 67745737
Test: builds, integration tests passing
Change-Id: I22315785bd5e42a7ce5e209cecbd997f62053cc8
2017-12-12 16:19:08 -08:00
Subhani Shaik
229806a7e2 [AWARE]: Add support to config NAN discovery beacon interval
Add support to configure discovery beacon interval in NAN enable
and config request.

Bug: 67745737
Test: builds, integration tests passing
Change-Id: I44d1918f740b35e39d751f26a5b5e4ee9b371a84
2017-12-12 16:18:16 -08:00
Subhani Shaik
b600992ac7 [AWARE]: Add support for NAN qos config, schedule update channel
Add qos config parameter in sdea control parameters and also
add schedule update channel as part of nan sync stats.

Change-Id: I8b56bf49dc3b0a7139a1bfd8698114f0fbf2fd16
2017-12-12 16:17:02 -08:00
Chih-hung Hsieh
67b598c76d Merge "Use -Werror in hardware/libhardware_legacy" am: 8087f07a2b am: a35e4c72b1 am: 6817e3fa13
am: ccc1d81bbe

Change-Id: I4fe70d00d2d1b5c33563a80700a11568be539420
2017-10-12 03:13:41 +00:00
Chih-hung Hsieh
ccc1d81bbe Merge "Use -Werror in hardware/libhardware_legacy" am: 8087f07a2b am: a35e4c72b1
am: 6817e3fa13

Change-Id: I1dc39bea1a185e6e5c25205c0282bcc4e0da5429
2017-10-12 01:58:47 +00:00
Chih-hung Hsieh
6817e3fa13 Merge "Use -Werror in hardware/libhardware_legacy" am: 8087f07a2b
am: a35e4c72b1

Change-Id: I8f18572a9df2cbcea8a837b7f48bdb93ffee4dd9
2017-10-12 01:35:37 +00:00
Chih-hung Hsieh
a35e4c72b1 Merge "Use -Werror in hardware/libhardware_legacy"
am: 8087f07a2b

Change-Id: Iaf79e2ae121bda6d13b05b53d809453771040a3d
2017-10-12 01:28:00 +00:00
Chih-hung Hsieh
8087f07a2b Merge "Use -Werror in hardware/libhardware_legacy" 2017-10-12 00:53:24 +00:00
Chih-Hung Hsieh
3ba7298e95 Use -Werror in hardware/libhardware_legacy
* Remove unused local variable or suppress the warning.

Bug: 66996870
Test: build with WITH_TIDY=1
Change-Id: I4d7b4f2e9e7e6c60d8bfc209f47e6f1d33720165
2017-10-03 13:38:46 -07:00
Justin Yun
a211035d88 Merge "Mark the module as VNDK or VNDK-SP in Android.bp" am: 53401d7c35 am: 9b7fbccdb4 am: 8f54321751 -s ours
am: 51106ccf98  -s ours

Change-Id: I040adff97163613a0b2f661a34bb5718b9dfaeb8
2017-09-14 06:33:38 +00:00
Justin Yun
51106ccf98 Merge "Mark the module as VNDK or VNDK-SP in Android.bp" am: 53401d7c35 am: 9b7fbccdb4
am: 8f54321751  -s ours

Change-Id: I09c8fc53049573573353c9960e385a86e704498a
2017-09-14 06:04:43 +00:00
Justin Yun
8f54321751 Merge "Mark the module as VNDK or VNDK-SP in Android.bp" am: 53401d7c35
am: 9b7fbccdb4

Change-Id: Iefb1438bf398a6d8c6c7fd3c1ba2b980f51b96fa
2017-09-14 05:48:37 +00:00
Justin Yun
9b7fbccdb4 Merge "Mark the module as VNDK or VNDK-SP in Android.bp"
am: 53401d7c35

Change-Id: Ib83b45cb3a9f72e83bb6a38d1e471527841e85f1
2017-09-14 05:34:56 +00:00
Treehugger Robot
53401d7c35 Merge "Mark the module as VNDK or VNDK-SP in Android.bp" 2017-09-14 01:38:04 +00:00
Justin Yun
39b86dd6ba Mark the module as VNDK or VNDK-SP in Android.bp
As a VNDK/VNDK-SP module, Android.bp must have 'vndk' tag as well
as 'vendor_available: true'.

For a VNDK module, the 'vndk' tag has 'enabled: true'.
It will be installed system/lib(64)/vndk as a vendor variant.

For a VNDK-SP module, the 'vndk' tag has
'support_system_process: true' as well as 'enabled: true'.
It will be installed system/lib(64)/vndk-sp as a vendor variant.

Bug: 63866913
Test: build and boot with BOARD_VNDK_VERSION=current
Merged-In: I9b9d9c0a3f33e396e71167c055220b55380eb1b5
Change-Id: I9b9d9c0a3f33e396e71167c055220b55380eb1b5
(cherry picked from commit 5bed6372b8)
2017-09-07 05:55:06 +00:00
Ivan Lozano
738437d93c Do not include the IAudioFlinger.h header.
This header does not look like it is used anymore, and compilation
succeeds without it, so it seems safe to remove.

Bug: 64223827
Test: 'mma -j4' throws no compilation errors.
Change-Id: Ic7ca90a7ba576d0ae14ee95d2d20c8ddf612754a
2017-08-08 13:35:10 -07:00
Justin Yun
eeffd564c1 Merge "Mark the module as VNDK or VNDK-SP in Android.bp" into oc-mr1-dev am: ab21b93dec
am: b91071601b

Change-Id: I319c3c4fee38cd8531c110157fc623f813ae8053
2017-08-03 06:03:37 +00:00
Justin Yun
b91071601b Merge "Mark the module as VNDK or VNDK-SP in Android.bp" into oc-mr1-dev
am: ab21b93dec

Change-Id: Iffc0701e60aa832e994d92b0ff426640a9555847
2017-08-03 05:57:39 +00:00
TreeHugger Robot
ab21b93dec Merge "Mark the module as VNDK or VNDK-SP in Android.bp" into oc-mr1-dev 2017-08-03 05:49:40 +00:00
Subhani Shaik
08571f6b51 Merge "SAR: Modify tx power API am: cea38b3bba am: 5db6c1cd24" into oc-mr1-dev-plus-aosp
am: a645562473

Change-Id: I327001eb3b25bb5ea390d82d8f70d25ac0c6487d
2017-07-28 03:15:34 +00:00
Subhani Shaik
92df4286c1 SAR: Modify tx power API am: cea38b3bba am: de3f6adf54
am: 5331fefc12

Change-Id: Id93b7f47b1b9fee269e352749d12e50b7e32250f
2017-07-28 03:08:32 +00:00
Android Build Merger (Role)
a645562473 Merge "SAR: Modify tx power API am: cea38b3bba am: 5db6c1cd24" into oc-mr1-dev-plus-aosp 2017-07-28 03:04:24 +00:00
Subhani Shaik
405dec5d7f SAR: Modify tx power API am: cea38b3bba
am: 5db6c1cd24

Change-Id: Ic6c610446eb335f8fa19585fb148dbc316971740
2017-07-28 03:00:38 +00:00
Subhani Shaik
5331fefc12 SAR: Modify tx power API am: cea38b3bba
am: de3f6adf54

Change-Id: Ie41c8169e51603ed3179db4292c139553275a535
2017-07-28 02:59:22 +00:00