Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/appop/
DAudioRestrictionManager.java60 CAMERA_AUDIO_RESTRICTIONS.append(AppOpsManager.OP_PLAY_AUDIO, audioMutedUsages); in CAMERA_AUDIO_RESTRICTIONS.append() argument
74 if (code == AppOpsManager.OP_VIBRATE || (code == AppOpsManager.OP_PLAY_AUDIO && in checkAudioOperation()
DAppOpsService.java43 import static android.app.AppOpsManager.OP_PLAY_AUDIO;
239 OP_PLAY_AUDIO,
2940 AppOpsManager.OP_PLAY_AUDIO, UID_ANY)); in setCameraAudioRestriction()
/frameworks/native/libs/permission/include/binder/
DAppOpsManager.h71 OP_PLAY_AUDIO = 28, enumerator
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DSuspendPackagesTest.java22 import static android.app.AppOpsManager.OP_PLAY_AUDIO;
262 assertOpBlockedOnSuspend(OP_PLAY_AUDIO); in testPlayAudioBlockedOnSuspend()
/frameworks/base/core/java/android/hardware/
DCamera.java607 mAppOps.startWatchingMode(AppOpsManager.OP_PLAY_AUDIO, in initAppOps()
1641 if (op == AppOpsManager.OP_PLAY_AUDIO) { in opChanged()
1656 mode = mAppOps.checkAudioOperation(AppOpsManager.OP_PLAY_AUDIO, in updateAppOpsPlayAudio()
/frameworks/av/services/audioflinger/
DTracks.cpp620 mAppOpsManager.startWatchingMode(AppOpsManager::OP_PLAY_AUDIO, mPackageName, mOpCallback); in onFirstRef()
636 mAppOpsManager.checkAudioOpNoThrow(AppOpsManager::OP_PLAY_AUDIO, mUsage, mUid, in checkPlayAudioForUsage()
660 if (op != AppOpsManager::OP_PLAY_AUDIO) { in opChanged()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java462 verify(mAppOps, atLeastOnce()).setRestriction(eq(AppOpsManager.OP_PLAY_AUDIO), eq(usage), in verifyApplyRestrictions()
576 verify(mAppOps, atLeastOnce()).setRestriction(AppOpsManager.OP_PLAY_AUDIO, in testTotalSilence()
599 verify(mAppOps, atLeastOnce()).setRestriction(AppOpsManager.OP_PLAY_AUDIO, in testAlarmsOnly_alarmMediaMuteNotApplied()
639 verify(mAppOps, atLeastOnce()).setRestriction(eq(AppOpsManager.OP_PLAY_AUDIO), in testZenAllCannotBypass()
660 eq(AppOpsManager.OP_PLAY_AUDIO), eq(usage), anyInt(), eq(new String[]{PKG_O})); in testApplyRestrictions_whitelist_priorityOnlyMode()
675 eq(AppOpsManager.OP_PLAY_AUDIO), eq(usage), anyInt(), eq(null)); in testApplyRestrictions_whitelist_alarmsOnlyMode()
690 eq(AppOpsManager.OP_PLAY_AUDIO), eq(usage), anyInt(), eq(null)); in testApplyRestrictions_whitelist_totalSilenceMode()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java2229 AppOpsManager.OP_PLAY_AUDIO); in applyRestrictions()
2256 applyRestrictions(zenPriorityOnly, mute, usage, AppOpsManager.OP_PLAY_AUDIO); in applyRestrictions()
/frameworks/base/core/java/android/app/
DAppOpsManager.java1000 public static final int OP_PLAY_AUDIO = AppProtoEnums.APP_OP_PLAY_AUDIO; field in AppOpsManager
2721 new AppOpInfo.Builder(OP_PLAY_AUDIO, OPSTR_PLAY_AUDIO, "PLAY_AUDIO")