Home
last modified time | relevance | path

Searched refs:ringerMode (Results 1 – 2 of 2) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAudioManager.java44 private int ringerMode = AudioManager.RINGER_MODE_NORMAL; field in ShadowAudioManager
118 return ringerMode; in getRingerMode()
122 protected void setRingerMode(int ringerMode) { in setRingerMode() argument
123 if (!AudioManager.isValidRingerMode(ringerMode)) { in setRingerMode()
126 this.ringerMode = ringerMode; in setRingerMode()
129 public static boolean isValidRingerMode(int ringerMode) { in isValidRingerMode() argument
130 …if (ringerMode < 0 || ringerMode > (int)ReflectionHelpers.getStaticField(AudioManager.class, "RING… in isValidRingerMode()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAudioManagerTest.java205 int ringerMode = audioManager.getRingerMode(); in getRingerMode_default() local
206 assertThat(ringerMode).isEqualTo(AudioManager.RINGER_MODE_NORMAL); in getRingerMode_default()