List of usage examples for android.telecom Connection setConferenceableConnections
public final void setConferenceableConnections(List<Connection> conferenceableConnections)
From source file:com.android.server.telecom.testapps.TestConnectionService.java
private void updateConferenceable() { List<Connection> freeConnections = new ArrayList<>(); freeConnections.addAll(mCalls);//w w w . ja va 2s. co m for (int i = 0; i < freeConnections.size(); i++) { if (freeConnections.get(i).getConference() != null) { freeConnections.remove(i); } } for (int i = 0; i < freeConnections.size(); i++) { Connection c = freeConnections.remove(i); c.setConferenceableConnections(freeConnections); freeConnections.add(i, c); } }