Svenorth
Looks like the Google phone app does that, so if you get a phone call you can silence it that way with that app, but quickly looking at the AOSP settings, it doesn't appear that this is part of AOSP.
I did get it to work using this app, though. I tested in a new profile without Google Play installed. Also this app doesn't request network access. Just install the app using Aurora and give the app permission to control Do Not Disturb. Got this app set up very quickly and easily and it seems to work fine. Just make sure you give it permission to sensors.
Btw, since it has to run all the time in the background, it has to show a persistent notification which you can minimize.