Disable VT when TTY is enabled during a VOLTE call.

Add a listener to TelephonyCS to track when TTY turns on/off.
Ensure that connections remove their local VT capability when TTY turns
off.
Also, did a bit of opportunistic code cleanup to remove the TTyManager
class which is not used in Telephony.  This in turn enabled the removal
of the TelephonyGlobals class since I could move setup of the
TelecomAccountRegistry into PhoneGlobals instead.  Yay, less globals!

Test: Start VOLTE call with TTY disabled; turn on TTY and ensure VT
button goes away.
Test: Continue VOLTE call with TTY disabled; turn off TTY and ensure VT
button shows up again.
Bug: 77937629

Change-Id: Ia2c98e31c152d7a1136c06913f773b451a1952c7
diff --git a/src/com/android/phone/PhoneApp.java b/src/com/android/phone/PhoneApp.java
index f16d8ce..df151bf 100644
--- a/src/com/android/phone/PhoneApp.java
+++ b/src/com/android/phone/PhoneApp.java
@@ -19,14 +19,13 @@
 import android.app.Application;
 import android.os.UserHandle;
 
-import com.android.services.telephony.TelephonyGlobals;
+import com.android.services.telephony.TelecomAccountRegistry;
 
 /**
  * Top-level Application class for the Phone app.
  */
 public class PhoneApp extends Application {
     PhoneGlobals mPhoneGlobals;
-    TelephonyGlobals mTelephonyGlobals;
 
     public PhoneApp() {
     }
@@ -39,8 +38,7 @@
             mPhoneGlobals = new PhoneGlobals(this);
             mPhoneGlobals.onCreate();
 
-            mTelephonyGlobals = new TelephonyGlobals(this);
-            mTelephonyGlobals.onCreate();
+            TelecomAccountRegistry.getInstance(this).setupOnBoot();
         }
     }
 }