Home
last modified time | relevance | path

Searched refs:opModes (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DAppOpsService.java312 public SparseIntArray opModes; field in AppOpsService.UidState
324 opModes = null; in clear()
329 && (opModes == null || opModes.size() <= 0); in isDefault()
359 if (opModes != null) { in evalForegroundOps()
360 for (int i = opModes.size() - 1; i >= 0; i--) { in evalForegroundOps()
361 if (opModes.valueAt(i) == AppOpsManager.MODE_FOREGROUND) { in evalForegroundOps()
365 evalForegroundWatchers(opModes.keyAt(i), watchers, which); in evalForegroundOps()
933 ArrayList<AppOpsManager.OpEntry> resOps = collectOps(uidState.opModes, ops); in getUidOps()
1001 uidState.opModes = new SparseIntArray(); in setUidMode()
1002 uidState.opModes.put(code, mode); in setUidMode()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DAppOpsUpgradeTest.java91 if (uidState.opModes != null) { in assertSameModes()
92 final int uidMode1 = uidState.opModes.get(op1, defaultModeOp1); in assertSameModes()
93 final int uidMode2 = uidState.opModes.get(op2, defaultModeOp2); in assertSameModes()