Loading src/com/android/server/telecom/CreateConnectionProcessor.java +1 −1 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ public class CreateConnectionProcessor implements CreateConnectionResponse { if (manager == null) { return SubscriptionManager.INVALID_SUBSCRIPTION_ID; } return manager.getSubIdForPhoneAccountHandle(account.getAccountHandle()); return manager.getSubscriptionId(account.getAccountHandle()); } @Override Loading src/com/android/server/telecom/PhoneAccountRegistrar.java +1 −1 Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ public class PhoneAccountRegistrar { if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { TelephonyManager tm = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); return tm.getSubIdForPhoneAccountHandle(accountHandle); return tm.getSubscriptionId(accountHandle); } return SubscriptionManager.INVALID_SUBSCRIPTION_ID; } Loading tests/src/com/android/server/telecom/tests/ComponentContextFixture.java +1 −1 Original line number Diff line number Diff line Loading @@ -502,7 +502,7 @@ public class ComponentContextFixture implements TestFixture<Context> { // Used in CreateConnectionProcessor to rank emergency numbers by viability. // For the test, make them all equal to INVALID so that the preferred PhoneAccount will be // chosen. when(mTelephonyManager.getSubIdForPhoneAccountHandle(any())).thenReturn( when(mTelephonyManager.getSubscriptionId(any())).thenReturn( SubscriptionManager.INVALID_SUBSCRIPTION_ID); when(mTelephonyManager.getNetworkOperatorName()).thenReturn("label1"); Loading Loading
src/com/android/server/telecom/CreateConnectionProcessor.java +1 −1 Original line number Diff line number Diff line Loading @@ -103,7 +103,7 @@ public class CreateConnectionProcessor implements CreateConnectionResponse { if (manager == null) { return SubscriptionManager.INVALID_SUBSCRIPTION_ID; } return manager.getSubIdForPhoneAccountHandle(account.getAccountHandle()); return manager.getSubscriptionId(account.getAccountHandle()); } @Override Loading
src/com/android/server/telecom/PhoneAccountRegistrar.java +1 −1 Original line number Diff line number Diff line Loading @@ -195,7 +195,7 @@ public class PhoneAccountRegistrar { if (account != null && account.hasCapabilities(PhoneAccount.CAPABILITY_SIM_SUBSCRIPTION)) { TelephonyManager tm = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE); return tm.getSubIdForPhoneAccountHandle(accountHandle); return tm.getSubscriptionId(accountHandle); } return SubscriptionManager.INVALID_SUBSCRIPTION_ID; } Loading
tests/src/com/android/server/telecom/tests/ComponentContextFixture.java +1 −1 Original line number Diff line number Diff line Loading @@ -502,7 +502,7 @@ public class ComponentContextFixture implements TestFixture<Context> { // Used in CreateConnectionProcessor to rank emergency numbers by viability. // For the test, make them all equal to INVALID so that the preferred PhoneAccount will be // chosen. when(mTelephonyManager.getSubIdForPhoneAccountHandle(any())).thenReturn( when(mTelephonyManager.getSubscriptionId(any())).thenReturn( SubscriptionManager.INVALID_SUBSCRIPTION_ID); when(mTelephonyManager.getNetworkOperatorName()).thenReturn("label1"); Loading