Searched refs:OP_PLAY_AUDIO (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AudioRestrictionManager.java | 60 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()
|
D | AppOpsService.java | 43 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/ |
D | AppOpsManager.h | 71 OP_PLAY_AUDIO = 28, enumerator
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | SuspendPackagesTest.java | 22 import static android.app.AppOpsManager.OP_PLAY_AUDIO; 262 assertOpBlockedOnSuspend(OP_PLAY_AUDIO); in testPlayAudioBlockedOnSuspend()
|
/frameworks/base/core/java/android/hardware/ |
D | Camera.java | 607 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/ |
D | Tracks.cpp | 620 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/ |
D | ZenModeHelperTest.java | 462 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/ |
D | ZenModeHelper.java | 2229 AppOpsManager.OP_PLAY_AUDIO); in applyRestrictions() 2256 applyRestrictions(zenPriorityOnly, mute, usage, AppOpsManager.OP_PLAY_AUDIO); in applyRestrictions()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 1000 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")
|