History log of /system/connectivity/wifilogd/local_utils.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9cfc0379b078bdbed45bf0a3c3f5d3afc3860bdf 20-Oct-2016 mukesh agrawal <quiche@google.com> local_utils: add CastEnumToInteger()

In certain debugging contexts, its helpful to
output the raw value of an enum variable.
Add CastEnumToInteger(), to meet this need.

Bug: 32315504
Test: ./runtests.sh (on angler)
Change-Id: Ie19f6643aafd733beab73de2cb50071db208fb7c
/system/connectivity/wifilogd/local_utils.h
fde5bda852c87fa190002b14fed511b7d4a65a50 06-Oct-2016 mukesh agrawal <quiche@google.com> local_utils: add IsPrintableAscii()

Add a utility function to determine whether or not
a character is printable, assuming that the character
is ASCII.

Bug: 31976293
Test: ./runtest.sh (on bullhead)
Test: build for aosp_x86-eng
Test: build for aosp_mips-eng
Change-Id: I7653c99b4f04cbc89fae7821b83bb03fdc334c64
/system/connectivity/wifilogd/local_utils.h
9feb00effe4cbf1810b41f4d52578a1f06729190 07-Oct-2016 Andreas Gampe <agampe@google.com> Revert "local_utils: add IsPrintableAscii()"

Reverted for narrowing conversion issues.

This reverts commit 93c9d132a6bfc3a731f743a4d67df78c40640943.

Bug: 31976293
Change-Id: I4c54ec3c9841e467db967b672b59cf46b5e2b1a5
/system/connectivity/wifilogd/local_utils.h
93c9d132a6bfc3a731f743a4d67df78c40640943 06-Oct-2016 mukesh agrawal <quiche@google.com> local_utils: add IsPrintableAscii()

Add a utility function to determine whether or not
a character is printable, assuming that the character
is ASCII.

Bug: 31976293
Test: ./runtest.sh (on bullhead)

Change-Id: I21add3ecd094bdce0b6ad602bb35b421a9f4c36f
/system/connectivity/wifilogd/local_utils.h
0da05477c58df736e69ec421d14a1c3216011d81 29-Sep-2016 mukesh agrawal <quiche@google.com> local_utils: add CopyFromBufferOrDie

This new template function helps copying data out of a chunk
of memory, into a struct.

Bug: 31862263
Test: ./runtests.sh (on bullhead)
Change-Id: I522c76c245829d5b6397dcd5633421188d44d325
/system/connectivity/wifilogd/local_utils.h
3d8db0877bb66bfea17e37e12a586b4b29440963 01-Oct-2016 mukesh agrawal <quiche@google.com> add ByteBuffer

ByteBuffer provides a simple way of concatenating data, such
as we might want to do when generating a protocol packet.

ByteBuffer is implemented as a class template, rather than a
simple class, because we want to be able to allocate a ByteBuffer
on the stack. For stack allocation, the object size must be
known at compile-time. Hence, ByteBuffer is a class template,
parameterized on the buffer size.

Bug: 31861967
Test: ./runtests.sh (on bullhead)
Change-Id: I1fe89a9cdcf34cf380365b3aad2537edca87a424
/system/connectivity/wifilogd/local_utils.h
53b465f2e5c0cba5212b18bf27d21b84378b0c74 24-Sep-2016 mukesh agrawal <quiche@google.com> local_utils: add SAFELY_CLAMP and GetMaxVal

Add the SAFELY_CLAMP macro, the SafelyClamp() function template,
and the GetMaxVal() function templates.

These facilities provide a safe, flexible, expressive way to
convert between types.

Bug: 31858720
Test: ./runtests.sh (on bullhead)
Change-Id: I034066b13a28954cfcd46a470c487136e5d6a51d
/system/connectivity/wifilogd/local_utils.h
fd65102c2bb8b5a4cfa7d9ddff7d5f6c5d08e623 21-Sep-2016 mukesh agrawal <quiche@google.com> MessageBuffer: add Append()

Add the ability to write to a MessageBuffer, and
unit tests for the same.

(Read functionality will come later.)

Bug: 31653003
Test: ./runtests.sh (on bullhead)
Change-Id: I5d43922364c29710676fd10187d9722a46dfb0db
/system/connectivity/wifilogd/local_utils.h