Dogs learn to associate your calling their name with a reward of some kind. Normally if a stranger calls that name the dog will ignore him.
However, dogs certainly introduce themselves to each other by another means which we should all be grateful is customarily performed by humans by shaking hands or kissing.
Therefore when each dog has made the acquaintance of another, they may associate some kind of name, but I suspect it would not be used in polite company.