Home
last modified time | relevance | path

Searched refs:restrictions (Results 1 – 5 of 5) sorted by relevance

/development/samples/browseable/AppRestrictionSchema/src/com.example.android.apprestrictionschema/
DAppRestrictionSchemaFragment.java102 Bundle restrictions = manager.getApplicationRestrictions(); in resolveRestrictions() local
109 updateCanSayHello(entry, restrictions); in resolveRestrictions()
111 updateMessage(entry, restrictions); in resolveRestrictions()
113 updateNumber(entry, restrictions); in resolveRestrictions()
115 updateRank(entry, restrictions); in resolveRestrictions()
117 updateApprovals(entry, restrictions); in resolveRestrictions()
119 updateItems(restrictions); in resolveRestrictions()
124 private void updateCanSayHello(RestrictionEntry entry, Bundle restrictions) { in updateCanSayHello() argument
126 if (restrictions == null || !restrictions.containsKey(KEY_CAN_SAY_HELLO)) { in updateCanSayHello()
129 canSayHello = restrictions.getBoolean(KEY_CAN_SAY_HELLO); in updateCanSayHello()
[all …]
/development/samples/browseable/AppRestrictionEnforcer/
D_index.jd8 This sample demonstrates how to set restrictions to other apps as a profile owner.
9 Use the AppRestrictionSchema sample to set restrictions.
/development/samples/browseable/AppRestrictionSchema/
D_index.jd8 This sample shows how to use app restrictions. This application has one boolean
/development/samples/browseable/BasicManagedProfile/
D_index.jd9 enable or disable other apps and how to set restrictions to them. Intents can be
/development/samples/browseable/AppRestrictionEnforcer/src/com.example.android.apprestrictionenforcer/
DAppRestrictionEnforcerFragment.java243 List<RestrictionEntry> restrictions = in loadRestrictions() local
246 for (RestrictionEntry restriction : restrictions) { in loadRestrictions()