Home
last modified time | relevance | path

Searched refs:isForeground (Results 1 – 9 of 9) sorted by relevance

/cts/tests/tests/appop/AppForDiscreteTest/src/android/app/appops/cts/appfordiscretetest/
DAppOpsForegroundControlActivity.kt31 private var isForeground = false variable
43 while (!isCreated || isForeground) { in waitUntilBackground()
51 while (!isForeground) { in waitUntilForeground()
82 isForeground = true in onResume()
91 isForeground = false in onPause()
/cts/tests/tests/appop/AppThatCanBeForcedIntoForegroundStates/src/android/app/appops/cts/appthatcanbeforcedintoforegroundstates/
DAppOpsForegroundControlActivity.kt31 private var isForeground = false variable
43 while (!isCreated || isForeground) { in waitUntilBackground()
51 while (!isForeground) { in waitUntilForeground()
82 isForeground = true in onResume()
91 isForeground = false in onPause()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUserHelper.java93 boolean isForeground = userManager.isUserForeground(); in UserHelper()
108 + ", isForeground=" + isForeground + ", isProfile=" + isProfile in UserHelper()
113 if (isVisible && !isForeground && !isProfile) { in UserHelper()
/cts/common/device-side/bedstead/modules/multiuser/src/test/kotlin/com/android/bedstead/multiuser/
DUserReferenceTest.java458 assertWithMessage("%s is foreground", user).that(user.isForeground()).isTrue(); in isForeground_currentUser_returnsTrue()
466 assertWithMessage("%s is foreground", user).that(user.isForeground()).isFalse(); in isForeground_nonStartedUser_returnsFalse()
474 assertWithMessage("%s is foreground", user).that(user.isForeground()).isFalse(); in isForeground_bgUser_returnsFalse()
486 assertWithMessage("%s is foreground", user).that(user.isForeground()).isFalse(); in isForeground_visibleBgUser_returnsFalse()
497 assertWithMessage("%s is foreground", user).that(user.isForeground()).isFalse(); in isForeground_userDoesNotExist_returnsFalse()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUserReference.java507 public boolean isForeground() { in isForeground() method in UserReference
526 return isVisible() && !isForeground() && !isProfile(); in isVisibleBagroundNonProfileUser()
1011 if (!isForeground() && (!isProfile() || !parent().isForeground())) { in canShowActivities()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCameraTest.java218 TestApis.users().instrumented().isForeground()); in openCamera_cameraEnabled_successful()
238 TestApis.users().instrumented().isForeground()); in openCamera_cameraDisabled_unsuccessful()
DBluetoothTest.java163 TestApis.users().current().isForeground()); in disable_bluetoothIsDisabled()
195 TestApis.users().current().isForeground()); in enable_bluetoothIsEnabled()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvInputManagerTest.java778 boolean isForeground = checkIsForeground(android.os.Process.myPid()); in testGetClientPriority()
781 assertTrue(priority == (isForeground ? fgLivePriority : bgLivePriority)); in testGetClientPriority()
800 assertTrue(priority == (isForeground ? fgLivePriority : bgLivePriority)); in testGetClientPriority()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java2065 TestApis.users().instrumented().isForeground());
2077 TestApis.users().instrumented().isForeground());