Commit graph

3341 commits

Author SHA1 Message Date
Colin Cross
69735185b6 Merge "Make gralloc enums unsigned" am: e1582496f9 am: e4f267c1a1
am: 5f1f8915f9

Change-Id: I55e70cb51adb4613d9ce61d6c32365b6cddfb6e0
2016-10-08 22:50:38 +00:00
Colin Cross
5f1f8915f9 Merge "Make gralloc enums unsigned" am: e1582496f9
am: e4f267c1a1

Change-Id: I6c75d413fa8cb1702b7e3783be5454a2567fcc6e
2016-10-08 22:45:37 +00:00
Colin Cross
e4f267c1a1 Merge "Make gralloc enums unsigned"
am: e1582496f9

Change-Id: I77148ea10f16f9c387f94335b93f1a628141adee
2016-10-08 22:41:07 +00:00
Colin Cross
e1582496f9 Merge "Make gralloc enums unsigned" 2016-10-08 22:33:50 +00:00
Colin Cross
92bba13dd1 Make gralloc enums unsigned
hardware/libhardware/include was being included with -isystem, which
hides warnings.  The gralloc enum values are used as bitmasks on
unsigned types, explicitly mark them values as unsigned in order to
force the type of the resulting enum to be unsigned.

Bug: 32018017
Test: m -j
Change-Id: Iea281480574e0a7a8413273983c76c2c0f9f7049
2016-10-08 11:40:17 -07:00
Colin Cross
ca5c1a5db0 Merge changes If68bf155,I35f950ba,Idb430c45,I71a1d33a am: 3b08202c1b am: 0e9c559e41
am: c2718f802a

Change-Id: I725d3ad7488cc0337344ef4584e48840fe7a5c39
2016-10-08 00:49:06 +00:00
Colin Cross
2b932a434e Avoid C-style cast warnings am: cc8d9f9fcb am: ac416b9ed3
am: 9a786a3044

Change-Id: I35021c183bb6772c47a0e6ba9d94215dd0728d33
2016-10-08 00:49:03 +00:00
Colin Cross
74ca55073d Add name for typedef am: 64cd91274f am: 6ce096549f
am: 6f437dc0be

Change-Id: I84c46c06bd205d9cbddc5b7e565c664c5ea66e64
2016-10-08 00:49:01 +00:00
Colin Cross
848c07bfcc Fix enum switch warnings am: 248ec3da8b am: 1c74c66219
am: 3a69a4a432

Change-Id: I766feb96c1aa2576801723552509b07338ce8937
2016-10-08 00:48:59 +00:00
Colin Cross
14c19f32da Fix doc warnings am: 867e1e3043 am: 18bf56aeb7
am: 876f1ffb95

Change-Id: I33ace130d5c9751045f1cd3b15fedda69fc17950
2016-10-08 00:48:57 +00:00
Colin Cross
c2718f802a Merge changes If68bf155,I35f950ba,Idb430c45,I71a1d33a am: 3b08202c1b
am: 0e9c559e41

Change-Id: I081863b9a68718a547b060026cb2c17efe049389
2016-10-08 00:44:08 +00:00
Colin Cross
9a786a3044 Avoid C-style cast warnings am: cc8d9f9fcb
am: ac416b9ed3

Change-Id: Ia98fdea4ff7d0b2804ade2be3cf38fc637f0caee
2016-10-08 00:44:05 +00:00
Colin Cross
6f437dc0be Add name for typedef am: 64cd91274f
am: 6ce096549f

Change-Id: I69ed977862dd309c8b6f44231a364dea5bce913f
2016-10-08 00:44:00 +00:00
Colin Cross
3a69a4a432 Fix enum switch warnings am: 248ec3da8b
am: 1c74c66219

Change-Id: Ieb23d7bea30c79b65710ca7a6c9e262c8fad05a2
2016-10-08 00:43:58 +00:00
Colin Cross
876f1ffb95 Fix doc warnings am: 867e1e3043
am: 18bf56aeb7

Change-Id: I0b7562abf5d905d72cd6134e6e4d81c294f1dc92
2016-10-08 00:43:56 +00:00
Colin Cross
0e9c559e41 Merge changes If68bf155,I35f950ba,Idb430c45,I71a1d33a
am: 3b08202c1b

Change-Id: I8ccfb9f87ff47d3ffe0d7a8447cf7ed3305798d3
2016-10-08 00:40:03 +00:00
Colin Cross
ac416b9ed3 Avoid C-style cast warnings
am: cc8d9f9fcb

Change-Id: Ia3f4055fc83a9e7273c162f8095bd36f9f63af1f
2016-10-08 00:40:02 +00:00
Colin Cross
6ce096549f Add name for typedef
am: 64cd91274f

