Home
last modified time | relevance | path

Searched refs:workUserHandle (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/
DMediaProjectionAppSelectorControllerTest.kt38 private val workUserHandle = UserHandle.of(456) constant
174 createRecentTask(taskId = 2, userId = workUserHandle.identifier), in initRecentTasksWithAppSelectorTasks_withEnterprisePolicies_bindsAllTasks()
176 createRecentTask(taskId = 4, userId = workUserHandle.identifier), in initRecentTasksWithAppSelectorTasks_withEnterprisePolicies_bindsAllTasks()
187 createRecentTask(taskId = 2, userId = workUserHandle.identifier), in initRecentTasksWithAppSelectorTasks_withEnterprisePolicies_bindsAllTasks()
189 createRecentTask(taskId = 4, userId = workUserHandle.identifier), in initRecentTasksWithAppSelectorTasks_withEnterprisePolicies_bindsAllTasks()
200 createRecentTask(taskId = 2, userId = workUserHandle.identifier), in initRecentTasksWithAppSelectorTasks_withEnterprisePolicies_blocksAllTasks()
202 createRecentTask(taskId = 4, userId = workUserHandle.identifier), in initRecentTasksWithAppSelectorTasks_withEnterprisePolicies_blocksAllTasks()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/devicepolicy/
DScreenCaptureDevicePolicyResolverTest.kt48 protected val workUserHandle: UserHandle = UserHandle.of(456) constant in com.android.systemui.mediaprojection.devicepolicy.BaseScreenCaptureDevicePolicyResolverTest
55 workUserHandle
72 whenever(devicePolicyManager.getScreenCaptureDisabled(any(), eq(workUserHandle.identifier))) in setUpPolicies()
78 eq(workUserHandle) in setUpPolicies()
459 if (test.given.isTargetInWorkProfile) workUserHandle else personalUserHandle in test()
461 if (test.given.isHostInWorkProfile) workUserHandle else personalUserHandle in test()
655 if (test.given.isHostInWorkProfile) workUserHandle else personalUserHandle in test()
/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java1155 UserHandle workUserHandle = getWorkProfileUserHandle();
1158 return !userManager.isQuietModeEnabled(workUserHandle)
1159 && userManager.isUserUnlocked(workUserHandle);