1 /* 2 * Copyright (C) 2019 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package com.android.uibench.microbenchmark; 18 19 import android.platform.helpers.IAppHelper; 20 21 public interface IUiBenchJankHelper extends IAppHelper { clickImage(String imageName)22 void clickImage(String imageName); 23 flingDownUp(int flingCount)24 void flingDownUp(int flingCount); 25 flingUpDown(int flingCount)26 void flingUpDown(int flingCount); 27 openActivityTransition()28 void openActivityTransition(); 29 openBitmapUpload()30 void openBitmapUpload(); 31 openClippedListView()32 void openClippedListView(); 33 openDialogList()34 void openDialogList(); 35 openEditTextTyping()36 void openEditTextTyping(); 37 openFadingEdgeListView()38 void openFadingEdgeListView(); 39 openFullscreenOverdraw()40 void openFullscreenOverdraw(); 41 openGLTextureView()42 void openGLTextureView(); 43 openInflatingEmojiListView()44 void openInflatingEmojiListView(); 45 openInflatingHanListView()46 void openInflatingHanListView(); 47 openInflatingListView()48 void openInflatingListView(); 49 openInflatingLongStringListView()50 void openInflatingLongStringListView(); 51 openInvalidate()52 void openInvalidate(); 53 openInvalidateTree()54 void openInvalidateTree(); 55 openLayoutCacheHighHitrate()56 void openLayoutCacheHighHitrate(); 57 openLayoutCacheLowHitrate()58 void openLayoutCacheLowHitrate(); 59 openLeanbackActivity( boolean extraBitmapUpload, boolean extraShowFastLane, String activityName, String expectedText)60 void openLeanbackActivity( 61 boolean extraBitmapUpload, 62 boolean extraShowFastLane, 63 String activityName, 64 String expectedText); 65 openNavigationDrawerActivity()66 void openNavigationDrawerActivity(); 67 openNotificationShade()68 void openNotificationShade(); 69 openSaveLayerInterleaveActivity()70 void openSaveLayerInterleaveActivity(); 71 openScrollableWebView()72 void openScrollableWebView(); 73 openSlowBindRecyclerView()74 void openSlowBindRecyclerView(); 75 openSlowNestedRecyclerView()76 void openSlowNestedRecyclerView(); 77 openTrivialAnimation()78 void openTrivialAnimation(); 79 openTrivialListView()80 void openTrivialListView(); 81 openTrivialRecyclerView()82 void openTrivialRecyclerView(); 83 openRenderingList()84 void openRenderingList(); 85 openResizeHWLayer()86 void openResizeHWLayer(); 87 openWindowInsetsController()88 void openWindowInsetsController(); 89 scrollDownAndUp(int count)90 void scrollDownAndUp(int count); 91 slowSingleFlingDown()92 void slowSingleFlingDown(); 93 swipeRightLeft(int swipeCount)94 void swipeRightLeft(int swipeCount); 95 } 96