Home
last modified time | relevance | path

Searched refs:getOrCreateTestableResources (Results 1 – 25 of 78) sorted by relevance

1234

/frameworks/base/tests/testables/tests/src/android/testing/
DTestableResourcesTest.java58 mContext.getOrCreateTestableResources().addOverride(nonExistentId, 0xffffff); in testAddingResource()
67 mContext.getOrCreateTestableResources().addOverride(nonExistentId, 0xffffff); in testClearingResource()
69 mContext.getOrCreateTestableResources().removeOverride(nonExistentId); in testClearingResource()
82 mContext.getOrCreateTestableResources().addOverride(existentId, "Other strings"); in testOverrideExisting()
92 mContext.getOrCreateTestableResources().addOverride(existentId, null); in testNonExistentException()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/carrier/
DShadeCarrierTest.java132 mContext.getOrCreateTestableResources().addOverride(R.integer.shade_carrier_max_em, maxEms); in testCarrierNameMaxWidth_smallScreen_fromResource()
133 mContext.getOrCreateTestableResources() in testCarrierNameMaxWidth_smallScreen_fromResource()
145 mContext.getOrCreateTestableResources().addOverride(R.integer.shade_carrier_max_em, maxEms); in testCarrierNameMaxWidth_largeScreen_maxInt()
146 mContext.getOrCreateTestableResources() in testCarrierNameMaxWidth_largeScreen_maxInt()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/clipboardoverlay/
DIntentCreatorTest.java53 getContext().getOrCreateTestableResources().addOverride(R.string.config_remoteCopyPackage, in test_getRemoteCopyIntent()
66 getContext().getOrCreateTestableResources().addOverride(R.string.config_remoteCopyPackage, in test_getRemoteCopyIntent()
75 getContext().getOrCreateTestableResources().addOverride(R.string.config_screenshotEditor, in test_getImageEditIntent()
89 getContext().getOrCreateTestableResources().addOverride(R.string.config_screenshotEditor, in test_getImageEditIntent()
DClipboardOverlayUtilsTest.java151 TestableResources res = mContext.getOrCreateTestableResources(); in test_extra_withPackage_returnsTrue()
162 TestableResources res = mContext.getOrCreateTestableResources(); in test_noExtra_returnsFalse()
175 TestableResources res = mContext.getOrCreateTestableResources(); in test_falseExtra_returnsFalse()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/battery/
DBatteryMeterViewControllerTest.java78 mContext.getOrCreateTestableResources().addOverride( in setup()
138 mContext.getOrCreateTestableResources().addOverride( in shieldFlagDisabled_viewNotified()
148 mContext.getOrCreateTestableResources().addOverride( in shieldFlagEnabled_viewNotified()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorationTests.java230 final int systemDensity = mTestableContext.getOrCreateTestableResources().getResources() in updateRelayoutParams_appHeader_usesTaskDensity()
252 final int systemDensity = mTestableContext.getOrCreateTestableResources().getResources() in updateRelayoutParams_appHeader_usesSystemDensity()
465 mTestableContext.getOrCreateTestableResources().addOverride( in fillRoundedCornersResources()
467 mTestableContext.getOrCreateTestableResources().addOverride( in fillRoundedCornersResources()
469 mTestableContext.getOrCreateTestableResources().addOverride( in fillRoundedCornersResources()
471 mTestableContext.getOrCreateTestableResources().addOverride( in fillRoundedCornersResources()
473 mTestableContext.getOrCreateTestableResources().addOverride( in fillRoundedCornersResources()
475 mTestableContext.getOrCreateTestableResources().addOverride( in fillRoundedCornersResources()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileQueryHelperTest.java183 mContext.getOrCreateTestableResources().addOverride(R.string.quick_settings_tiles_stock, in testQueryTiles_correctTilesAndOrderOnlyStockTiles()
203 mContext.getOrCreateTestableResources().addOverride(R.string.quick_settings_tiles_stock, in testQueryTiles_correctTilesAndOrderOtherFactoryTiles()
223 mContext.getOrCreateTestableResources().addOverride(R.string.quick_settings_tiles_stock, in testQueryTiles_otherTileNotIncluded()
263 mContext.getOrCreateTestableResources().addOverride(R.string.quick_settings_tiles_stock, in testThirdPartyTilesInactive()
278 mContext.getOrCreateTestableResources().addOverride(R.string.quick_settings_tiles_stock, in testQueryTiles_nullSetting()
293 mContext.getOrCreateTestableResources().addOverride(R.string.quick_settings_tiles_stock, in testQueryTiles_notAvailableDestroyed_tileSpecIsSet()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/hidedisplaycutout/
DHideDisplayCutoutControllerTest.java89 mContext.getOrCreateTestableResources().addOverride( in testToggleHideDisplayCutout_On()
99 mContext.getOrCreateTestableResources().addOverride( in testToggleHideDisplayCutout_Off()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSTileHostTest.java234 mContext.getOrCreateTestableResources() in testInvalidSpecUsesDefault()
287 mContext.getOrCreateTestableResources() in testSpecWithInvalidDoesNotUseDefault()
321 mContext.getOrCreateTestableResources() in testDefault()
332 mContext.getOrCreateTestableResources() in testNoRepeatedSpecs_addTile()
345 mContext.getOrCreateTestableResources() in testAddTileAtValidPosition()
360 mContext.getOrCreateTestableResources() in testAddTileAtInvalidPositionAddsToEnd()
375 mContext.getOrCreateTestableResources() in testAddTileAtEnd()
443 mContext.getOrCreateTestableResources() in testLoadTileSpec_repeatedInDefault()
450 mContext.getOrCreateTestableResources() in testLoadTileSpec_repeatedDefaultAndSetting()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DSystemZenRulesTest.java67 mContext.getOrCreateTestableResources().overrideConfiguration(config); in setUp()
68 mContext.getOrCreateTestableResources().addOverride( in setUp()
70 mContext.getOrCreateTestableResources().addOverride( in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorationsTest.java1505 mContext.getOrCreateTestableResources().addOverride( in setupResources()
1508 mContext.getOrCreateTestableResources().addOverride( in setupResources()
1511 mContext.getOrCreateTestableResources().addOverride( in setupResources()
1514 mContext.getOrCreateTestableResources().addOverride( in setupResources()
1517 mContext.getOrCreateTestableResources().addOverride( in setupResources()
1520 mContext.getOrCreateTestableResources().addOverride( in setupResources()
1523 mContext.getOrCreateTestableResources().addOverride( in setupResources()
1526 mContext.getOrCreateTestableResources().addOverride( in setupResources()
1528 mContext.getOrCreateTestableResources().addOverride( in setupResources()
1530 mContext.getOrCreateTestableResources().addOverride( in setupResources()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DHotspotControllerImplTest.java105 mContext.getOrCreateTestableResources() in setUp()
192 mContext.getOrCreateTestableResources() in testHotspotSupported_resource_false()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipBoundsAlgorithmTest.java91 final TestableResources res = mContext.getOrCreateTestableResources(); in initializeMockResources()
130 final TestableResources res = mContext.getOrCreateTestableResources(); in onConfigurationChanged_reloadResources()
485 final TestableResources res = mContext.getOrCreateTestableResources(); in overrideDefaultAspectRatio()
493 final TestableResources res = mContext.getOrCreateTestableResources(); in overrideDefaultStackGravity()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DPinnerServiceTest.java111 TestableResources resources = mContext.getOrCreateTestableResources(); in setUp()
244 mContext.getOrCreateTestableResources() in testPinHomeApp()
268 mContext.getOrCreateTestableResources() in testPinHomeAppOnBootCompleted()
DDockObserverTest.java62 mContext.getOrCreateTestableResources().addOverride( in observerWithMappingConfig()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessMappingStrategyTest.java521 mContext.getOrCreateTestableResources().addOverride( in setUpResources()
527 mContext.getOrCreateTestableResources().addOverride( in setUpResources()
531 mContext.getOrCreateTestableResources().addOverride( in setUpResources()
533 mContext.getOrCreateTestableResources().addOverride( in setUpResources()
535 mContext.getOrCreateTestableResources().addOverride( in setUpResources()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DLockscreenShadeTransitionControllerTest.kt119 .getOrCreateTestableResources() in setup()
122 .getOrCreateTestableResources() in setup()
354 .getOrCreateTestableResources() in testDragDownAmount_depthDistanceIsZero_setsProgressToZero()
366 .getOrCreateTestableResources() in testDragDownAmount_depthDistanceNonZero_setsProgressBasedOnDistance()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java141 mContext.getOrCreateTestableResources().addOverride( in setUp()
148 mContext.getOrCreateTestableResources().addOverride( in setUp()
150 mContext.getOrCreateTestableResources().addOverride( in setUp()
614 mContext.getOrCreateTestableResources().addOverride( in testEmptyArray_doesNotCrash()
621 mContext.getOrCreateTestableResources().addOverride( in testMissingConfig_doesNotCrash()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/quickaffordance/
DKeyguardQuickAffordanceLocalUserSelectionManagerTest.kt92 .getOrCreateTestableResources() in tearDown()
95 .getOrCreateTestableResources() in tearDown()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qrcodescanner/controller/
DQRCodeScannerControllerTest.java91 mContext.getOrCreateTestableResources().addOverride( in setUpLocal()
94 mContext.getOrCreateTestableResources().addOverride( in setUpLocal()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesDialogDelegateTest.java201 mContext.getOrCreateTestableResources().addOverride( in showDialog_hasLiveCaption_noRelatedToolsInConfig_showOneRelatedTool()
218 mContext.getOrCreateTestableResources().addOverride( in showDialog_hasLiveCaption_oneRelatedToolInConfig_showTwoRelatedTools()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java186 TestableResources resources = mContext.getOrCreateTestableResources(); in testSettingOverrideConfig_enableSkinTemperatureWarning()
199 TestableResources resources = mContext.getOrCreateTestableResources(); in testSettingOverrideConfig_enableUsbTemperatureAlarm()
212 TestableResources resources = mContext.getOrCreateTestableResources(); in testSettingOverrideConfig_disableSkinTemperatureWarning()
225 TestableResources resources = mContext.getOrCreateTestableResources(); in testSettingOverrideConfig_disableUsbTemperatureAlarm()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/face/aidl/
DFaceEnrollClientTest.java132 mContext.getOrCreateTestableResources().addOverride(R.string.face_error_hw_not_available, in setup()
134 mContext.getOrCreateTestableResources().addOverride(R.string.face_acquired_too_dark, in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationSnoozeTest.java56 TestableResources resources = mContext.getOrCreateTestableResources(); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/domain/interactor/
DBurnInInteractorTest.kt66 .getOrCreateTestableResources() in setUp()

1234