Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/
DCarUxRestrictionsManagerService.java144 private Map<Byte, CarUxRestrictions> mCurrentUxRestrictions; field in CarUxRestrictionsManagerService
171 mCurrentUxRestrictions = new HashMap<>(); in init()
173 mCurrentUxRestrictions.put(port, createUnrestrictedRestrictions()); in init()
402 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(getPhysicalPort(displayId)); in getCurrentUxRestrictions()
704 for (byte port : mCurrentUxRestrictions.keySet()) { in dump()
705 CarUxRestrictions restrictions = mCurrentUxRestrictions.get(port); in dump()
808 Preconditions.checkNotNull(mCurrentUxRestrictions, in handleDispatchUxRestrictions()
827 mCurrentUxRestrictions.get(port).isRequiresDistractionOptimization(), in handleDispatchUxRestrictions()
831 mCurrentUxRestrictions.get(port).getActiveRestrictions(), in handleDispatchUxRestrictions()
839 if (!mCurrentUxRestrictions.containsKey(port)) { in handleDispatchUxRestrictions()
[all …]
/packages/services/Car/service/src/com/android/car/pm/
DCarPackageManagerService.java1340 private CarUxRestrictions mCurrentUxRestrictions; field in CarPackageManagerService.UxRestrictionsListener
1362 mCurrentUxRestrictions = new CarUxRestrictions(restrictions); in onUxRestrictionsChanged()
1370 if (mCurrentUxRestrictions != null in checkIfTopActivityNeedsBlocking()
1371 && mCurrentUxRestrictions.isRequiresDistractionOptimization()) { in checkIfTopActivityNeedsBlocking()
1386 if (mCurrentUxRestrictions == null) { in isRestricted()
1387 mCurrentUxRestrictions = uxRestrictionsService.getCurrentUxRestrictions(); in isRestricted()
1389 if (mCurrentUxRestrictions != null) { in isRestricted()
1390 return mCurrentUxRestrictions.isRequiresDistractionOptimization(); in isRestricted()