Home
last modified time | relevance | path

Searched refs:addOverride (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorationsTest.java100 mContext.getOrCreateTestableResources().addOverride( in testNoRounding_NoCutout()
102 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius, 0); in testNoRounding_NoCutout()
103 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius_top, 0); in testNoRounding_NoCutout()
104 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius_bottom, 0); in testNoRounding_NoCutout()
106 .addOverride(dimen.rounded_corner_content_padding, 0); in testNoRounding_NoCutout()
119 mContext.getOrCreateTestableResources().addOverride( in testRounding()
121 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius, 20); in testRounding()
123 .addOverride(dimen.rounded_corner_content_padding, 20); in testRounding()
139 mContext.getOrCreateTestableResources().addOverride( in testCutout()
141 mContext.getOrCreateTestableResources().addOverride(dimen.rounded_corner_radius, 0); in testCutout()
[all …]
/frameworks/base/tests/testables/tests/src/android/testing/
DTestableResourcesTest.java57 mContext.getOrCreateTestableResources().addOverride(nonExistentId, 0xffffff); in testAddingResource()
66 mContext.getOrCreateTestableResources().addOverride(nonExistentId, 0xffffff); in testClearingResource()
81 mContext.getOrCreateTestableResources().addOverride(existentId, "Other strings"); in testOverrideExisting()
91 mContext.getOrCreateTestableResources().addOverride(existentId, null); in testNonExistentException()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java94 resources.addOverride(R.integer.config_showTemperatureWarning, 0); in testNoConfig_NoWarnings()
95 resources.addOverride(R.integer.config_warningTemperature, 55); in testNoConfig_NoWarnings()
106 resources.addOverride(R.integer.config_showTemperatureWarning, 1); in testConfig_NoWarnings()
107 resources.addOverride(R.integer.config_warningTemperature, 55); in testConfig_NoWarnings()
118 resources.addOverride(R.integer.config_showTemperatureWarning, 1); in testConfig_Warnings()
119 resources.addOverride(R.integer.config_warningTemperature, 55); in testConfig_Warnings()
130 resources.addOverride(R.integer.config_showTemperatureWarning, 0); in testSettingOverrideConfig()
131 resources.addOverride(R.integer.config_warningTemperature, 55); in testSettingOverrideConfig()
142 resources.addOverride(R.integer.config_showTemperatureWarning, 1); in testShutdownBasedThreshold()
143 resources.addOverride(R.integer.config_warningTemperature, -1); in testShutdownBasedThreshold()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/
DPhoneWindowManagerTestBase.java81 mContext.getResourceMocker().addOverride( in setUpBase()
83 mContext.getResourceMocker().addOverride( in setUpBase()
85 mContext.getResourceMocker().addOverride( in setUpBase()
87 mContext.getResourceMocker().addOverride( in setUpBase()
89 mContext.getResourceMocker().addOverride( in setUpBase()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSmartReplyConstantsTest.java51 resources.addOverride(R.bool.config_smart_replies_in_notifications_enabled, true); in setUp()
52 resources.addOverride( in setUp()
DIconLoggerImplTest.java71 mContext.getOrCreateTestableResources().addOverride( in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DNotificationSnoozeTest.java58 resources.addOverride(R.integer.config_notification_snooze_time_default, RES_DEFAULT); in setUp()
59 resources.addOverride(R.array.config_notification_snooze_times, RES_OPTIONS); in setUp()
/frameworks/base/tests/testables/src/android/testing/
DTestableResources.java66 public void addOverride(int id, Object value) { in addOverride() method in TestableResources