Home
last modified time | relevance | path

Searched refs:LIGHT (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/common/
DThemeUtils.kt30 internal enum class Theme { LIGHT, DARK }
33 internal fun Theme.isLight(): Boolean = this == Theme.LIGHT in isLight()
69 Theme.LIGHT in isLight()
82 Theme.LIGHT in isLight()
91 Theme.LIGHT -> lightColors in isLight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusOverlayHoverListener.kt58 flowOf(HoverTheme.LIGHT), in createListener()
84 return if (calculatedTint == Color.WHITE) HoverTheme.LIGHT else HoverTheme.DARK in toHoverTheme()
93 LIGHT,
112 private var lastTheme = HoverTheme.LIGHT
115 get() = if (lastTheme == HoverTheme.LIGHT) lightColor else darkColor
Dtouch_analytics.proto64 LIGHT = 5; enumerator
/frameworks/native/services/vibratorservice/test/
DVibratorHalWrapperHidlV1_2Test.cpp82 perform(Eq(V1_0::Effect::CLICK), Eq(V1_0::EffectStrength::LIGHT), _)) in TEST_F()
96 auto result = mWrapper->performEffect(Effect::CLICK, EffectStrength::LIGHT, callback); in TEST_F()
107 perform_1_1(Eq(V1_1::Effect_1_1::TICK), Eq(V1_0::EffectStrength::LIGHT), _)) in TEST_F()
121 auto result = mWrapper->performEffect(Effect::TICK, EffectStrength::LIGHT, callback); in TEST_F()
132 perform_1_2(Eq(V1_2::Effect::THUD), Eq(V1_0::EffectStrength::LIGHT), _)) in TEST_F()
166 auto result = mWrapper->performEffect(Effect::THUD, EffectStrength::LIGHT, callback); in TEST_F()
188 auto result = mWrapper->performEffect(Effect::TEXTURE_TICK, EffectStrength::LIGHT, callback); in TEST_F()
DVibratorHalWrapperHidlV1_1Test.cpp79 perform(Eq(V1_0::Effect::CLICK), Eq(V1_0::EffectStrength::LIGHT), _)) in TEST_F()
93 auto result = mWrapper->performEffect(Effect::CLICK, EffectStrength::LIGHT, callback); in TEST_F()
104 perform_1_1(Eq(V1_1::Effect_1_1::TICK), Eq(V1_0::EffectStrength::LIGHT), _)) in TEST_F()
139 auto result = mWrapper->performEffect(Effect::TICK, EffectStrength::LIGHT, callback); in TEST_F()
161 auto result = mWrapper->performEffect(Effect::THUD, EffectStrength::LIGHT, callback); in TEST_F()
DVibratorHalWrapperHidlV1_3Test.cpp253 perform(Eq(V1_0::Effect::CLICK), Eq(V1_0::EffectStrength::LIGHT), _)) in TEST_F()
267 auto result = mWrapper->performEffect(Effect::CLICK, EffectStrength::LIGHT, callback); in TEST_F()
278 perform_1_1(Eq(V1_1::Effect_1_1::TICK), Eq(V1_0::EffectStrength::LIGHT), _)) in TEST_F()
292 auto result = mWrapper->performEffect(Effect::TICK, EffectStrength::LIGHT, callback); in TEST_F()
303 perform_1_2(Eq(V1_2::Effect::THUD), Eq(V1_0::EffectStrength::LIGHT), _)) in TEST_F()
317 auto result = mWrapper->performEffect(Effect::THUD, EffectStrength::LIGHT, callback); in TEST_F()
328 perform_1_3(Eq(V1_3::Effect::TEXTURE_TICK), Eq(V1_0::EffectStrength::LIGHT), _)) in TEST_F()
364 auto result = mWrapper->performEffect(Effect::TEXTURE_TICK, EffectStrength::LIGHT, callback); in TEST_F()
DVibratorHalWrapperHidlV1_0Test.cpp186 ASSERT_TRUE(mWrapper->alwaysOnEnable(1, Effect::CLICK, EffectStrength::LIGHT).isUnsupported()); in TEST_F()
257 perform(Eq(V1_0::Effect::CLICK), Eq(V1_0::EffectStrength::LIGHT), _)) in TEST_F()
291 auto result = mWrapper->performEffect(Effect::CLICK, EffectStrength::LIGHT, callback); in TEST_F()
313 auto result = mWrapper->performEffect(Effect::TICK, EffectStrength::LIGHT, callback); in TEST_F()
DVibratorHalWrapperAidlTest.cpp261 alwaysOnEnable(Eq(1), Eq(Effect::CLICK), Eq(EffectStrength::LIGHT))) in TEST_F()
273 auto result = mWrapper->alwaysOnEnable(1, Effect::CLICK, EffectStrength::LIGHT); in TEST_F()
492 EXPECT_CALL(*mMockHal.get(), perform(Eq(Effect::CLICK), Eq(EffectStrength::LIGHT), _, _)) in TEST_F()
507 auto result = mWrapper->performEffect(Effect::CLICK, EffectStrength::LIGHT, callback); in TEST_F()
530 EXPECT_CALL(*mMockHal.get(), perform(Eq(Effect::CLICK), Eq(EffectStrength::LIGHT), _, _)) in TEST_F()
548 auto result = mWrapper->performEffect(Effect::CLICK, EffectStrength::LIGHT, callback); in TEST_F()
/frameworks/minikin/tests/unittest/
DFontFamilyTest.cpp790 constexpr FontStyle::Weight LIGHT = FontStyle::Weight::LIGHT; in TEST_F() local
808 FontStyle(LIGHT, UPRIGHT), // 1 in TEST_F()
814 FontStyle(LIGHT, ITALIC), // 7 in TEST_F()
829 {FontStyle(BOLD), {FontStyle(LIGHT), FontStyle(BOLD)}, 1}, in TEST_F()
830 {FontStyle(LIGHT), {FontStyle(NORMAL), FontStyle(LIGHT)}, 1}, in TEST_F()
831 {FontStyle(LIGHT), {FontStyle(BOLD), FontStyle(LIGHT)}, 1}, in TEST_F()
832 {FontStyle(NORMAL), {FontStyle(NORMAL), FontStyle(LIGHT)}, 0}, in TEST_F()
834 {FontStyle(LIGHT), {FontStyle(LIGHT), FontStyle(NORMAL), FontStyle(BOLD)}, 0}, in TEST_F()
835 {FontStyle(NORMAL), {FontStyle(LIGHT), FontStyle(NORMAL), FontStyle(BOLD)}, 1}, in TEST_F()
836 {FontStyle(BOLD), {FontStyle(LIGHT), FontStyle(NORMAL), FontStyle(BOLD)}, 2}, in TEST_F()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/regionsampling/
DRegionDarkness.kt9 LIGHT(false)
DRegionSampler.kt108 RegionDarkness.LIGHT in getRegionDarkness()
/frameworks/native/cmds/idlcli/vibrator/
DCommandPerform.cpp35 static_assert(static_cast<uint8_t>(V1_0::EffectStrength::LIGHT) ==
36 static_cast<uint8_t>(aidl::EffectStrength::LIGHT));
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java84 int LIGHT = 1; field
472 DozeState.LIGHT, "Light ");
474 DozeState.LIGHT, " ");
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/
DTheme.java37 public static final int LIGHT = -3; field in Theme
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySavingStatsTest.java168 DozeState.LIGHT, in checkAll()
302 DozeState.LIGHT, in testMetricsLogger()
/frameworks/minikin/include/minikin/
DFontStyle.h32 LIGHT = 300, enumerator
/frameworks/native/services/sensorservice/
DSensorDeviceUtils.cpp49 case SensorTypeV2_1::LIGHT: in quantizeSensorEventValues()
/frameworks/base/core/java/android/os/
DTemperature.java60 public static final int THROTTLING_LIGHT = ThrottlingSeverity.LIGHT;
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/viewholder/
DAppHeaderViewHolder.kt261 Theme.LIGHT -> { in getHeaderBackground()
285 Theme.LIGHT -> { in getHeaderForeground()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/regionsampling/
DRegionSamplerTest.kt176 assertThat(regionSampler.currentRegionDarkness()).isEqualTo(RegionDarkness.LIGHT) in testRegionDarkness()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/player/platform/
DRemoteComposeCanvas.java41 int mTheme = Theme.LIGHT;
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationScaler.java273 return EffectStrength.LIGHT; in intensityToEffectStrength()
/frameworks/base/services/core/jni/
Dcom_android_server_vibrator_VibratorController.cpp69 static_assert(static_cast<uint8_t>(V1_0::EffectStrength::LIGHT) ==
70 static_cast<uint8_t>(aidl::EffectStrength::LIGHT));
/frameworks/native/include/input/
DInputDevice.h95 LIGHT = ASENSOR_TYPE_LIGHT, enumerator
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DThermalManagerServiceTest.java439 watcher.updateHeadroomThreshold(ThrottlingSeverity.LIGHT, 40, 49); in testTemperatureWatcherUpdateHeadroomThreshold()
451 watcher.updateHeadroomThreshold(ThrottlingSeverity.LIGHT, 37, 52); in testTemperatureWatcherUpdateHeadroomThreshold()

12