/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 411 final UidState uidState; field in AppOpsService.Ops 416 uidState = _uidState; in Ops() 424 final UidState uidState; field in AppOpsService.Op 437 Op(UidState uidState, String packageName, int op) { in Op() argument 439 this.uidState = uidState; in Op() 449 return uidState.evalMode(op, mode); in evalMode() 454 @AppOpsManager.UidState int uidState, @OpFlags int flags) { in accessed() argument 455 final long key = AppOpsManager.makeKey(uidState, flags); in accessed() 468 @AppOpsManager.UidState int uidState, @OpFlags int flags) { in rejected() argument 469 final long key = AppOpsManager.makeKey(uidState, flags); in rejected() [all …]
|
D | HistoricalRegistry.java | 413 @UidState int uidState, @OpFlags int flags) { in incrementOpAccessedCount() argument 421 .increaseAccessCount(op, uid, packageName, uidState, flags, 1); in incrementOpAccessedCount() 427 @UidState int uidState, @OpFlags int flags) { in incrementOpRejected() argument 435 .increaseRejectCount(op, uid, packageName, uidState, flags, 1); in incrementOpRejected() 441 @UidState int uidState, @OpFlags int flags, long increment) { in increaseOpAccessDuration() argument 449 .increaseAccessDuration(op, uid, packageName, uidState, flags, increment); in increaseOpAccessDuration() 1296 final int uidState = AppOpsManager.extractUidStateFromKey(key); in readStateDLocked() local 1306 ops.increaseAccessCount(op, uid, packageName, uidState, flags, accessCount); in readStateDLocked() 1317 ops.increaseRejectCount(op, uid, packageName, uidState, flags, rejectCount); in readStateDLocked() 1328 ops.increaseAccessDuration(op, uid, packageName, uidState, flags, accessDuration); in readStateDLocked() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/appop/ |
D | AppOpsUpgradeTest.java | 91 final AppOpsService.UidState uidState = uidStates.valueAt(i); in assertSameModes() local 92 if (uidState.opModes != null) { in assertSameModes() 93 final int uidMode1 = uidState.opModes.get(op1, defaultModeOp1); in assertSameModes() 94 final int uidMode2 = uidState.opModes.get(op2, defaultModeOp2); in assertSameModes() 100 if (uidState.pkgOps == null) { in assertSameModes() 103 for (int j = 0; j < uidState.pkgOps.size(); j++) { in assertSameModes() 104 final AppOpsService.Ops ops = uidState.pkgOps.valueAt(j); in assertSameModes()
|
/frameworks/base/core/java/android/app/ |
D | AppOpsManager.java | 380 public static String getUidStateName(@UidState int uidState) { in getUidStateName() argument 381 switch (uidState) { in getUidStateName() 535 final int uidState = extractUidStateFromKey(key); in keyToString() local 537 return "[" + getUidStateName(uidState) + "-" + flagsToString(flags) + "]"; in keyToString() 541 public static @DataBucketKey long makeKey(@UidState int uidState, @OpFlags int flags) { in makeKey() argument 542 return ((long) uidState << UID_STATE_OFFSET) | flags; in makeKey() 2611 public int getProxyUid(@UidState int uidState, @OpFlags int flags) { in getProxyUid() argument 2613 uidState, uidState, flags); in getProxyUid() 2644 public @Nullable String getProxyPackageName(@UidState int uidState, @OpFlags int flags) { in getProxyPackageName() argument 2645 return findFirstNonNullForFlagsInStates(mProxyPackageNames, uidState, uidState, flags); in getProxyPackageName() [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 3558 private boolean updateUidStateUL(int uid, int uidState) { in updateUidStateUL() argument 3562 if (oldUidState != uidState) { in updateUidStateUL() 3564 mUidState.put(uid, uidState); in updateUidStateUL() 3565 updateRestrictBackgroundRulesOnUidStatusChangedUL(uid, oldUidState, uidState); in updateUidStateUL() 3567 != isProcStateAllowedWhileIdleOrPowerSaveMode(uidState) ) { in updateUidStateUL()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 3999 UidState uidState) { in WakeLock() argument 4008 mUidState = uidState; in WakeLock()
|