can a cop search my car if it is locked, and i do not give consent
Only if they have a warrant or they have probable cause that a crime has been or is about to be committed.