[SF] Add trace and dump for Game frame rate overrides

To discern the source of the frame rate vote, this change
adds trace in LayerHistory when determining the layer vote.

Also, dumping information of game mode and game default frame rate
overrides in SurfaceFlinger dump for debuggin purposes.

Bug: 324125833
Test: atest LayerHistoryTest
Change-Id: Ice628b7f421f6402fbb1e33413966c503bf5eaec
diff --git a/services/surfaceflinger/Scheduler/LayerHistory.h b/services/surfaceflinger/Scheduler/LayerHistory.h
index 930d06c..a6f1b56 100644
--- a/services/surfaceflinger/Scheduler/LayerHistory.h
+++ b/services/surfaceflinger/Scheduler/LayerHistory.h
@@ -108,6 +108,8 @@
     // keyed by id as returned from Layer::getSequence()
     using LayerInfos = std::unordered_map<int32_t, LayerPair>;
 
+    std::string dumpGameFrameRateOverridesLocked() const REQUIRES(mLock);
+
     // Iterates over layers maps moving all active layers to mActiveLayerInfos and all inactive
     // layers to mInactiveLayerInfos.
     // worst case time complexity is O(2 * inactive + active)