Use external/safe-iop to check for overflows on arithmetic
operations.
Also remove an unnecessary copy of Vector/SharedBuffer from
codeflinger and use the copy from libutils instead.
Note that some of the unit tests are somewhat useless due to
test-runner limitations : gtest's ability to filter on abort message
doesn't work when combined with messages formatted by android's logging
system.
bug: 22953624
(cherry picked from commit c609c31fb56ae434caa2d0153cd0a2f74a715071)
Change-Id: I61644633db6b54fa230683615de9724f7fabf6fb
Add images to make up the value of capacity to make the size of
text bigger.
Also adds support display capacity text on four direction:
- if the resolution of charging animation image is horizontal,
the capacity text display on the top of charging animation image,
but on the bottom if CHARGER_CAPACITY_TEXT_ROTATE_180 is selected;
- and if the resolution of charging animation image is vertical,
the capacity text display on the right of charing animation image,
but on the left if CHARGER_CAPACITY_TEXT_ROTATE_180 is selected.
Signed-off-by: Firefly <service@t-firefly.com>
Use a few battery_*.png images to offer a more general
way of storing and loading frames of animation.
Also adds the battery_*.png image and removes the unused
battery_scale.png image.
Signed-off-by: Firefly <service@t-firefly.com>
kernel will send wakeup events before enter suspend
mode if EPOLLWAKEUP flag set, this will prevent the
system from suspending
Signed-off-by: Firefly <service@t-firefly.com>
Add a callback function to retrieve "signal handler" from the bridge,
if the bridge wants it to be managed by the runtime. The signal handler
will be invoked after the runtime's own one, and before any other
chained handler.
Add a callback function to check compatibility of the bridge with the
library.
Add a function to expose the native bridge version. Add a test for this
function.
Google Bug 20217701
Google Change Id Ic23a60b949f119c7d8b0e7cb27a61e6c16532a23
Change-Id: Ia3a51ee5d7ca6523d66301a5353c0ab749132f54
Category: aosp improvement
Domain: AOSP-Framework-CoreService
Origin: 3rd-party Google
Upstream-Candidate: no, proprietary
Signed-off-by: Firefly <service@t-firefly.com>
Add a callback function to retrieve "signal handler" from the bridge,
if the bridge wants it to be managed by the runtime. The signal handler
will be invoked after the runtime's own one, and before any other
chained handler.
Add a callback function to check compatibility of the bridge with the
library.
Add a function to expose the native bridge version. Add a test for this
function.
Google Bug 20217701
Google Change Id Ic23a60b949f119c7d8b0e7cb27a61e6c16532a23
Change-Id: Ia3a51ee5d7ca6523d66301a5353c0ab749132f54
Category: aosp improvement
Domain: AOSP-Framework-CoreService
Origin: 3rd-party Google
Upstream-Candidate: no, proprietary
Signed-off-by: Firefly <service@t-firefly.com>