Commit graph

1626 commits

Author SHA1 Message Date
Bob Badour
2c199ab96e Declare license metadata for copied files.
Bug: 151177513

Test: m all dist reportmissinglicenses
Change-Id: Ia6f96edd7aea0b726bc0643b4a4c7c2ce9fe127b
2022-02-13 17:16:51 -08:00
Xin Li
e2555413d1 [automerger skipped] Merge "Merge Android 12" am: 5282db2a81 -s ours am: a954bc4fe0 -s ours am: 45c9cb51ce -s ours
am skip reason: Merged-In I63befde52711ce60502d5ddfcb47e6f1faddbad0 with SHA-1 27b19b918b is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1847662

Change-Id: If487827dc94bd27296fbcef48fa98bcab80cc831
2021-10-08 07:56:26 +00:00
Xin Li
45c9cb51ce [automerger skipped] Merge "Merge Android 12" am: 5282db2a81 -s ours am: a954bc4fe0 -s ours
am skip reason: Merged-In I63befde52711ce60502d5ddfcb47e6f1faddbad0 with SHA-1 27b19b918b is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1847662

Change-Id: Ia5340359b4dbb5916ce611ad9a50a3cc36d241cd
2021-10-08 01:39:10 +00:00
Xin Li
a954bc4fe0 [automerger skipped] Merge "Merge Android 12" am: 5282db2a81 -s ours
am skip reason: Merged-In I63befde52711ce60502d5ddfcb47e6f1faddbad0 with SHA-1 27b19b918b is already in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1847662

Change-Id: I9c9740f32aa192661db7b494f4ffc388fd1490e8
2021-10-08 01:19:44 +00:00
Xin Li
5282db2a81 Merge "Merge Android 12" 2021-10-07 23:50:45 +00:00
Xin Li
0a1470ac3c Merge Android 12
Bug: 202323961
Merged-In: I63befde52711ce60502d5ddfcb47e6f1faddbad0
Change-Id: I58d44f7c910fa23a1d3fdc279252eca063aa32cf
2021-10-06 22:53:41 +00:00
Steven Moreland
a39725ccb6 Merge "Remove ndk_platform backend. Use the ndk backend." am: 18e980bac2 am: 27b19b918b am: ef90be2d62
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1789270

Change-Id: I7cd02e886e2c6af101a1ddcba7d567ffab2710d5
2021-08-25 20:17:20 +00:00
Steven Moreland
ef90be2d62 Merge "Remove ndk_platform backend. Use the ndk backend." am: 18e980bac2 am: 27b19b918b
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1789270

Change-Id: I3d7edd928a51e9af582690705db9da9e2d026d40
2021-08-25 20:02:03 +00:00
Steven Moreland
27b19b918b Merge "Remove ndk_platform backend. Use the ndk backend." am: 18e980bac2
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1789270

Change-Id: I63befde52711ce60502d5ddfcb47e6f1faddbad0
2021-08-25 19:45:22 +00:00
Steven Moreland
18e980bac2 Merge "Remove ndk_platform backend. Use the ndk backend." 2021-08-25 19:28:36 +00:00
Xin Li
3e8852b8ac [automerger skipped] Merge sc-dev-plus-aosp-without-vendor@7634622 am: 4381e43edc -s ours am: ea7041e7a9 -s ours
am skip reason: Merged-In I784966b69df92eb1fde4fa4d80e0b1fad9c70a01 with SHA-1 019e325e34 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/15564470

Change-Id: Ie46cebf3b19a98fe3713481b9ee519732c31f73b
2021-08-17 19:46:10 +00:00
Xin Li
ea7041e7a9 [automerger skipped] Merge sc-dev-plus-aosp-without-vendor@7634622 am: 4381e43edc -s ours
am skip reason: Merged-In I784966b69df92eb1fde4fa4d80e0b1fad9c70a01 with SHA-1 019e325e34 is already in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/15564470

