Home
last modified time | relevance | path

Searched refs:uiModeManager (Results 1 – 21 of 21) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/system/
DUiModeManagerImpl.kt29 val uiModeManager = context.getSystemService(Context.UI_MODE_SERVICE) as UiModeManager? constant
34 uiModeManager?.addContrastChangeListener(executor, listener) in addContrastChangeListener()
38 uiModeManager?.removeContrastChangeListener(listener) in removeContrastChangeListener()
42 return uiModeManager?.contrast in getContrast()
46 uiModeManager?.setNightModeActivated(isActive) in setNightModeActivated()
/packages/apps/ThemePicker/src/com/android/customization/picker/settings/data/repository/
DColorContrastSectionRepository.kt35 uiModeManager: UiModeManagerWrapper, in <lambda>()
47 uiModeManager.getContrast()?.let { currentContrast -> trySend(currentContrast) } in <lambda>()
49 uiModeManager.addContrastChangeListener(executor, listener) in <lambda>()
53 uiModeManager.removeContrastChangeListener(listener) in <lambda>()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/settings/ui/viewmodel/
DColorContrastSectionViewModelTest.kt50 @Inject lateinit var uiModeManager: FakeUiModeManager variable in com.android.customization.model.picker.settings.ui.viewmodel.ColorContrastSectionViewModelTest
63 uiModeManager.setContrast(ColorContrastSectionViewModel.ContrastValue.STANDARD.value) in <lambda>()
77 uiModeManager.setContrast(ColorContrastSectionViewModel.ContrastValue.MEDIUM.value) in <lambda>()
91 uiModeManager.setContrast(ColorContrastSectionViewModel.ContrastValue.HIGH.value) in <lambda>()
105 uiModeManager.setContrast(999f) in <lambda>()
/packages/services/Telecomm/testapps/carmodedialer/src/com/android/server/telecom/carmodedialer/
DCarModeDialerActivity.java130 UiModeManager uiModeManager = (UiModeManager) getSystemService(UI_MODE_SERVICE); in enableCarMode() local
131 uiModeManager.enableCarMode(priority, 0); in enableCarMode()
137 UiModeManager uiModeManager = (UiModeManager) getSystemService(UI_MODE_SERVICE); in disableCarMode() local
138 uiModeManager.disableCarMode(0); in disableCarMode()
/packages/services/Telecomm/src/com/android/server/telecom/
DSystemStateHelper.java297 UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in getSystemCarModeOrProjectionState() local
299 if (uiModeManager != null) { in getSystemCarModeOrProjectionState()
300 return uiModeManager.getCurrentModeType() == Configuration.UI_MODE_TYPE_CAR in getSystemCarModeOrProjectionState()
301 || (uiModeManager.getActiveProjectionTypes() in getSystemCarModeOrProjectionState()
DTelecomServiceImpl.java2463 UiModeManager uiModeManager =
2465 uiModeManager.disableCarMode(UiModeManager.DISABLE_CAR_MODE_ALL_PRIORITIES);
/packages/apps/Car/SystemUI/src/com/android/systemui/car/notification/
DTopNotificationPanelViewMediator.java49 UiModeManager uiModeManager in TopNotificationPanelViewMediator() argument
59 uiModeManager); in TopNotificationPanelViewMediator()
DBottomNotificationPanelViewMediator.java49 UiModeManager uiModeManager in BottomNotificationPanelViewMediator() argument
59 uiModeManager); in BottomNotificationPanelViewMediator()
DNotificationPanelViewMediator.java102 UiModeManager uiModeManager in NotificationPanelViewMediator() argument
112 mUiModeManager = uiModeManager; in NotificationPanelViewMediator()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/settings/domain/interactor/
DColorContrastSectionInteractorTest.kt40 @Inject lateinit var uiModeManager: FakeUiModeManager variable in com.android.customization.model.picker.settings.domain.interactor.ColorContrastSectionInteractorTest
51 uiModeManager.setContrast(expectedContrast) in <lambda>()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestDialerActivity.java236 UiModeManager uiModeManager = (UiModeManager) getSystemService(UI_MODE_SERVICE); in enableCarMode() local
237 uiModeManager.enableCarMode(priority, 0); in enableCarMode()
243 UiModeManager uiModeManager = (UiModeManager) getSystemService(UI_MODE_SERVICE); in disableCarMode() local
244 uiModeManager.disableCarMode(0); in disableCarMode()
DSelfManagedCallingActivity.java285 UiModeManager uiModeManager = getSystemService(UiModeManager.class); in enableCarMode() local
286 uiModeManager.enableCarMode(0); in enableCarMode()
292 UiModeManager uiModeManager = getSystemService(UiModeManager.class); in disableCarMode() local
293 uiModeManager.disableCarMode(0); in disableCarMode()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/settings/data/repository/
DColorContrastSectionRepositoryTest.kt45 @Inject lateinit var uiModeManager: FakeUiModeManager variable in com.android.customization.model.picker.settings.data.repository.ColorContrastSectionRepositoryTest
73 nextContrastValues.forEach { uiModeManager.setContrast(it) } in contrastFlowEmitsValues()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/hvac/
DAutoDismissHvacPanelOverlayViewController.java70 UiModeManager uiModeManager) { in AutoDismissHvacPanelOverlayViewController() argument
73 uiModeManager); in AutoDismissHvacPanelOverlayViewController()
/packages/apps/ThemePicker/src/com/android/customization/model/mode/
DDarkModeSectionController.java71 UiModeManagerWrapper uiModeManager, in DarkModeSectionController() argument
78 mUiModeManager = uiModeManager; in DarkModeSectionController()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DHvacPanelOverlayViewController.java65 UiModeManager uiModeManager) { in HvacPanelOverlayViewController() argument
71 mUiModeManager = uiModeManager; in HvacPanelOverlayViewController()
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/systembar/
DSystemBarConfigsTest.java381 UiModeManager uiModeManager) { in TestTopNotificationPanelViewMediator() argument
384 carDeviceProvisionedController, configurationController, uiModeManager); in TestTopNotificationPanelViewMediator()
/packages/apps/ThemePicker/src/com/android/customization/picker/color/ui/fragment/
DColorPickerFragment.kt207 injector.uiModeManager.get(), in onCreateView()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/systembar/
DCarSystemBar.java858 void setUiModeManager(UiModeManager uiModeManager) { in setUiModeManager() argument
859 mUiModeManager = uiModeManager; in setUiModeManager()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DWallpaperPicker2Injector.kt102 @Inject lateinit var uiModeManager: Lazy<UiModeManagerWrapper> variable in com.android.wallpaper.module.WallpaperPicker2Injector
/packages/apps/ThemePicker/src/com/android/customization/module/
DThemePickerInjector.kt473 manager = uiModeManager.get(), in <lambda>()