Move BaseActivityInterface task size methods to DeviceProfile.
Fix: 238593212 Test: DeviceProfilePhoneTest.kt Test: DeviceProfileVerticalBarTest.kt Test: DeviceProfilePhone3ButtonTest.kt Test: DeviceProfileVerticalBar3ButtonTest.kt Test: DeviceProfileTabletLandscapeTest.kt Test: DeviceProfileTabletPortraitTest.kt Test: DeviceProfileTabletLandscape3ButtonTest.kt Test: DeviceProfileTabletPortrait3ButtonTest.kt Test: DeviceProfileTwoPanelLandscapeTest.kt Test: DeviceProfileTwoPanelPortraitTest.kt Test: DeviceProfileTwoPanelLandscape3ButtonTest.kt Test: DeviceProfileTwoPanelPortrait3ButtonTest.kt Change-Id: I30324d34ca119a467f530b590949743c2ba7b91a
This commit is contained in:
@@ -37,6 +37,7 @@ abstract class DeviceProfileBaseTest {
|
||||
protected var transposeLayoutWithOrientation: Boolean = false
|
||||
protected var useTwoPanels: Boolean = false
|
||||
protected var isGestureMode: Boolean = true
|
||||
protected var isRecentsRtl: Boolean = true
|
||||
|
||||
@Before
|
||||
fun setUp() {
|
||||
@@ -163,7 +164,7 @@ abstract class DeviceProfileBaseTest {
|
||||
fun dump(dp: DeviceProfile): StringWriter {
|
||||
val stringWriter = StringWriter()
|
||||
val printWriter = PrintWriter(stringWriter)
|
||||
dp.dump("", printWriter)
|
||||
dp.dump(context, "", printWriter)
|
||||
printWriter.flush()
|
||||
return stringWriter
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user