Woman under the roof — the second semantic. The traditional reading is that a woman seated quietly inside the house is the very picture of stillness, peace, and security. From this concrete scene came
安 'safe, calm, peaceful', the verb 'to settle/install', and compounds like
安全 (safety),
安心 (set the heart at ease).