Home
last modified time | relevance | path

Searched refs:numPhones (Results 1 – 10 of 10) sorted by relevance

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSubscriptionMonitorTest.java173 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 …]
DPhoneSwitcherTest.java190 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/
DPhoneSwitcherMock.java34 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()
DSubscriptionMonitorMock.java31 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/
DPhoneFactory.java138 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 …]
DSubscriptionMonitor.java71 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()
DPhoneSwitcher.java104 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()
DCarrierServiceBindHelper.java93 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/
DTelephonyRegistry.java217 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/
DTelephonyNetworkFactoryTest.java73 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()