Searched refs:hasWorkProfile (Results 1 – 9 of 9) sorted by relevance
85 if (mViewModel.hasWorkProfile()) { in onActivityCreated()95 boolean hasWorkProfile = mViewModel.hasWorkProfile(); in onRoleListChanged()97 if (hasWorkProfile) { in onRoleListChanged()129 if (hasWorkProfile && !workRoleItems.isEmpty()) { in onRoleListChanged()
75 public boolean hasWorkProfile() { in hasWorkProfile() method in DefaultAppListViewModel
102 when(mManagedProfileUtils.hasWorkProfile(any(Context.class))).thenReturn(true); in testMultipleAccounts_noSettingsForManagedProfile()115 when(mManagedProfileUtils.hasWorkProfile(any(Context.class))).thenReturn(false); in testMultipleAccounts_noCurrentAccount()137 when(mManagedProfileUtils.hasWorkProfile(any(Context.class))).thenReturn(false); in testMultipleAccounts_currentAccount()
162 return ManagedProfileUtils.getInstance().hasWorkProfile(mFragment.getActivity()); in doInBackground()166 protected void onPostExecute(final Boolean hasWorkProfile) { in onPostExecute() argument167 mFragment.mHasManagedProfile.set(hasWorkProfile); in onPostExecute()
148 boolean hasWorkProfile = UserUtils.getWorkProfile(context) != null; in isMissingWorkProfileSupport()149 if (!hasWorkProfile) { in isMissingWorkProfileSupport()
40 public boolean hasWorkProfile(final Context context) { in hasWorkProfile() method in ManagedProfileUtils
61 public abstract boolean hasWorkProfile(); in hasWorkProfile() method in UserManagerCompat
130 public boolean hasWorkProfile() { in hasWorkProfile() method in UserManagerCompatVNMr1
220 && UserManagerCompat.getInstance(launcher).hasWorkProfile(); in shouldShowForWorkProfile()