The name points to the German Berliner doughnut, which arrived in Portugal in the twentieth century and was adapted with egg custard.
A German doughnut with a Portuguese filling.