summaryrefslogtreecommitdiff
path: root/logd/LogBufferTest.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2020-07-27 16:53:29 -0700
committerTom Cherry <tomcherry@google.com>2020-08-03 13:17:12 -0700
commitd2743ef5c904f76dd7c388c28a8cd5d4fb7a5c94 (patch)
tree59e720550b3bc0f26481ff9f5e6263c95b6b588d /logd/LogBufferTest.cpp
parentfcaed0effab54fa6face42a1b55c26760df0a074 (diff)
liblog: don't cache property size values and move to own file
Don't cache the property size values since they're only queried at the start of logd and only once during dumpstate. Initializing SerializedLogBuffer, which includes all of the logd queries, takes under 100us without the cache, certainly fast enough that this cache is unneeded. Move these functions to their own file in preparation for removing them from liblog. Test: log sizes set appropriately Change-Id: I15a2fd687dcffb4eab2f22ee0825ca86e40cdba3
Diffstat (limited to 'logd/LogBufferTest.cpp')
-rw-r--r--logd/LogBufferTest.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/logd/LogBufferTest.cpp b/logd/LogBufferTest.cpp
index 47d2a2f92..191110522 100644
--- a/logd/LogBufferTest.cpp
+++ b/logd/LogBufferTest.cpp
@@ -34,16 +34,6 @@ using android::base::Join;
using android::base::Split;
using android::base::StringPrintf;
-#ifndef __ANDROID__
-unsigned long __android_logger_get_buffer_size(log_id_t) {
- return 1024 * 1024;
-}
-
-bool __android_logger_valid_buffer_size(unsigned long) {
- return true;
-}
-#endif
-
char* android::uidToName(uid_t) {
return nullptr;
}