Merge "Reuse cached flicker objects"
This commit is contained in:
committed by
Android (Google) Code Review
commit
089cf19a93
@@ -49,7 +49,10 @@ abstract class BaseTest @JvmOverloads constructor(
|
||||
) {
|
||||
init {
|
||||
testSpec.setIsTablet(
|
||||
WindowManagerStateHelper(instrumentation).currentState.wmState.isTablet
|
||||
WindowManagerStateHelper(
|
||||
instrumentation,
|
||||
clearCacheAfterParsing = false
|
||||
).currentState.wmState.isTablet
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -38,7 +38,10 @@ abstract class BaseTest @JvmOverloads constructor(
|
||||
) {
|
||||
init {
|
||||
testSpec.setIsTablet(
|
||||
WindowManagerStateHelper(instrumentation).currentState.wmState.isTablet
|
||||
WindowManagerStateHelper(
|
||||
instrumentation,
|
||||
clearCacheAfterParsing = false
|
||||
).currentState.wmState.isTablet
|
||||
)
|
||||
tapl.setExpectedRotationCheckEnabled(true)
|
||||
}
|
||||
|
||||
@@ -26,4 +26,9 @@ import com.android.server.wm.flicker.rules.ChangeDisplayOrientationRule
|
||||
* @param rotation New device rotation
|
||||
*/
|
||||
fun Flicker.setRotation(rotation: Int) =
|
||||
ChangeDisplayOrientationRule.setRotation(rotation, instrumentation, wmHelper)
|
||||
ChangeDisplayOrientationRule.setRotation(
|
||||
rotation,
|
||||
instrumentation,
|
||||
clearCacheAfterParsing = false,
|
||||
wmHelper = wmHelper
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user