Home
last modified time | relevance | path

Searched refs:group (Results 1 – 25 of 230) sorted by relevance

12345678910

/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/wear/
DAppPermissionsFragmentWear.java144 for (final AppPermissionGroup group : mAppPermissions.getPermissionGroups()) { in onResume()
145 if (Utils.areGroupPermissionsIndividuallyControlled(getContext(), group.getName())) { in onResume()
146 for (PermissionInfo perm : getPermissionInfosFromGroup(group)) { in onResume()
148 group.areRuntimePermissionsGranted(new String[]{ perm.name })); in onResume()
151 … setPreferenceCheckedIfPresent(group.getName(), group.areRuntimePermissionsGranted()); in onResume()
170 for (final AppPermissionGroup group : groups) { in initializePermissionGroupList()
171 if (!Utils.shouldShowPermission(getContext(), group)) { in initializePermissionGroupList()
175 boolean isPlatform = group.getDeclaringPackage().equals(Utils.OS_PKG); in initializePermissionGroupList()
177 if (Utils.areGroupPermissionsIndividuallyControlled(getContext(), group.getName())) { in initializePermissionGroupList()
180 for (PermissionInfo perm : getPermissionInfosFromGroup(group)) { in initializePermissionGroupList()
[all …]
DReviewPermissionsWearFragment.java97 for (AppPermissionGroup group : mAppPermissions.getPermissionGroups()) { in onCreatePreferences()
98 if (group.isReviewRequired()) { in onCreatePreferences()
137 for (AppPermissionGroup group : mAppPermissions.getPermissionGroups()) { in loadPreferences()
138 if (!Utils.shouldShowPermission(getContext(), group) in loadPreferences()
139 || !Utils.OS_PKG.equals(group.getDeclaringPackage())) { in loadPreferences()
145 ? oldNewPermissionsCategory.findPreference(group.getName()) : null; in loadPreferences()
151 preference.setKey(group.getName()); in loadPreferences()
152 preference.setTitle(group.getLabel()); in loadPreferences()
159 preference.setChecked(group.areRuntimePermissionsGranted()); in loadPreferences()
162 if (group.isSystemFixed() || group.isPolicyFixed()) { in loadPreferences()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraSettings.java80 PreferenceGroup group = in getPreferenceGroup() local
82 initPreference(group); in getPreferenceGroup()
83 return group; in getPreferenceGroup()
116 PreferenceGroup group, String key) { in removePreferenceFromScreen() argument
117 removePreference(group, key); in removePreferenceFromScreen()
135 private void initPreference(PreferenceGroup group) { in initPreference() argument
136 ListPreference videoQuality = group.findPreference(KEY_VIDEO_QUALITY); in initPreference()
137 … ListPreference timeLapseInterval = group.findPreference(KEY_VIDEO_TIME_LAPSE_FRAME_INTERVAL); in initPreference()
138 ListPreference pictureSize = group.findPreference(KEY_PICTURE_SIZE); in initPreference()
139 ListPreference whiteBalance = group.findPreference(KEY_WHITE_BALANCE); in initPreference()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DReviewPermissionsFragment.java112 for (AppPermissionGroup group : mAppPermissions.getPermissionGroups()) { in onCreate()
113 if (group.isReviewRequired() || (group.getBackgroundPermissions() != null in onCreate()
114 && group.getBackgroundPermissions().isReviewRequired())) { in onCreate()
171 private void grantReviewedPermission(AppPermissionGroup group) { in grantReviewedPermission() argument
173 final int permissionCount = group.getPermissions().size(); in grantReviewedPermission()
175 final Permission permission = group.getPermissions().get(j); in grantReviewedPermission()
182 group.grantRuntimePermissions(false, permissionsToGrant); in grantReviewedPermission()
210 AppPermissionGroup group = permPreference.getGroup(); in confirmPermissionsReview() local
213 if (group.isReviewRequired() && !permPreference.wasChanged()) { in confirmPermissionsReview()
214 grantReviewedPermission(group); in confirmPermissionsReview()
[all …]
DAllAppPermissionsFragment.java175 PackageItemInfo group = getGroup(Utils.getGroupOfPermission(perm), pm); in updateUi() local
176 if (group == null) { in updateUi()
177 group = perm; in updateUi()
180 if (filterGroup != null && !group.name.equals(filterGroup)) { in updateUi()
183 PreferenceGroup pref = findOrCreate(group, pm, prefs); in updateUi()
184 pref.addPreference(getPreference(info, perm, group, pm)); in updateUi()
188 PermissionGroupInfo group = getGroup(perm.group, pm); in updateUi() local
190 perm, group, pm)); in updateUi()
225 private PermissionGroupInfo getGroup(String group, PackageManager pm) { in getGroup() argument
227 return pm.getPermissionGroupInfo(group, 0); in getGroup()
[all …]
DPermissionControlPreference.java54 @NonNull AppPermissionGroup group, @NonNull String caller) { in PermissionControlPreference() argument
55 this(context, group, caller, 0); in PermissionControlPreference()
59 @NonNull AppPermissionGroup group, @NonNull String caller, long sessionId) { in PermissionControlPreference() argument
69 intent.putExtra(Intent.EXTRA_PACKAGE_NAME, group.getApp().packageName); in PermissionControlPreference()
70 intent.putExtra(Intent.EXTRA_PERMISSION_NAME, group.getPermissions().get(0).getName()); in PermissionControlPreference()
71 intent.putExtra(Intent.EXTRA_USER, group.getUser()); in PermissionControlPreference()
114 public void setGroupSummary(@NonNull AppPermissionGroup group) { in setGroupSummary() argument
115 if (group.hasPermissionWithBackgroundMode() && group.areRuntimePermissionsGranted()) { in setGroupSummary()
116 AppPermissionGroup backgroundGroup = group.getBackgroundPermissions(); in setGroupSummary()
180 ViewGroup group = (ViewGroup) inflater.inflate(R.layout.title_summary_image_view, in setIcons() local
[all …]
/packages/providers/CalendarProvider/
Dmaketests.py58 if m.group(7) == "+":
62 hour = int(m.group(4)) + (sign * int(m.group(8)))
63 return m.group(1) + m.group(2) + m.group(3) + "T" + fmt(hour) \
64 + m.group(5) + m.group(6) + "Z"
67 return m.group(1) + m.group(2) + m.group(3) + "T" + m.group(4) \
68 + m.group(5) + m.group(6) + "Z"
91 dtstart = re_dtstart.group(2)
92 tzid = re_dtstart.group(1)
95 dtstart = re_dtstart.group(1)
98 duration = re_duration.group(1)
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/television/
DAppPermissionsFragment.java192 for (AppPermissionGroup group : mAppPermissions.getPermissionGroups()) { in loadPreferences()
193 if (!Utils.shouldShowPermission(getContext(), group)) { in loadPreferences()
197 boolean isPlatform = group.getDeclaringPackage().equals(Utils.OS_PKG); in loadPreferences()
201 preference.setKey(group.getName()); in loadPreferences()
203 group.getIconPkg(), group.getIconResId()); in loadPreferences()
206 preference.setTitle(group.getLabel()); in loadPreferences()
207 if (group.isSystemFixed()) { in loadPreferences()
209 } else if (group.isPolicyFixed()) { in loadPreferences()
213 preference.setEnabled(!group.isSystemFixed() && !group.isPolicyFixed()); in loadPreferences()
214 preference.setChecked(group.areRuntimePermissionsGranted()); in loadPreferences()
[all …]
DAllAppPermissionsFragment.java170 PermissionGroupInfo group = getGroup(Utils.getGroupOfPermission(perm), pm); in updateUi() local
173 PreferenceGroup pref = findOrCreate(group != null ? group : perm, pm, prefs); in updateUi()
174 pref.addPreference(getPreference(perm, group)); in updateUi()
181 getOtherGroup().addPreference(getPreference(perm, group)); in updateUi()
208 private PermissionGroupInfo getGroup(String group, PackageManager pm) { in getGroup() argument
210 return pm.getPermissionGroupInfo(group, 0); in getGroup()
216 private PreferenceGroup findOrCreate(PackageItemInfo group, PackageManager pm, in findOrCreate() argument
218 PreferenceGroup pref = (PreferenceGroup) findPreference(group.name); in findOrCreate()
221 pref.setKey(group.name); in findOrCreate()
223 pref.setTitle(group.loadLabel(pm)); in findOrCreate()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/utils/
DSafetyNetLogger.java64 AppPermissionGroup group = groups.valueAt(i); in logPermissionsToggled() local
67 group.getApp().packageName); in logPermissionsToggled()
70 groupsByPackage.put(group.getApp().packageName, groupsForThisPackage); in logPermissionsToggled()
73 groupsForThisPackage.add(group); in logPermissionsToggled()
74 if (group.getBackgroundPermissions() != null) { in logPermissionsToggled()
75 groupsForThisPackage.add(group.getBackgroundPermissions()); in logPermissionsToggled()
92 public static void logPermissionToggled(AppPermissionGroup group) { in logPermissionToggled() argument
94 groups.add(group); in logPermissionToggled()
98 private static void buildChangedPermissionForGroup(AppPermissionGroup group, in buildChangedPermissionForGroup() argument
100 int permissionCount = group.getPermissions().size(); in buildChangedPermissionForGroup()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DAppNotificationSettings.java184 for (NotificationChannelGroup group : mChannelGroupList) { in populateGroupList()
189 if (group.getId() == null) { in populateGroupList()
195 groupCategory.setTitle(group.getName()); in populateGroupList()
196 groupCategory.setKey(group.getId()); in populateGroupList()
197 populateGroupToggle(groupCategory, group); in populateGroupList()
199 if (!group.isBlocked()) { in populateGroupList()
200 final List<NotificationChannel> channels = group.getChannels(); in populateGroupList()
205 populateSingleChannelPrefs(groupCategory, channel, group.isBlocked()); in populateGroupList()
212 NotificationChannelGroup group) { in populateGroupToggle() argument
216 && isChannelGroupBlockable(group)); in populateGroupToggle()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DPermissionControllerServiceImpl.java139 AppPermissionGroup group = appPerms.getPermissionGroups().get(groupNum); in getRevocableGroupsForPermissions() local
142 if (group.isPolicyFixed() || group.isSystemFixed()) { in getRevocableGroupsForPermissions()
150 if (group.hasPermission(reqPerm)) { in getRevocableGroupsForPermissions()
151 groupsToRevoke.add(group); in getRevocableGroupsForPermissions()
155 AppPermissionGroup bgPerms = group.getBackgroundPermissions(); in getRevocableGroupsForPermissions()
160 AppPermissionGroup bgPerms = group.getBackgroundPermissions(); in getRevocableGroupsForPermissions()
185 AppPermissionGroup group = groupsToRevoke.get(groupsToRevokeNum); in revokePermissionGroups() local
186 ArrayList<Permission> perms = group.getPermissions(); in revokePermissionGroups()
190 group.unsetReviewRequired(); in revokePermissionGroups()
202 group.revokeRuntimePermissions(false); in revokePermissionGroups()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DAppPermissions.java102 AppPermissionGroup group = mGroups.get(i); in isReviewRequired() local
103 if (group.isReviewRequired()) { in isReviewRequired()
129 private void addAllPermissions(AppPermissionGroup group) { in addAllPermissions() argument
130 ArrayList<Permission> perms = group.getPermissions(); in addAllPermissions()
134 mPermissionNameToGroup.put(perms.get(permNum).getName(), group); in addAllPermissions() local
146 AppPermissionGroup group = AppPermissionGroup.create(mContext, mPackageInfo, in loadPermissionGroups() local
148 if (group == null) { in loadPermissionGroups()
152 mGroups.add(group); in loadPermissionGroups()
153 mGroupNameToGroup.put(group.getName(), group); in loadPermissionGroups() local
155 addAllPermissions(group); in loadPermissionGroups()
[all …]
DAppPermissionGroup.java152 String group = Utils.getGroupOfPermission(permissionInfo); in create() local
154 if (group != null) { in create()
156 groupInfo = context.getPackageManager().getPermissionGroupInfo(group, 0); in create()
226 AppPermissionGroup group = new AppPermissionGroup(context, packageInfo, groupInfo.name, in create() local
292 group.mHasPermissionWithBackgroundMode = true; in create()
333 if (group.getBackgroundPermissions() == null) { in create()
334 group.mBackgroundPermissions = new AppPermissionGroup(group.mContext, in create()
335 group.getApp(), group.getName(), group.getDeclaringPackage(), in create()
336 group.getLabel(), group.getFullLabel(), group.getDescription(), in create()
337 group.getRequest(), group.getRequestDetail(), in create()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DChannelListPreferenceController.java129 for (NotificationChannelGroup group : mChannelGroupList) { in populateGroupList()
133 if (group.getId() == null) { in populateGroupList()
139 groupCategory.setTitle(group.getName()); in populateGroupList()
140 groupCategory.setKey(group.getId()); in populateGroupList()
141 populateGroupToggle(groupCategory, group); in populateGroupList()
143 if (!group.isBlocked()) { in populateGroupList()
144 final List<NotificationChannel> channels = group.getChannels(); in populateGroupList()
149 populateSingleChannelPrefs(groupCategory, channel, group.isBlocked()); in populateGroupList()
156 NotificationChannelGroup group) { in populateGroupToggle() argument
161 && isChannelGroupBlockable(group)); in populateGroupToggle()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/auto/
DAutoAppPermissionsFragment.java176 AppPermissionGroup group = groups.get(i); in updatePreferences() local
177 if (!Utils.shouldShowPermission(getContext(), group)) { in updatePreferences()
181 boolean isPlatform = group.getDeclaringPackage().equals(Utils.OS_PKG); in updatePreferences()
183 Preference preference = createPermissionPreference(getContext(), group); in updatePreferences()
186 group.areRuntimePermissionsGranted() ? allowed : denied; in updatePreferences()
196 if (group.areRuntimePermissionsGranted()) { in updatePreferences()
241 private Preference createPermissionPreference(Context context, AppPermissionGroup group) { in createPermissionPreference() argument
244 group.getIconPkg(), group.getIconResId()); in createPermissionPreference()
245 preference.setKey(group.getName()); in createPermissionPreference()
246 preference.setTitle(group.getFullLabel()); in createPermissionPreference()
[all …]
DAutoAllAppPermissionsFragment.java158 PackageItemInfo group = getGroup(Utils.getGroupOfPermission(perm), pm); in updateUi() local
159 if (group == null) { in updateUi()
160 group = perm; in updateUi()
163 if (filterGroup != null && !group.name.equals(filterGroup)) { in updateUi()
166 PreferenceGroup pref = findOrCreate(group, pm, prefs); in updateUi()
167 pref.addPreference(getPreference(info, perm, group, pm)); in updateUi()
171 PermissionGroupInfo group = getGroup(perm.group, pm); in updateUi() local
173 perm, group, pm)); in updateUi()
203 private PermissionGroupInfo getGroup(String group, PackageManager pm) { in getGroup() argument
205 return pm.getPermissionGroupInfo(group, /* flags= */ 0); in getGroup()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
DNotificationPreferenceControllerTest.java108 NotificationChannelGroup group = mock(NotificationChannelGroup.class); in isAvailable_notIfChannelBlocked() local
109 when(group.isBlocked()).thenReturn(false); in isAvailable_notIfChannelBlocked()
113 mController.onResume(appRow, channel, group, null); in isAvailable_notIfChannelBlocked()
122 NotificationChannelGroup group = mock(NotificationChannelGroup.class); in isAvailable_notIfChannelGroupBlocked() local
124 mController.onResume(appRow, channel, group, null); in isAvailable_notIfChannelGroupBlocked()
125 when(group.isBlocked()).thenReturn(true); in isAvailable_notIfChannelGroupBlocked()
134 NotificationChannelGroup group = mock(NotificationChannelGroup.class); in isAvailable() local
135 when(group.isBlocked()).thenReturn(false); in isAvailable()
137 mController.onResume(appRow, channel, group, null); in isAvailable()
145 NotificationChannelGroup group = mock(NotificationChannelGroup.class); in testOnResume() local
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DTestStabilityRule.java99 if (launcherBuildMatcher.group("local") != null && (
100 platformBuildMatcher.group("commandLine") != null ||
101 platformBuildMatcher.group("postsubmit") != null)) {
103 } else if (launcherBuildMatcher.group("presubmit") != null
104 && platformBuildMatcher.group("postsubmit") != null) {
106 } else if (launcherBuildMatcher.group("postsubmit") != null
107 && platformBuildMatcher.group("postsubmit") != null) {
109 } else if (launcherBuildMatcher.group("platform") != null
110 && platformBuildMatcher.group("presubmit") != null) {
112 } else if (launcherBuildMatcher.group("platform") != null
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DAppPermissionsPreferenceController.java70 for (String group : PERMISSION_GROUPS) { in getSummary()
71 if (!grantedPermissionGroups.contains(group)) { in getSummary()
74 summaries.add(getPermissionGroupLabel(group).toString().toLowerCase()); in getSummary()
93 && !grantedPermissionGroups.contains(permissionInfo.group)) { in getGrantedPermissionGroups()
94 grantedPermissionGroups.add(permissionInfo.group); in getGrantedPermissionGroups()
101 private CharSequence getPermissionGroupLabel(String group) { in getPermissionGroupLabel() argument
103 final PermissionGroupInfo groupInfo = mPackageManager.getPermissionGroupInfo(group, 0); in getPermissionGroupLabel()
108 return group; in getPermissionGroupLabel()
113 for (String group : PERMISSION_GROUPS) { in getAllPermissionsInGroups()
116 mPackageManager.queryPermissionsByGroup(group, 0); in getAllPermissionsInGroups()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DAppPermissionsEntryPreferenceControllerTest.java66 mPermLocation.group = "android.permission-group.LOCATION"; in setUp()
68 groupLocation.name = mPermLocation.group; in setUp()
74 mPermMic.group = "android.permission-group.MICROPHONE"; in setUp()
76 groupMic.name = mPermMic.group; in setUp()
82 mPermCamera.group = "android.permission-group.CAMERA"; in setUp()
84 groupCamera.name = mPermCamera.group; in setUp()
90 mPermSms.group = "android.permission-group.SMS"; in setUp()
92 groupSms.name = mPermSms.group; in setUp()
98 mPermContacts.group = "android.permission-group.CONTACTS"; in setUp()
100 groupContacts.name = mPermContacts.group; in setUp()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DTwoStatePreferenceHelper.java34 public static void replaceCheckBoxPreferencesBySwitchPreferences(final PreferenceGroup group) { in replaceCheckBoxPreferencesBySwitchPreferences() argument
41 replaceAllCheckBoxPreferencesBySwitchPreferences(group); in replaceCheckBoxPreferencesBySwitchPreferences()
45 final PreferenceGroup group) { in replaceAllCheckBoxPreferencesBySwitchPreferences() argument
47 final int count = group.getPreferenceCount(); in replaceAllCheckBoxPreferencesBySwitchPreferences()
49 preferences.add(group.getPreference(index)); in replaceAllCheckBoxPreferencesBySwitchPreferences()
51 group.removeAll(); in replaceAllCheckBoxPreferencesBySwitchPreferences()
55 addSwitchPreferenceBasedOnCheckBoxPreference((CheckBoxPreference)preference, group); in replaceAllCheckBoxPreferencesBySwitchPreferences() local
57 group.addPreference(preference); in replaceAllCheckBoxPreferencesBySwitchPreferences()
66 final PreferenceGroup group) { in addSwitchPreferenceBasedOnCheckBoxPreference() argument
79 group.addPreference(switchPref); in addSwitchPreferenceBasedOnCheckBoxPreference()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZone.java83 for (CarVolumeGroup group : mVolumeGroups) { in getAudioDeviceInfos()
84 for (int busNumber : group.getBusNumbers()) { in getAudioDeviceInfos()
85 devices.add(group.getCarAudioDeviceInfoForBus(busNumber).getAudioDeviceInfo()); in getAudioDeviceInfos()
134 for (CarVolumeGroup group : mVolumeGroups) { in validateVolumeGroups()
136 for (int context : group.getContexts()) { in validateVolumeGroups()
145 for (int busNumber : group.getBusNumbers()) { in validateVolumeGroups()
168 for (CarVolumeGroup group : mVolumeGroups) { in synchronizeCurrentGainIndex()
169 group.setCurrentGainIndex(group.getCurrentGainIndex()); in synchronizeCurrentGainIndex()
181 for (CarVolumeGroup group : mVolumeGroups) { in dump()
182 group.dump(indent + "\t", writer); in dump()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DObexTime.java58 builder.setDate(Integer.parseInt(m.group(1)), /* year */ in ObexTime()
59 Integer.parseInt(m.group(2)) - 1, /* month */ in ObexTime()
60 Integer.parseInt(m.group(3))); /* day of month */ in ObexTime()
63 builder.setTimeOfDay(Integer.parseInt(m.group(4)), /* hours */ in ObexTime()
64 Integer.parseInt(m.group(5)), /* minutes */ in ObexTime()
65 Integer.parseInt(m.group(6)), /* seconds */ in ObexTime()
72 if (m.group(7) != null) { in ObexTime()
73 int ohh = Integer.parseInt(m.group(9)); in ObexTime()
74 int omm = Integer.parseInt(m.group(10)); in ObexTime()
79 if (m.group(8).equals("-")) { in ObexTime()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipPixel.java125 minWidth = Integer.parseInt(m1.group(1)); in BipPixel()
126 maxWidth = Integer.parseInt(m1.group(1)); in BipPixel()
127 minHeight = Integer.parseInt(m1.group(2)); in BipPixel()
128 maxHeight = Integer.parseInt(m1.group(2)); in BipPixel()
137 minWidth = Integer.parseInt(m2.group(1)); in BipPixel()
138 minHeight = Integer.parseInt(m2.group(2)); in BipPixel()
139 maxWidth = Integer.parseInt(m2.group(3)); in BipPixel()
140 maxHeight = Integer.parseInt(m2.group(4)); in BipPixel()
148 minWidth = Integer.parseInt(m3.group(1)); in BipPixel()
149 maxWidth = Integer.parseInt(m3.group(2)); in BipPixel()
[all …]

12345678910