Home
last modified time | relevance | path

Searched refs:isHeadlessSystemUserMode (Results 1 – 25 of 61) sorted by relevance

123

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DHeadlessSystemUserDeviceOwnerTest.java33 assumeTrue("device is not headless system user mode", isHeadlessSystemUserMode()); in setUp()
40 if (!isHeadlessSystemUserMode()) return; in tearDown()
DDeviceAdminFeaturesCheckerRule.java73 && BaseDevicePolicyTest.isHeadlessSystemUserMode(testDevice)) { in apply()
82 && BaseDevicePolicyTest.isHeadlessSystemUserMode(testDevice)) { in apply()
155 if (BaseDevicePolicyTest.isHeadlessSystemUserMode(testDevice)) { in apply()
DUserRestrictionsTest.java62 if (isHeadlessSystemUserMode()) { in tearDown()
182 if (!isHeadlessSystemUserMode()) { in testUserRestrictions_layering()
268 if (!isHeadlessSystemUserMode()) { in testUserRestrictions_profileGlobalRestrictionsAsDo()
DDeviceOwnerTest.java113 if (isHeadlessSystemUserMode()) { in testCreateAndManageUser_MaxUsers()
201 if (isHeadlessSystemUserMode()) { in testCreateAndManageUser_StartInBackground_MaxRunningUsers()
530 if (isHeadlessSystemUserMode()) { in testAdminActionBookkeeping()
588 if (isHeadlessSystemUserMode()) { in testDisallowFactoryReset()
867 if (isHeadlessSystemUserMode()) { in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotStopped()
920 if (isHeadlessSystemUserMode()) { in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotFgsStopped()
1108 if (!isHeadlessSystemUserMode()) { in createAffiliatedSecondaryUser()
DProfileOwnerTest.java43 mUserId = isHeadlessSystemUserMode() ? getCurrentUser() : getMainUser(); in setUp()
DBaseDeviceOwnerTest.java46 if (isHeadlessSystemUserMode()) { in setUp()
DBaseDevicePolicyTest.java356 if (isHeadlessSystemUserMode() && !removeAdmin(componentName, mPrimaryUserId)) { in removeDeviceOwnerAdmin()
894 if (isHeadlessSystemUserMode()) { in setDeviceOwner()
1214 boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException { in isHeadlessSystemUserMode() method in BaseDevicePolicyTest
1215 return isHeadlessSystemUserMode(getDevice()); in isHeadlessSystemUserMode()
1218 public static boolean isHeadlessSystemUserMode(ITestDevice device) in isHeadlessSystemUserMode() method in BaseDevicePolicyTest
1220 return device.isHeadlessSystemUserMode(); in isHeadlessSystemUserMode()
1226 isHeadlessSystemUserMode()); in assumeHeadlessSystemUserMode()
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java91 if (isHeadlessSystemUserMode()) { in setUp()
99 if (isHeadlessSystemUserMode()) { in setUp()
276 boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException { in isHeadlessSystemUserMode() method in PrivacyDeviceOwnerTest
277 return isHeadlessSystemUserMode(getDevice()); in isHeadlessSystemUserMode()
280 public static boolean isHeadlessSystemUserMode(ITestDevice device) in isHeadlessSystemUserMode() method in PrivacyDeviceOwnerTest
282 return device.isHeadlessSystemUserMode(); in isHeadlessSystemUserMode()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DUtils.java65 static boolean isHeadlessSystemUserMode() { in isHeadlessSystemUserMode() method in Utils
67 && UserManager.isHeadlessSystemUserMode(); in isHeadlessSystemUserMode()
71 return isHeadlessSystemUserMode() && MY_USER_ID == UserHandle.USER_SYSTEM; in isHeadlessSystemUser()
75 return isHeadlessSystemUserMode() in isCurrentUserOnHeadlessSystemUser()
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/
DHarrierRule.java36 abstract boolean isHeadlessSystemUserMode(); in isHeadlessSystemUserMode() method in HarrierRule
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DBaseHostTestCase.java48 protected static boolean isHeadlessSystemUserMode(ITestDevice device) in isHeadlessSystemUserMode() method in BaseHostTestCase
50 return device.isHeadlessSystemUserMode(); in isHeadlessSystemUserMode()
DAppCloningMediaProviderHostTest.java78 isHeadlessSystemUserMode(sDevice)); in beforeClassWithDevice()
109 if (!supportsMultipleUsers(device) || isHeadlessSystemUserMode(device) in afterClass()
/cts/common/device-side/bedstead/modules/multiuser/src/main/kotlin/com/android/bedstead/multiuser/
DAnnotationLogicExtensions.kt67 assumeFalse(reason, users().isHeadlessSystemUserMode()) in logic()
71 assumeTrue(reason, users().isHeadlessSystemUserMode()) in RequireHeadlessSystemUserMode()
DUsersComponent.kt221 return if (users().isHeadlessSystemUserMode) { in <lambda>()
235 if (users().isHeadlessSystemUserMode()) { in <lambda>()
353 if (users().isHeadlessSystemUserMode()) { in <lambda>()
377 if (users().isHeadlessSystemUserMode() && instrumentedUser == users().system()) { in <lambda>()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBaseDeviceOwnerTest.java125 protected static boolean isHeadlessSystemUserMode() { in isHeadlessSystemUserMode() method in BaseDeviceOwnerTest
126 return UserManager.isHeadlessSystemUserMode(); in isHeadlessSystemUserMode()
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/
DDeviceOwnerComponent.kt107 users().isHeadlessSystemUserMode()) { in ensureHasDeviceOwner()
207 users().isHeadlessSystemUserMode())) { in ensureHasDeviceOwner()
227 var allowedNonTestUsers = if (users().isHeadlessSystemUserMode()) 1 else 0 in removeAllNonTestUsers()
/cts/hostsidetests/car/nonrecoverable/src/android/car/cts/
DCarServiceHelperServiceTest.java46 isHeadlessSystemUserMode()); in testUserCreatedOnStartUpForHeadlessSystemUser()
/cts/apps/EmptyDeviceOwner/src/com/android/cts/emptydeviceowner/
DProfileOwnerChangedReceiver.java36 if (!UserManager.isHeadlessSystemUserMode()) return; in onReceive()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/
DAppCloningBaseHostTest.java123 assumeFalse("Device is in headless system user mode", isHeadlessSystemUserMode()); in baseHostSetup()
139 return supportsMultipleUsers() && !isHeadlessSystemUserMode() && isAtLeastS() in isAppCloningSupportedOnDevice()
/cts/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/
DToastTest.java135 Assume.assumeFalse(UserManager.isHeadlessSystemUserMode()); in testAddTwoToastsViaAddingWindowApisWhenUidFocusedQuickly()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DCallLogTest.java155 if (UserManager.isHeadlessSystemUserMode()) { in testPopulateAndQueryCallAndVoicemailLogs()
242 if (UserManager.isHeadlessSystemUserMode()) { in testOpenFileOutsideOfScopeThrowsException()
285 if (UserManager.isHeadlessSystemUserMode()) { in testInsertFileOutsideOfScopeThrowsException()
304 if (UserManager.isHeadlessSystemUserMode()) { in testGetLastOutgoingCall()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DDeviceOwnerRequestingBugreportTestActivity.java164 .setMessage(UserManager.isHeadlessSystemUserMode() in onCreate()
197 if (UserManager.isHeadlessSystemUserMode()) { in addTestsToAdapter()
DCommandReceiverActivity.java312 if (UserManager.isHeadlessSystemUserMode()) { in onCreate()
549 if (UserManager.isHeadlessSystemUserMode()) { in onCreate()
661 || (UserManager.isHeadlessSystemUserMode() && mDpm.isProfileOwnerApp(packageName)); in isDeviceOwnerAppOrEquivalent()
665 if (UserManager.isHeadlessSystemUserMode()) { in installHelperPackage()
853 if (UserManager.isHeadlessSystemUserMode()) { in createAndSwitchUserWithMessage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/features/
DFeatureUtil.java217 || UserManager.isHeadlessSystemUserMode()) && UserManager.supportsMultipleUsers(); in supportManagedSecondaryUsers()
/cts/hostsidetests/settings/app/DeviceOwnerApp/src/com/google/android/cts/deviceowner/
DClearDeviceOwnerTest.java59 if (!UserManager.isHeadlessSystemUserMode()) return; in removeProfileOwnerIfNeeeded()

123