What kind of device in this circuit
Both the black doodads appear to be common-mode chokes. Really looks like ferrite rather than a molded semiconductor package. Test with a small magnet to confirm. Ferrite should be strongly attracted, otherwise it would just be the leadframe which isn't much metal. 

So a bunch of filtering to keep hash from the switchmode power supply from getting out the power port (that black thing on the lower right is a barrel jack typically used for power). 

There might be an option for a larger CM choke rather than the tiny one, judging by those unused pads.  



Edit: Here's what I see. Mostly 100% sure, C5 is a bit iffy. The leftmost chip is probably a SMPS chip- looks like a diode below it, and probably an inductor out of shot above it. L1 and L2 are ferrite beads.