Home
last modified time | relevance | path

Searched refs:isVoiceCapable (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Settings/tests/robotests/testutils/com/android/settings/testutils/shadow/
DShadowUtils.java154 protected static boolean isVoiceCapable(Context context) { in isVoiceCapable() method in ShadowUtils
158 public static void setIsVoiceCapable(boolean isVoiceCapable) { in setIsVoiceCapable() argument
159 sIsVoiceCapable = isVoiceCapable; in setIsVoiceCapable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DVibrationRampingRingerTogglePreferenceControllerTest.java89 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in getAvailabilityStatus_notVoiceCapable_returnUnsupportedOnDevice()
97 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in getAvailabilityStatus_rampingRingerEnabled_returnUnsupportedOnDevice()
105 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in getAvailabilityStatus_voiceCapableAndRampingRingerDisabled_returnAvailable()
DHearingDeviceCallRoutingPreferenceControllerTest.java68 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in getAvailabilityStatus_hasTelephonyCalling_available()
75 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in getAvailabilityStatus_noTelephonyCalling_unsupported()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationVolumePreferenceControllerTest.java86 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_singleVolume_shouldReturnFalse()
104 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in isAvailable_whenVoiceCapable_shouldReturnTrue()
122 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_notSingleVolume_notVoiceCapable_shouldReturnTrue()
DPhoneRingtonePreferenceControllerTest.java56 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_notVoiceCapable_shouldReturnFalse()
63 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in isAvailable_VoiceCapable_shouldReturnTrue()
DDialPadTonePreferenceControllerTest.java68 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in setUp()
85 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_notVoiceCapable_shouldReturnFalse()
DSoundWorkSettingsControllerTest.java73 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in setUp()
126 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in onResume_noVoiceCapability_shouldHidePhoneRingtone()
DSeparateRingVolumePreferenceControllerTest.java88 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_whenNotVoiceCapable_shouldReturnTrue()
DRingVolumePreferenceControllerTest.java89 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in isAvailable_singleVolume_shouldReturnFalse()
/packages/apps/Contacts/src/com/android/contacts/compat/
DTelephonyManagerCompat.java42 public static boolean isVoiceCapable(@Nullable TelephonyManager telephonyManager) { in isVoiceCapable() method in TelephonyManagerCompat
49 return telephonyManager.isVoiceCapable(); in isVoiceCapable()
/packages/apps/Settings/src/com/android/settings/notification/
DPhoneRingtonePreferenceController.java39 return Utils.isVoiceCapable(mContext); in isAvailable()
DDialPadTonePreferenceController.java39 return Utils.isVoiceCapable(context); in DialPadTonePreferenceController()
DSoundWorkSettingsController.java108 mVoiceCapable = Utils.isVoiceCapable(mContext); in SoundWorkSettingsController()
/packages/apps/Settings/src/com/android/settings/accessibility/
DHearingDeviceCallRoutingPreferenceController.java36 return Utils.isVoiceCapable(mContext) ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
DPowerButtonEndsCallPreferenceController.java53 || !Utils.isVoiceCapable(mContext) ? UNSUPPORTED_ON_DEVICE : AVAILABLE; in getAvailabilityStatus()
DVibrationRampingRingerTogglePreferenceController.java89 return (Utils.isVoiceCapable(mContext) && !rampingRingerEnabledOnTelephonyConfig) in getAvailabilityStatus()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/
DEmergencyRoleBehavior.java47 return telephonyManager.isEmergencyAssistanceEnabled() && telephonyManager.isVoiceCapable(); in isAvailableAsUser()
DDialerRoleBehavior.java59 return telephonyManager.isVoiceCapable(); in isAvailableAsUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserDetailsSettingsTest.java276 doReturn(true).when(mTelephonyManager).isVoiceCapable(); in initialize_adminWithTelephony_shouldShowPhonePreference()
288 doReturn(false).when(mTelephonyManager).isVoiceCapable(); in initialize_adminNoTelephony_shouldNotShowPhonePreference()
300 doReturn(true).when(mTelephonyManager).isVoiceCapable(); in initialize_nonAdminWithTelephony_shouldNotShowPhonePreference()
359 doReturn(true).when(mTelephonyManager).isVoiceCapable(); in initialize_adminSelectsRestrictedUser_shouldSetupPreferences()
/packages/apps/Contacts/src/com/android/contacts/util/
DPhoneCapabilityTester.java65 sIsPhone = TelephonyManagerCompat.isVoiceCapable( in initialize()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DSynchronousContactsProvider2.java90 public boolean isVoiceCapable() { in isVoiceCapable() method in SynchronousContactsProvider2
/packages/apps/Messaging/src/com/android/messaging/util/
DPhoneUtils.java684 public boolean isVoiceCapable() { in isVoiceCapable() method in PhoneUtils
685 return mTelephonyManager.isVoiceCapable(); in isVoiceCapable()
/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java376 if (!Utils.isVoiceCapable(context)) { // no telephony
/packages/apps/Contacts/src/com/android/contacts/preference/
DDisplayOptionsPreferenceFragment.java317 final boolean isPhone = TelephonyManagerCompat.isVoiceCapable( in removeUnsupportedPreferences()
/packages/apps/Settings/src/com/android/settings/
DUtils.java199 public static boolean isVoiceCapable(Context context) { in isVoiceCapable() method in Utils
202 return telephony != null && telephony.isVoiceCapable(); in isVoiceCapable()

12