/frameworks/base/services/core/java/com/android/server/ |
D | UiModeManagerService.java | 21 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/ |
D | DisableCarModeActivity.java | 21 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/ |
D | UiModeNightTile.java | 19 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/ |
D | UiModeNightTileMapper.kt | 19 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/ |
D | DefaultDeviceEffectsApplier.java | 19 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/ |
D | UiModeNightTileTest.kt | 19 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/ |
D | UiModeManager_Accessor.java | 24 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/ |
D | UiModeNightTileMapperTest.kt | 19 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 …]
|
D | UiModeNightTileUserActionInteractorTest.kt | 19 import android.app.UiModeManager 51 @Mock private lateinit var uiModeManager: UiModeManager 55 uiModeManager = mock<UiModeManager>() in setup()
|
D | UiModeNightTileDataInteractorTest.kt | 19 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/ |
D | DeviceIdlenessTracker.java | 19 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/ |
D | MenuViewTest.java | 19 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/ |
D | UiModeNightTileUserActionInteractor.kt | 19 import android.app.UiModeManager 37 private val uiModeManager: UiModeManager,
|
D | UiModeNightTileDataInteractor.kt | 19 import android.app.UiModeManager 43 private val uiModeManager: UiModeManager,
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | DefaultDeviceEffectsApplierTest.java | 19 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/ |
D | DeviceStateMonitor.java | 19 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/ |
D | UiModeManagerServiceTest.java | 20 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/ |
D | AppCompatibility.java | 26 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/ |
D | DeviceIdlenessTrackerTest.java | 40 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/ |
D | BatterySaverPolicy.java | 19 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/ |
D | SearchManager.java | 631 final UiModeManager uiModeManager = mContext.getSystemService(UiModeManager.class); in startSearch()
|
D | UiModeManager.java | 83 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/ |
D | ViewRootImplTest.java | 63 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/ |
D | DeviceStateMonitorTest.java | 40 import android.app.UiModeManager; 149 UiModeManager mUiModeManager; 183 mUiModeManager = mock(UiModeManager.class); in setUp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/ |
D | FrameworkServicesModule.java | 34 import android.app.UiModeManager; 529 static UiModeManager provideUiModeManager(Context context) { in provideUiModeManager() 530 return context.getSystemService(UiModeManager.class); in provideUiModeManager()
|