Home | History | Annotate | Download | only in com.example.android.apprestrictionschema

Lines Matching full:restrictions

41  * disabled according to the restrictions set by device/profile owner. You can use the
115 Bundle restrictions = manager.getApplicationRestrictions();
122 updateCanSayHello(entry, restrictions);
124 updateMessage(entry, restrictions);
126 updateNumber(entry, restrictions);
128 updateRank(entry, restrictions);
130 updateApprovals(entry, restrictions);
132 updateProfile(entry, restrictions);
134 updateItems(entry, restrictions);
139 private void updateCanSayHello(RestrictionEntry entry, Bundle restrictions) {
141 if (restrictions == null || !restrictions.containsKey(KEY_CAN_SAY_HELLO)) {
144 canSayHello = restrictions.getBoolean(KEY_CAN_SAY_HELLO);
152 private void updateMessage(RestrictionEntry entry, Bundle restrictions) {
153 if (restrictions == null || !restrictions.containsKey(KEY_MESSAGE)) {
156 mMessage = restrictions.getString(KEY_MESSAGE);
160 private void updateNumber(RestrictionEntry entry, Bundle restrictions) {
162 if (restrictions == null || !restrictions.containsKey(KEY_NUMBER)) {
165 number = restrictions.getInt(KEY_NUMBER);
170 private void updateRank(RestrictionEntry entry, Bundle restrictions) {
172 if (restrictions == null || !restrictions.containsKey(KEY_RANK)) {
175 rank = restrictions.getString(KEY_RANK);
180 private void updateApprovals(RestrictionEntry entry, Bundle restrictions) {
182 if (restrictions == null || !restrictions.containsKey(KEY_APPROVALS)) {
185 approvals = restrictions.getStringArray(KEY_APPROVALS);
196 private void updateProfile(RestrictionEntry entry, Bundle restrictions) {
202 if (restrictions == null || !restrictions.containsKey(KEY_PROFILE)) {
213 Bundle profile = restrictions.getBundle(KEY_PROFILE);
222 private void updateItems(RestrictionEntry entry, Bundle restrictions) {
227 if (restrictions != null) {
228 Parcelable[] parcelables = restrictions.getParcelableArray(KEY_ITEMS);