Loading src/java/com/android/internal/telephony/ProxyController.java +0 −2 Original line number Diff line number Diff line Loading @@ -618,7 +618,6 @@ public class ProxyController { int maxNumRafBit = 0; int maxRaf = RadioAccessFamily.RAF_UNKNOWN; int number; for (int len = 0; len < mProxyPhones.length; len++) { numRafSupported[len] = Integer.bitCount(mProxyPhones[len].getRadioAccessFamily()); if (maxNumRafBit < numRafSupported[len]) { Loading @@ -637,7 +636,6 @@ public class ProxyController { int minNumRafBit = 0; int minRaf = RadioAccessFamily.RAF_UNKNOWN; int number; for (int len = 0; len < mProxyPhones.length; len++) { numRafSupported[len] = Integer.bitCount(mProxyPhones[len].getRadioAccessFamily()); if ((minNumRafBit == 0) || (minNumRafBit > numRafSupported[len])) { Loading src/java/com/android/internal/telephony/SubscriptionController.java +7 −1 Original line number Diff line number Diff line Loading @@ -1414,6 +1414,7 @@ public class SubscriptionController extends ISub.Stub { if (SubscriptionManager.isValidSubscriptionId(subId)) { // Only re-map modems if the new default data sub is valid RadioAccessFamily[] rafs = new RadioAccessFamily[len]; boolean atLeastOneMatch = false; for (int phoneId = 0; phoneId < len; phoneId++) { PhoneProxy phone = sProxyPhones[phoneId]; int raf; Loading @@ -1421,6 +1422,7 @@ public class SubscriptionController extends ISub.Stub { if (id == subId) { // TODO Handle the general case of N modems and M subscriptions. raf = proxyController.getMaxRafSupported(); atLeastOneMatch = true; } else { // TODO Handle the general case of N modems and M subscriptions. raf = proxyController.getMinRafSupported(); Loading @@ -1428,7 +1430,11 @@ public class SubscriptionController extends ISub.Stub { logdl("[setDefaultDataSubId] phoneId=" + phoneId + " subId=" + id + " RAF=" + raf); rafs[phoneId] = new RadioAccessFamily(phoneId, raf); } if (atLeastOneMatch) { proxyController.setRadioCapability(rafs); } else { if (DBG) logdl("[setDefaultDataSubId] no valid subId's found - not updating."); } } // FIXME is this still needed? Loading Loading
src/java/com/android/internal/telephony/ProxyController.java +0 −2 Original line number Diff line number Diff line Loading @@ -618,7 +618,6 @@ public class ProxyController { int maxNumRafBit = 0; int maxRaf = RadioAccessFamily.RAF_UNKNOWN; int number; for (int len = 0; len < mProxyPhones.length; len++) { numRafSupported[len] = Integer.bitCount(mProxyPhones[len].getRadioAccessFamily()); if (maxNumRafBit < numRafSupported[len]) { Loading @@ -637,7 +636,6 @@ public class ProxyController { int minNumRafBit = 0; int minRaf = RadioAccessFamily.RAF_UNKNOWN; int number; for (int len = 0; len < mProxyPhones.length; len++) { numRafSupported[len] = Integer.bitCount(mProxyPhones[len].getRadioAccessFamily()); if ((minNumRafBit == 0) || (minNumRafBit > numRafSupported[len])) { Loading
src/java/com/android/internal/telephony/SubscriptionController.java +7 −1 Original line number Diff line number Diff line Loading @@ -1414,6 +1414,7 @@ public class SubscriptionController extends ISub.Stub { if (SubscriptionManager.isValidSubscriptionId(subId)) { // Only re-map modems if the new default data sub is valid RadioAccessFamily[] rafs = new RadioAccessFamily[len]; boolean atLeastOneMatch = false; for (int phoneId = 0; phoneId < len; phoneId++) { PhoneProxy phone = sProxyPhones[phoneId]; int raf; Loading @@ -1421,6 +1422,7 @@ public class SubscriptionController extends ISub.Stub { if (id == subId) { // TODO Handle the general case of N modems and M subscriptions. raf = proxyController.getMaxRafSupported(); atLeastOneMatch = true; } else { // TODO Handle the general case of N modems and M subscriptions. raf = proxyController.getMinRafSupported(); Loading @@ -1428,7 +1430,11 @@ public class SubscriptionController extends ISub.Stub { logdl("[setDefaultDataSubId] phoneId=" + phoneId + " subId=" + id + " RAF=" + raf); rafs[phoneId] = new RadioAccessFamily(phoneId, raf); } if (atLeastOneMatch) { proxyController.setRadioCapability(rafs); } else { if (DBG) logdl("[setDefaultDataSubId] no valid subId's found - not updating."); } } // FIXME is this still needed? Loading