I have noticed that when you flash a device and run it for the first time you get into the setup wizard. I assume that application is run in so called LockTask mode (Kiosk mode for dedicated devices) because it has only one navbar button (usually "back" button, "home", for example, is hidden).
Here are my questions:
I finally figured that out. Setup wizards usually use so called “google setupcompat” library. It allows to hide both status and navigation bars and it can show us only “back” button instead of all of them. Functionality stated above can be found here https://cs.android.com/android/platform/superproject/main/+/main:external/setupcompat/main/java/com/google/android/setupcompat/util/SystemBarHelper.java