Home
last modified time | relevance | path

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

/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DUsageAccessDetails.java55 private UsageState mUsageState; field in UsageAccessDetails
90 if (mUsageState != null && (Boolean) newValue != mUsageState.isPermissible()) { in onPreferenceChange()
91 if (mUsageState.isPermissible() && mDpm.isProfileOwnerApp(mPackageName)) { in onPreferenceChange()
99 setHasAccess(!mUsageState.isPermissible()); in onPreferenceChange()
136 mUsageState = mUsageBridge.getUsageInfo(mPackageName, in refreshUi()
139 boolean hasAccess = mUsageState.isPermissible(); in refreshUi()
141 mSwitchPref.setEnabled(mUsageState.permissionDeclared); in refreshUi()
/packages/apps/Settings/src/com/android/settings/applications/
DUsageAccessDetails.java55 private UsageState mUsageState; field in UsageAccessDetails
90 if (mUsageState != null && (Boolean) newValue != mUsageState.isPermissible()) { in onPreferenceChange()
91 if (mUsageState.isPermissible() && mDpm.isProfileOwnerApp(mPackageName)) { in onPreferenceChange()
99 setHasAccess(!mUsageState.isPermissible()); in onPreferenceChange()
136 mUsageState = mUsageBridge.getUsageInfo(mPackageName, in refreshUi()
139 boolean hasAccess = mUsageState.isPermissible(); in refreshUi()
141 mSwitchPref.setEnabled(mUsageState.permissionDeclared); in refreshUi()