Lines Matching defs:phoneId

318             for (int phoneId = 0; phoneId < mNumPhones; phoneId++) {
319 if (newActivePhones.contains(phoneId) == false) {
320 deactivate(phoneId);
325 for (int phoneId : newActivePhones) {
326 activate(phoneId);
336 private void deactivate(int phoneId) {
337 PhoneState state = mPhoneStates[phoneId];
340 log("deactivate " + phoneId);
342 mCommandsInterfaces[phoneId].setDataAllowed(false, null);
343 mActivePhoneRegistrants[phoneId].notifyRegistrants();
346 private void activate(int phoneId) {
347 PhoneState state = mPhoneStates[phoneId];
350 log("activate " + phoneId);
352 mCommandsInterfaces[phoneId].setDataAllowed(true, null);
353 mActivePhoneRegistrants[phoneId].notifyRegistrants();
358 public void resendDataAllowed(int phoneId) {
359 validatePhoneId(phoneId);
361 msg.arg1 = phoneId;
366 final int phoneId = msg.arg1;
367 mCommandsInterfaces[phoneId].setDataAllowed(mPhoneStates[phoneId].active, null);
379 int phoneId = INVALID_PHONE_INDEX;
380 if (subId == INVALID_SUBSCRIPTION_ID) return phoneId;
384 phoneId = i;
388 return phoneId;
391 public boolean isPhoneActive(int phoneId) {
392 validatePhoneId(phoneId);
393 return mPhoneStates[phoneId].active;
396 public void registerForActivePhoneSwitch(int phoneId, Handler h, int what, Object o) {
397 validatePhoneId(phoneId);
399 mActivePhoneRegistrants[phoneId].add(r);
403 public void unregisterForActivePhoneSwitch(int phoneId, Handler h) {
404 validatePhoneId(phoneId);
405 mActivePhoneRegistrants[phoneId].remove(h);
408 private void validatePhoneId(int phoneId) {
409 if (phoneId < 0 || phoneId >= mNumPhones) {