AudioFlinger: Use property for local log lines

dumpsys lines can be increased up to 256 (kLogSize) by

adb shell setprop persist.audio.locallog.lines 256

Test: Run piano app and check audioflinger dumpsys
Bug: 30572472
Change-Id: Ie27812b15732432856452e4c46d81abf860aaee2
diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h
index 547cfd1..8afe96b 100644
--- a/services/audioflinger/Threads.h
+++ b/services/audioflinger/Threads.h
@@ -994,8 +994,12 @@
 
                 dprintf(fd, "Local Log:\n");
                 auto it = mLog.begin();
-                if (!dumpAll && mLog.size() > kLogPrint) {
-                    it += (mLog.size() - kLogPrint);
+                if (!dumpAll) {
+                    const size_t lines =
+                            (size_t)property_get_int32("audio.locallog.lines", kLogPrint);
+                    if (mLog.size() > lines) {
+                        it += (mLog.size() - lines);
+                    }
                 }
                 for (; it != mLog.end(); ++it) {
                     const int64_t ns = it->first;