summaryrefslogtreecommitdiffstats
path: root/core/jni/com_android_internal_net_NetworkStatsFactory.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Frameworks/base: Consistency in core/jniAndreas Gampe2014-11-211-26/+17
| | | | | | | | Make consistent use of core_jni_helpers for registration. Translate some #ifdefs into const bools. Change-Id: I37639aa053dd50f003a552cbd8550dddecc811c5
* Frameworks/base: Wall Werror in core/jniAndreas Gampe2014-11-131-2/+3
| | | | | | | | | | | Turn on -Wall -Werror in core/jni. Fix warnings. Clang TODO: For GCC we need to turn off Wunused-but-set-variable in the GL bindings. However, Clang doesn't have that warning and thus complains about an unknown pragma. It is necessary to make the pragma #ifdef-ed on the compiler being GCC. Change-Id: I14cab48d45c2771eef0432082356c47ed44a3d7f
* Use sscanf() for parsing tag values.Jeff Sharkey2014-09-091-15/+21
| | | | | | | | | Neither strtoll() nor strtoull() can parse the %llx formatted tag values coming from the kernel. We know the lowest 32 bits will never be set, so fast-path the 3-character case as 0x0. Bug: 17365163 Change-Id: I238bbd2830c9335e7ab7a53362d6e12b46e0bcb3
* Improve how battery stats collects network stats.Dianne Hackborn2014-02-241-30/+163
| | | | | | | | | | | | | | | | This optimizes the path for battery stats to collect per-uid network usage. It now collects wifi and mobile usage separately, with a path that allows it to recycle all data structures and filter out stats it isn't interested in before they come back to java. This is setting us up for the actual goal, to collect mobile stats independently each time the mobile radio goes down, allowing us to distribute mobile radio usage across uids based on the number of packets they transferred during a session. Change-Id: I21a0f517cf087ea5aa8b8dd535e20b46e361a52b
* Fix one and hide the other warnings from core/jniKristian Monsen2013-12-111-1/+1
| | | | | | Most of the warnings are unused parameter from skia functions. Change-Id: I9df57718d117c26b96163f751ccb056ca86ac072
* replace cutils/logger.h with log/logger.hColin Cross2013-07-241-1/+0
| | | | | | and remove it from files that don't use it. Change-Id: Ieb44a3f1f75c2d2b277f0d01ca926a92211e3fe6
* Parse network stats using native code.Jeff Sharkey2013-02-131-0/+187
Switch to parsing detailed network stats with native code, which is 71% faster than ProcFileReader. Change-Id: I2525aaee74d227ce187ba3a74dd08a2b06514deb