The officer suffered minor injuries including bites to his ankle on Thursday when the five Chihuahuas escaped the 17-year-old boy's home and rushed the officer in the doorway, said Fremont detective Bill Veteran.
The teenager had been detained after the traffic incident, Veteran said.
The officer was treated at a local hospital and returned to work less than two hours later, Veteran said.
It was the third time this month a Fremont officer was bitten by a dog while on duty. Neither of the other officers were seriously injured.
And it was the second bizarre incident in as many hours for the Fremont Police Department.
Two hours earlier, a homeowner in Niles reported that an intruder broke into her home and added pornography to her computer.
The woman said she woke up and was startled to see a stranger typing away on her computer. The intruder fled, but left behind an altered screen saver that featured images of "erotic Indian art," Veteran said.
Nothing was reported stolen, and neither the woman nor her nine-year-old daughter was hurt, he said.
Fremont is about 35 miles southwest of San Francisco.