Home
last modified time | relevance | path

Searched refs:WORK (Results 1 – 25 of 52) sorted by relevance

123

/packages/modules/IntentResolver/tests/activity/src/com/android/intentresolver/
DChooserActivityWorkProfileTest.java36 import static com.android.intentresolver.ChooserActivityWorkProfileTest.TestCase.Tab.WORK;
119 new User(WORK_USER_HANDLE.getIdentifier(), User.Role.WORK))); in ChooserActivityWorkProfileTest()
168 /* tab= */ WORK, in tests()
175 /* tab= */ WORK, in tests()
182 /* tab= */ WORK, in tests()
189 /* tab= */ WORK, in tests()
224 /* tab= */ WORK, in tests()
231 /* tab= */ WORK, in tests()
238 /* tab= */ WORK, in tests()
245 /* tab= */ WORK, in tests()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/data/repository/
DUserRepositoryImplTest.kt62 val profile = userState.createProfile(ProfileType.WORK) in <lambda>()
64 assertThat(users).contains(User(profile.identifier, Role.WORK)) in <lambda>()
73 val work = userState.createProfile(ProfileType.WORK) in <lambda>()
74 assertThat(users).contains(User(work.identifier, Role.WORK)) in <lambda>()
77 assertThat(users).doesNotContain(User(work.identifier, Role.WORK)) in <lambda>()
83 val work = userState.createProfile(ProfileType.WORK) in <lambda>()
84 val workUser = User(work.identifier, Role.WORK) in <lambda>()
117 val work = userState.createProfile(ProfileType.WORK) in <lambda>()
118 val workUser = User(work.identifier, Role.WORK) in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/platform/
DFakeUserManagerTest.kt45 val workHandle = state.createProfile(ProfileType.WORK) in <lambda>()
60 val workHandle = state.createProfile(ProfileType.WORK) in <lambda>()
74 val work = state.createProfile(ProfileType.WORK) in <lambda>()
110 val workHandle = state.createProfile(ProfileType.WORK) in <lambda>()
122 val work = state.createProfile(ProfileType.WORK) in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/domain/interactor/
DUserInteractorTest.kt24 import com.android.intentresolver.shared.model.Profile.Type.WORK
41 private val workUser = User(id = baseId + 2, role = Role.WORK)
45 val workProfile = Profile(WORK, workUser)
124 Profile(WORK, workUser), in <lambda>()
142 Profile(WORK, workUser), in <lambda>()
193 val workProfile = Profile(Profile.Type.WORK, workUser) in updateState()
/packages/apps/Launcher3/src/com/android/launcher3/widget/picker/
DWidgetsFullSheet.java167 mAdapters.put(AdapterHolder.WORK, new AdapterHolder(AdapterHolder.WORK)); in WidgetsFullSheet()
239 mAdapters.get(AdapterHolder.WORK).setup(findViewById(R.id.work_widgets_list_view)); in setupViews()
292 } else if (adapterHolder.mAdapterType == AdapterHolder.WORK in updateRecyclerViewVisibility()
307 mAdapters.get(AdapterHolder.WORK).mWidgetsRecyclerView.scrollToTop(); in reset()
321 return mAdapters.get(AdapterHolder.WORK).mWidgetsRecyclerView; in getRecyclerView()
342 mAdapters.get(AdapterHolder.WORK).mWidgetsRecyclerView in onDetachedFromWindow()
354 setBottomPadding(mAdapters.get(AdapterHolder.WORK) in setInsets()
397 mAdapters.get(AdapterHolder.WORK).mWidgetsRecyclerView, in onContentHorizontalMarginChanged()
439 mAdapters.get(AdapterHolder.WORK).mWidgetsListAdapter.setMaxHorizontalSpansPxPerRow( in updateMaxSpansPerRow()
482 AdapterHolder workUserAdapterHolder = mAdapters.get(AdapterHolder.WORK); in onWidgetsBound()
[all …]
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ui/
DProfilePagerResources.kt41 Profile.Type.WORK -> devicePolicyResources.workTabLabel in profileTabLabel()
49 Profile.Type.WORK -> devicePolicyResources.workTabAccessibilityLabel in profileTabAccessibilityLabel()
57 Profile.Type.WORK -> devicePolicyResources.noWorkApps in noAppsMessage()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DActivityAllAppsContainerView.java271 mAH.set(AdapterHolder.WORK, new AdapterHolder(AdapterHolder.WORK, in initContent()
596 mAllAppsStore.unregisterIconContainer(mAH.get(AdapterHolder.WORK).mRecyclerView); in rebindAdapters()
605 mAH.get(AdapterHolder.WORK).setup(workRecyclerView, mWorkManager.getItemInfoMatcher()); in rebindAdapters()
609 mAH.get(AdapterHolder.WORK).mRecyclerView.addOnScrollListener( in rebindAdapters()
622 if (mViewPager.snapToPage(AdapterHolder.WORK)) { in rebindAdapters()
635 mAH.get(AdapterHolder.WORK).mRecyclerView = null; in rebindAdapters()
653 mAllAppsStore.registerIconContainer(mAH.get(AdapterHolder.WORK).mRecyclerView); in rebindAdapters()
684 for (int i = AdapterHolder.MAIN; i <= AdapterHolder.WORK; i++) { in replaceAppsRVContainer()
716 post(() -> mAH.get(AdapterHolder.WORK).applyPadding()); in replaceAppsRVContainer()
743 mAH.get(AdapterHolder.WORK).mRecyclerView, in setupHeader()
[all …]
DWorkProfileManager.java21 import static com.android.launcher3.allapps.ActivityAllAppsContainerView.AdapterHolder.WORK;
89 } else if (page == WORK && getCurrentState() == STATE_ENABLED) { in updateWorkFAB()
145 if (mAllApps.getCurrentPage() != WORK) { in attachWorkModeSwitch()
170 return mAllApps.mAH.get(WORK); in getAH()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectFragment.java77 ProfileType.WORK,
89 int WORK = 1 << 1; field
99 int ALL = PERSONAL | WORK | PRIVATE;
340 ProfileType.WORK, in getFragments()
441 if (profileType == ProfileType.WORK) { in profileTypeToTab()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/domain/interactor/
DUserInteractor.kt90 Role.WORK -> Type.WORK in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/
DProfileAvailabilityTest.kt34 private val workUser = User(10, User.Role.WORK)
37 private val workProfile = Profile(Profile.Type.WORK, workUser)
DProfileHelperTest.kt40 private val workUser = User(11, User.Role.WORK)
41 private val workProfile = Profile(Profile.Type.WORK, workUser)
196 assertThat(helper.launchedAsProfileType).isEqualTo(Profile.Type.WORK) in <lambda>()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ui/viewmodel/
DResolverRequestTest.kt25 import com.android.intentresolver.shared.model.Profile.Type.WORK
126 assertThat(result.value.selectedProfile).isEqualTo(WORK) in createActivityModel()
/packages/apps/Settings/src/com/android/settings/password/
DConfirmDeviceCredentialBaseActivity.java45 WORK enumConstant
72 mConfirmCredentialTheme = ConfirmCredentialTheme.WORK; in onCreate()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/shared/model/
DUser.kt49 WORK,
DProfile.kt49 WORK,
/packages/modules/Bluetooth/android/app/tests/unit/res/raw/
Dv21_simple.vcf5 ADR;WORK;QUOTED-PRINTABLE:;Paris 75010;91 Rue du Faubourg Saint-
Dunsupported_version.vcf5 ADR;WORK;QUOTED-PRINTABLE:;Paris 75010;91 Rue du Faubourg Saint-
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/platform/
DFakeUserManager.kt66 WORK, in <lambda>()
225 FakeUserManager.ProfileType.WORK -> UserManager.USER_TYPE_PROFILE_MANAGED in FakeUserManager()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/data/repository/
DUserInfoExt.kt27 isManagedProfile -> Role.WORK in <lambda>()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ui/viewmodel/
DResolverRequestReader.kt50 PROFILE_WORK -> Profile.Type.WORK in Validation()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DUserManagerStateTest.java68 private static final String WORK = "Work"; field in UserManagerStateTest
746 when(devicePolicyResourcesManager.getString(eq(WORK_TAB), any())).thenReturn(WORK); in testGetUserIdToLabelMap_systemUserAndManagedUser_PreV()
754 .that(userIdToLabelMap.get(UserId.of(mManagedUser))).isEqualTo(WORK); in testGetUserIdToLabelMap_systemUserAndManagedUser_PreV()
772 when(managedUserManager.getProfileLabel()).thenReturn(WORK); in testGetUserIdToLabelMap_systemUserManagedUserPrivateUser_PostV()
780 .that(userIdToLabelMap.get(UserId.of(mManagedUser))).isEqualTo(WORK); in testGetUserIdToLabelMap_systemUserManagedUserPrivateUser_PostV()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/emptystate/
DNoCrossProfileEmptyStateProvider.java102 case WORK: in getEmptyState()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/
DProfileSelectLocationFragmentTest.java80 EXTRA_PROFILE, -1)).isEqualTo(ProfileSelectFragment.ProfileType.WORK); in getFragments_containsCorrectBundle()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DProfileHelper.kt59 val workProfile = profiles.singleOrNull { it.type == Profile.Type.WORK } in <lambda>()

123