Lines Matching defs:phoneId
47 public void resendDataAllowed(int phoneId) {
52 public boolean isPhoneActive(int phoneId) {
53 return mIsActive[phoneId].get();
57 public void registerForActivePhoneSwitch(int phoneId, Handler h, int what, Object o) {
58 validatePhoneId(phoneId);
60 mActivePhoneRegistrants[phoneId].add(r);
65 public void unregisterForActivePhoneSwitch(int phoneId, Handler h) {
66 validatePhoneId(phoneId);
67 mActivePhoneRegistrants[phoneId].remove(h);
70 private void validatePhoneId(int phoneId) {
71 if (phoneId < 0 || phoneId >= mNumPhones) {
77 public void setPhoneActive(int phoneId, boolean active) {
78 validatePhoneId(phoneId);
79 if (mIsActive[phoneId].getAndSet(active) != active) {
80 mActivePhoneRegistrants[phoneId].notifyRegistrants();