Home
last modified time | relevance | path

Searched refs:mForcedMode (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/service/src/com/android/car/power/
DSilentModeHandler.java94 private boolean mForcedMode; field in SilentModeHandler
120 mForcedMode = true; in SilentModeHandler()
125 mForcedMode = true; in SilentModeHandler()
129 mForcedMode = false; in SilentModeHandler()
137 forcedMode = mForcedMode; in init()
166 writer.printf("Forced silent mode: %b\n", mForcedMode); in dump()
183 proto.write(SilentModeHandlerProto.FORCED_SILENT_MODE, mForcedMode); in dumpProto()
236 if (!mForcedMode) { in switchToForcedMode()
238 mForcedMode = true; in switchToForcedMode()
258 if (mForcedMode) { in switchToNonForcedMode()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarNightService.java65 private int mForcedMode = FORCED_SENSOR_MODE; field in CarNightService
132 if (mUiModeManager != null && (mForcedMode == FORCED_SENSOR_MODE)) { in setNightModeLocked()
168 mForcedMode = FORCED_SENSOR_MODE; in forceDayNightModeInternal()
172 mForcedMode = FORCED_DAY_MODE; in forceDayNightModeInternal()
176 mForcedMode = FORCED_NIGHT_MODE; in forceDayNightModeInternal()
206 mForcedMode = getForcedDayNightModeSetting(); in init()
207 if (mForcedMode != FORCED_SENSOR_MODE) { in init()
210 forceDayNightModeInternal(mForcedMode); in init()
239 writer.println("Forced Mode? " + (mForcedMode == FORCED_SENSOR_MODE in dump()
241 : (mForcedMode == FORCED_DAY_MODE ? "day" : "night"))); in dump()
/packages/services/Car/cpp/powerpolicy/server/src/
DSilentModeHandler.cpp109 mForcedMode = false; in init()
111 mForcedMode = true; in init()
114 mForcedMode = true; in init()
117 forcedMode = mForcedMode; in init()
182 mForcedMode ? "true" : "false"), in dump()
288 if (!mForcedMode) { in switchToForcedMode()
290 mForcedMode = true; in switchToForcedMode()
309 if (mForcedMode) { in switchToNonForcedMode()
312 mForcedMode = false; in switchToNonForcedMode()
DSilentModeHandler.h86 bool mForcedMode GUARDED_BY(mMutex) = false;