CallManager: add getAllPhones().
Change-Id: I50589aaec55925d93c392f15a22c70d2a6634b87
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user