Change-Id: Ide4ad000ad2a8951b62e722cb5c09d36df1c9924
2016-10-08 00:40:00 +00:00
Colin Cross
1c74c66219 Fix enum switch warnings
am: 248ec3da8b

Change-Id: Ib581466c7f514ee89d8b902eb86d9e6b33e21753
2016-10-08 00:39:58 +00:00
Colin Cross
18bf56aeb7 Fix doc warnings
am: 867e1e3043

Change-Id: Ic9c6c1dddd1243fa01102fafcbe1ab5462316644
2016-10-08 00:39:56 +00:00
Colin Cross
3b08202c1b Merge changes If68bf155,I35f950ba,Idb430c45,I71a1d33a
* changes:
  Avoid C-style cast warnings
  Add name for typedef
  Fix enum switch warnings
  Fix doc warnings
2016-10-08 00:32:04 +00:00
Colin Cross
cc8d9f9fcb Avoid C-style cast warnings
hardware/libhardware/include was being included with -isystem, which
hides warnings.  Use a macro to convert modules to hw_device_t** to call
the open function that works in C++ and C.

Bug: 32018017
Test: m -j
Change-Id: If68bf15581975f1217fcab366cef7bc784894641
2016-10-07 13:10:20 -07:00
Colin Cross
64cd91274f Add name for typedef
hardware/libhardware/include was being included with -isystem, which
hides warnings.  Add the missing name for a typedef.

Bug: 32018017
Test: m -j
Change-Id: I35f950ba3e26836cb51312ef28e98748f29d8cd8
2016-10-07 13:10:07 -07:00
Colin Cross
248ec3da8b Fix enum switch warnings
hardware/libhardware/include was being included with -isystem, which
hides warnings.  -Wswitch requires that all cases in a switch statement
on an enum be enum values.  For enums being used as bit flags, cast the
enum to an int.

Bug: 32018017
Test: m -j
Change-Id: Idb430c451d017bb7ec61a7119d6abd87b6dcdc87
2016-10-07 13:10:07 -07:00
Colin Cross
867e1e3043 Fix doc warnings
hardware/libhardware/include was being included with -isystem, which
hides warnings.  Fix use of doxygen function comments on on function
pointers, which are not considered functions or methods.

Bug: 32018017
Test: m -j
Change-Id: I71a1d33a9ae90b646bf22f32e052bbe22e8aca76
2016-10-07 13:10:07 -07:00
Tucker Sylvestro
8f1436275a Treat all tags as unsigned when comparing them
am: 28a872eb79

Change-Id: If741daf9b99a3cb8f73f9ff3b06699b662b6b54a
2016-10-06 14:36:52 +00:00
Peng Xu
4b36c5e462 Merge "[sensor] Clarification of sensor HAL behavior at deactivation" am: 04302ea2fa am: 4b59f97c82
am: 52946f658e

Change-Id: I0b7ee019e397a0e567ddaa5914ec5bacd095c9fc
2016-10-06 00:23:46 +00:00
Peng Xu
52946f658e Merge "[sensor] Clarification of sensor HAL behavior at deactivation" am: 04302ea2fa
am: 4b59f97c82

Change-Id: I19da92850d6f02e11d8605361c6e5a5c6dcc94cd
2016-10-06 00:20:46 +00:00
Peng Xu
4b59f97c82 Merge "[sensor] Clarification of sensor HAL behavior at deactivation"
am: 04302ea2fa

Change-Id: Ib6f8d3112d2d07cdb492c9c8eb91d61fd7dac60e
2016-10-06 00:18:14 +00:00
Treehugger Robot
04302ea2fa Merge "[sensor] Clarification of sensor HAL behavior at deactivation" 2016-10-06 00:10:02 +00:00
Peng Xu
aaeeaa41bd [sensor] Clarification of sensor HAL behavior at deactivation
Sensor HAL should abandon stale data at deactivation.

Test: documentation change, spell checked.
Bug: 28443809

Change-Id: I29b1d324fc96d0448cdefbf2130161f71c3d3310
2016-10-05 15:17:33 -07:00
Tucker Sylvestro
28a872eb79 Treat all tags as unsigned when comparing them
All tags are presumed to be unsigned, but some of them have signed
representations that are negative.  This caused problems in
AuthorizationSet.Deduplicate, where TAG_APPLICATION_DATA (signed rep
of -1879047492) was being sorted before TAG_INVALID (0), which was
presumed to always be first in the list.

BUG: 30701680
Change-Id: I67047cee21fd7617248022a4674779fe80d5ddfd
2016-10-05 14:39:39 -04:00
Jakub Pawlowski
17e4457688 Merge "Fix an incorrect description of OOB data field" am: 4074ce1408 am: b7698b65e8
am: 46640177e0

Change-Id: Ia915cf667f860a3e6b7c41294bb36434887866f7
2016-09-22 23:14:17 +00:00
Jakub Pawlowski
46640177e0 Merge "Fix an incorrect description of OOB data field" am: 4074ce1408
am: b7698b65e8

