Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java355 int ringerModeAffectedStreams = ringerModeDelegate.getRingerModeAffectedStreams(0); in testRingerAffectedStreamsTotalSilence() local
356 assertTrue((ringerModeAffectedStreams & (1 << AudioSystem.STREAM_RING)) != 0); in testRingerAffectedStreamsTotalSilence()
357 assertTrue((ringerModeAffectedStreams & (1 << AudioSystem.STREAM_NOTIFICATION)) in testRingerAffectedStreamsTotalSilence()
359 assertTrue((ringerModeAffectedStreams & (1 << AudioSystem.STREAM_SYSTEM)) != 0); in testRingerAffectedStreamsTotalSilence()
360 assertTrue((ringerModeAffectedStreams & (1 << AudioSystem.STREAM_ALARM)) != 0); in testRingerAffectedStreamsTotalSilence()
361 assertTrue((ringerModeAffectedStreams & (1 << AudioSystem.STREAM_MUSIC)) != 0); in testRingerAffectedStreamsTotalSilence()
375 int ringerModeAffectedStreams = in testRingerAffectedStreamsPriorityOnly() local
377 assertTrue((ringerModeAffectedStreams & (1 << AudioSystem.STREAM_RING)) != 0); in testRingerAffectedStreamsPriorityOnly()
378 assertTrue((ringerModeAffectedStreams & (1 << AudioSystem.STREAM_NOTIFICATION)) in testRingerAffectedStreamsPriorityOnly()
380 assertTrue((ringerModeAffectedStreams & (1 << AudioSystem.STREAM_SYSTEM)) != 0); in testRingerAffectedStreamsPriorityOnly()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java947 int ringerModeAffectedStreams = (1 << AudioManager.STREAM_RING) | in onUpgrade() local
953 ringerModeAffectedStreams |= (1 << AudioManager.STREAM_MUSIC); in onUpgrade()
959 + String.valueOf(ringerModeAffectedStreams) + "')"); in onUpgrade()
2210 int ringerModeAffectedStreams = (1 << AudioManager.STREAM_RING) | in loadVolumeLevels() local
2216 ringerModeAffectedStreams |= (1 << AudioManager.STREAM_MUSIC); in loadVolumeLevels()
2219 ringerModeAffectedStreams); in loadVolumeLevels()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioService.java4296 int ringerModeAffectedStreams = Settings.System.getIntForUser(mContentResolver, in updateRingerAndZenModeAffectedStreams() local
4303 ringerModeAffectedStreams = 0; in updateRingerAndZenModeAffectedStreams()
4305 ringerModeAffectedStreams = mRingerModeDelegate in updateRingerAndZenModeAffectedStreams()
4306 .getRingerModeAffectedStreams(ringerModeAffectedStreams); in updateRingerAndZenModeAffectedStreams()
4309 ringerModeAffectedStreams &= ~(1 << AudioSystem.STREAM_SYSTEM_ENFORCED); in updateRingerAndZenModeAffectedStreams()
4311 ringerModeAffectedStreams |= (1 << AudioSystem.STREAM_SYSTEM_ENFORCED); in updateRingerAndZenModeAffectedStreams()
4314 ringerModeAffectedStreams |= (1 << AudioSystem.STREAM_DTMF); in updateRingerAndZenModeAffectedStreams()
4316 ringerModeAffectedStreams &= ~(1 << AudioSystem.STREAM_DTMF); in updateRingerAndZenModeAffectedStreams()
4319 if (ringerModeAffectedStreams != mRingerModeAffectedStreams) { in updateRingerAndZenModeAffectedStreams()
4322 ringerModeAffectedStreams, in updateRingerAndZenModeAffectedStreams()
[all …]