Home
last modified time | relevance | path

Searched refs:hasWorkProfile (Results 1 – 12 of 12) sorted by relevance

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/
DDefaultAppListChildFragment.java90 if (mViewModel.hasWorkProfile()) { in onActivityCreated()
103 boolean hasWorkProfile = mViewModel.hasWorkProfile(); in onRoleListChanged()
105 if (hasWorkProfile) { in onRoleListChanged()
150 if (hasWorkProfile && !workRoleItems.isEmpty()) { in onRoleListChanged()
DDefaultAppListViewModel.java91 public boolean hasWorkProfile() { in hasWorkProfile() method in DefaultAppListViewModel
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/settings/
DAccountsSettingsFragmentTests.java102 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()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioninglisteners/
DManagedUserRemovalListenerTest.java130 …ivate ManagedUserRemovalListener createManagedUserRemovalListenerInternal(boolean hasWorkProfile) { in createManagedUserRemovalListenerInternal() argument
132 context -> hasWorkProfile, in createManagedUserRemovalListenerInternal()
/packages/apps/Launcher3/src/com/android/launcher3/recyclerview/
DAllAppsRecyclerViewPool.kt43 var hasWorkProfile = false in <lambda>() variable
136 if (hasWorkProfile) { in <lambda>()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systemdialogs/
DSystemDialogsViewController.java189 boolean hasWorkProfile = mSecurityController.hasWorkProfile(); in getVpnMessage()
208 } else if (hasWorkProfile) { in getVpnMessage()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/ui/behavior/
DHomeRoleUiBehavior.java95 boolean hasWorkProfile = UserUtils.getWorkProfile(context) != null; in isMissingWorkProfileSupport()
96 if (!hasWorkProfile) { in isMissingWorkProfileSupport()
/packages/apps/Settings/src/com/android/settings/notification/
DSoundWorkSettings.java146 final boolean hasWorkProfile = audioHelper.getManagedProfileId( in isSupportWorkProfileSound()
150 return hasWorkProfile && shouldShowRingtoneSettings; in isSupportWorkProfileSound()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DAccountsSettingsFragment.java162 return ManagedProfileUtils.getInstance().hasWorkProfile(mFragment.getActivity()); in doInBackground()
166 protected void onPostExecute(final Boolean hasWorkProfile) { in onPostExecute() argument
167 mFragment.mHasManagedProfile.set(hasWorkProfile); in onPostExecute()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DManagedProfileUtils.java40 public boolean hasWorkProfile(final Context context) { in hasWorkProfile() method in ManagedProfileUtils
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsRecyclerView.java106 void updatePoolSize(boolean hasWorkProfile) { in updatePoolSize() argument
123 if (hasWorkProfile) { in updatePoolSize()
DActivityAllAppsContainerView.java672 final boolean hasWorkProfile = workRecyclerView != null; in setUpCustomRecyclerViewPool()
673 recycledViewPool.setHasWorkProfile(hasWorkProfile); in setUpCustomRecyclerViewPool()
679 mainRecyclerView.updatePoolSize(hasWorkProfile); in setUpCustomRecyclerViewPool()