Home
last modified time | relevance | path

Searched refs:getNightModeCustomType (Results 1 – 6 of 6) sorted by relevance

/aosp14/frameworks/base/core/java/android/app/
H A DIUiModeManager.aidl93 int getNightModeCustomType(); in getNightModeCustomType() method
H A DUiModeManager.java724 public @NightModeCustomReturnType int getNightModeCustomType() { in getNightModeCustomType() method in UiModeManager
727 return sGlobals.mService.getNightModeCustomType(); in getNightModeCustomType()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/
H A DUiModeManagerServiceTest.java712 assertThat(mService.getNightModeCustomType()).isEqualTo(MODE_NIGHT_CUSTOM_TYPE_UNKNOWN); in getNightModeCustomType_nightModeNo_shouldReturnUnknown()
721 assertThat(mService.getNightModeCustomType()).isEqualTo(MODE_NIGHT_CUSTOM_TYPE_UNKNOWN); in getNightModeCustomType_nightModeYes_shouldReturnUnknown()
730 assertThat(mService.getNightModeCustomType()).isEqualTo(MODE_NIGHT_CUSTOM_TYPE_UNKNOWN); in getNightModeCustomType_nightModeAuto_shouldReturnUnknown()
740 assertThat(mService.getNightModeCustomType()).isEqualTo(MODE_NIGHT_CUSTOM_TYPE_SCHEDULE); in getNightModeCustomType_nightModeCustom_shouldReturnSchedule()
750 assertThat(mService.getNightModeCustomType()).isEqualTo(MODE_NIGHT_CUSTOM_TYPE_BEDTIME); in getNightModeCustomType_nightModeCustomBedtime_shouldReturnBedtime()
759 assertThrows(SecurityException.class, () -> mService.getNightModeCustomType()); in getNightModeCustomType_permissionNotGranted_shouldThrow()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DUiModeNightTile.java135 int nightModeCustomType = mUiModeManager.getNightModeCustomType(); in handleUpdateState()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DUiModeManagerService.java866 public @NightModeCustomReturnType int getNightModeCustomType() {
2133 final int customType = mInterface.getNightModeCustomType(); in printCurrentNightMode()
/aosp14/frameworks/base/core/api/
H A Dsystem-current.txt1128 …sPermission(android.Manifest.permission.MODIFY_DAY_NIGHT_MODE) public int getNightModeCustomType();