Home
last modified time | relevance | path

Searched refs:mMockAppOpsManager (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilitySecurityPolicyTest.java121 @Mock private AppOpsManager mMockAppOpsManager; field in AccessibilitySecurityPolicyTest
133 when(mMockContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mMockAppOpsManager); in setUp()
547 verify(mMockAppOpsManager).noteOpNoThrow(AppOpsManager.OPSTR_BIND_ACCESSIBILITY_SERVICE, in canRegisterService_shouldCheckAppOps()
569 verify(mMockAppOpsManager).noteOpNoThrow(AppOpsManager.OPSTR_ACCESS_ACCESSIBILITY, in checkAccessibilityAccess_shouldCheckAppOps()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/aware/
DWifiAwareMetricsTest.java60 @Mock private AppOpsManager mMockAppOpsManager; field in WifiAwareMetricsTest
103 when(mMockContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mMockAppOpsManager); in setUp()
DWifiAwareStateManagerTest.java117 @Mock private AppOpsManager mMockAppOpsManager; field in WifiAwareStateManagerTest
152 when(mMockContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mMockAppOpsManager); in setUp()
158 when(mMockAppOpsManager.noteOp(eq(AppOpsManager.OP_FINE_LOCATION), anyInt(), in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAppStateTrackerTest.java108 return mMockAppOpsManager; in injectAppOpsManager()
170 private AppOpsManager mMockAppOpsManager; field in AppStateTrackerTest
236 when(mMockAppOpsManager.getPackagesForOps( in callStart()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java107 @Mock private AppOpsManager mMockAppOpsManager; field in AccountManagerServiceTest
149 when(mMockContext.getSystemService(Context.APP_OPS_SERVICE)).thenReturn(mMockAppOpsManager); in setUp()