Clearly, if you're texting the guy who is driving right next you, YDI for distracting him. If you hadn't already had a texting conversation and it was the first time he picked up his phone to text, you should have said something. Just be glad you're ok.
Considering
A. You said nothing about his texting and driving and
B. you didn't warn him about the cop car you ought to have seen ( unless you were in your phone too), this one's on you too.
You have a really dumb boyfriend.
Communication issues?