Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f21d4ed7 authored by Hung-ying Tyan's avatar Hung-ying Tyan Committed by Android Git Automerger
Browse files

am 51128faa: am d122805b: CallManager: add getAllPhones().

Merge commit '51128faa'

* commit '51128faa':
  CallManager: add getAllPhones().
parents 53aa7afe 51128faa
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.os.RegistrantList;
import android.telephony.PhoneStateListener;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
@@ -162,6 +163,14 @@ public final class CallManager {
        return INSTANCE;
    }

    /**
     * Returns all the registered phone objects.
     * @return all the registered phone objects.
     */
    public List<Phone> getAllPhones() {
        return Collections.unmodifiableList(mPhones);
    }

    /**
     * Get current coarse-grained voice call state.
     * If the Call Manager has an active call and call waiting occurs,