Change-Id: Ie1b18de9be5279089f53843129e402859b262c3b
2021-08-17 18:35:40 +00:00
Xin Li
4381e43edc Merge sc-dev-plus-aosp-without-vendor@7634622
Merged-In: I784966b69df92eb1fde4fa4d80e0b1fad9c70a01
Change-Id: I2b9353fae26aab847985bfe1b702f67f57e82a2f
2021-08-14 06:30:58 +00:00
Jiyong Park
6c8e9f4b94 Remove ndk_platform backend. Use the ndk backend.
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.

Bug: 161456198
Test: m
Merged-In: Ifadc89ec1cdb32dc39d5639665167c7bae336836
Change-Id: I99947e7fc58b5f6ab7d75f2af63b6bf9384917c3
2021-08-09 09:06:11 +09:00
Kalesh Singh
019e325e34 Merge "libpower: Check if suspend service is null" am: a719829bb8 am: 17c06cc780
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1786228

Change-Id: I784966b69df92eb1fde4fa4d80e0b1fad9c70a01
2021-08-04 20:50:10 +00:00
Kalesh Singh
17c06cc780 Merge "libpower: Check if suspend service is null" am: a719829bb8
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1786228

Change-Id: I7419ba70ee90ea493f8b0174a31040d1225d2af8
2021-08-04 20:29:06 +00:00
Kalesh Singh
a719829bb8 Merge "libpower: Check if suspend service is null" 2021-08-04 20:13:01 +00:00
Kalesh Singh
06c0d048b1 libpower: Check if suspend service is null
Before requesting wakelock ensure that we have a valid suspend service.
Use waitForService instead of checkService.

Test: libpower_test
Test: block_suspend
Test: atest NexusLauncherOutOfProcTests:MemoryTests#testAppLaunchFromWorkspace --rerun-until-failure 10
Bug: 195319784
Change-Id: If13e233360a7b5f372dd2991c1891ee0bee8544b
2021-08-04 19:30:18 +00:00
Kalesh Singh
da1d02fbee Merge "libpower: Use AIDL suspend HAL" am: fc7f7499c2 am: c7b64322c2
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1773450

Change-Id: I9b3f2b4bb02871b4b8ac65c2ddf1c740e60dd4db
2021-07-23 18:23:27 +00:00
Kalesh Singh
c7b64322c2 Merge "libpower: Use AIDL suspend HAL" am: fc7f7499c2
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1773450

Change-Id: I1c83a40f1bad480c85e9e31d881638bc5c89b48c
2021-07-23 18:11:23 +00:00
Kalesh Singh
fc7f7499c2 Merge "libpower: Use AIDL suspend HAL" 2021-07-23 17:17:03 +00:00
Kalesh Singh
b64a38eee2 libpower: Use AIDL suspend HAL
Use the system susepnd AIDL hal for requesting wakelocks from libpower
or libhardware_legacy.

Bug: 170260236
Test: boot test on cf (suspend blocker works).
Test: libpower_test
Test: block_suspend
Change-Id: I8fc345c33fb893ca11603826b0e993ca908d5b20
2021-07-22 19:57:05 +00:00
chenpaul
4ebb0af45c Wifi: Add argument "WifiHandle" in "wifi_set_subsystem_restart_handler"
Bug: 178126071
Bug: 183483123
Test: vendor HAL can received API call
Change-Id: I0d6c9ce294e1bcea1ed19e4050babd923e6b6141
2021-03-31 20:15:55 +08:00
chenpaul
35390b6dff Wifi: New API to query the trigger subsystem restart
This commit adds a method to forward the subsystem restart request

Bug: 178126071
Test: Trigger firmware restart and make sure event was forwarded

Change-Id: I5e97e645b630822865b1614f999e8b465a6d2b0b
2021-03-19 15:21:39 +08:00
Ahmed ElArabawy
1e6f8f6fcf Merge "WiFi: Add new SAR scenarios" into sc-dev 2021-03-18 21:10:11 +00:00
Ahmed ElArabawy
958307b14f WiFi: Add new SAR scenarios
This commit adds new SAR Scenarios.

Bug: 162191325
Test: Builds successfully
Change-Id: I70c45a5675b9bc374422fe732f888b3782058dd2
2021-03-15 21:41:42 -07:00
Kumar Anand
f2eed442a6 Wifi: Remove multiple definitions
Remove compilation warnings due to -Wtypedef-redefinition.

