Home
last modified time | relevance | path

Searched refs:vibrateType (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/tests/FixVibrateSetting/src/com/android/fixvibratesetting/
DFixVibrateSetting.java67 private String getSettingValue(int vibrateType) { in getSettingValue() argument
68 int setting = mAudioManager.getVibrateSetting(vibrateType); in getSettingValue()
/frameworks/base/media/java/android/media/
DIAudioService.aidl125 void setVibrateSetting(int vibrateType, int vibrateSetting); in setVibrateSetting() argument
127 int getVibrateSetting(int vibrateType); in getVibrateSetting() argument
129 boolean shouldVibrate(int vibrateType); in shouldVibrate() argument
DAudioSystem.java1364 public static int getValueForVibrateSetting(int existingValue, int vibrateType, in getValueForVibrateSetting() argument
1369 existingValue &= ~(3 << (vibrateType * 2)); in getValueForVibrateSetting()
1372 existingValue |= (vibrateSetting & 3) << (vibrateType * 2); in getValueForVibrateSetting()
DAudioManager.java1393 public boolean shouldVibrate(int vibrateType) { in shouldVibrate() argument
1396 return service.shouldVibrate(vibrateType); in shouldVibrate()
1419 public int getVibrateSetting(int vibrateType) { in getVibrateSetting() argument
1422 return service.getVibrateSetting(vibrateType); in getVibrateSetting()
1446 public void setVibrateSetting(int vibrateType, int vibrateSetting) { in setVibrateSetting() argument
1449 service.setVibrateSetting(vibrateType, vibrateSetting); in setVibrateSetting()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java3217 public boolean shouldVibrate(int vibrateType) { in shouldVibrate() argument
3220 switch (getVibrateSetting(vibrateType)) { in shouldVibrate()
3238 public int getVibrateSetting(int vibrateType) { in getVibrateSetting() argument
3240 return (mVibrateSetting >> (vibrateType * 2)) & 3; in getVibrateSetting()
3244 public void setVibrateSetting(int vibrateType, int vibrateSetting) { in setVibrateSetting() argument
3248 mVibrateSetting = AudioSystem.getValueForVibrateSetting(mVibrateSetting, vibrateType, in setVibrateSetting()
3252 broadcastVibrateSetting(vibrateType); in setVibrateSetting()
4218 private void broadcastVibrateSetting(int vibrateType) { in broadcastVibrateSetting() argument
4222 broadcast.putExtra(AudioManager.EXTRA_VIBRATE_TYPE, vibrateType); in broadcastVibrateSetting()
4223 broadcast.putExtra(AudioManager.EXTRA_VIBRATE_SETTING, getVibrateSetting(vibrateType)); in broadcastVibrateSetting()