Home
last modified time | relevance | path

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

/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DAppRestrictionEnforcerFragment.java130 mLayoutApprovals = (LinearLayout) view.findViewById(R.id.approvals); in onViewCreated()
307 private void updateApprovals(Context context, String[] approvals, in updateApprovals() argument
311 for (String approval : approvals) { in updateApprovals()
422 List<String> approvals = new ArrayList<>(Arrays.asList( in addApproval() local
424 if (approvals.contains(approval)) { in addApproval()
427 approvals.add(approval); in addApproval()
428 saveApprovals(activity, approvals.toArray(new String[approvals.size()])); in addApproval()
432 List<String> approvals = new ArrayList<>(Arrays.asList( in removeApproval() local
437 approvals.remove(approval); in removeApproval()
438 saveApprovals(activity, approvals.toArray(new String[approvals.size()])); in removeApproval()
[all …]
/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/
DAppRestrictionSchemaFragment.java166 String[] approvals; in updateApprovals() local
168 approvals = entry.getAllSelectedStrings(); in updateApprovals()
170 approvals = restrictions.getStringArray(KEY_APPROVALS); in updateApprovals()
173 if (approvals == null || approvals.length == 0) { in updateApprovals()
176 text = TextUtils.join(", ", approvals); in updateApprovals()