Bug: 160212907
Test: Build Successfully
Change-Id: I8925cf33fa64fbba4a6cbb782ecc107a7741fe87
2021-03-15 11:27:54 -07:00
Kalesh Singh
a731921669 Merge "RAII style wakelocks: Add tryGet() factory method." am: ddff8e6dd0 am: e3a6357533 am: 9176bf1929
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1592033

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I51ad002d2d778d6e674a86363e74eb5040d3219a
2021-02-24 23:51:50 +00:00
Kalesh Singh
9176bf1929 Merge "RAII style wakelocks: Add tryGet() factory method." am: ddff8e6dd0 am: e3a6357533
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1592033

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4788f1e46ef2c581f74cdbb10350ccd7f9547c6a
2021-02-24 22:58:01 +00:00
Kalesh Singh
e3a6357533 Merge "RAII style wakelocks: Add tryGet() factory method." am: ddff8e6dd0
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1592033

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1d63478a6f2956d687971033621360f2abb3b9d2
2021-02-24 22:14:07 +00:00
Kalesh Singh
ddff8e6dd0 Merge "RAII style wakelocks: Add tryGet() factory method." 2021-02-24 18:49:58 +00:00
Kalesh Singh
d8da2af1e5 RAII style wakelocks: Add tryGet() factory method.
Wakelock acquisition can fail if suspend service is not available.
Make this clear by returning an optional value that client must
check before entering wakelock critical sections.

Bug: b/179229598
Test: Boot test on Pixel 4 device
Change-Id: Ied00fa919c20d8a30f1c40ee34a91a2a7e240689
2021-02-23 10:06:19 -05:00
Xin Li
98759c6fb5 [automerger skipped] Mark ab/7061308 as merged in stage. am: b4d4bcc011 -s ours am: c48f0b7f15 -s ours
am skip reason: Change-Id If168d378ac5793e151f2b502b004e4da515865e7 with SHA-1 60185e956c is in history

Original change: undetermined

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I69e22496eb5ce2ae342e5eebec88fc1526628ec4
2021-02-20 17:37:41 +00:00
Bob Badour
b6ce28b677 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/libhardware_legacy" am: afd79930cc am: 63be865585 am: fba2066876
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1588038

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I362a99e806ff938c3105e654fd3251a9da875d00
2021-02-20 17:23:05 +00:00
Xin Li
c48f0b7f15 [automerger skipped] Mark ab/7061308 as merged in stage. am: b4d4bcc011 -s ours
am skip reason: Change-Id If168d378ac5793e151f2b502b004e4da515865e7 with SHA-1 60185e956c is in history

Original change: undetermined

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9d3d3168ae0b6b56a8fe1a44ebb1be137f5276b4
2021-02-20 11:44:23 +00:00
Xin Li
b4d4bcc011 Mark ab/7061308 as merged in stage.
Bug: 180401296
Merged-In: If168d378ac5793e151f2b502b004e4da515865e7
Change-Id: I584355711fa46131ff11fdafdb1cfcc53882796b
2021-02-20 00:24:30 -08:00
Bob Badour
fba2066876 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/libhardware_legacy" am: afd79930cc am: 63be865585
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1588038

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie510edc0b80ce8fb322aeaf77faadc2171f0d833
2021-02-19 02:25:32 +00:00
Bob Badour
63be865585 Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/libhardware_legacy" am: afd79930cc
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1588038

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9bc3c423e20e821e7d841b67cbdb6a811fbe25a9
2021-02-19 00:58:45 +00:00
Bob Badour
afd79930cc Merge "[LSC] Add LOCAL_LICENSE_KINDS to hardware/libhardware_legacy" 2021-02-18 23:43:50 +00:00
Kumar Anand
33adbb23f6 Wifi: Filter usable channels by Coex, Concurrency
Add ability to filter usable channnels due to coex &
concurrency limitations. Normally in standalone mode,
list of usable channels is dictated by regulatory. But
list of usable channels could be additionally limited
due to coex and also due to concurrency limitations.

