Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DIAudioService.aidl77 void setVibrateSetting(int vibrateType, int vibrateSetting); in setVibrateSetting() argument
79 int getVibrateSetting(int vibrateType); in getVibrateSetting() argument
81 boolean shouldVibrate(int vibrateType); in shouldVibrate() argument
DAudioSystem.java747 public static int getValueForVibrateSetting(int existingValue, int vibrateType, in getValueForVibrateSetting() argument
752 existingValue &= ~(3 << (vibrateType * 2)); in getValueForVibrateSetting()
755 existingValue |= (vibrateSetting & 3) << (vibrateType * 2); in getValueForVibrateSetting()
DAudioManager.java1178 public boolean shouldVibrate(int vibrateType) { in shouldVibrate() argument
1181 return service.shouldVibrate(vibrateType); in shouldVibrate()
1204 public int getVibrateSetting(int vibrateType) { in getVibrateSetting() argument
1207 return service.getVibrateSetting(vibrateType); in getVibrateSetting()
1231 public void setVibrateSetting(int vibrateType, int vibrateSetting) { in setVibrateSetting() argument
1234 service.setVibrateSetting(vibrateType, vibrateSetting); in setVibrateSetting()
/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/services/core/java/com/android/server/audio/
DAudioService.java2186 public boolean shouldVibrate(int vibrateType) { in shouldVibrate() argument
2189 switch (getVibrateSetting(vibrateType)) { in shouldVibrate()
2207 public int getVibrateSetting(int vibrateType) { in getVibrateSetting() argument
2209 return (mVibrateSetting >> (vibrateType * 2)) & 3; in getVibrateSetting()
2213 public void setVibrateSetting(int vibrateType, int vibrateSetting) { in setVibrateSetting() argument
2217 mVibrateSetting = AudioSystem.getValueForVibrateSetting(mVibrateSetting, vibrateType, in setVibrateSetting()
2221 broadcastVibrateSetting(vibrateType); in setVibrateSetting()
3664 private void broadcastVibrateSetting(int vibrateType) { in broadcastVibrateSetting() argument
3668 broadcast.putExtra(AudioManager.EXTRA_VIBRATE_TYPE, vibrateType); in broadcastVibrateSetting()
3669 broadcast.putExtra(AudioManager.EXTRA_VIBRATE_SETTING, getVibrateSetting(vibrateType)); in broadcastVibrateSetting()