@Test public void testGetInstance() throws Exception { ConnectionManagerSettings cmSettings = ConnectionManagerSettings.getInstance(mMockContext, mMockSharedPreferences); assertThat(cmSettings, is(notNullValue())); }
public static ConnectionManagerSettings getInstance(Context context) { if (mInstance == null) { mInstance = new ConnectionManagerSettings(context); } return mInstance; }
ConnectionManagerSettings extends AbstractSettings { public static ConnectionManagerSettings getInstance(Context context) { if (mInstance == null) { mInstance = new ConnectionManagerSettings(context); } return mInstance; } }
ConnectionManagerSettings extends AbstractSettings { public static ConnectionManagerSettings getInstance(Context context) { if (mInstance == null) { mInstance = new ConnectionManagerSettings(context); } return mInstance; } private  ConnectionManagerSettings(Context context); private  ConnectionManagerSettings(Context context, SharedPreferences preferences); }
ConnectionManagerSettings extends AbstractSettings { public static ConnectionManagerSettings getInstance(Context context) { if (mInstance == null) { mInstance = new ConnectionManagerSettings(context); } return mInstance; } private  ConnectionManagerSettings(Context context); private  ConnectionManagerSettings(Context context, SharedPreferences preferences); static ConnectionManagerSettings getInstance(Context context); static ConnectionManagerSettings getInstance(Context context, SharedPreferences preferences); long getConnectionTimeout(); void setConnectionTimeout(long connectionTimeoutInMilliseconds); int getInsecureRfcommSocketPortNumber(); boolean setInsecureRfcommSocketPortNumber(int insecureRfcommSocketPort); int getMaxNumberOfConnectionAttemptRetries(); void setMaxNumberOfConnectionAttemptRetries(int maxNumberOfRetries); boolean getHandshakeRequired(); void setHandshakeRequired(boolean requireHandshake); @Override void load(); @Override void resetDefaults(); }
ConnectionManagerSettings extends AbstractSettings { public static ConnectionManagerSettings getInstance(Context context) { if (mInstance == null) { mInstance = new ConnectionManagerSettings(context); } return mInstance; } private  ConnectionManagerSettings(Context context); private  ConnectionManagerSettings(Context context, SharedPreferences preferences); static ConnectionManagerSettings getInstance(Context context); static ConnectionManagerSettings getInstance(Context context, SharedPreferences preferences); long getConnectionTimeout(); void setConnectionTimeout(long connectionTimeoutInMilliseconds); int getInsecureRfcommSocketPortNumber(); boolean setInsecureRfcommSocketPortNumber(int insecureRfcommSocketPort); int getMaxNumberOfConnectionAttemptRetries(); void setMaxNumberOfConnectionAttemptRetries(int maxNumberOfRetries); boolean getHandshakeRequired(); void setHandshakeRequired(boolean requireHandshake); @Override void load(); @Override void resetDefaults(); static final long DEFAULT_CONNECTION_TIMEOUT_IN_MILLISECONDS; static final int SYSTEM_DECIDED_INSECURE_RFCOMM_SOCKET_PORT; static final int DEFAULT_ALTERNATIVE_INSECURE_RFCOMM_SOCKET_PORT; static final int DEFAULT_MAX_NUMBER_OF_CONNECTION_ATTEMPT_RETRIES; static final boolean DEFAULT_HANDSHAKE_REQUIRED; }