Re: What do they all do?
In a time of war ... sure, this makes sense. In peacetime?
In fairness, there are good reasons to disable in peacetime (such as in-transit to a zone of operations) if you don't want the locals to know exactly when, where or from which direction you will be arriving in theatre. Likewise if you don't want to make it too easy for Russian/Chinese subs to tail you for <reasons>.
But when you're playing in major shipping lanes (as per the McCain)? Probably best to turn it on or accept that as the ghost in the night, you're bearing additional responsibility for avoiding collisions because you probably have better instruments than anyone else, will be more manoeuvrable (x000s of tonnes, not x00,000s) and are deliberately deactivating collision-avoidance hardware.