Change-Id: I58c03a98b8c117673a7cb99f2efb436b47a76881
2016-09-22 21:58:28 +00:00
Jakub Pawlowski
b7698b65e8 Merge "Fix an incorrect description of OOB data field"
am: 4074ce1408

Change-Id: Idd303ab7cdff1b3cf7f57589eee6ad4f8f0ebbb5
2016-09-22 19:36:45 +00:00
Treehugger Robot
4074ce1408 Merge "Fix an incorrect description of OOB data field" 2016-09-22 18:57:24 +00:00
Jakub Pawlowski
9caabe1563 Fix an incorrect description of OOB data field
Change-Id: Ia3712d9af9d5521e2a3cc9ecbcf7b37fd0755c9a
2016-09-22 17:10:12 +00:00
Eric Laurent
c87b0d0a07 audio effect: add flag for effects without actual processing am: 4725741d0e
am: 5982d8f27f

Change-Id: I0ce09f42cb74ca732b972e3ec1fb0cfc8d69dcc5
2016-09-16 16:37:27 +00:00
Eric Laurent
5982d8f27f audio effect: add flag for effects without actual processing
am: 4725741d0e

Change-Id: I74e8ca3a0670bb49ec69813a2f5bf91994c61515
2016-09-16 16:34:17 +00:00
Eric Laurent
4725741d0e audio effect: add flag for effects without actual processing
Add a flag for effect descriptor indicating that the effect does not
implement a process function. This tells the framework that no
latency or performance penalty comes with enabling this effect.
When this flag is set, the process function does not have to be implemented
by the effect implementation.

Bug: 31491112
Change-Id: I69e6959eb17e04266f4de3f2943c226e34868b1f
2016-09-15 11:52:22 -07:00
Jakub Pawlowski
3a4b3b0308 Merge "Bluetooth: split setting params and enabling advertising (2/3)" am: 9e1a02cc5e am: ba15066e9a
am: ed4ccc945b

Change-Id: Ic5375b71dee0acde6822294e6d9f90d12e5d809f
2016-09-13 08:40:43 +00:00
Jakub Pawlowski
ed4ccc945b Merge "Bluetooth: split setting params and enabling advertising (2/3)" am: 9e1a02cc5e
am: ba15066e9a

Change-Id: I52b2a4000c2042638e81eb7c4c6996d1a2859e6b
2016-09-13 08:38:08 +00:00
Jakub Pawlowski
ba15066e9a Merge "Bluetooth: split setting params and enabling advertising (2/3)"
am: 9e1a02cc5e

Change-Id: I8fb2bf0b7e0da7c6685c53614147f385db1072dc
2016-09-13 08:35:40 +00:00
Treehugger Robot
9e1a02cc5e Merge "Bluetooth: split setting params and enabling advertising (2/3)" 2016-09-13 08:30:27 +00:00
Jakub Pawlowski
bb84c86f5a Bluetooth: split setting params and enabling advertising (2/3)
Proper order of commands when starting advertising:
* set parameters
* set data
* enable advertising

This cannot be achieved when setting advertising parameters and enabling
advertising is put together in one function. Enabling before setting
data might cause first advertisements to be empty. If a device with
hardware filter pick up such advertisement, it might fail to properly
recognize our device.

Bug: 30622771
Bug: 19372779
Change-Id: Iac154beb5129526fa3cd1d1b31eba269459bc9a0
2016-09-13 06:26:14 +00:00
Dan Stoza
99aaae95a3 Merge "Re-add gralloc 1.0 header" am: e7a66b9abc am: b92b5dea6b
am: 59b534aafa

Change-Id: I9c19fd1e962d915d13918be1682f80cd5feec7d3
2016-09-09 21:34:02 +00:00
Dan Stoza
59b534aafa Merge "Re-add gralloc 1.0 header" am: e7a66b9abc
am: b92b5dea6b

Change-Id: Iaa72cc65f8f90923b6f204cc11befc2a089075cf
2016-09-09 21:31:32 +00:00
Dan Stoza
b92b5dea6b Merge "Re-add gralloc 1.0 header"
am: e7a66b9abc

Change-Id: I78acb8c9e3ab9f2e7b8a96768faf42cff5827ad1
2016-09-09 21:28:31 +00:00
Dan Stoza
e7a66b9abc Merge "Re-add gralloc 1.0 header" 2016-09-09 21:21:19 +00:00
Dan Stoza
a2d5b7d898 Re-add gralloc 1.0 header
Adds the header for version 1.0 of the gralloc HAL, now that the
framework properly supports it.

Bug: 28401203
Change-Id: I2ef28ca1e5ed5e9e71a14c4d1c97245051acce6c
2016-09-09 12:04:29 -07:00