The officer was driving in the 200 block of Park View Street around midnight Sunday when someone shot at the squad car.
The officer called for help.
Authorities said no one was hurt.
Police responded quickly and sealed off the area bound by Beverly Boulevard and Third Street, and Coronado and South Park View streets.
One arrest has been made but investigators say another suspect remains at large.