Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendPackagesTest.java21 import static android.app.AppOpsManager.OP_PLAY_AUDIO;
561 if (op == OP_PLAY_AUDIO && packageName.equals(TEST_APP_PACKAGE_NAME)) { in testAudioOpBlockedOnSuspend()
566 iAppOps.startWatchingMode(OP_PLAY_AUDIO, TEST_APP_PACKAGE_NAME, watcher); in testAudioOpBlockedOnSuspend()
568 int audioOpMode = iAppOps.checkAudioOperation(OP_PLAY_AUDIO, in testAudioOpBlockedOnSuspend()
573 audioOpMode = iAppOps.checkAudioOperation(OP_PLAY_AUDIO, in testAudioOpBlockedOnSuspend()
/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/core/java/android/hardware/
DCamera.java589 mAppOps.startWatchingMode(AppOpsManager.OP_PLAY_AUDIO, in initAppOps()
1748 if (op == AppOpsManager.OP_PLAY_AUDIO) { in opChanged()
1763 mode = mAppOps.checkAudioOperation(AppOpsManager.OP_PLAY_AUDIO, in updateAppOpsPlayAudio()
/frameworks/av/services/audioflinger/
DTracks.cpp437 mAppOpsManager.startWatchingMode(AppOpsManager::OP_PLAY_AUDIO, mPackages[0], mOpCallback); in onFirstRef()
455 const int32_t mode = mAppOpsManager.checkAudioOpNoThrow(AppOpsManager::OP_PLAY_AUDIO, in checkPlayAudioForUsage()
475 if (op != AppOpsManager::OP_PLAY_AUDIO) { in opChanged()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java1039 AppOpsManager.OP_PLAY_AUDIO); in applyRestrictions()
1066 applyRestrictions(zenPriorityOnly, mute, usage, AppOpsManager.OP_PLAY_AUDIO); in applyRestrictions()
/frameworks/base/core/java/android/app/
DAppOpsManager.java665 public static final int OP_PLAY_AUDIO = 28; field in AppOpsManager
1214 OP_PLAY_AUDIO, // PLAY_AUDIO
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsService.java23 import static android.app.AppOpsManager.OP_PLAY_AUDIO;
789 callbacks = mOpModeWatchers.get(OP_PLAY_AUDIO); in systemReady()
800 notifyOpChanged(callbacks, OP_PLAY_AUDIO, changedUid, changedPkg); in systemReady()