Home
last modified time | relevance | path

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

12

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DHeadlessSystemUserDeviceOwnerTest.java32 assumeTrue("device is not headless system user mode", isHeadlessSystemUserMode()); in setUp()
39 if (!isHeadlessSystemUserMode()) return; in tearDown()
DUserRestrictionsTest.java64 if (isHeadlessSystemUserMode()) { in tearDown()
159 if (!isHeadlessSystemUserMode()) { in testUserRestrictions_layering()
229 if (!isHeadlessSystemUserMode()) { in testUserRestrictions_profileGlobalRestrictionsAsDo()
291 if (isHeadlessSystemUserMode()) { in setDo()
DDeviceAdminFeaturesCheckerRule.java73 && BaseDevicePolicyTest.isHeadlessSystemUserMode(testDevice)) { in apply()
82 && BaseDevicePolicyTest.isHeadlessSystemUserMode(testDevice)) { in apply()
150 if (BaseDevicePolicyTest.isHeadlessSystemUserMode(testDevice)) { in apply()
DDeviceOwnerTest.java131 if (isHeadlessSystemUserMode()) { in testCreateAndManageUser_MaxUsers()
209 if (isHeadlessSystemUserMode()) { in testCreateAndManageUser_StartInBackground_MaxRunningUsers()
508 if (isHeadlessSystemUserMode()) { in testAdminActionBookkeeping()
858 if (isHeadlessSystemUserMode()) { in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotStopped()
1017 if (!isHeadlessSystemUserMode()) { in createAffiliatedSecondaryUser()
DBaseDeviceOwnerTest.java56 if (isHeadlessSystemUserMode()) { in setUp()
DProfileOwnerTest.java46 mUserId = isHeadlessSystemUserMode() ? getCurrentUser() : getPrimaryUser(); in setUp()
DMixedDeviceOwnerTest.java77 if (isHeadlessSystemUserMode()) { in setUp()
551 if (isHeadlessSystemUserMode()) { in testApplicationHidden()
615 if (!isHeadlessSystemUserMode()) { in createSecondaryUserAsProfileOwner()
DBaseDevicePolicyTest.java230 if (!isHeadlessSystemUserMode()) { in setUp()
360 if (isHeadlessSystemUserMode()) { in installDeviceOwnerApp()
374 if (isHeadlessSystemUserMode() && !removeAdmin(componentName, mPrimaryUserId)) { in removeDeviceOwnerAdmin()
1226 boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException { in isHeadlessSystemUserMode() method in BaseDevicePolicyTest
1227 return isHeadlessSystemUserMode(getDevice()); in isHeadlessSystemUserMode()
1231 public static boolean isHeadlessSystemUserMode(ITestDevice device) in isHeadlessSystemUserMode() method in BaseDevicePolicyTest
1241 isHeadlessSystemUserMode()); in assumeHeadlessSystemUserMode()
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java89 if (isHeadlessSystemUserMode()) { in setUp()
97 if (isHeadlessSystemUserMode()) { in setUp()
275 boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException { in isHeadlessSystemUserMode() method in PrivacyDeviceOwnerTest
276 return isHeadlessSystemUserMode(getDevice()); in isHeadlessSystemUserMode()
280 public static boolean isHeadlessSystemUserMode(ITestDevice device) in isHeadlessSystemUserMode() method in PrivacyDeviceOwnerTest
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUserUtils.java36 public static boolean isHeadlessSystemUserMode() { in isHeadlessSystemUserMode() method in UserUtils
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DAppCloningHostTest.java53 assumeFalse("Device is in headless system user mode", isHeadlessSystemUserMode()); in setup()
69 if (isHeadlessSystemUserMode() || !isAtLeastS()) return; in tearDown()
DBaseHostTestCase.java45 protected boolean isHeadlessSystemUserMode() throws DeviceNotAvailableException { in isHeadlessSystemUserMode() method in BaseHostTestCase
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBaseDeviceOwnerTest.java123 protected static boolean isHeadlessSystemUserMode() { in isHeadlessSystemUserMode() method in BaseDeviceOwnerTest
124 return UserManager.isHeadlessSystemUserMode(); in isHeadlessSystemUserMode()
DBluetoothRestrictionTest.java113 if (mBluetoothAdapter == null || UserManager.isHeadlessSystemUserMode()) { in testOppDisabledWhenRestrictionSet()
/cts/apps/EmptyDeviceOwner/src/com/android/cts/emptydeviceowner/
DProfileOwnerChangedReceiver.java36 if (!UserManager.isHeadlessSystemUserMode()) return; in onReceive()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DUtils.java65 return UserManager.isHeadlessSystemUserMode() && MY_USER_ID == UserHandle.USER_SYSTEM; in isHeadlessSystemUser()
69 return UserManager.isHeadlessSystemUserMode() in isCurrentUserOnHeadlessSystemUser()
DTestAppSystemServiceFactory.java123 if (!UserManager.isHeadlessSystemUserMode()) return; in assertHasRequiredReceiver()
229 if (userId == UserHandle.USER_SYSTEM || !UserManager.isHeadlessSystemUserMode()) { in getSystemService()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/features/
DFeatureUtil.java119 || UserManager.isHeadlessSystemUserMode()) && UserManager.supportsMultipleUsers(); in supportManagedSecondaryUsers()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodFlowTestHelper.java47 if (!UserManager.isHeadlessSystemUserMode()) { in tearDown()
DDeviceOwnerRequestingBugreportTestActivity.java162 .setMessage(UserManager.isHeadlessSystemUserMode() in onCreate()
195 if (UserManager.isHeadlessSystemUserMode()) { in addTestsToAdapter()
DCommandReceiverActivity.java299 if (UserManager.isHeadlessSystemUserMode()) { in onCreate()
514 if (UserManager.isHeadlessSystemUserMode()) { in onCreate()
587 if (UserManager.isHeadlessSystemUserMode()) { in installHelperPackage()
773 if (UserManager.isHeadlessSystemUserMode()) { in createAndSwitchUserWithMessage()
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/
DNetworkLoggingDelegateTest.java64 if (UserManager.isHeadlessSystemUserMode()) { in setUp()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUsers.java102 if (!isHeadlessSystemUserMode()) { in initial()
434 public boolean isHeadlessSystemUserMode() {
436 return UserManager.isHeadlessSystemUserMode();
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DUserManagerTest.java73 .that(UserManager.isHeadlessSystemUserMode()).isEqualTo(expected); in testIsHeadlessSystemUserMode()
/cts/hostsidetests/settings/app/DeviceOwnerApp/src/com/google/android/cts/deviceowner/
DClearDeviceOwnerTest.java59 if (!UserManager.isHeadlessSystemUserMode()) return; in removeProfileOwnerIfNeeeded()

12