Home
last modified time | relevance | path

Searched refs:UiModeManager (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/
DUiModeManagerService.java21 import static android.app.UiModeManager.ContrastUtils.CONTRAST_DEFAULT_VALUE;
22 import static android.app.UiModeManager.DEFAULT_PRIORITY;
23 import static android.app.UiModeManager.MODE_ATTENTION_THEME_OVERLAY_OFF;
24 import static android.app.UiModeManager.MODE_NIGHT_AUTO;
25 import static android.app.UiModeManager.MODE_NIGHT_CUSTOM;
26 import static android.app.UiModeManager.MODE_NIGHT_CUSTOM_TYPE_BEDTIME;
27 import static android.app.UiModeManager.MODE_NIGHT_CUSTOM_TYPE_SCHEDULE;
28 import static android.app.UiModeManager.MODE_NIGHT_CUSTOM_TYPE_UNKNOWN;
29 import static android.app.UiModeManager.MODE_NIGHT_NO;
30 import static android.app.UiModeManager.MODE_NIGHT_YES;
[all …]
/frameworks/base/core/java/com/android/internal/app/
DDisableCarModeActivity.java21 import android.app.UiModeManager;
36 uiModeManager.disableCarModeByCallingPackage(UiModeManager.DISABLE_CAR_MODE_GO_HOME in onCreate()
37 | UiModeManager.DISABLE_CAR_MODE_ALL_PRIORITIES, in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DUiModeNightTile.java19 import android.app.UiModeManager;
67 private final UiModeManager mUiModeManager;
88 mUiModeManager = host.getUserContext().getSystemService(UiModeManager.class); in UiModeNightTile()
129 } else if (uiMode == UiModeManager.MODE_NIGHT_AUTO in handleUpdateState()
134 } else if (uiMode == UiModeManager.MODE_NIGHT_CUSTOM) { in handleUpdateState()
136 if (nightModeCustomType == UiModeManager.MODE_NIGHT_CUSTOM_TYPE_SCHEDULE) { in handleUpdateState()
149 } else if (nightModeCustomType == UiModeManager.MODE_NIGHT_CUSTOM_TYPE_BEDTIME) { in handleUpdateState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileMapper.kt19 import android.app.UiModeManager
55 } else if (uiMode == UiModeManager.MODE_NIGHT_AUTO && isLocationEnabled) { in map()
62 } else if (uiMode == UiModeManager.MODE_NIGHT_CUSTOM) { in map()
63 if (nightModeCustomType == UiModeManager.MODE_NIGHT_CUSTOM_TYPE_SCHEDULE) { in map()
82 nightModeCustomType == UiModeManager.MODE_NIGHT_CUSTOM_TYPE_BEDTIME in map()
/frameworks/base/services/core/java/com/android/server/notification/
DDefaultDeviceEffectsApplier.java19 import static android.app.UiModeManager.MODE_ATTENTION_THEME_OVERLAY_NIGHT;
20 import static android.app.UiModeManager.MODE_ATTENTION_THEME_OVERLAY_OFF;
22 import android.app.UiModeManager;
54 private final UiModeManager mUiModeManager;
68 mUiModeManager = context.getSystemService(UiModeManager.class); in DefaultDeviceEffectsApplier()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/
DUiModeNightTileTest.kt19 import android.app.UiModeManager
56 @Mock private lateinit var uiModeManager: UiModeManager
78 mContext.addMockSystemService(UiModeManager::class.java, uiModeManager) in setUp()
131 `when`(uiModeManager.nightMode).thenReturn(UiModeManager.MODE_NIGHT_YES) in setNightModeOn()
136 `when`(uiModeManager.nightMode).thenReturn(UiModeManager.MODE_NIGHT_NO) in setNightModeOff()
/frameworks/layoutlib/bridge/src/android/app/
DUiModeManager_Accessor.java24 public static UiModeManager getUiModeManagerInstance(@NonNull Context context) { in getUiModeManagerInstance()
26 return new UiModeManager(context); in getUiModeManagerInstance()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/
DUiModeNightTileMapperTest.kt19 import android.app.UiModeManager
315 uiMode = UiModeManager.MODE_NIGHT_AUTO in secondaryLabelCorrectWhenInNightModeNotInPowerSaveModeLocationEnabledUiModeIsNightAuto()
343 uiMode = UiModeManager.MODE_NIGHT_AUTO in secondaryLabelCorrectWhenNotInNightModeNotInPowerSaveModeLocationEnableUiModeIsNightAuto()
367 createModel(nightMode = true, powerSave = false, uiMode = UiModeManager.MODE_NIGHT_YES) in secondaryLabelCorrectWhenNotInPowerSaveAndUiModeIsNightYesInNightMode()
390 createModel(nightMode = false, powerSave = false, uiMode = UiModeManager.MODE_NIGHT_NO) in secondaryLabelCorrectWhenNotInPowerSaveAndUiModeIsNightNoNotInNightMode()
415 uiMode = UiModeManager.MODE_NIGHT_CUSTOM, in secondaryLabelCorrectWhenNotInPowerSaveAndUiModeIsUnknownCustomNotInNightMode()
416 nighModeCustomType = UiModeManager.MODE_NIGHT_CUSTOM_TYPE_UNKNOWN in secondaryLabelCorrectWhenNotInPowerSaveAndUiModeIsUnknownCustomNotInNightMode()
442 uiMode = UiModeManager.MODE_NIGHT_CUSTOM, in secondaryLabelCorrectWhenNotInPowerSaveAndUiModeIsUnknownCustomInNightMode()
443 nighModeCustomType = UiModeManager.MODE_NIGHT_CUSTOM_TYPE_UNKNOWN in secondaryLabelCorrectWhenNotInPowerSaveAndUiModeIsUnknownCustomInNightMode()
469 uiMode = UiModeManager.MODE_NIGHT_CUSTOM, in secondaryLabelCorrectWhenInPowerSaveAndUiModeIsUnknownCustomNotInNightMode()
[all …]
DUiModeNightTileUserActionInteractorTest.kt19 import android.app.UiModeManager
51 @Mock private lateinit var uiModeManager: UiModeManager
55 uiModeManager = mock<UiModeManager>() in setup()
DUiModeNightTileDataInteractorTest.kt19 import android.app.UiModeManager
64 @Mock private lateinit var uiModeManager: UiModeManager
69 uiModeManager = mock<UiModeManager>() in setup()
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/controllers/idle/
DDeviceIdlenessTracker.java19 import static android.app.UiModeManager.PROJECTION_TYPE_NONE;
27 import android.app.UiModeManager;
91 private final UiModeManager.OnProjectionStateChangedListener mOnProjectionStateChangedListener =
142 context.getSystemService(UiModeManager.class).addOnProjectionStateChangedListener( in startTracking()
143 UiModeManager.PROJECTION_TYPE_ALL, AppSchedulingModuleThread.getExecutor(), in startTracking()
187 private void onProjectionStateChanged(@UiModeManager.ProjectionType int activeProjectionTypes, in onProjectionStateChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewTest.java19 import static android.app.UiModeManager.MODE_NIGHT_YES;
28 import android.app.UiModeManager;
62 private UiModeManager mUiModeManager;
77 mUiModeManager = mContext.getSystemService(UiModeManager.class); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/impl/uimodenight/domain/interactor/
DUiModeNightTileUserActionInteractor.kt19 import android.app.UiModeManager
37 private val uiModeManager: UiModeManager,
DUiModeNightTileDataInteractor.kt19 import android.app.UiModeManager
43 private val uiModeManager: UiModeManager,
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DDefaultDeviceEffectsApplierTest.java19 import static android.app.UiModeManager.MODE_ATTENTION_THEME_OVERLAY_NIGHT;
20 import static android.app.UiModeManager.MODE_ATTENTION_THEME_OVERLAY_OFF;
42 import android.app.UiModeManager;
78 @Mock UiModeManager mUiModeManager;
108 mContext.addMockSystemService(UiModeManager.class, mUiModeManager); in setUp()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDeviceStateMonitor.java19 import static android.app.UiModeManager.PROJECTION_TYPE_AUTOMOTIVE;
26 import android.app.UiModeManager;
321 UiModeManager umm = (UiModeManager) phone.getContext().getSystemService( in DeviceStateMonitor()
765 final UiModeManager umm = (UiModeManager) mPhone.getContext().getSystemService( in isAutomotiveProjectionActive()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/
DUiModeManagerServiceTest.java20 import static android.app.UiModeManager.MODE_ATTENTION_THEME_OVERLAY_DAY;
21 import static android.app.UiModeManager.MODE_ATTENTION_THEME_OVERLAY_NIGHT;
22 import static android.app.UiModeManager.MODE_ATTENTION_THEME_OVERLAY_OFF;
23 import static android.app.UiModeManager.MODE_NIGHT_AUTO;
24 import static android.app.UiModeManager.MODE_NIGHT_CUSTOM;
25 import static android.app.UiModeManager.MODE_NIGHT_CUSTOM_TYPE_BEDTIME;
26 import static android.app.UiModeManager.MODE_NIGHT_CUSTOM_TYPE_SCHEDULE;
27 import static android.app.UiModeManager.MODE_NIGHT_CUSTOM_TYPE_UNKNOWN;
28 import static android.app.UiModeManager.MODE_NIGHT_NO;
29 import static android.app.UiModeManager.MODE_NIGHT_YES;
[all …]
/frameworks/base/tests/Compatibility/src/com/android/compatibilitytest/
DAppCompatibility.java26 import android.app.UiModeManager;
247 UiModeManager umm = (UiModeManager) mContext.getSystemService(Context.UI_MODE_SERVICE); in getLaunchIntentForPackage()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/idle/
DDeviceIdlenessTrackerTest.java40 import android.app.UiModeManager;
104 when(mContext.getSystemService(UiModeManager.class)).thenReturn(mock(UiModeManager.class)); in setUp()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySaverPolicy.java19 import android.app.UiModeManager;
241 private final UiModeManager.OnProjectionStateChangedListener mOnProjectionStateChangedListener =
300 UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in systemReady()
301 uiModeManager.addOnProjectionStateChangedListener(UiModeManager.PROJECTION_TYPE_AUTOMOTIVE, in systemReady()
304 uiModeManager.getActiveProjectionTypes() != UiModeManager.PROJECTION_TYPE_NONE); in systemReady()
/frameworks/base/core/java/android/app/
DSearchManager.java631 final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in startSearch()
DUiModeManager.java83 public class UiModeManager { class
523 /*package*/ UiModeManager() throws ServiceNotFoundException { in UiModeManager() method in UiModeManager
527 /*package*/ UiModeManager(Context context) throws ServiceNotFoundException { in UiModeManager() method in UiModeManager
/frameworks/base/core/tests/coretests/src/android/view/
DViewRootImplTest.java63 import android.app.UiModeManager;
160 var uiModeManager = sContext.getSystemService(UiModeManager.class); in teardown()
161 uiModeManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in teardown()
1378 var uiModeManager = sContext.getSystemService(UiModeManager.class); in forceInvertOffDarkThemeOff_forceDarkModeDisabled()
1379 uiModeManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in forceInvertOffDarkThemeOff_forceDarkModeDisabled()
1398 var uiModeManager = sContext.getSystemService(UiModeManager.class); in forceInvertOnDarkThemeOff_forceDarkModeEnabled()
1399 uiModeManager.setNightMode(UiModeManager.MODE_NIGHT_NO); in forceInvertOnDarkThemeOff_forceDarkModeEnabled()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DDeviceStateMonitorTest.java40 import android.app.UiModeManager;
149 UiModeManager mUiModeManager;
183 mUiModeManager = mock(UiModeManager.class); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DFrameworkServicesModule.java34 import android.app.UiModeManager;
529 static UiModeManager provideUiModeManager(Context context) { in provideUiModeManager()
530 return context.getSystemService(UiModeManager.class); in provideUiModeManager()

12