Home
last modified time | relevance | path

Searched refs:NightDisplayController (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java22 import com.android.internal.app.NightDisplayController;
58 if (!NightDisplayController.isAvailable(mContext)) { in nightTileAdded_whenActivated()
67 if (!NightDisplayController.isAvailable(mContext)) { in nightTileNotAdded_whenDeactivated()
76 if (!NightDisplayController.isAvailable(mContext)) { in nightTileAdded_whenNightModeTwilight()
80 NightDisplayController.AUTO_MODE_TWILIGHT); in nightTileAdded_whenNightModeTwilight()
86 if (!NightDisplayController.isAvailable(mContext)) { in nightTileAdded_whenNightModeCustom()
90 NightDisplayController.AUTO_MODE_CUSTOM); in nightTileAdded_whenNightModeCustom()
96 if (!NightDisplayController.isAvailable(mContext)) { in nightTileNotAdded_whenNightModeDisabled()
100 NightDisplayController.AUTO_MODE_DISABLED); in nightTileNotAdded_whenNightModeDisabled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DAutoTileManager.java23 import com.android.internal.app.NightDisplayController;
72 && NightDisplayController.isAvailable(mContext)) { in AutoTileManager()
73 Dependency.get(NightDisplayController.class).setListener(mNightDisplayCallback); in AutoTileManager()
82 Dependency.get(NightDisplayController.class).setListener(null); in destroy()
129 final NightDisplayController.Callback mNightDisplayCallback =
130 new NightDisplayController.Callback() {
140 if (autoMode == NightDisplayController.AUTO_MODE_CUSTOM
141 || autoMode == NightDisplayController.AUTO_MODE_TWILIGHT) {
149 mHandler.post(() -> Dependency.get(NightDisplayController.class)
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNightDisplayTile.java25 import com.android.internal.app.NightDisplayController;
34 implements NightDisplayController.Callback {
36 private NightDisplayController mController;
41 mController = new NightDisplayController(mContext, ActivityManager.getCurrentUser()); in NightDisplayTile()
46 return NightDisplayController.isAvailable(mContext); in isAvailable()
68 mController = new NightDisplayController(mContext, newUserId); in handleUserSwitch()
/frameworks/base/services/core/java/com/android/server/display/
DNightDisplayService.java45 import com.android.internal.app.NightDisplayController;
61 implements NightDisplayController.Callback {
135 private NightDisplayController mController;
244 mController = new NightDisplayController(getContext(), mCurrentUser); in setUp()
307 if (autoMode == NightDisplayController.AUTO_MODE_CUSTOM) { in onAutoModeChanged()
309 } else if (autoMode == NightDisplayController.AUTO_MODE_TWILIGHT) { in onAutoModeChanged()
319 public void onCustomStartTimeChanged(NightDisplayController.LocalTime startTime) { in onCustomStartTimeChanged()
328 public void onCustomEndTimeChanged(NightDisplayController.LocalTime endTime) { in onCustomEndTimeChanged()
427 private abstract class AutoMode implements NightDisplayController.Callback {
438 private NightDisplayController.LocalTime mStartTime;
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNightDisplayServiceTest.java32 import com.android.internal.app.NightDisplayController;
33 import com.android.internal.app.NightDisplayController.LocalTime;
63 private NightDisplayController mNightDisplayController;
86 mNightDisplayController = new NightDisplayController(mContext, mUserId); in setUp()
903 mNightDisplayController.setAutoMode(NightDisplayController.AUTO_MODE_CUSTOM); in setAutoModeCustom()
915 mNightDisplayController.setAutoMode(NightDisplayController.AUTO_MODE_TWILIGHT); in setAutoModeTwilight()
/frameworks/base/core/java/com/android/internal/app/
DNightDisplayController.java44 public final class NightDisplayController { class
82 public NightDisplayController(@NonNull Context context) { in NightDisplayController() method in NightDisplayController
86 public NightDisplayController(@NonNull Context context, int userId) { in NightDisplayController() method in NightDisplayController
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDependency.java26 import com.android.internal.app.NightDisplayController;
191 mProviders.put(NightDisplayController.class, () -> in start()
192 new NightDisplayController(mContext)); in start()
/frameworks/base/services/java/com/android/server/
DSystemServer.java54 import com.android.internal.app.NightDisplayController;
1270 if (NightDisplayController.isAvailable(context)) { in startOtherServices()
/frameworks/base/services/
Dprofile-classes3096 Lcom/android/internal/app/NightDisplayController;
3097 Lcom/android/internal/app/NightDisplayController$1;
3098 Lcom/android/internal/app/NightDisplayController$Callback;
3099 Lcom/android/internal/app/NightDisplayController$LocalTime;
/frameworks/base/
Dcompiled-classes-phone5244 com.android.internal.app.NightDisplayController
5245 com.android.internal.app.NightDisplayController$Callback
5246 com.android.internal.app.NightDisplayController$LocalTime