Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DPlayerBase.java119 mAppOps.startWatchingMode(AppOpsManager.OP_PLAY_AUDIO, in baseRegisterPlayer()
298 mode = mAppOps.checkAudioOperation(AppOpsManager.OP_PLAY_AUDIO, in updateAppOpsPlayAudio_sync()
450 if (op == AppOpsManager.OP_PLAY_AUDIO) { in opChanged()
/frameworks/native/libs/binder/include/binder/
DAppOpsManager.h68 OP_PLAY_AUDIO = 28, enumerator
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java274 AudioAttributes.USAGE_ASSISTANCE_SONIFICATION, AppOpsManager.OP_PLAY_AUDIO); in testTotalSilence()
301 AudioAttributes.USAGE_ASSISTANCE_SONIFICATION, AppOpsManager.OP_PLAY_AUDIO); in testAlarmsOnly_alarmMediaMuteNotApplied()
340 AppOpsManager.OP_PLAY_AUDIO); in testZenAllCannotBypass()
360 eq(AppOpsManager.OP_PLAY_AUDIO), eq(usage), anyInt(), eq(new String[]{PKG_O})); in testApplyRestrictions_whitelist_priorityOnlyMode()
375 eq(AppOpsManager.OP_PLAY_AUDIO), eq(usage), anyInt(), eq(null)); in testApplyRestrictions_whitelist_alarmsOnlyMode()
390 eq(AppOpsManager.OP_PLAY_AUDIO), eq(usage), anyInt(), eq(null)); in testApplyRestrictions_whitelist_totalSilenceMode()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendPackagesTest.java22 import static android.app.AppOpsManager.OP_PLAY_AUDIO;
562 assertOpBlockedOnSuspend(OP_PLAY_AUDIO); in testPlayAudioBlockedOnSuspend()
/frameworks/base/core/java/android/hardware/
DCamera.java595 mAppOps.startWatchingMode(AppOpsManager.OP_PLAY_AUDIO, in initAppOps()
1754 if (op == AppOpsManager.OP_PLAY_AUDIO) { in opChanged()
1769 mode = mAppOps.checkAudioOperation(AppOpsManager.OP_PLAY_AUDIO, in updateAppOpsPlayAudio()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java1038 AppOpsManager.OP_PLAY_AUDIO); in applyRestrictions()
1065 applyRestrictions(zenPriorityOnly, mute, usage, AppOpsManager.OP_PLAY_AUDIO); in applyRestrictions()
/frameworks/av/services/audioflinger/
DTracks.cpp439 mAppOpsManager.startWatchingMode(AppOpsManager::OP_PLAY_AUDIO, mPackages[0], mOpCallback); in onFirstRef()
457 const int32_t mode = mAppOpsManager.checkAudioOpNoThrow(AppOpsManager::OP_PLAY_AUDIO, in checkPlayAudioForUsage()
477 if (op != AppOpsManager::OP_PLAY_AUDIO) { in opChanged()
/frameworks/base/core/java/android/app/
DAppOpsManager.java668 public static final int OP_PLAY_AUDIO = 28; field in AppOpsManager
1249 OP_PLAY_AUDIO, // PLAY_AUDIO
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java24 import static android.app.AppOpsManager.OP_PLAY_AUDIO;
182 OP_PLAY_AUDIO,