Home
last modified time | relevance | path

Searched refs:Role (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/PermissionController/src/com/android/packageinstaller/role/model/
DRoleBehavior.java41 default void onRoleAdded(@NonNull Role role, @NonNull Context context) {} in onRoleAdded()
46 default boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
55 default List<String> getDefaultHolders(@NonNull Role role, @NonNull Context context) { in getDefaultHolders()
63 default String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
70 default boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
79 default Intent getManageIntentAsUser(@NonNull Role role, @NonNull UserHandle user, in getManageIntentAsUser()
87 default void preparePreferenceAsUser(@NonNull Role role, in preparePreferenceAsUser()
94 default boolean isApplicationVisibleAsUser(@NonNull Role role, in isApplicationVisibleAsUser()
104 default void prepareApplicationPreferenceAsUser(@NonNull Role role, in prepareApplicationPreferenceAsUser()
112 default CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
[all …]
DAssistantRoleBehavior.java64 public void onRoleAdded(@NonNull Role role, @NonNull Context context) { in onRoleAdded()
78 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
85 public String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
91 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
98 public Intent getManageIntentAsUser(@NonNull Role role, @NonNull UserHandle user, in getManageIntentAsUser()
105 public CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
112 public List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
148 public Boolean isPackageQualified(@NonNull Role role, @NonNull String packageName, in isPackageQualified()
231 public void onHolderChangedAsUser(@NonNull Role role, @NonNull UserHandle user, in onHolderChangedAsUser()
DHomeRoleBehavior.java56 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
66 public String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
96 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
102 public void preparePreferenceAsUser(@NonNull Role role, @NonNull TwoTargetPreference preference, in preparePreferenceAsUser()
129 public boolean isApplicationVisibleAsUser(@NonNull Role role, in isApplicationVisibleAsUser()
137 public void prepareApplicationPreferenceAsUser(@NonNull Role role, in prepareApplicationPreferenceAsUser()
171 public void onHolderSelectedAsUser(@NonNull Role role, @NonNull String packageName, in onHolderSelectedAsUser()
DDialerRoleBehavior.java43 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
50 public void prepareApplicationPreferenceAsUser(@NonNull Role role, in prepareApplicationPreferenceAsUser()
64 public CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
72 public String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
77 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DSmsRoleBehavior.java44 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
64 public String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
79 private static String getDefaultHolder(@NonNull Role role, @NonNull Context context) { in getDefaultHolder()
85 public CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
92 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DRoles.java108 private static ArrayMap<String, Role> sRoles;
120 public static ArrayMap<String, Role> get(@NonNull Context context) { in get()
130 private static ArrayMap<String, Role> load(@NonNull Context context) { in load()
132 Pair<ArrayMap<String, PermissionSet>, ArrayMap<String, Role>> xml = parseXml(parser); in load()
137 ArrayMap<String, Role> roles = xml.second; in load()
147 private static Pair<ArrayMap<String, PermissionSet>, ArrayMap<String, Role>> parseXml( in parseXml()
149 Pair<ArrayMap<String, PermissionSet>, ArrayMap<String, Role>> xml = null; in parseXml()
181 private static Pair<ArrayMap<String, PermissionSet>, ArrayMap<String, Role>> parseRoles( in parseRoles()
184 ArrayMap<String, Role> roles = new ArrayMap<>(); in parseRoles()
208 Role role = parseRole(parser, permissionSets); in parseRoles()
[all …]
DBrowserRoleBehavior.java54 public List<String> getDefaultHolders(@NonNull Role role, @NonNull Context context) { in getDefaultHolders()
61 public String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
75 public List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
82 public Boolean isPackageQualified(@NonNull Role role, @NonNull String packageName, in isPackageQualified()
117 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
DEmergencyRoleBehavior.java42 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
50 public String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
71 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
78 public CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
DRole.java63 public class Role { class
65 private static final String LOG_TAG = Role.class.getSimpleName();
162 public Role(@NonNull String name, @Nullable RoleBehavior behavior, in Role() method in Role
624 ArrayMap<String, Role> roles = Roles.get(context); in revoke()
628 Role role = roles.get(roleName); in revoke()
637 Role role = roles.get(roleName); in revoke()
765 Role that = (Role) object; in equals()
DExclusiveDefaultHolderMixin.java47 public static List<String> getDefaultHolders(@NonNull Role role, @NonNull String resourceName, in getDefaultHolders()
56 public static String getDefaultHolder(@NonNull Role role, @NonNull String resourceName, in getDefaultHolder()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/service/
DRoleControllerServiceImpl.java34 import com.android.packageinstaller.role.model.Role;
68 ArrayMap<String, Role> roleMap = Roles.get(this); in onGrantDefaultRoles()
69 List<Role> roles = new ArrayList<>(); in onGrantDefaultRoles()
74 Role role = roleMap.valueAt(i); in onGrantDefaultRoles()
96 Role role = roleMap.get(roleName); in onGrantDefaultRoles()
103 Role role = roles.get(rolesIndex); in onGrantDefaultRoles()
195 Role role = Roles.get(this).get(roleName); in onAddRoleHolder()
253 Role role = Roles.get(this).get(roleName); in onRemoveRoleHolder()
287 Role role = Roles.get(this).get(roleName); in onClearRoleHolders()
315 private boolean addRoleHolderInternal(@NonNull Role role, @NonNull String packageName, in addRoleHolderInternal()
[all …]
DRoleSearchIndexablesProvider.java29 import com.android.packageinstaller.role.model.Role;
49 ArrayMap<String, Role> roles = Roles.get(context); in queryRawData()
52 Role role = roles.valueAt(i); in queryRawData()
/packages/apps/PermissionController/src/com/android/packageinstaller/role/ui/
DDefaultAppViewModel.java33 import com.android.packageinstaller.role.model.Role;
45 private final Role mRole;
56 public DefaultAppViewModel(@NonNull Role role, @NonNull UserHandle user, in DefaultAppViewModel()
110 private Role mRole;
118 public Factory(@NonNull Role role, @NonNull UserHandle user, in Factory()
DRoleItem.java23 import com.android.packageinstaller.role.model.Role;
36 private final Role mRole;
44 public RoleItem(@NonNull Role role, @NonNull List<ApplicationInfo> holderApplicationInfos) { in RoleItem()
50 public Role getRole() { in getRole()
DRequestRoleViewModel.java26 import com.android.packageinstaller.role.model.Role;
33 public RequestRoleViewModel(@NonNull Role role, @NonNull Application application) { in RequestRoleViewModel()
43 private Role mRole;
48 public Factory(@NonNull Role role, @NonNull Application application) { in Factory()
DSpecialAppAccessViewModel.java35 import com.android.packageinstaller.role.model.Role;
48 private final Role mRole;
57 public SpecialAppAccessViewModel(@NonNull Role role, @NonNull Application application) { in SpecialAppAccessViewModel()
164 private Role mRole;
169 public Factory(@NonNull Role role, @NonNull Application application) { in Factory()
DRoleLiveData.java32 import com.android.packageinstaller.role.model.Role;
47 private final Role mRole;
53 public RoleLiveData(@NonNull Role role, @NonNull UserHandle user, @NonNull Context context) { in RoleLiveData()
DRoleListLiveData.java32 import com.android.packageinstaller.role.model.Role;
83 ArrayMap<String, Role> roles = Roles.get(mContext); in loadValueInBackground()
89 Role role = roles.valueAt(rolesIndex); in loadValueInBackground()
DSpecialAppAccessListChildFragment.java35 import com.android.packageinstaller.role.model.Role;
98 Role role = roleItem.getRole(); in onRoleListChanged()
122 Role role = Roles.get(context).get(roleName); in onPreferenceClick()
DSpecialAppAccessActivity.java31 import com.android.packageinstaller.role.model.Role;
71 Role role = Roles.get(this).get(roleName); in onCreate()
DDefaultAppListChildFragment.java41 import com.android.packageinstaller.role.model.Role;
164 Role role = roleItem.getRole(); in addPreferences()
196 Role role = Roles.get(context).get(roleName); in onPreferenceClick()
DDefaultAppActivity.java33 import com.android.packageinstaller.role.model.Role;
83 Role role = Roles.get(this).get(roleName); in onCreate()
DRequestRoleFragment.java54 import com.android.packageinstaller.role.model.Role;
77 private Role mRole;
483 private final Role mRole;
503 Adapter(@NonNull ListView listView, @NonNull Role role) { in Adapter()
DRequestRoleActivity.java37 import com.android.packageinstaller.role.model.Role;
95 Role role = Roles.get(this).get(mRoleName); in onCreate()
/packages/apps/PermissionController/src/com/android/packageinstaller/
DPackageInstallerApplication.java25 import com.android.packageinstaller.role.model.Role;
40 ArrayMap<String, Role> roles = Roles.get(this); in updateSpecialAppAccessListActivityEnabledState()
44 Role role = roles.valueAt(i); in updateSpecialAppAccessListActivityEnabledState()

12