Home
last modified time | relevance | path

Searched refs:phone2 (Results 1 – 6 of 6) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSimultaneousCallingTracker.java383 for (Phone phone2 : voiceCapablePhoneMap.keySet()) { in generateVoiceCapablePhoneMapBasedOnUserAssociation()
384 if (phone1.getPhoneId() == phone2.getPhoneId()) { continue; } in generateVoiceCapablePhoneMapBasedOnUserAssociation()
385 if (phonesHaveSameUserAssociation(phone1, phone2)) { in generateVoiceCapablePhoneMapBasedOnUserAssociation()
386 phone1UserAssociationCompatiblePhones.add(phone2); in generateVoiceCapablePhoneMapBasedOnUserAssociation()
416 for (Phone phone2 : phoneMap.keySet()) { in generateSimultaneousCallSupportMap()
417 if (phone.getPhoneId() == phone2.getPhoneId()) { continue; } in generateSimultaneousCallSupportMap()
418 if (!phonesSupportSimultaneousCallingViaCellularOrWlan(phone, phone2)) { in generateSimultaneousCallSupportMap()
419 simultaneousCallSubSupportMap.get(phone.getPhoneId()).remove(phone2); in generateSimultaneousCallSupportMap()
429 for (Phone phone2 : phoneMap.keySet()) { in generateSimultaneousCallSupportMap()
430 if (phone.getPhoneId() == phone2.getPhoneId()) { continue; } in generateSimultaneousCallSupportMap()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DDataSettingsManagerTest.java151 Phone phone2 = Mockito.mock(Phone.class); in testUpdateDataEnabledAndNotifyOverride() local
152 doReturn(ddsPhoneId).when(phone2).getPhoneId(); in testUpdateDataEnabledAndNotifyOverride()
153 doReturn(ddsSubId).when(phone2).getSubId(); in testUpdateDataEnabledAndNotifyOverride()
156 doReturn(dataSettingsManager2).when(phone2).getDataSettingsManager(); in testUpdateDataEnabledAndNotifyOverride()
157 mPhones = new Phone[] {mPhone, phone2}; in testUpdateDataEnabledAndNotifyOverride()
181 doReturn(true).when(phone2).isUserDataEnabled(); in testUpdateDataEnabledAndNotifyOverride()
DDataNetworkControllerTest.java2039 Phone phone2 = Mockito.mock(Phone.class); in testNotifyWhenSetDataEnabled() local
2040 phone2.mCi = mSimulatedCommands; in testNotifyWhenSetDataEnabled()
2041 doReturn(true).when(phone2).isUserDataEnabled(); in testNotifyWhenSetDataEnabled()
2042 doReturn(mDataSettingsManager).when(phone2).getDataSettingsManager(); in testNotifyWhenSetDataEnabled()
2043 replaceInstance(PhoneFactory.class, "sPhones", null, new Phone[]{mPhone, phone2}); in testNotifyWhenSetDataEnabled()
2140 Phone phone2 = Mockito.mock(Phone.class); in testIsDataEnabledOverriddenForApnDataDuringCall() local
2141 replaceInstance(PhoneFactory.class, "sPhones", null, new Phone[]{mPhone, phone2}); in testIsDataEnabledOverriddenForApnDataDuringCall()
2166 doReturn(true).when(phone2).isUserDataEnabled(); in testIsDataEnabledOverriddenForApnDataDuringCall()
2186 Phone phone2 = Mockito.mock(Phone.class); in testIsDataEnabledOverriddenForApnAutoDataSwitch() local
2187 replaceInstance(PhoneFactory.class, "sPhones", null, new Phone[]{mPhone, phone2}); in testIsDataEnabledOverriddenForApnAutoDataSwitch()
[all …]
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseGeneralTest.java216 private void phoneNumberCompare(String phone1, String phone2, boolean equal, in phoneNumberCompare() argument
220 temporalPhoneNumbers[1] = phone2; in phoneNumberCompare()
232 assertEquals(String.format("Unexpectedly, \"%s != %s\".", phone1, phone2), in phoneNumberCompare()
235 assertEquals(String.format("Unexpectedly, \"%s\" == \"%s\".", phone1, phone2), in phoneNumberCompare()
245 private void assertPhoneNumberEqual(String phone1, String phone2) throws Exception { in assertPhoneNumberEqual() argument
246 assertPhoneNumberEqual(phone1, phone2, true); in assertPhoneNumberEqual()
247 assertPhoneNumberEqual(phone1, phone2, false); in assertPhoneNumberEqual()
250 private void assertPhoneNumberEqual(String phone1, String phone2, boolean useStrict) in assertPhoneNumberEqual() argument
252 phoneNumberCompare(phone1, phone2, true, useStrict); in assertPhoneNumberEqual()
255 private void assertPhoneNumberNotEqual(String phone1, String phone2) throws Exception { in assertPhoneNumberNotEqual() argument
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DServiceStateTrackerTest.java442 GsmCdmaPhone phone2 = Mockito.mock(GsmCdmaPhone.class); in testSetRadioPowerWaitForAllDataDisconnected() local
445 mPhones = new Phone[] {mPhone, phone2}; in testSetRadioPowerWaitForAllDataDisconnected()
447 doReturn(dataNetworkController_phone2).when(phone2).getDataNetworkController(); in testSetRadioPowerWaitForAllDataDisconnected()
448 doReturn(mSST).when(phone2).getServiceStateTracker(); in testSetRadioPowerWaitForAllDataDisconnected()
452 doReturn(2).when(phone2).getSubId(); in testSetRadioPowerWaitForAllDataDisconnected()
497 GsmCdmaPhone phone2 = Mockito.mock(GsmCdmaPhone.class); in testSetRadioPowerExitEmergencyMode() local
500 mPhones = new Phone[] {mPhone, phone2}; in testSetRadioPowerExitEmergencyMode()
502 doReturn(dataNetworkController_phone2).when(phone2).getDataNetworkController(); in testSetRadioPowerExitEmergencyMode()
503 doReturn(mSST).when(phone2).getServiceStateTracker(); in testSetRadioPowerExitEmergencyMode()
507 doReturn(2).when(phone2).getSubId(); in testSetRadioPowerExitEmergencyMode()
/frameworks/opt/chips/tests/src/com/android/ex/chips/
DChipsTest.java1034 final String phone2 = "888-555-1234"; in testCreateTokenizedEntryForPhone() local
1047 final RecipientEntry entry2 = view.createTokenizedEntry(phone2); in testCreateTokenizedEntryForPhone()
1049 assertTrue(phone2 + " failed with " + destination2, in testCreateTokenizedEntryForPhone()