Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java111 public PermissionState getPermissionInfo(String pkg, int uid) { in getPermissionInfo()
112 PermissionState permissionState = new PermissionState(pkg, new UserHandle(UserHandle in getPermissionInfo()
148 SparseArray<ArrayMap<String, PermissionState>> entries = getEntries(); in loadAllExtraInfo()
161 ArrayMap<String, PermissionState> userMap = entries.get(userId); in loadAllExtraInfo()
173 private SparseArray<ArrayMap<String, PermissionState>> getEntries() { in getEntries()
190 SparseArray<ArrayMap<String, PermissionState>> entries = new SparseArray<>(); in getEntries()
192 final ArrayMap<String, PermissionState> entriesForProfile = new ArrayMap<>(); in getEntries()
199 final PermissionState newEntry = new PermissionState(packageName, profile); in getEntries()
217 private void loadPermissionsStates(SparseArray<ArrayMap<String, PermissionState>> entries) { in loadPermissionsStates()
226 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(profileId); in loadPermissionsStates()
[all …]
DAppStateManageExternalStorageBridge.java56 if (app.extraInfo instanceof PermissionState) { in loadAllExtraInfo()
57 ((PermissionState) app.extraInfo).appOpMode = mAppOpsManager.unsafeCheckOpNoThrow( in loadAllExtraInfo()
64 public PermissionState getPermissionInfo(String pkg, int uid) { in getPermissionInfo()
65 PermissionState ps = super.getPermissionInfo(pkg, uid); in getPermissionInfo()
74 public PermissionState getManageExternalStoragePermState(String pkg, int uid) { in getManageExternalStoragePermState()
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.java58 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getUsageInfo()
62 public static class UsageState extends AppStateAppOpsBridge.PermissionState {
64 public UsageState(PermissionState permissionState) { in UsageState()
DAppStateMediaManagementAppsBridge.java59 if (appEntry.extraInfo instanceof PermissionState) { in loadAllExtraInfo()
69 public PermissionState createPermissionState(String packageName, int uid) { in createPermissionState()
70 final PermissionState permissionState = getPermissionInfo(packageName, uid); in createPermissionState()
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/modules/Permission/service/java/com/android/permission/persistence/
DRuntimePermissionsState.java57 private final Map<String, List<PermissionState>> mPackagePermissions;
63 private final Map<String, List<PermissionState>> mSharedUserPermissions;
74 @NonNull Map<String, List<PermissionState>> packagePermissions, in RuntimePermissionsState()
75 @NonNull Map<String, List<PermissionState>> sharedUserPermissions) { in RuntimePermissionsState()
107 public Map<String, List<PermissionState>> getPackagePermissions() { in getPackagePermissions()
117 public Map<String, List<PermissionState>> getSharedUserPermissions() { in getSharedUserPermissions()
144 public static final class PermissionState { class in RuntimePermissionsState
169 public PermissionState(@NonNull String name, boolean granted, int flags) { in PermissionState() method in RuntimePermissionsState.PermissionState
211 PermissionState that = (PermissionState) object; in equals()
DRuntimePermissionsPersistenceImpl.java112 Map<String, List<RuntimePermissionsState.PermissionState>> packagePermissions = in parseRuntimePermissions()
114 Map<String, List<RuntimePermissionsState.PermissionState>> sharedUserPermissions = in parseRuntimePermissions()
128 List<RuntimePermissionsState.PermissionState> permissions = parsePermissions( in parseRuntimePermissions()
135 List<RuntimePermissionsState.PermissionState> permissions = parsePermissions( in parseRuntimePermissions()
148 private static List<RuntimePermissionsState.PermissionState> parsePermissions( in parsePermissions()
150 List<RuntimePermissionsState.PermissionState> permissions = new ArrayList<>(); in parsePermissions()
166 RuntimePermissionsState.PermissionState permission = in parsePermissions()
167 new RuntimePermissionsState.PermissionState(name, granted, flags); in parsePermissions()
212 for (Map.Entry<String, List<RuntimePermissionsState.PermissionState>> entry in serializeRuntimePermissions()
215 List<RuntimePermissionsState.PermissionState> permissions = entry.getValue(); in serializeRuntimePermissions()
[all …]
/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.java31 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/Settings/tests/robotests/src/com/android/settings/applications/
DAppStateAppOpsBridgeTest.java68 AppStateAppOpsBridge.PermissionState permissionState = in permissionState_modeDefault_IsPermissible()
69 new AppStateAppOpsBridge.PermissionState("pkg1", UserHandle.of(123)); in permissionState_modeDefault_IsPermissible()
81 AppStateAppOpsBridge.PermissionState permissionState = in permissionState_modeErrored_IsPermissible()
82 new AppStateAppOpsBridge.PermissionState("pkg1", UserHandle.of(123)); in permissionState_modeErrored_IsPermissible()
94 AppStateAppOpsBridge.PermissionState permissionState = in permissionState_modeAllowed_IsPermissible()
95 new AppStateAppOpsBridge.PermissionState("pkg1", UserHandle.of(123)); in permissionState_modeAllowed_IsPermissible()
107 AppStateAppOpsBridge.PermissionState permissionState = in permissionState_modeIgnored_IsPermissible()
108 new AppStateAppOpsBridge.PermissionState("pkg1", UserHandle.of(123)); in permissionState_modeIgnored_IsPermissible()
/packages/modules/Permission/service/api/
Dsystem-server-current.txt12 …e.PermissionState>>, @NonNull java.util.Map<java.lang.String,java.util.List<com.android.permission…
14 …util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>> getPackageP…
15 …util.List<com.android.permission.persistence.RuntimePermissionsState.PermissionState>> getSharedUs…
20 public static final class RuntimePermissionsState.PermissionState {
21 ctor public RuntimePermissionsState.PermissionState(@NonNull String, boolean, int);
/packages/apps/Settings/src/com/android/settings/applications/appinfo/
DManageExternalStorageDetails.java34 import com.android.settings.applications.AppStateAppOpsBridge.PermissionState;
51 private PermissionState mPermissionState;
163 final PermissionState state; in getSummary()
164 if (entry.extraInfo instanceof PermissionState) { in getSummary()
165 state = (PermissionState) entry.extraInfo; in getSummary()
174 private static CharSequence getSummary(Context context, PermissionState state) { in getSummary()
DMediaManagementAppsDetails.java30 import com.android.settings.applications.AppStateAppOpsBridge.PermissionState;
45 private PermissionState mPermissionState;
119 final PermissionState state; in getSummary()
120 if (entry.extraInfo instanceof PermissionState) { in getSummary()
121 state = (PermissionState) entry.extraInfo; in getSummary()
DDrawOverlayDetails.java36 import com.android.settings.applications.AppStateAppOpsBridge.PermissionState;
168 } else if (entry.extraInfo instanceof PermissionState) { in getSummary()
169 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/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DManageExternalStorageDetailsTest.java34 import com.android.settings.applications.AppStateAppOpsBridge.PermissionState;
159 PermissionState state = new PermissionState(null, null); in injectPermissionState()
183 Answer<PermissionState> answerPermState = invocation -> { in mockAppOpsOperations()
186 PermissionState res = new PermissionState(packageName, null); in mockAppOpsOperations()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/specialaccess/
DManageAppOp.java85 && ((PermissionState) entry.extraInfo).isPermissible(); in getAppFilter()
145 private PermissionState createPermissionStateFor(String packageName, int uid) {
146 return new PermissionState(
175 public static class PermissionState {
180 private PermissionState(boolean permissionRequested, boolean permissionGranted,
DAlarmsAndReminders.java77 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference()
102 if (entry.extraInfo instanceof PermissionState) { in getPreferenceSummary()
103 return getContext().getText(((PermissionState) entry.extraInfo).isAllowed() in getPreferenceSummary()
DWriteSettings.java77 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference()
102 if (entry.extraInfo instanceof PermissionState) { in getPreferenceSummary()
103 return getContext().getText(((PermissionState) entry.extraInfo).isAllowed() in getPreferenceSummary()
DAppUsageAccess.java73 switchPref.setChecked(((PermissionState) entry.extraInfo).isAllowed()); in bindPreference()
90 if (entry.extraInfo instanceof PermissionState) { in getPreferenceSummary()
91 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.java84 PermissionState state = (PermissionState) entry.extraInfo; in bindPreference()
124 return getContext().getString(((PermissionState) entry.extraInfo).isAllowed() in getPreferenceSummary()
/packages/apps/Settings/src/com/android/settings/wifi/
DAppStateChangeWifiStateBridge.java66 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWifiSettingsInfo()
70 public static class WifiSettingsState extends AppStateAppOpsBridge.PermissionState {
71 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()

12