Example usage for android.telecom Connection setConferenceableConnections

List of usage examples for android.telecom Connection setConferenceableConnections

Introduction

In this page you can find the example usage for android.telecom Connection setConferenceableConnections.

Prototype

public final void setConferenceableConnections(List<Connection> conferenceableConnections) 

Source Link

Document

Sets the connections with which this connection can be conferenced.

Usage

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);
    }
}