Searched refs:OPS (Results 1 – 5 of 5) sorted by relevance
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/ |
H A D | AppOpsPrivacyItemMonitor.kt | 64 val OPS = OPS_MIC_CAMERA + OPS_LOCATION regex 170 appOpsController.addCallback(OPS, appOpsCallback) 174 appOpsController.removeCallback(OPS, appOpsCallback)
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/appops/ |
H A D | AppOpsControllerImpl.java | 100 protected static final int[] OPS = new int[] { field in AppOpsControllerImpl 126 final int numOps = OPS.length; in AppOpsControllerImpl() 128 mCallbacksByCode.put(OPS[i], new ArraySet<>()); in AppOpsControllerImpl() 153 mAppOps.startWatchingActive(OPS, this); in setListening() 154 mAppOps.startWatchingNoted(OPS, this); in setListening() 186 List<AppOpsManager.PackageOps> packageOps = mAppOps.getPackagesForOps(OPS); in fetchCurrentActiveOps()
|
/aosp14/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/appops/ |
H A D | AppOpsControllerTest.java | 150 verify(mAppOpsManager, times(1)).startWatchingActive(AppOpsControllerImpl.OPS, mController); in testOnlyListenForFewOps() 165 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in startListening_fetchesCurrentActive_none() 181 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in startListening_fetchesCurrentActive_oneActive() 213 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in startListening_fetchesCurrentActive_multiplePackages() 260 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in startListening_fetchesCurrentActive_multipleEntries() 299 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in startListening_fetchesCurrentActive_multipleAttributes() 334 when(mAppOpsManager.getPackagesForOps(AppOpsControllerImpl.OPS)) in addCallback_existingCallbacksNotifiedOfCurrentActive()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
H A D | AppOpsPrivacyItemMonitorTest.kt | 122 verify(appOpsController).addCallback(eq(AppOpsPrivacyItemMonitor.OPS), any()) 133 verify(appOpsController).removeCallback(eq(AppOpsPrivacyItemMonitor.OPS), any()) 221 verify(appOpsController, never()).addCallback(eq(AppOpsPrivacyItemMonitor.OPS), any())
|