Home
last modified time | relevance | path

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

/development/samples/ApiDemos/src/com/example/android/apis/accessibility/
DClockBackService.java387 int volumePercent = (100 / maxRingerVolume) * currentRingerVolume; in generateScreenOnOrOffUtternace() local
390 int adjustment = volumePercent % 10; in generateScreenOnOrOffUtternace()
392 volumePercent -= adjustment; in generateScreenOnOrOffUtternace()
394 volumePercent += (10 - adjustment); in generateScreenOnOrOffUtternace()
397 return String.format(template, volumePercent); in generateScreenOnOrOffUtternace()