Home
last modified time | relevance | path

Searched refs:PermissionState (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java99 public PermissionState getPermissionInfo(String pkg, int uid) { in getPermissionInfo()
100 PermissionState permissionState = new PermissionState(pkg, new UserHandle(UserHandle in getPermissionInfo()
136 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in loadAllExtraInfo()
148 ArrayMap<String, PermissionState> userMap = entries.get(userId); in loadAllExtraInfo()
157 private SparseArray<ArrayMap<String, PermissionState>> getEntries() { in getEntries()
174 SparseArray<ArrayMap<String, PermissionState>> entries = new SparseArray<>(); in getEntries()
176 final ArrayMap<String, PermissionState> entriesForProfile = new ArrayMap<>(); in getEntries()
183 final PermissionState newEntry = new PermissionState(packageName, profile); in getEntries()
201 private void loadPermissionsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { in loadPermissionsStates()
210 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(profileId); in loadPermissionsStates()
[all …]
DAppStateWriteSettingsBridge.java52 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWriteSettingsInfo()
66 public static class WriteSettingsState extends AppStateAppOpsBridge.PermissionState {
67 public WriteSettingsState(PermissionState permissionState) { in WriteSettingsState()
DAppStateUsageBridge.java51 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getUsageInfo()
55 public static class UsageState extends AppStateAppOpsBridge.PermissionState {
57 public UsageState(PermissionState permissionState) { in UsageState()
DAppStateOverlayBridge.java53 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getOverlayInfo()
67 public static class OverlayState extends AppStateAppOpsBridge.PermissionState {
76 public OverlayState(PermissionState permissionState) { in OverlayState()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppStateAppOpsBridge.java99 public PermissionState getPermissionInfo(String pkg, int uid) { in getPermissionInfo()
100 PermissionState permissionState = new PermissionState(pkg, new UserHandle(UserHandle in getPermissionInfo()
136 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in loadAllExtraInfo()
148 ArrayMap<String, PermissionState> userMap = entries.get(userId); in loadAllExtraInfo()
157 private SparseArray<ArrayMap<String, PermissionState>> getEntries() { in getEntries()
174 SparseArray<ArrayMap<String, PermissionState>> entries = new SparseArray<>(); in getEntries()
176 final ArrayMap<String, PermissionState> entriesForProfile = new ArrayMap<>(); in getEntries()
183 final PermissionState newEntry = new PermissionState(packageName, profile); in getEntries()
201 private void loadPermissionsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { in loadPermissionsStates()
210 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(profileId); in loadPermissionsStates()
[all …]
DAppStateWriteSettingsBridge.java52 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWriteSettingsInfo()
66 public static class WriteSettingsState extends AppStateAppOpsBridge.PermissionState {
67 public WriteSettingsState(PermissionState permissionState) { in WriteSettingsState()
DAppStateUsageBridge.java51 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getUsageInfo()
55 public static class UsageState extends AppStateAppOpsBridge.PermissionState {
57 public UsageState(PermissionState permissionState) { in UsageState()
DAppStateOverlayBridge.java53 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getOverlayInfo()
67 public static class OverlayState extends AppStateAppOpsBridge.PermissionState {
76 public OverlayState(PermissionState permissionState) { in OverlayState()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridge.java79 SparseArray<Map<String, PermissionState>> packageToStatesMapByProfileId = in loadExtraInfo()
84 Map<String, PermissionState> packageStatesMap = packageToStatesMapByProfileId.get( in loadExtraInfo()
91 private SparseArray<Map<String, PermissionState>> getPackageToStateMapsByProfileId() { in getPackageToStateMapsByProfileId()
92 SparseArray<Map<String, PermissionState>> entries = new SparseArray<>(); in getPackageToStateMapsByProfileId()
97 Map<String, PermissionState> entriesForProfile = new ArrayMap<>(); in getPackageToStateMapsByProfileId()
108 PermissionState newEntry = new PermissionState(); in getPackageToStateMapsByProfileId()
134 SparseArray<Map<String, PermissionState>> packageToStateMapsByProfileId) { in loadAppOpModes()
143 Map<String, PermissionState> packageStateMap = packageToStateMapsByProfileId.get( in loadAppOpModes()
149 PermissionState permissionState = packageStateMap.get(packageOp.getPackageName()); in loadAppOpModes()
169 public static class PermissionState { class in AppStateAppOpsBridge
DAppOpsPreferenceController.java32 import com.android.car.settings.applications.specialaccess.AppStateAppOpsBridge.PermissionState;
70 PermissionState extraInfo = (PermissionState) entry.extraInfo;
213 PermissionState extraInfo = (PermissionState) entry.extraInfo; in AppOpPreference()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DManageAppOp.java81 && ((PermissionState) entry.extraInfo).isPermissible(); in getAppFilter()
136 private PermissionState createPermissionStateFor(String packageName, int uid) {
137 return new PermissionState(
156 public static class PermissionState {
161 private PermissionState(boolean permissionRequested, boolean permissionGranted,
DWriteSettings.java82 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference()
106 if (entry.extraInfo instanceof PermissionState) { in getPreferenceSummary()
107 return getContext().getText(((PermissionState) entry.extraInfo).isAllowed() in getPreferenceSummary()
DAppUsageAccess.java78 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference()
95 if (entry.extraInfo instanceof PermissionState) { in getPreferenceSummary()
96 return getContext().getText(((PermissionState) entry.extraInfo).isAllowed() in getPreferenceSummary()
DSystemAlertWindow.java82 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference()
107 if (entry.extraInfo instanceof PermissionState) { in getPreferenceSummary()
108 return getContext().getText(((PermissionState) entry.extraInfo).isAllowed() in getPreferenceSummary()
DExternalSources.java88 PermissionState state = (PermissionState) entry.extraInfo; in bindPreference()
123 return getContext().getString(((PermissionState) entry.extraInfo).isAllowed() in getPreferenceSummary()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DAppPermissionFragment.java340 private ArrayList<PermissionState> createPermissionSnapshot() { in createPermissionSnapshot()
341 ArrayList<PermissionState> permissionSnapshot = new ArrayList<>(); in createPermissionSnapshot()
347 permissionSnapshot.add(new PermissionState(permission.getName(), in createPermissionSnapshot()
362 permissionSnapshot.add(new PermissionState(permission.getName(), in createPermissionSnapshot()
369 private void logPermissionChanges(ArrayList<PermissionState> previousPermissionSnapshot) { in logPermissionChanges()
375 PermissionState permissionState = previousPermissionSnapshot.get(i); in logPermissionChanges()
790 ArrayList<PermissionState> stateBefore = createPermissionSnapshot(); in requestChange()
832 ArrayList<PermissionState> stateBefore = createPermissionSnapshot(); in requestChange()
908 ArrayList<PermissionState> stateBefore = createPermissionSnapshot(); in onDenyAnyWay()
983 private static class PermissionState { class in AppPermissionFragment
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DAppStateChangeWifiStateBridge.java65 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWifiSettingsInfo()
69 public static class WifiSettingsState extends AppStateAppOpsBridge.PermissionState {
70 public WifiSettingsState(PermissionState permissionState) { in WifiSettingsState()
DChangeWifiStateDetails.java31 import com.android.settings.applications.AppStateAppOpsBridge.PermissionState;
121 } else if (entry.extraInfo instanceof PermissionState) { in getSummary()
122 state = new WifiSettingsState((PermissionState) entry.extraInfo); in getSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/
DAppStateChangeWifiStateBridge.java65 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWifiSettingsInfo()
69 public static class WifiSettingsState extends AppStateAppOpsBridge.PermissionState {
70 public WifiSettingsState(PermissionState permissionState) { in WifiSettingsState()
DChangeWifiStateDetails.java31 import com.android.car.developeroptions.applications.AppStateAppOpsBridge.PermissionState;
121 } else if (entry.extraInfo instanceof PermissionState) { in getSummary()
122 state = new WifiSettingsState((PermissionState) entry.extraInfo); in getSummary()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/appinfo/
DDrawOverlayDetails.java36 import com.android.car.developeroptions.applications.AppStateAppOpsBridge.PermissionState;
164 } else if (entry.extraInfo instanceof PermissionState) { in getSummary()
165 state = new OverlayState((PermissionState) entry.extraInfo); in getSummary()
DWriteSettingsDetails.java35 import com.android.car.developeroptions.applications.AppStateAppOpsBridge.PermissionState;
149 } else if (entry.extraInfo instanceof PermissionState) { in getSummary()
150 state = new WriteSettingsState((PermissionState) entry.extraInfo); in getSummary()
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DDrawOverlayDetails.java36 import com.android.settings.applications.AppStateAppOpsBridge.PermissionState;
164 } else if (entry.extraInfo instanceof PermissionState) { in getSummary()
165 state = new OverlayState((PermissionState) entry.extraInfo); in getSummary()
DWriteSettingsDetails.java35 import com.android.settings.applications.AppStateAppOpsBridge.PermissionState;
149 } else if (entry.extraInfo instanceof PermissionState) { in getSummary()
150 state = new WriteSettingsState((PermissionState) entry.extraInfo); in getSummary()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/specialaccess/
DAppStateAppOpsBridgeTest.java38 import com.android.car.settings.applications.specialaccess.AppStateAppOpsBridge.PermissionState;
164 assertThat(((PermissionState) entry.extraInfo).isPermissible()).isTrue(); in loadsAppOpsExtraInfo_modeAllowed_isPermissible()
179 assertThat(((PermissionState) entry.extraInfo).isPermissible()).isTrue(); in loadsAppOpsExtraInfo_modeDefault_isPermissible()
194 assertThat(((PermissionState) entry.extraInfo).isPermissible()).isFalse(); in loadsAppOpsExtraInfo_modeIgnored_isNotPermissible()

12