1 /*
2  * Copyright (C) 2011 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 android.widget.cts;
18 
19 import android.content.Context;
20 import android.graphics.drawable.Drawable;
21 import androidx.annotation.Nullable;
22 import android.text.method.MovementMethod;
23 import android.util.AttributeSet;
24 import android.widget.TextView;
25 
26 public class MockTextView extends TextView {
27 
MockTextView(Context context)28     public MockTextView(Context context) {
29         super(context);
30     }
31 
MockTextView(Context context, @Nullable AttributeSet attrs)32     public MockTextView(Context context, @Nullable AttributeSet attrs) {
33         super(context, attrs);
34     }
35 
MockTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr)36     public MockTextView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
37         super(context, attrs, defStyleAttr);
38     }
39 
40     @Override
computeHorizontalScrollRange()41     public int computeHorizontalScrollRange() {
42         return super.computeHorizontalScrollRange();
43     }
44 
45     @Override
computeVerticalScrollRange()46     public int computeVerticalScrollRange() {
47         return super.computeVerticalScrollRange();
48     }
49 
50     @Override
getDefaultEditable()51     public boolean getDefaultEditable() {
52         return super.getDefaultEditable();
53     }
54 
55     @Override
getDefaultMovementMethod()56     public MovementMethod getDefaultMovementMethod() {
57         return super.getDefaultMovementMethod();
58     }
59 
60     @Override
setFrame(int l, int t, int r, int b)61     public boolean setFrame(int l, int t, int r, int b) {
62         return super.setFrame(l, t, r, b);
63     }
64 
65     @Override
getLeftFadingEdgeStrength()66     public float getLeftFadingEdgeStrength() {
67         return super.getLeftFadingEdgeStrength();
68     }
69 
70     @Override
getRightFadingEdgeStrength()71     public float getRightFadingEdgeStrength() {
72         return super.getRightFadingEdgeStrength();
73     }
74 
75     @Override
getBottomPaddingOffset()76     public int getBottomPaddingOffset() {
77         return super.getBottomPaddingOffset();
78     }
79 
80     @Override
getLeftPaddingOffset()81     public int getLeftPaddingOffset() {
82         return super.getLeftPaddingOffset();
83     }
84 
85     @Override
getRightPaddingOffset()86     public int getRightPaddingOffset() {
87         return super.getRightPaddingOffset();
88     }
89 
90     @Override
getTopPaddingOffset()91     public int getTopPaddingOffset() {
92         return super.getTopPaddingOffset();
93     }
94 
95     @Override
isPaddingOffsetRequired()96     public boolean isPaddingOffsetRequired() {
97         return super.isPaddingOffsetRequired();
98     }
99 
100     @Override
onSelectionChanged(int selStart, int selEnd)101     public void onSelectionChanged(int selStart, int selEnd) {
102         super.onSelectionChanged(selStart, selEnd);
103     }
104 
105     @Override
drawableStateChanged()106     public void drawableStateChanged() {
107         super.drawableStateChanged();
108     }
109 
110     @Override
verifyDrawable(Drawable who)111     public boolean verifyDrawable(Drawable who) {
112         return super.verifyDrawable(who);
113     }
114 
115     @Override
computeVerticalScrollExtent()116     public int computeVerticalScrollExtent() {
117         return super.computeVerticalScrollExtent();
118     }
119 }
120