@Test public void instanceTest() { assertNotNull(DeviceManager.getInstance(RuntimeEnvironment.application)); }
public synchronized static DeviceManager getInstance(Context context) { if (sharedInstance == null) { sharedInstance = new DeviceManager(context.getApplicationContext()); } return sharedInstance; }
DeviceManager { public synchronized static DeviceManager getInstance(Context context) { if (sharedInstance == null) { sharedInstance = new DeviceManager(context.getApplicationContext()); } return sharedInstance; } }
DeviceManager { public synchronized static DeviceManager getInstance(Context context) { if (sharedInstance == null) { sharedInstance = new DeviceManager(context.getApplicationContext()); } return sharedInstance; } private  DeviceManager(Context context); }
DeviceManager { public synchronized static DeviceManager getInstance(Context context) { if (sharedInstance == null) { sharedInstance = new DeviceManager(context.getApplicationContext()); } return sharedInstance; } private  DeviceManager(Context context); synchronized static DeviceManager getInstance(Context context); synchronized Device getDevice(BluetoothDevice device); @RestrictTo(RestrictTo.Scope.TESTS) void putDevice(Device device, String address); @RestrictTo(RestrictTo.Scope.TESTS) void clearDevices(); }
DeviceManager { public synchronized static DeviceManager getInstance(Context context) { if (sharedInstance == null) { sharedInstance = new DeviceManager(context.getApplicationContext()); } return sharedInstance; } private  DeviceManager(Context context); synchronized static DeviceManager getInstance(Context context); synchronized Device getDevice(BluetoothDevice device); @RestrictTo(RestrictTo.Scope.TESTS) void putDevice(Device device, String address); @RestrictTo(RestrictTo.Scope.TESTS) void clearDevices();  }