/** * Requests the singleton instance of {@link AccountTypeManager} with data bound from * the available authenticators. This method can safely be called from the UI thread. */ public static AccountTypeManager getInstance(Context context) { synchronized (mInitializationLock) { if (mAccountTypeManager == null) { context = context.getApplicationContext(); mAccountTypeManager = new AccountTypeManagerImpl(context); } } return mAccountTypeManager; }