Dark matter searches in the direction of dwarf galaxies with H.E.S.S. and characterization of the γ-ray emission from the Galactic center and Andromeda galaxy with Fermi-LAT