Merge "Expose getHeadlessDeviceOwnerMode as testAPI" into main