Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DIAudioService.aidl83 void setVibrateSetting(int vibrateType, int vibrateSetting); in setVibrateSetting() argument
85 int getVibrateSetting(int vibrateType); in getVibrateSetting() argument
87 boolean shouldVibrate(int vibrateType); in shouldVibrate() argument
DAudioManager.java1246 public boolean shouldVibrate(int vibrateType) { in shouldVibrate() argument
1249 return service.shouldVibrate(vibrateType); in shouldVibrate()
1273 public int getVibrateSetting(int vibrateType) { in getVibrateSetting() argument
1276 return service.getVibrateSetting(vibrateType); in getVibrateSetting()
1301 public void setVibrateSetting(int vibrateType, int vibrateSetting) { in setVibrateSetting() argument
1304 service.setVibrateSetting(vibrateType, vibrateSetting); in setVibrateSetting()
DAudioService.java1836 public boolean shouldVibrate(int vibrateType) { in shouldVibrate() argument
1839 switch (getVibrateSetting(vibrateType)) { in shouldVibrate()
1857 public int getVibrateSetting(int vibrateType) { in getVibrateSetting() argument
1859 return (mVibrateSetting >> (vibrateType * 2)) & 3; in getVibrateSetting()
1863 public void setVibrateSetting(int vibrateType, int vibrateSetting) { in setVibrateSetting() argument
1867 mVibrateSetting = getValueForVibrateSetting(mVibrateSetting, vibrateType, vibrateSetting); in setVibrateSetting()
1870 broadcastVibrateSetting(vibrateType); in setVibrateSetting()
1877 public static int getValueForVibrateSetting(int existingValue, int vibrateType, in getValueForVibrateSetting() argument
1882 existingValue &= ~(3 << (vibrateType * 2)); in getValueForVibrateSetting()
1885 existingValue |= (vibrateSetting & 3) << (vibrateType * 2); in getValueForVibrateSetting()
[all …]
/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()