If you often leave the phone around or if you love privacy and security, turn on the lockdown mode to make sure no one can access your data.
Directly from the latest version of the Android P developers preview you can access this feature right now and on any device.

This app uses the Device Administrator permission.

From version Lockdown Mode from Android P 1.1:

Bug fixes

All versions