Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DIAudioService.aidl88 void setVibrateSetting(int vibrateType, int vibrateSetting); in setVibrateSetting() argument
90 int getVibrateSetting(int vibrateType); in getVibrateSetting() argument
92 boolean shouldVibrate(int vibrateType); in shouldVibrate() argument
DAudioSystem.java841 public static int getValueForVibrateSetting(int existingValue, int vibrateType, in getValueForVibrateSetting() argument
846 existingValue &= ~(3 << (vibrateType * 2)); in getValueForVibrateSetting()
849 existingValue |= (vibrateSetting & 3) << (vibrateType * 2); in getValueForVibrateSetting()
DAudioManager.java1154 public boolean shouldVibrate(int vibrateType) { in shouldVibrate() argument
1157 return service.shouldVibrate(vibrateType); in shouldVibrate()
1180 public int getVibrateSetting(int vibrateType) { in getVibrateSetting() argument
1183 return service.getVibrateSetting(vibrateType); in getVibrateSetting()
1207 public void setVibrateSetting(int vibrateType, int vibrateSetting) { in setVibrateSetting() argument
1210 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.java2407 public boolean shouldVibrate(int vibrateType) { in shouldVibrate() argument
2410 switch (getVibrateSetting(vibrateType)) { in shouldVibrate()
2428 public int getVibrateSetting(int vibrateType) { in getVibrateSetting() argument
2430 return (mVibrateSetting >> (vibrateType * 2)) & 3; in getVibrateSetting()
2434 public void setVibrateSetting(int vibrateType, int vibrateSetting) { in setVibrateSetting() argument
2438 mVibrateSetting = AudioSystem.getValueForVibrateSetting(mVibrateSetting, vibrateType, in setVibrateSetting()
2442 broadcastVibrateSetting(vibrateType); in setVibrateSetting()
3966 private void broadcastVibrateSetting(int vibrateType) { in broadcastVibrateSetting() argument
3970 broadcast.putExtra(AudioManager.EXTRA_VIBRATE_TYPE, vibrateType); in broadcastVibrateSetting()
3971 broadcast.putExtra(AudioManager.EXTRA_VIBRATE_SETTING, getVibrateSetting(vibrateType)); in broadcastVibrateSetting()