Home
last modified time | relevance | path

Searched refs:testableResources (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/
DMinimumTilesResourceRepositoryTest.kt31 val testableResources = context.orCreateTestableResources constant in com.android.systemui.qs.pipeline.data.repository.MinimumTilesResourceRepositoryTest
36 testableResources.addOverride(R.integer.quick_settings_min_num_tiles, minTwo) in minimumQSTiles_followsConfig()
41 testableResources.addOverride(R.integer.quick_settings_min_num_tiles, minSix) in minimumQSTiles_followsConfig()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/keyguard/
DKeyguardSecurityContainerControllerTest.kt166 private lateinit var testableResources: TestableResources in <lambda>() variable in com.android.keyguard.KeyguardSecurityContainerControllerTest
181 testableResources = mContext.getOrCreateTestableResources() in <lambda>()
182 testableResources.resources.configuration.orientation = Configuration.ORIENTATION_UNDEFINED in <lambda>()
184 whenever(view.resources).thenReturn(testableResources.resources) in <lambda>()
338 testableResources.resources.configuration.orientation = Configuration.ORIENTATION_LANDSCAPE in <lambda>()
376 testableResources.addOverride(R.bool.can_use_one_handed_bouncer, false) in <lambda>()
392 testableResources.addOverride(R.bool.can_use_one_handed_bouncer, true) in <lambda>()
407 testableResources.addOverride(R.bool.can_use_one_handed_bouncer, true) in <lambda>()
422 testableResources.addOverride(R.bool.can_use_one_handed_bouncer, true) in <lambda>()
437 testableResources.addOverride(R.bool.can_use_one_handed_bouncer, true) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DBigPictureIconManagerTest.kt58 private val testableResources = context.orCreateTestableResources constant in com.android.systemui.statusbar.notification.row.BigPictureIconManagerTest
245 testableResources.addOverride( in onIconUpdated_supportedTypeButTooWide_resizedPlaceholderLoaded()
264 testableResources.addOverride( in onIconUpdated_supportedTypeButTooHigh_resizedPlaceholderLoaded()
464 testableResources.addOverride( in overrideMaxImageSizes()
468 testableResources.addOverride( in overrideMaxImageSizes()
DNotificationContentViewTest.kt71 private val testableResources = mContext.getOrCreateTestableResources() in <lambda>() constant in com.android.systemui.statusbar.notification.row.NotificationContentViewTest
675 private fun px(@DimenRes id: Int): Int = testableResources.resources.getDimensionPixelSize(id) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DDevicePostureControllerImplTest.kt65 private lateinit var testableResources: TestableResources variable in com.android.systemui.statusbar.policy.DevicePostureControllerImplTest
72 testableResources = context.getOrCreateTestableResources() in setUp()
73 testableResources.addOverride( in setUp()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/view/viewmodel/
DCommunalEditModeViewModelTest.kt94 private val testableResources = context.orCreateTestableResources constant in com.android.systemui.communal.view.viewmodel.CommunalEditModeViewModelTest
265 testableResources.resources, in onOpenWidgetPicker_launchesWidgetPickerActivity()
282 testableResources.resources, in onOpenWidgetPicker_launcherActivityNotResolved_doesNotLaunchWidgetPickerActivity()
306 testableResources.resources, in onOpenWidgetPicker_activityLaunchThrowsException_failure()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSPanelControllerTest.kt73 private val testableResources: TestableResources = mContext.orCreateTestableResources constant in com.android.systemui.qs.QSPanelControllerTest
82 whenever(qsPanel.resources).thenReturn(testableResources.resources) in setUp()
188 testableResources.addOverride(R.bool.config_use_split_notification_shade, shouldUse) in setShouldUseSplitShade()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/ui/viewmodel/
DVolumePanelViewModelTest.kt58 private val testableResources = context.orCreateTestableResources constant
76 testableResources.overrideConfiguration( in orientationChanges_panelOrientationChanges()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/
DSysUITestModule.kt98 fun provideResources(testableResources: TestableResources): Resources = in bindTestableContext()
99 testableResources.resources in bindTestableContext()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/common/ui/domain/interactor/
DConfigurationInteractorTest.kt51 val testableResources = context.getOrCreateTestableResources() in setUp() constant
52 testableResources.overrideConfiguration(configuration) in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackSizeCalculatorTest.kt56 private val testableResources = mContext.orCreateTestableResources in <lambda>() constant
74 testableResources.resources, in <lambda>()
392 testableResources.resources.getDimensionPixelSize(id).toFloat() in <lambda>()
DStackScrollAlgorithmTest.kt79 private val testableResources = mContext.getOrCreateTestableResources() in <lambda>() constant in com.android.systemui.statusbar.notification.stack.StackScrollAlgorithmTest
87 testableResources.resources.getDimensionPixelSize(id).toFloat() in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/domain/interactor/
DHideNotificationsInteractorTest.kt95 val testableResources = context.getOrCreateTestableResources() in setUp() constant
96 testableResources.overrideConfiguration(configuration) in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DWindowMagnificationControllerWindowlessMagnifierTest.java1132 final TestableResources testableResources = getContext().getOrCreateTestableResources(); in onLocaleChanged_enabled_updateA11yWindowTitle() local
1133 testableResources.addOverride(com.android.internal.R.string.android_system_label, in onLocaleChanged_enabled_updateA11yWindowTitle()
DWindowMagnificationControllerTest.java1104 final TestableResources testableResources = getContext().getOrCreateTestableResources(); in onLocaleChanged_enabled_updateA11yWindowTitle() local
1105 testableResources.addOverride(com.android.internal.R.string.android_system_label, in onLocaleChanged_enabled_updateA11yWindowTitle()