In Japan it's frowned upon to eat and walk at the same time. Sit down or stand still when eating your onigirs ;) Usually Japanese people will eat at a place where you can sit down or just stand still, if it's something small you can hold in your hand.