Bug: 160212907
Test: Using halutil
Change-Id: Iafde3b4fe9ca8986404ee078ed0a1a31062a4bbb
2021-02-16 14:12:48 -08:00
Bob Badour
9380e9875c [LSC] Add LOCAL_LICENSE_KINDS to hardware/libhardware_legacy
Added SPDX-license-identifier-Apache-2.0 to:
  Android.bp
  audio/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: Id879ff71929846da71ae2df96ab748a4ad464d82
2021-02-12 16:32:13 -08:00
Kumar Anand
b25c2d1d71 Wifi: New API to query the list of usable channels
Introduce a new API that can be used to query what modes (SAP,
STA, WFD Client, WFD Group Owner, TDLS, NAN) can be supported
on each channel. With this new API driver, has flexibility to
indicate to framework unambiguously what channels are usable
by each mode. Until now, framework had to derive this using
one of the NL80211_FREQUENCY_ATTR_X (NO_IR, DFS, INDOOR) which
is not sufficent to unambiguously determine allowed channels
for each interface modes.

Bug: 160212907
Test: Using halutil
Change-Id: I25ce9b5083bd6fb650e02c5113bc11b559e80cb5
2021-01-28 20:54:18 +00:00
Kai Shi
8485407bcc Add wifi_set_dtim_config for power optimization
Add the new HAL API for WLAN power optimization in the suspend mode.

Test: halutil test
Bug: 170678227
Change-Id: Icff3d01585213431be539913c8d229fdc4875934
2021-01-11 20:30:17 -08:00
Damon Kim
359fa1d1ba HAL: Fix to support CCA Level and Load info in WiFi link-layer statistics.
- CCA Level and Load info
  (Channel Utilization and Station Count from BSS load IE in beacon)
- For supporing this feature,
  DHD and HALUTIL also should be fixed accordingly. (>= DHD 101.10.460)

Bug: 173477163
Test: Builds successfully
Change-Id: Ic1bd3e26888f8005fdb6c14d8ffeee9d3d04c3d3
2021-01-07 14:34:50 -08:00
Kai Shi
3adc28c891 Add HAL API for VoIP optimization
Add HAL API for VoIP optimization. This includes set_voip_mode() as well
as TWT control related API.

Test: compilation
Bug: 166311728
Change-Id: Ib1210cf200ed692433626b8df549262ddf660359
2020-12-18 12:51:42 -08:00
Quang Luong
f499981aa0 libhardware_legacy(wifi): Add enum for wifi coex restrictions
Add custom enum for wifi coex since IfaceType is not suitable for
bitmasks.

Bug: 153651001
Test: build
Change-Id: I58b55c64f5358ff26fc45451b66e8818bb3c3d30
2020-12-15 05:49:48 +00:00
Quang Luong
85f84d3796 libhardware_legacy(wifi): Add coex APIs
Bug: 153651001
Test: build
Change-Id: Id7f551fd2446a0484e229145a14ef27facaeab97
2020-12-04 18:18:52 -08:00
Treehugger Robot
e7d9ae1c91 [automerger skipped] Merge "Convert mask types from uint32_t to enum type" am: df5a00d27b am: 1da7880c26 am: 60185e956c -s ours
am skip reason: Change-Id I6366511b421ccab2782310ecc15a13e08d9c17af with SHA-1 afea6a410f is in history

Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1510516

Change-Id: I7d99cb74afd6c8c0fe84c75961633fbe7cd5d8e3
2020-12-01 18:27:58 +00:00
Treehugger Robot
60185e956c Merge "Convert mask types from uint32_t to enum type" am: df5a00d27b am: 1da7880c26
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1510516

Change-Id: If168d378ac5793e151f2b502b004e4da515865e7
2020-12-01 18:08:52 +00:00
Treehugger Robot
1da7880c26 Merge "Convert mask types from uint32_t to enum type" am: df5a00d27b
Original change: https://android-review.googlesource.com/c/platform/hardware/libhardware_legacy/+/1510516

Change-Id: I1cc5c8b2b2285d5fc6d804e3fe40f47d3c65a91b
2020-12-01 17:42:20 +00:00