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 boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
50 default List<String> getDefaultHolders(@NonNull Role role, @NonNull Context context) { in getDefaultHolders()
58 default String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
65 default boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
74 default Intent getManageIntentAsUser(@NonNull Role role, @NonNull UserHandle user, in getManageIntentAsUser()
82 default void preparePreferenceAsUser(@NonNull Role role, in preparePreferenceAsUser()
90 default void prepareApplicationPreferenceAsUser(@NonNull Role role, in prepareApplicationPreferenceAsUser()
98 default CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
107 default List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
116 default Boolean isPackageQualified(@NonNull Role role, @NonNull String packageName, in isPackageQualified()
[all …]
DAssistantRoleBehavior.java62 public boolean isAvailableAsUser(@NonNull Role role, @NonNull UserHandle user, in isAvailableAsUser()
69 public String getFallbackHolder(@NonNull Role role, @NonNull Context context) { in getFallbackHolder()
75 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
82 public Intent getManageIntentAsUser(@NonNull Role role, @NonNull UserHandle user, in getManageIntentAsUser()
89 public CharSequence getConfirmationMessage(@NonNull Role role, @NonNull String packageName, in getConfirmationMessage()
96 public List<String> getQualifyingPackagesAsUser(@NonNull Role role, @NonNull UserHandle user, in getQualifyingPackagesAsUser()
132 public Boolean isPackageQualified(@NonNull Role role, @NonNull String packageName, in isPackageQualified()
215 public void onHolderChangedAsUser(@NonNull Role role, @NonNull UserHandle user, in onHolderChangedAsUser()
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 …]
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 void prepareApplicationPreferenceAsUser(@NonNull Role role, in prepareApplicationPreferenceAsUser()
166 public void onHolderSelectedAsUser(@NonNull Role role, @NonNull String packageName, in onHolderSelectedAsUser()
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()
119 public boolean isVisibleAsUser(@NonNull Role role, @NonNull UserHandle user, in isVisibleAsUser()
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
596 ArrayMap<String, Role> roles = Roles.get(context); in revoke()
600 Role role = roles.get(roleName); in revoke()
609 Role role = roles.get(roleName); in revoke()
737 Role that = (Role) object; in equals()
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()
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.java33 import com.android.packageinstaller.role.model.Role;
67 ArrayMap<String, Role> roleMap = Roles.get(this); in onGrantDefaultRoles()
68 List<Role> roles = new ArrayList<>(); in onGrantDefaultRoles()
73 Role role = roleMap.valueAt(i); in onGrantDefaultRoles()
94 Role role = roles.get(rolesIndex); in onGrantDefaultRoles()
187 Role role = Roles.get(this).get(roleName); in onAddRoleHolder()
245 Role role = Roles.get(this).get(roleName); in onRemoveRoleHolder()
279 Role role = Roles.get(this).get(roleName); in onClearRoleHolders()
307 private boolean addRoleHolderInternal(@NonNull Role role, @NonNull String packageName, in addRoleHolderInternal()
314 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;
468 private final Role mRole;
490 Adapter(@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