Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/
DIUiModeManager.aidl95 int getNightModeCustomType(); in getNightModeCustomType() method
DUiModeManager.java782 public @NightModeCustomReturnType int getNightModeCustomType() { in getNightModeCustomType() method in UiModeManager
785 return sGlobals.mService.getNightModeCustomType(); in getNightModeCustomType()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java746 assertThat(mService.getNightModeCustomType()).isEqualTo(MODE_NIGHT_CUSTOM_TYPE_UNKNOWN); in getNightModeCustomType_nightModeNo_shouldReturnUnknown()
755 assertThat(mService.getNightModeCustomType()).isEqualTo(MODE_NIGHT_CUSTOM_TYPE_UNKNOWN); in getNightModeCustomType_nightModeYes_shouldReturnUnknown()
764 assertThat(mService.getNightModeCustomType()).isEqualTo(MODE_NIGHT_CUSTOM_TYPE_UNKNOWN); in getNightModeCustomType_nightModeAuto_shouldReturnUnknown()
774 assertThat(mService.getNightModeCustomType()).isEqualTo(MODE_NIGHT_CUSTOM_TYPE_SCHEDULE); in getNightModeCustomType_nightModeCustom_shouldReturnSchedule()
784 assertThat(mService.getNightModeCustomType()).isEqualTo(MODE_NIGHT_CUSTOM_TYPE_BEDTIME); in getNightModeCustomType_nightModeCustomBedtime_shouldReturnBedtime()
792 assertThrows(SecurityException.class, () -> mService.getNightModeCustomType()); in getNightModeCustomType_permissionNotGranted_shouldThrow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java135 int nightModeCustomType = mUiModeManager.getNightModeCustomType(); in handleUpdateState()
/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java904 public @NightModeCustomReturnType int getNightModeCustomType() { in getNightModeCustomType() method in UiModeManagerService.Stub
2238 final int customType = mInterface.getNightModeCustomType(); in printCurrentNightMode()
/frameworks/base/core/api/
Dsystem-current.txt1182 …sPermission(android.Manifest.permission.MODIFY_DAY_NIGHT_MODE) public int getNightModeCustomType();