Commit graph

1323 commits

Author SHA1 Message Date
Tri Vo
e5d852f96b libhardware_legacy: add trong to OWNERS
Bug: n/a
Test: n/a
Change-Id: Ib68c04cd0eeb668a3ac0da130b6754c2c9cdc65a
2018-10-22 15:19:45 -07:00
Tri Vo
36c877ff06 Merge "Simplify libpower"
am: e9f8002117

Change-Id: I28fc49eda15688d4c240ead6ffd67082aad41720
2018-10-16 17:17:10 -07:00
Tri Vo
e9f8002117 Merge "Simplify libpower" 2018-10-16 23:56:02 +00:00
Tri Vo
8eb59a0050 Simplify libpower
Changed:
- simplified getting system suspend service
- added isOk() check when releasing a wake lock

Bug: 117575503
Test: presubmit
Change-Id: I78f1f50a7670e7df88e59999c35f99a6df06e8ef
2018-10-16 13:30:58 -07:00
Tri Vo
f65f240c32 Merge "libpower: acquire wake locks from SystemSuspend service."
am: aa8f6d2a2d

Change-Id: Icba174bcfa41904baaa977efa5e937ea57dd0257
2018-10-09 17:21:32 -07:00
Tri Vo
aa8f6d2a2d Merge "libpower: acquire wake locks from SystemSuspend service." 2018-10-09 23:52:06 +00:00
Tri Vo
e0a9c90bf5 libpower: acquire wake locks from SystemSuspend service.
This change routes libpower and libhardware_legacy to SystemSuspend service for
wake locks instead of /sys/power/wake_[un]lock.

Bug: 78888165
Bug: 115946999
Test: /sys/kernel/debug/suspend_stats shows that device suspends if left alone
Change-Id: Id4d392e13d06be6d86e3112dedeb6a57bb24c06f
2018-10-05 17:45:00 -07:00
Xin Li
d0c11842c9 Merge "Merge Android Pie into master" am: af03352f55
am: a12551d120

Change-Id: I82efb3d1d9466fcafa81e287f8cd0329b08c06f8
2018-08-07 17:56:44 -07:00
Xin Li
a12551d120 Merge "Merge Android Pie into master"
am: af03352f55

Change-Id: I36c1fc8dc96058e174dbf16b243f7716e8979987
2018-08-07 14:21:54 -07:00
Xin Li
af03352f55 Merge "Merge Android Pie into master" 2018-08-07 16:51:26 +00:00
Xin Li
acd6440af2 Merge Android Pie into master
Bug: 112104996
Change-Id: I01c750e0e3a33a582b0800f7a3dd6f806a1b11e1
2018-08-06 16:51:06 -07:00
Xin Li
ae3811a4eb Merge pi-dev-plus-aosp-without-vendor into stage-aosp-master
am: d0dcc4afc1

Change-Id: I0559e028bc42d133c9d50b4f2a7eab00a97cf230
2018-06-09 02:42:02 -07:00
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