/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateAppOpsBridge.java | 99 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 …]
|
D | AppStateWriteSettingsBridge.java | 52 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWriteSettingsInfo() 66 public static class WriteSettingsState extends AppStateAppOpsBridge.PermissionState { 67 public WriteSettingsState(PermissionState permissionState) { in WriteSettingsState()
|
D | AppStateUsageBridge.java | 51 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getUsageInfo() 55 public static class UsageState extends AppStateAppOpsBridge.PermissionState { 57 public UsageState(PermissionState permissionState) { in UsageState()
|
D | AppStateOverlayBridge.java | 53 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/ |
D | AppStateAppOpsBridge.java | 99 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 …]
|
D | AppStateWriteSettingsBridge.java | 52 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWriteSettingsInfo() 66 public static class WriteSettingsState extends AppStateAppOpsBridge.PermissionState { 67 public WriteSettingsState(PermissionState permissionState) { in WriteSettingsState()
|
D | AppStateUsageBridge.java | 51 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getUsageInfo() 55 public static class UsageState extends AppStateAppOpsBridge.PermissionState { 57 public UsageState(PermissionState permissionState) { in UsageState()
|
D | AppStateOverlayBridge.java | 53 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/ |
D | AppStateAppOpsBridge.java | 79 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
|
D | AppOpsPreferenceController.java | 32 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/ |
D | ManageAppOp.java | 81 && ((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,
|
D | WriteSettings.java | 82 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()
|
D | AppUsageAccess.java | 78 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()
|
D | SystemAlertWindow.java | 82 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()
|
D | ExternalSources.java | 88 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/ |
D | AppPermissionFragment.java | 340 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/ |
D | AppStateChangeWifiStateBridge.java | 65 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWifiSettingsInfo() 69 public static class WifiSettingsState extends AppStateAppOpsBridge.PermissionState { 70 public WifiSettingsState(PermissionState permissionState) { in WifiSettingsState()
|
D | ChangeWifiStateDetails.java | 31 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/ |
D | AppStateChangeWifiStateBridge.java | 65 PermissionState permissionState = super.getPermissionInfo(pkg, uid); in getWifiSettingsInfo() 69 public static class WifiSettingsState extends AppStateAppOpsBridge.PermissionState { 70 public WifiSettingsState(PermissionState permissionState) { in WifiSettingsState()
|
D | ChangeWifiStateDetails.java | 31 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/ |
D | DrawOverlayDetails.java | 36 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()
|
D | WriteSettingsDetails.java | 35 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/ |
D | DrawOverlayDetails.java | 36 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()
|
D | WriteSettingsDetails.java | 35 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/ |
D | AppStateAppOpsBridgeTest.java | 38 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()
|