/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/ |
H A D | RingVolumePreferenceControllerTest.java | 75 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 D | NotificationVolumePreferenceControllerTest.java | 73 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 D | PhoneRingtonePreferenceControllerTest.java | 56 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_notVoiceCapable_shouldReturnFalse() 63 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in isAvailable_VoiceCapable_shouldReturnTrue()
|
H A D | DialPadTonePreferenceControllerTest.java | 64 when(mTelephonyManager.isVoiceCapable()).thenReturn(true); in setUp() 81 when(mTelephonyManager.isVoiceCapable()).thenReturn(false); in isAvailable_notVoiceCapable_shouldReturnFalse()
|
H A D | SoundWorkSettingsControllerTest.java | 73 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 D | ShadowUtils.java | 141 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 D | VibrateForCallsPreferenceControllerTest.java | 69 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 D | UserCallIntentProcessor.java | 84 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 D | TelephonyManagerCompat.java | 42 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 D | EmergencyButton.java | 110 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 D | Util.java | 182 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 D | PhoneRingtonePreferenceController.java | 39 return Utils.isVoiceCapable(mContext); in isAvailable()
|
H A D | DialPadTonePreferenceController.java | 39 return Utils.isVoiceCapable(context); in DialPadTonePreferenceController()
|
H A D | NotificationVolumePreferenceController.java | 38 && !Utils.isVoiceCapable(mContext) && !mHelper.isSingleVolume() in getAvailabilityStatus()
|
H A D | RingVolumePreferenceController.java | 89 return Utils.isVoiceCapable(mContext) && !mHelper.isSingleVolume() in getAvailabilityStatus()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/ |
H A D | PhoneNumberPreferenceControllerTest.java | 93 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 D | PhoneNumberPreferenceControllerTest.java | 108 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 D | PowerButtonEndsCallPreferenceController.java | 53 || !Utils.isVoiceCapable(mContext) ? UNSUPPORTED_ON_DEVICE : AVAILABLE; in getAvailabilityStatus()
|
/aosp12/packages/apps/Settings/src/com/android/settings/sound/ |
H A D | VibrateForCallsPreferenceController.java | 46 return Utils.isVoiceCapable(mContext) && !DeviceConfig.getBoolean( in getAvailabilityStatus()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/users/ |
H A D | UserDetailsSettingsTest.java | 259 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 D | EmergencyRoleBehavior.java | 45 return telephonyManager.isEmergencyAssistanceEnabled() && telephonyManager.isVoiceCapable(); in isAvailableAsUser()
|
H A D | DialerRoleBehavior.java | 57 return telephonyManager.isVoiceCapable(); in isAvailableAsUser()
|
/aosp12/packages/apps/Contacts/src/com/android/contacts/util/ |
H A D | PhoneCapabilityTester.java | 65 sIsPhone = TelephonyManagerCompat.isVoiceCapable( in initialize()
|
/aosp12/packages/apps/Settings/src/com/android/settings/users/ |
H A D | UserCapabilities.java | 61 if (dpm.isDeviceManaged() || Utils.isVoiceCapable(context)) { in create()
|
/aosp12/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
H A D | PhoneNumberPreferenceController.java | 59 return mTelephonyManager.isVoiceCapable() ? AVAILABLE : UNSUPPORTED_ON_DEVICE; in getAvailabilityStatus()
|