History log of /system/nfc/src/nfa/hci/nfa_hci_main.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0c515ae1d2edf9202878a7ac7bcbf195333643e5 31-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Readability fix: if statement assignments

Coccinelle-assisted:
@@
variable i;
expression E;
statement S1, S2;
@@

+ i = E;
if (
(
- (i = E)
+ i
!= ...
|
- (i = E)
+ i
== ...
|
- (i = E)
+ i
< ...
|
- (i = E)
+ i
> ...
|
- (i = E)
+ i
<= ...
|
- (i = E)
+ i
>= ...
|
- (i = E)
+ i
)
) S1 else S2

spatch --sp-file if_assignment.cocci --in-place --dir .
find * | grep "\.[ch]" | xargs clang-format --style=file -i

Test: Compiles
Change-Id: Ifb9cde410ed84e0ab8012432ad0ec30df17d1786
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfa/hci/nfa_hci_main.c
6fca02d5010de7bd31d83b853c32138021da5f29 30-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Apply clang-format

find * | grep "\.[ch]" | xargs clang-format --style=file -i

Test: compiles
Change-Id: Id9b790d9685f7ba5ba1bcec1149619b63c2e679a
signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfa/hci/nfa_hci_main.c
0a73688fae255d6c4730747caefaa134bd29b1d6 10-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Use NFC_HDR/_SIZE instead of BT_HDR/_SIZE

Test: Compiles
Change-Id: Icd64463dd10c1af9642d2d0bb3d8fa3ebe1bdd7e
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfa/hci/nfa_hci_main.c
4a179646f6d5567830a0383050aee7610a0222a6 04-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Replace TRUE/FALSE directives with standard true/false

@@
expression E;
@@

(
-E = TRUE
+E = true
|
-E == TRUE
+E == true
|
-E != TRUE
+E != true
|
-E ? TRUE : FALSE
+E ? true : false
)

@@
@@

(
-return TRUE;
+return true;
)

@@
identifier fn;
@@

fn (...,
-TRUE,
+true,
...)

type T1;
identifier i1;
@@

T1 i1 = {
- TRUE,
+ true,
...};

Test: Compiles
Change-Id: I633924fe6bc6a4c3f50634c5e1c6d75fb1d3258f
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfa/hci/nfa_hci_main.c
512ee63c7cc8feb016863e507a5d33cd0f4242bf 03-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Changes data types to standard types.

platform/system/bt/tools/scripts/change_types.sh was used to convert:
UINT8->uint8_t
UINT32->uint32_t
UINT16->uint16_t
INT8->int8_t
INT32->int32_t
INT16->int16_t

Test: Compiles
Change-Id: I7fce2cbff75a2087db46cda7527437a46a627c46
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/system/nfc/src/nfa/hci/nfa_hci_main.c
a24be4f06674b2707b57904deaa0dff5a95823bd 13-Nov-2013 Evan Chu <evanchu@broadcom.com> Upgrade stack to NFA_PI_1.03.66+

Take code from NFCA_MI_430.10.00.07.
Additional changes include:
* Adjust copyright.
* Clean up stack and HAL diagnostic tracing.
* Fix ce_t4t_data_cback() in src/nfc/tags/ce_t4t.c in order to let HCE payment to work.
* Reduce compilation warnings.

Change-Id: I7b174229029d4a4955ff7750623e78c9a8c856f6
/system/nfc/src/nfa/hci/nfa_hci_main.c
e9629bad30a9f478b336ab46b8e6e02f7f87af46 31-Jan-2014 Evan Chu <evanchu@broadcom.com> Adjust copyright year to 2014.

No code change.

Change-Id: Id868ad0356f9b5a43c887de7a3b596bb86be9026
/system/nfc/src/nfa/hci/nfa_hci_main.c
d05817f02d578becbf79b46f2599126404c7b413 26-Jun-2013 Evan Chu <evanchu@broadcom.com> Upgrade to new stack.

Improve reliability when creating NCI connection for HCP.
Improve firmware download during error condition.

Change-Id: I5655d4a66d04debd4a2a91c706393e8a45d6dc59
/system/nfc/src/nfa/hci/nfa_hci_main.c
df5080d7feca9827fd0306471c54f52ecf185c22 14-Jun-2013 Evan Chu <evanchu@broadcom.com> Upgrade stack to NFA_MI_1.03.62.

.conf variable SPD_IGNORE_VERSION is removed. Stack always download
firmware if a difference is detected.

Change-Id: I2a5e21254e6c0df7829506c1c3c2f6ffa44c0048
/system/nfc/src/nfa/hci/nfa_hci_main.c
45e68232b8524aca5165dca28b994ec8c11593b1 01-May-2013 Evan Chu <evanchu@broadcom.com> Send config params on HAL_NfcPreDiscover().

Bug: 8776949
Change-Id: Idbfb9c77304ce0df8521b167f25004bfd18b59d8
/system/nfc/src/nfa/hci/nfa_hci_main.c
5c65c3a0f42e174e47fecd4e569606003217ff4e 27-Mar-2013 Martijn Coenen <maco@google.com> Latest NFC stack-drop from Broadcom.

Patches provided by Evan Chu <evanchu@broadcom.com> and
Paul Chaisson <pchaisson@broadcom.com>.

Most important changes:
- Support for BCM20793B4 and BCM20793B5 revisions in the HAL.
- Remove connection handover and SNEP implementations, since
we already have them in java-land.
- Fix issue where the NFCC is not woken for HCI writes.
- Remove a lot of duplicated code in the HAL.
- Various small fixes.

Change-Id: I00f7457fe7ec23602071532a15bf2be9d7706b37
/system/nfc/src/nfa/hci/nfa_hci_main.c
e9df6ba5a8fcccf306a80b1670b423be8fe7746a 13-Dec-2012 The Android Open Source Project <initial-contribution@android.com> Snapshot 7ddd630e136a035ba463c427285c5c3e9f199ee0

Change-Id: If08c7b905da667dd9e5110231e4592842b634006
/system/nfc/src/nfa/hci/nfa_hci_main.c