Loading apex/statsd/tests/libstatspull/jni/stats_pull_helper.cpp +0 −13 Original line number Diff line number Diff line Loading @@ -14,7 +14,6 @@ * limitations under the License. */ #include <android/binder_process.h> #include <jni.h> #include <log/log.h> #include <stats_event.h> Loading @@ -32,17 +31,6 @@ static int64_t sLatencyMillis; static int32_t sAtomsPerPull; static int32_t sNumPulls = 0; static bool initialized = false; static void init() { if (!initialized) { initialized = true; // Set up the binder ABinderProcess_setThreadPoolMaxThreadCount(9); ABinderProcess_startThreadPool(); } } static AStatsManager_PullAtomCallbackReturn pullAtomCallback(int32_t atomTag, AStatsEventList* data, void* /*cookie*/) { sNumPulls++; Loading @@ -62,7 +50,6 @@ Java_com_android_internal_os_statsd_libstats_LibStatsPullTests_registerStatsPull JNIEnv* /*env*/, jobject /* this */, jint atomTag, jlong timeoutNs, jlong coolDownNs, jint pullRetVal, jlong latencyMillis, int atomsPerPull) { init(); sAtomTag = atomTag; sPullReturnVal = pullRetVal; sLatencyMillis = latencyMillis; Loading Loading
apex/statsd/tests/libstatspull/jni/stats_pull_helper.cpp +0 −13 Original line number Diff line number Diff line Loading @@ -14,7 +14,6 @@ * limitations under the License. */ #include <android/binder_process.h> #include <jni.h> #include <log/log.h> #include <stats_event.h> Loading @@ -32,17 +31,6 @@ static int64_t sLatencyMillis; static int32_t sAtomsPerPull; static int32_t sNumPulls = 0; static bool initialized = false; static void init() { if (!initialized) { initialized = true; // Set up the binder ABinderProcess_setThreadPoolMaxThreadCount(9); ABinderProcess_startThreadPool(); } } static AStatsManager_PullAtomCallbackReturn pullAtomCallback(int32_t atomTag, AStatsEventList* data, void* /*cookie*/) { sNumPulls++; Loading @@ -62,7 +50,6 @@ Java_com_android_internal_os_statsd_libstats_LibStatsPullTests_registerStatsPull JNIEnv* /*env*/, jobject /* this */, jint atomTag, jlong timeoutNs, jlong coolDownNs, jint pullRetVal, jlong latencyMillis, int atomsPerPull) { init(); sAtomTag = atomTag; sPullReturnVal = pullRetVal; sLatencyMillis = latencyMillis; Loading