Problem and Solutions
Official android.location.Location.getBearing() documentation out of sync with Android project source code in android ?
By M.K. Verma · 4 May 2022

If you think about it: 360 degrees are a full turn. So 0° is equal to 360° degrees after normalization. the desync is propably because of a different version, cause the official doku is also javadoc.