Commit graph

1655 commits

Author SHA1 Message Date
Tri Vo
18684e0815 Merge "libpower: pass static-duration strong pointer as const reference."
am: 18ad7b2cba

Change-Id: I592535b4c8956ea5bbb6135907d56d669a16a761
2018-10-22 16:28:29 -07:00
Treehugger Robot
18ad7b2cba Merge "libpower: pass static-duration strong pointer as const reference." 2018-10-22 22:52:49 +00:00
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
18177506a7 libpower: add stress test
Test: libpower_test
Change-Id: I971e9c792d1d44a7c11b746fea880fdf28015753
2018-10-22 14:03:54 -07:00
Tri Vo
e1a9a6337f libpower: pass static-duration strong pointer as const reference.
With this change:
1. We avoid constructing a strong pointer on every call to
getSystemSuspendServiceOnce().
2. In case the function static pointer is corrupted, the error
propagates to the API call where we're able to handle the errors instead
of the compiler-generated code in the return statement of
getSystemSuspendServiceOnce().

Bug: 117575503
Test: device builds/boots
Change-Id: I85b5616efca25063c876b242529e2bf561f5b834
2018-10-22 13:29:30 -07:00
Tri Vo
b8208e174b Merge "Simplify libpower" am: e9f8002117 am: 36c877ff06
am: e68e0986fc

Change-Id: I6e805ca057d445e64b1bc7355d0b5039df2b9e77
2018-10-16 17:43:55 -07:00
Tri Vo
e68e0986fc Merge "Simplify libpower" am: e9f8002117
am: 36c877ff06

Change-Id: Ia82b84bac965b2a3a0de56282e84ff7efe21683a
2018-10-16 17:33:29 -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
3e47120f6d Merge "libpower: acquire wake locks from SystemSuspend service." am: aa8f6d2a2d am: f65f240c32
am: 66ecda2e90

Change-Id: I0d83bafebf7acd282d01a4d3f2532dcbd5cc1d05
2018-10-09 17:35:18 -07:00
Tri Vo
66ecda2e90 Merge "libpower: acquire wake locks from SystemSuspend service." am: aa8f6d2a2d
am: f65f240c32

Change-Id: I215354479653a2fbc2d0a2d962c241dc4d8ee19b
2018-10-09 17:28:37 -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
d003d7d2ad Merge "Merge Android Pie into master" am: af03352f55 am: a12551d120 am: d0c11842c9
am: 4829ce6885

Change-Id: I7d35556653a14c727de187c34b8d43f2fab6f0cf
2018-08-08 02:57:58 -07:00
Xin Li
4829ce6885 Merge "Merge Android Pie into master" am: af03352f55 am: a12551d120
am: d0c11842c9

Change-Id: Ic063bfd94ae4ef9da0a3c62e92ec9a1c471bd1e5
2018-08-07 22:05:51 -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
Eric Laurent
cdb3eb1a56 audio policy: remove special notifications handling in call
Not needed anymore as this is handled by NotificationManager

Test: make
Change-Id: Ice8101407ca0c22c4eb886203817cd139c0e8cd3
2018-06-29 17:39:14 -07:00
Xin Li
d67c8a11de Merge pi-dev-plus-aosp-without-vendor into stage-aosp-master am: d0dcc4afc1
am: ae3811a4eb

Change-Id: I977bdda158a644031919ddbf3e97eaa48dd6fe51
2018-06-09 06:13:53 -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
377baebd62 Merge "libpower: log errors to logcat" am: 12e55bef5b am: 437c5a096e
am: d68e357f36

Change-Id: I489e671b191e61047fbd964b09be5f4e454053c3
2018-05-17 15:32:06 -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
android-build-team Robot
3a032cff24 Snap for 4680594 from 8c64fe9b12 to pi-release
Change-Id: I56daf73bb2d20dabb35212aab11ca06ad6afcd94
2018-03-27 07:25:23 +00:00
Bernie Innocenti
ac4fb9aba3 Add wifi_read_packet_filter() to the legacy wifi hal am: 8c64fe9b12
am: efe0474c98

Change-Id: Ic928f79e47037cf9d72ffcef476641b2b50b6f5e
2018-03-27 04:46:05 +00: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
Bernie Innocenti
f70b864ede Add wifi_read_packet_filter() to the legacy wifi hal
This is used to implement readApfPacketFilterData() for legacy wifi
drivers.

Test: builds!
Change-Id: I562911cc064efec747629628df4eab8128449b51
2018-03-12 23:24:05 +09:00
android-build-team Robot
802820f6c6 Snap for 4647811 from 8564c41780 to pi-release
Change-Id: I416388ae2d941a28bfd350613130cbb1a4b952ae
2018-03-11 08:25:47 +00:00
Steven Moreland
99dec34806 Add OWNERS to libhardware_legacy. am: 8564c41780 -s ours
am: 521c029cc0  -s ours

Change-Id: I5db7cff103c54a23e4bff2df6067e3fe0f963d56
2018-03-09 22:48:15 +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
311131d764 Merge "[RTT][AWARE] Introduce NAN ranging status codes" into pi-dev am: 166e1f9b89
am: 9b1ac85633

Change-Id: I9ec1ae1c7ab12b2070f634b6aaf9811eb42e4cd3
2018-03-09 21:57:00 +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
ebae94a28f Merge "Add OWNERS to libhardware_legacy." am: a0f1235676 am: 80b54883a7
am: 25ff26ca77

Change-Id: I08b45d5579e651a1deebcf8d0559bb10c65135fc
2018-03-09 05:22:11 +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
android-build-team Robot
8ead30aec5 Snap for 4638586 from 9dfdd473dc to pi-release
Change-Id: I9ffedc5528e613f65312a674fc679145e88b735f
2018-03-07 08:27:00 +00:00
Ahmed ElArabawy
11e6e87769 WiFi: Vendor HAL function to wait for driver ready am: 9dfdd473dc
am: 27176c7aef

Change-Id: I96b205a4ce04d129d71522a582ff1fa19cf14b7e
2018-03-07 00:44:24 +00:00