Searched refs:OPS (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
D | AppOpsPrivacyItemMonitor.kt | 67 val OPS = OPS_MIC_CAMERA + OPS_LOCATION in <lambda>() constant 173 appOpsController.addCallback(OPS, appOpsCallback) in <lambda>() 177 appOpsController.removeCallback(OPS, appOpsCallback) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
D | AppOpsControllerImpl.java | 127 protected static final int[] OPS = concatOps(OPS_MIC, OPS_CAMERA, OPS_LOC, OPS_OTHERS); field in AppOpsControllerImpl 169 final int numOps = OPS.length; in AppOpsControllerImpl() 171 mCallbacksByCode.put(OPS[i], new ArraySet<>()); in AppOpsControllerImpl() 198 mAppOps.startWatchingActive(OPS, this); in setListening() 199 mAppOps.startWatchingNoted(OPS, this); in setListening() 231 List<AppOpsManager.PackageOps> packageOps = mAppOps.getPackagesForOps(OPS); in fetchCurrentActiveOps()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ArrayMapTests.java | 34 static int[] OPS = new int[] { field in ArrayMapTests 341 for (int i=0; i<OPS.length; i++) { in run() 347 switch (OPS[i]) { in run() 363 Log.e("test", "Bad operation " + OPS[i] + " @ " + i); in run()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/ |
D | AppOpsControllerTest.java | 158 verify(mAppOpsManager, times(1)).startWatchingActive(AppOpsControllerImpl.OPS, mController); in testOnlyListenForFewOps() 174 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in startListening_fetchesCurrentActive_none() 186 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)).thenReturn(null); in startListening_fetchCurrentActive_nullPackageOps() 202 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in startListening_fetchesCurrentActive_oneActive() 235 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in startListening_fetchesCurrentActive_multiplePackages() 283 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in startListening_fetchesCurrentActive_multipleEntries() 323 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in startListening_fetchesCurrentActive_multipleAttributes() 359 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in addCallback_existingCallbacksNotifiedOfCurrentActive()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | AppOpsPrivacyItemMonitorTest.kt | 122 verify(appOpsController).addCallback(eq(AppOpsPrivacyItemMonitor.OPS), any()) in testStartListeningAddsAppOpsCallback() 133 verify(appOpsController).removeCallback(eq(AppOpsPrivacyItemMonitor.OPS), any()) in testStopListeningRemovesAppOpsCallback() 231 verify(appOpsController, never()).addCallback(eq(AppOpsPrivacyItemMonitor.OPS), any()) in testNotListeningWhenIndicatorsDisabled()
|