/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | SubscriptionMonitorTest.java | 173 final int numPhones = 2; in testRegister() local 178 new SubscriptionControllerMock(context, telRegistry, numPhones); in testRegister() 181 new SubscriptionMonitor(telRegistry, context, subController, numPhones); in testRegister() 285 final int numPhones = 2; in testBadRegister() local 290 new SubscriptionControllerMock(context, telRegistry, numPhones); in testBadRegister() 293 new SubscriptionMonitor(telRegistry, context, subController, numPhones); in testBadRegister() 313 testedSubMonitor.registerForSubscriptionChanged(numPhones, testHandler, in testBadRegister() 318 testedSubMonitor.registerForDefaultDataSubscriptionChanged(numPhones, testHandler, in testBadRegister() 342 final int numPhones = 2; in testSpuriousNotifications() local 347 new SubscriptionControllerMock(context, telRegistry, numPhones); in testSpuriousNotifications() [all …]
|
D | PhoneSwitcherTest.java | 190 final int numPhones = 2; in testRegister() local 207 new SubscriptionControllerMock(contextMock, telRegistryMock, numPhones); in testRegister() 208 final SimulatedCommands[] commandsInterfaces = new SimulatedCommands[numPhones]; in testRegister() 209 final PhoneMock[] phones = new PhoneMock[numPhones]; in testRegister() 210 for (int i = 0; i < numPhones; i++) { in testRegister() 215 PhoneSwitcher phoneSwitcher = new PhoneSwitcher(maxActivePhones, numPhones, in testRegister() 417 final int numPhones = 2; in testPrioritization() local 434 new SubscriptionControllerMock(contextMock, telRegistryMock, numPhones); in testPrioritization() 435 final SimulatedCommands[] commandsInterfaces = new SimulatedCommands[numPhones]; in testPrioritization() 436 final PhoneMock[] phones = new PhoneMock[numPhones]; in testPrioritization() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | PhoneSwitcherMock.java | 34 public PhoneSwitcherMock(int numPhones, Looper looper) { in PhoneSwitcherMock() argument 37 mNumPhones = numPhones; in PhoneSwitcherMock() 38 mActivePhoneRegistrants = new RegistrantList[numPhones]; in PhoneSwitcherMock() 39 mIsActive = new AtomicBoolean[numPhones]; in PhoneSwitcherMock() 40 for(int i = 0; i < numPhones; i++) { in PhoneSwitcherMock()
|
D | SubscriptionMonitorMock.java | 31 public SubscriptionMonitorMock(int numPhones) { in SubscriptionMonitorMock() argument 33 mNumPhones = numPhones; in SubscriptionMonitorMock() 34 mSubscriptionsChangedRegistrants = new RegistrantList[numPhones]; in SubscriptionMonitorMock() 35 mDefaultSubscriptionRegistrants = new RegistrantList[numPhones]; in SubscriptionMonitorMock() 37 for (int i = 0; i < numPhones; i++) { in SubscriptionMonitorMock()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | PhoneFactory.java | 138 int numPhones = TelephonyManager.getDefault().getPhoneCount(); in makeDefaultPhone() local 139 int[] networkModes = new int[numPhones]; in makeDefaultPhone() 140 sPhones = new Phone[numPhones]; in makeDefaultPhone() 141 sCommandsInterfaces = new RIL[numPhones]; in makeDefaultPhone() 142 sTelephonyNetworkFactories = new TelephonyNetworkFactory[numPhones]; in makeDefaultPhone() 144 for (int i = 0; i < numPhones; i++) { in makeDefaultPhone() 160 for (int i = 0; i < numPhones; i++) { in makeDefaultPhone() 208 for (int i = 0; i < numPhones; i++) { in makeDefaultPhone() 216 sSubscriptionMonitor = new SubscriptionMonitor(tr, sContext, sc, numPhones); in makeDefaultPhone() 218 sPhoneSwitcher = new PhoneSwitcher(MAX_ACTIVE_PHONES, numPhones, in makeDefaultPhone() [all …]
|
D | SubscriptionMonitor.java | 71 SubscriptionController subscriptionController, int numPhones) { in SubscriptionMonitor() argument 81 mSubscriptionsChangedRegistrants = new RegistrantList[numPhones]; in SubscriptionMonitor() 82 mDefaultDataSubChangedRegistrants = new RegistrantList[numPhones]; in SubscriptionMonitor() 83 mPhoneSubId = new int[numPhones]; in SubscriptionMonitor() 88 for (int phoneId = 0; phoneId < numPhones; phoneId++) { in SubscriptionMonitor()
|
D | PhoneSwitcher.java | 104 public PhoneSwitcher(int maxActivePhones, int numPhones, Context context, in PhoneSwitcher() argument 109 mNumPhones = numPhones; in PhoneSwitcher() 111 mPhoneSubscriptions = new int[numPhones]; in PhoneSwitcher() 117 mActivePhoneRegistrants = new RegistrantList[numPhones]; in PhoneSwitcher() 118 mPhoneStates = new PhoneState[numPhones]; in PhoneSwitcher() 119 for (int i = 0; i < numPhones; i++) { in PhoneSwitcher()
|
D | CarrierServiceBindHelper.java | 93 int numPhones = TelephonyManager.from(context).getPhoneCount(); in CarrierServiceBindHelper() local 94 mBindings = new AppBinding[numPhones]; in CarrierServiceBindHelper() 95 mLastSimState = new String[numPhones]; in CarrierServiceBindHelper() 97 for (int phoneId = 0; phoneId < numPhones; phoneId++) { in CarrierServiceBindHelper()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 217 int numPhones = TelephonyManager.getDefault().getPhoneCount(); 218 for (int sub = 0; sub < numPhones; sub++) { 295 int numPhones = TelephonyManager.getDefault().getPhoneCount(); in TelephonyRegistry() local 296 if (DBG) log("TelephonyRegistor: ctor numPhones=" + numPhones); in TelephonyRegistry() 297 mNumPhones = numPhones; in TelephonyRegistry() 298 mCallState = new int[numPhones]; in TelephonyRegistry() 299 mDataActivity = new int[numPhones]; in TelephonyRegistry() 300 mDataConnectionState = new int[numPhones]; in TelephonyRegistry() 301 mDataConnectionNetworkType = new int[numPhones]; in TelephonyRegistry() 302 mCallIncomingNumber = new String[numPhones]; in TelephonyRegistry() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactoryTest.java | 73 TestSetup(int numPhones) { in TestSetup() argument 98 phoneSwitcherMock = new PhoneSwitcherMock(numPhones, looper); in TestSetup() 100 new SubscriptionControllerMock(contextMock, telephonyRegistryMock, numPhones); in TestSetup() 101 subscriptionMonitorMock = new SubscriptionMonitorMock(numPhones); in TestSetup()
|