Home
last modified time | relevance | path

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

123

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
H A DRingVolumePreferenceControllerTest.java75 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in isAvailable_singleVolume_shouldReturnFalse()
83 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_notVoiceCapable_shouldReturnFalse()
91 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in isAvailable_notSingleVolume_VoiceCapable_shouldReturnTrue()
H A DNotificationVolumePreferenceControllerTest.java73 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_singleVolume_shouldReturnFalse()
81 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in isAvailable_voiceCapable_shouldReturnFalse()
89 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_notSingleVolume_notVoiceCapable_shouldReturnTrue()
H A DPhoneRingtonePreferenceControllerTest.java56 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_notVoiceCapable_shouldReturnFalse()
63 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in isAvailable_VoiceCapable_shouldReturnTrue()
H A DDialPadTonePreferenceControllerTest.java64 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in setUp()
81 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_notVoiceCapable_shouldReturnFalse()
H A DSoundWorkSettingsControllerTest.java73 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in setUp()
126 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in onResume_noVoiceCapability_shouldHidePhoneRingtone()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowUtils.java141 protected static boolean isVoiceCapable(Context context) { in isVoiceCapable() method in ShadowUtils
145 public static void setIsVoiceCapable(boolean isVoiceCapable) { in setIsVoiceCapable() argument
146 sIsVoiceCapable = isVoiceCapable; in setIsVoiceCapable()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
H A DVibrateForCallsPreferenceControllerTest.java69 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in getAvailabilityStatus_notVoiceCapable_returnUnsupportedOnDevice()
78 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in getAvailabilityStatus_rampingRingerEnabled_returnUnsupportedOnDevice()
87 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in getAvailabilityStatus_voiceCapableAndRampingRingerDisabled_returnAvailable()
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/components/
H A DUserCallIntentProcessor.java84 if (!isVoiceCapable()) { in processIntent()
166 private boolean isVoiceCapable() { in isVoiceCapable() method in UserCallIntentProcessor
168 .isVoiceCapable(); in isVoiceCapable()
/aosp12/packages/apps/Contacts/src/com/android/contacts/compat/
H A DTelephonyManagerCompat.java42 public static boolean isVoiceCapable(@Nullable TelephonyManager telephonyManager) { in isVoiceCapable() method in TelephonyManagerCompat
49 return telephonyManager.isVoiceCapable(); in isVoiceCapable()
/aosp12/frameworks/base/packages/SystemUI/src/com/android/keyguard/
H A DEmergencyButton.java110 void updateEmergencyCallButton(boolean isInCall, boolean isVoiceCapable, boolean simLocked) { in updateEmergencyCallButton() argument
112 if (isVoiceCapable) { in updateEmergencyCallButton()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/volume/
H A DUtil.java182 public static boolean isVoiceCapable(Context context) { in isVoiceCapable() method in Util
185 return telephony != null && telephony.isVoiceCapable(); in isVoiceCapable()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/
H A DPhoneRingtonePreferenceController.java39 return Utils.isVoiceCapable(mContext); in isAvailable()
H A DDialPadTonePreferenceController.java39 return Utils.isVoiceCapable(context); in DialPadTonePreferenceController()
H A DNotificationVolumePreferenceController.java38 && !Utils.isVoiceCapable(mContext) && !mHelper.isSingleVolume() in getAvailabilityStatus()
H A DRingVolumePreferenceController.java89 return Utils.isVoiceCapable(mContext) && !mHelper.isSingleVolume() in getAvailabilityStatus()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/
H A DPhoneNumberPreferenceControllerTest.java93 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in getAvailabilityStatus_isVoiceCapable_shouldBeAVAILABLE()
101 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in getAvailabilityStatus_isNotVoiceCapable_shouldBeUNSUPPORTED_ON_DEVICE()
/aosp12/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/
H A DPhoneNumberPreferenceControllerTest.java108 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in getAvailabilityStatus_isVoiceCapable_shouldBeAVAILABLE()
116 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in getAvailabilityStatus_isNotVoiceCapable_shouldBeUNSUPPORTED_ON_DEVICE()
/aosp12/packages/apps/Settings/src/com/android/settings/accessibility/
H A DPowerButtonEndsCallPreferenceController.java53 || !Utils.isVoiceCapable(mContext) ? UNSUPPORTED_ON_DEVICE : AVAILABLE; in getAvailabilityStatus()
/aosp12/packages/apps/Settings/src/com/android/settings/sound/
H A DVibrateForCallsPreferenceController.java46 return Utils.isVoiceCapable(mContext) && !DeviceConfig.getBoolean( in getAvailabilityStatus()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
H A DUserDetailsSettingsTest.java259 doReturn(true).when(mTelephonyManager).isVoiceCapable(); in initialize_adminWithTelephony_shouldShowPhonePreference()
271 doReturn(false).when(mTelephonyManager).isVoiceCapable(); in initialize_adminNoTelephony_shouldNotShowPhonePreference()
283 doReturn(true).when(mTelephonyManager).isVoiceCapable(); in initialize_nonAdminWithTelephony_shouldNotShowPhonePreference()
339 doReturn(true).when(mTelephonyManager).isVoiceCapable(); in initialize_adminSelectsRestrictedUser_shouldSetupPreferences()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/model/
H A DEmergencyRoleBehavior.java45 return telephonyManager.isEmergencyAssistanceEnabled() && telephonyManager.isVoiceCapable(); in isAvailableAsUser()
H A DDialerRoleBehavior.java57 return telephonyManager.isVoiceCapable(); in isAvailableAsUser()
/aosp12/packages/apps/Contacts/src/com/android/contacts/util/
H A DPhoneCapabilityTester.java65 sIsPhone = TelephonyManagerCompat.isVoiceCapable( in initialize()
/aosp12/packages/apps/Settings/src/com/android/settings/users/
H A DUserCapabilities.java61 if (dpm.isDeviceManaged() || Utils.isVoiceCapable(context)) { in create()
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DPhoneNumberPreferenceController.java59 return mTelephonyManager.isVoiceCapable() ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()

123