Home
last modified time | relevance | path

Searched refs:OP_VIBRATE (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/appop/
DAudioRestrictionManager.java61 CAMERA_AUDIO_RESTRICTIONS.append(AppOpsManager.OP_VIBRATE, vibrationMutedUsages); in CAMERA_AUDIO_RESTRICTIONS.append() argument
74 if (code == AppOpsManager.OP_VIBRATE || (code == AppOpsManager.OP_PLAY_AUDIO && in checkAudioOperation()
DAppOpsService.java48 import static android.app.AppOpsManager.OP_VIBRATE;
242 OP_VIBRATE,
2943 AppOpsManager.OP_VIBRATE, UID_ANY)); in setCameraAudioRestriction()
/frameworks/native/libs/permission/include/binder/
DAppOpsManager.h46 OP_VIBRATE = 3, enumerator
/frameworks/base/services/tests/vibrator/src/com/android/server/vibrator/
DVibratorManagerServiceTest.java779 verify(mAppOpsManagerMock).checkAudioOpNoThrow(eq(AppOpsManager.OP_VIBRATE), in vibrate_withAudioAttributes_usesOriginalAudioUsageInAppOpsManager()
799 inOrderVerifier.verify(mAppOpsManagerMock).checkAudioOpNoThrow(eq(AppOpsManager.OP_VIBRATE), in vibrate_withVibrationAttributes_usesCorrespondingAudioUsageInAppOpsManager()
801 inOrderVerifier.verify(mAppOpsManagerMock).checkAudioOpNoThrow(eq(AppOpsManager.OP_VIBRATE), in vibrate_withVibrationAttributes_usesCorrespondingAudioUsageInAppOpsManager()
803 inOrderVerifier.verify(mAppOpsManagerMock).checkAudioOpNoThrow(eq(AppOpsManager.OP_VIBRATE), in vibrate_withVibrationAttributes_usesCorrespondingAudioUsageInAppOpsManager()
805 inOrderVerifier.verify(mAppOpsManagerMock).checkAudioOpNoThrow(eq(AppOpsManager.OP_VIBRATE), in vibrate_withVibrationAttributes_usesCorrespondingAudioUsageInAppOpsManager()
807 inOrderVerifier.verify(mAppOpsManagerMock).checkAudioOpNoThrow(eq(AppOpsManager.OP_VIBRATE), in vibrate_withVibrationAttributes_usesCorrespondingAudioUsageInAppOpsManager()
810 inOrderVerifier.verify(mAppOpsManagerMock).checkAudioOpNoThrow(eq(AppOpsManager.OP_VIBRATE), in vibrate_withVibrationAttributes_usesCorrespondingAudioUsageInAppOpsManager()
863 .checkAudioOpNoThrow(eq(AppOpsManager.OP_VIBRATE), in vibrate_withAttributesUnknownUsage_usesEffectToIdentifyTouchUsage()
866 .checkAudioOpNoThrow(eq(AppOpsManager.OP_VIBRATE), in vibrate_withAttributesUnknownUsage_usesEffectToIdentifyTouchUsage()
892 .checkAudioOpNoThrow(eq(AppOpsManager.OP_VIBRATE), in vibrate_withAttributesUnknownUsage_ignoresEffectIfNotHapticFeedbackCandidate()
[all …]
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibratorManagerService.java1175 int mode = mAppOps.checkAudioOpNoThrow(AppOpsManager.OP_VIBRATE, in checkAppOpModeLocked()
1191 mAppOps.startOpNoThrow(AppOpsManager.OP_VIBRATE, callerInfo.uid, callerInfo.opPkg), in startAppOpModeLocked()
1201 mAppOps.finishOp(AppOpsManager.OP_VIBRATE, callerInfo.uid, callerInfo.opPkg); in finishAppOpModeLocked()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DZenModeHelperTest.java460 verify(mAppOps, atLeastOnce()).setRestriction(eq(AppOpsManager.OP_VIBRATE), eq(usage), in verifyApplyRestrictions()
578 verify(mAppOps, atLeastOnce()).setRestriction(AppOpsManager.OP_VIBRATE, in testTotalSilence()
641 verify(mAppOps, atLeastOnce()).setRestriction(eq(AppOpsManager.OP_VIBRATE), in testZenAllCannotBypass()
662 eq(AppOpsManager.OP_VIBRATE), eq(usage), anyInt(), eq(new String[]{PKG_O})); in testApplyRestrictions_whitelist_priorityOnlyMode()
677 eq(AppOpsManager.OP_VIBRATE), eq(usage), anyInt(), eq(null)); in testApplyRestrictions_whitelist_alarmsOnlyMode()
692 eq(AppOpsManager.OP_VIBRATE), eq(usage), anyInt(), eq(null)); in testApplyRestrictions_whitelist_totalSilenceMode()
/frameworks/base/services/core/java/com/android/server/notification/
DZenModeHelper.java2230 applyRestrictions(zenPriorityOnly, false, usage, AppOpsManager.OP_VIBRATE); in applyRestrictions()
2255 applyRestrictions(zenPriorityOnly, mute, usage, AppOpsManager.OP_VIBRATE); in applyRestrictions()
/frameworks/base/core/java/android/app/
DAppOpsManager.java919 public static final int OP_VIBRATE = AppProtoEnums.APP_OP_VIBRATE; field in AppOpsManager
2631 new AppOpInfo.Builder(OP_VIBRATE, OPSTR_VIBRATE, "VIBRATE")
2632 .setSwitchCode(OP_VIBRATE).setPermission(android.Manifest.permission.VIBRATE)