Home
last modified time | relevance | path

Searched refs:view (Results 1 – 25 of 583) sorted by relevance

12345678910>>...24

/cts/tests/tests/view/src/android/view/cts/
DViewTest.java17 package android.view.cts;
19 import com.android.cts.view.R;
20 import com.android.internal.view.menu.ContextMenuBuilder;
50 import android.view.ActionMode;
51 import android.view.ContextMenu;
52 import android.view.ContextMenu.ContextMenuInfo;
53 import android.view.Display;
54 import android.view.HapticFeedbackConstants;
55 import android.view.InputDevice;
56 import android.view.KeyEvent;
[all …]
DView_LayoutPositionTest.java17 package android.view.cts;
19 import com.android.cts.view.R;
27 import android.view.View;
51 View view = mActivity.findViewById(R.id.testview); in testPositionInParent() local
58 assertEquals(-1, view.getBaseline()); in testPositionInParent()
61 view.getLocationOnScreen(vLocation); in testPositionInParent()
64 view.getDrawingRect(vRect); in testPositionInParent()
71 assertEquals(left, view.getLeft()); in testPositionInParent()
72 assertEquals(top, view.getTop()); in testPositionInParent()
73 assertEquals(right, view.getRight()); in testPositionInParent()
[all …]
DView_AnimationTest.java17 package android.view.cts;
22 import android.view.View;
23 import android.view.animation.Animation;
24 import android.view.animation.TranslateAnimation;
25 import android.view.animation.cts.AnimationTestUtils;
27 import com.android.cts.view.R;
55 final View view = mActivity.findViewById(R.id.mock_view); in testAnimation() local
57 view.setAnimation(null); in testAnimation()
58 assertNull(view.getAnimation()); in testAnimation()
60 view.setAnimation(mAnimation); in testAnimation()
[all …]
DLayoutInflaterTest.java17 package android.view.cts;
19 import com.android.cts.view.R;
20 import android.view.cts.util.XmlUtils;
35 import android.view.Gravity;
36 import android.view.InflateException;
37 import android.view.LayoutInflater;
38 import android.view.View;
39 import android.view.ViewGroup;
40 import android.view.LayoutInflater.Factory;
41 import android.view.LayoutInflater.Filter;
[all …]
DActionModeCallback2Test.java17 package android.view.cts;
21 import android.view.ActionMode;
22 import android.view.Menu;
23 import android.view.MenuItem;
24 import android.view.View;
31 View view = new View(mContext); in testCallbackOnGetContentRectDefaultWithView() local
32 view.setLeft(0); in testCallbackOnGetContentRectDefaultWithView()
33 view.setRight(VIEW_WIDTH); in testCallbackOnGetContentRectDefaultWithView()
34 view.setTop(0); in testCallbackOnGetContentRectDefaultWithView()
35 view.setBottom(VIEW_HEIGHT); in testCallbackOnGetContentRectDefaultWithView()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DToastTest.java29 import android.view.Gravity;
30 import android.view.View;
31 import android.view.ViewTreeObserver;
32 import android.view.WindowManager;
76 private void assertShowToast(final View view) { in assertShowToast() argument
80 return null != view.getParent(); in assertShowToast()
85 private void assertShowAndHide(final View view) { in assertShowAndHide() argument
86 assertShowToast(view); in assertShowAndHide()
90 return null == view.getParent(); in assertShowAndHide()
95 private void assertNotShowToast(final View view) throws InterruptedException { in assertNotShowToast() argument
[all …]
DSimpleCursorTreeAdapterTest.java30 import android.view.View;
100 TextView view = new TextView(mContext); in testBindChildView() local
101 view.setId(R.id.cursorAdapter_item0); in testBindChildView()
102 mSimpleCursorTreeAdapter.bindChildView(view, null, mChildCursor, true); in testBindChildView()
103 assertEquals("child02", view.getText().toString()); in testBindChildView()
106 mSimpleCursorTreeAdapter.bindChildView(view, null, mChildCursor, false); in testBindChildView()
107 assertEquals("child12", view.getText().toString()); in testBindChildView()
118 TextView view = new TextView(mContext); in testBindGroupView() local
119 view.setId(R.id.cursorAdapter_group0); in testBindGroupView()
120 mSimpleCursorTreeAdapter.bindGroupView(view, null, mGroupCursor, true); in testBindGroupView()
[all …]
DSimpleAdapterTest.java29 import android.view.LayoutInflater;
30 import android.view.View;
290 ImageView view = new ImageView(mContext); in testSetViewImage() local
291 assertNull(view.getDrawable()); in testSetViewImage()
292 … mSimpleAdapter.setViewImage(view, String.valueOf(com.android.cts.widget.R.drawable.scenery)); in testSetViewImage()
296 ((BitmapDrawable) view.getDrawable()).getBitmap()); in testSetViewImage()
299 view = new ImageView(mContext); in testSetViewImage()
300 assertNull(view.getDrawable()); in testSetViewImage()
301 mSimpleAdapter.setViewImage(view, ""); in testSetViewImage()
302 assertNull(view.getDrawable()); in testSetViewImage()
[all …]
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTestUtils.java17 package android.view.animation.cts;
21 import android.view.View;
22 import android.view.ViewGroup;
23 import android.view.animation.Animation;
24 import android.view.animation.LayoutAnimationController;
48 final View view, final Animation animation) { in assertRunAnimation() argument
49 assertRunAnimation(instrumentation, view, animation, animation.getDuration()); in assertRunAnimation()
61 final View view, final Animation animation, final long duration) { in assertRunAnimation() argument
65 view.startAnimation(animation); in assertRunAnimation()
97 final ViewGroup view, final LayoutAnimationController controller, in assertRunController() argument
[all …]
DAnimationUtilsTest.java17 package android.view.animation.cts;
19 import com.android.cts.view.R;
24 import android.view.animation.AccelerateInterpolator;
25 import android.view.animation.AlphaAnimation;
26 import android.view.animation.Animation;
27 import android.view.animation.AnimationUtils;
28 import android.view.animation.GridLayoutAnimationController;
29 import android.view.animation.Interpolator;
30 import android.view.animation.LayoutAnimationController;
/cts/tests/leanbackjank/app/src/android/cts/jank/leanback/presenter/
DGridItemPresenter.java21 import android.view.Gravity;
22 import android.view.ViewGroup;
40 TextView view = new TextView(parent.getContext()); in onCreateViewHolder() local
41 view.setLayoutParams(new ViewGroup.LayoutParams(GRID_ITEM_WIDTH, GRID_ITEM_HEIGHT)); in onCreateViewHolder()
42 view.setFocusable(true); in onCreateViewHolder()
43 view.setFocusableInTouchMode(true); in onCreateViewHolder()
44 view.setBackgroundColor( in onCreateViewHolder()
46 view.setTextColor(Color.WHITE); in onCreateViewHolder()
47 view.setGravity(Gravity.CENTER); in onCreateViewHolder()
48 return new ViewHolder(view); in onCreateViewHolder()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DCharacterPickerDialogTest.java28 import android.view.View;
51 final View view = new TextView(mActivity); in testConstructor() local
52 new CharacterPickerDialog(view.getContext(), view, content, "\u00A1", false); in testConstructor() local
55 new CharacterPickerDialog(null, view, content, "\u00A1", false); in testConstructor()
71 final View view = new TextView(mActivity); in testOnItemClick() local
73 new CharacterPickerDialog(view.getContext(), view, text, "abc", false); in testOnItemClick()
81 replacePickerDialog.onItemClick(parent, view, 0, 0); in testOnItemClick()
90 replacePickerDialog.onItemClick(parent, view, 2, 0); in testOnItemClick()
97 new CharacterPickerDialog(view.getContext(), view, text, "abc", true); in testOnItemClick()
103 insertPickerDialog.onItemClick(parent, view, 2, 0); in testOnItemClick()
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DChangeScrollTest.java23 import android.view.View;
39 final View view = mActivity.findViewById(R.id.text); in testChangeScroll()
40 final int scrollX = view.getScrollX(); in testChangeScroll()
41 final int scrollY = view.getScrollY(); in testChangeScroll()
45 view.scrollTo(150, 300); in testChangeScroll()
53 final View view = mActivity.findViewById(R.id.text); in testChangeScroll()
54 final int scrollX = view.getScrollX(); in testChangeScroll()
55 final int scrollY = view.getScrollY(); in testChangeScroll()
66 final View view = mActivity.findViewById(R.id.text); in testChangeScroll()
67 final int scrollX = view.getScrollX(); in testChangeScroll()
[all …]
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DInputMethodManagerTest.java16 package android.view.inputmethod.cts;
18 import com.android.cts.view.R;
28 import android.view.KeyEvent;
29 import android.view.Window;
30 import android.view.inputmethod.BaseInputConnection;
31 import android.view.inputmethod.InputMethodInfo;
32 import android.view.inputmethod.InputMethodManager;
68 final EditText view = (EditText) window.findViewById(R.id.entry); in testInputMethodManager() local
73 return view.hasWindowFocus(); in testInputMethodManager()
80 view.requestFocus(); in testInputMethodManager()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DAnimationActivity.java36 import android.view.MotionEvent;
37 import android.view.View;
38 import android.view.ViewGroup;
39 import android.view.animation.AccelerateInterpolator;
60 public AnimationView view = null; field in AnimationActivity
77 view = new AnimationView(this); in onCreate()
79 viewGroup.addView(view); in onCreate()
94 return createAnimator(view.newBall, "y", 1000, ValueAnimator.INFINITE, repeatMode, in createAnimatorWithRepeatMode()
99 return createAnimator(view.newBall, "y", 1000, repeatCount, ValueAnimator.REVERSE, in createAnimatorWithRepeatCount()
104 return createAnimator(view.newBall, "y", duration ,ValueAnimator.INFINITE, in createAnimatorWithDuration()
[all …]
DObjectAnimatorTest.java24 import android.view.animation.AccelerateInterpolator;
25 import android.view.animation.Interpolator;
53 Object object = mActivity.view.newBall; in testOfFloat()
66 float x = mActivity.view.newBall.getX(); in testOfFloat()
67 float y = mActivity.view.newBall.getY(); in testOfFloat()
73 Object object = mActivity.view.newBall; in testOfFloatBase()
86 Object object = mActivity.view.newBall; in testOfInt()
88 int startColor = mActivity.view.RED; in testOfInt()
89 int endColor = mActivity.view.BLUE; in testOfInt()
112 Object object = mActivity.view.newBall; in testOfObject()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/
DCubePresentation.java22 import android.view.Display;
23 import android.view.MotionEvent;
24 import android.view.View;
25 import android.view.View.OnTouchListener;
44 View view = getLayoutInflater().inflate(R.layout.pca_cubes, null); in onCreate() local
45 setContentView(view); in onCreate()
47 GLSurfaceView cubeView = (GLSurfaceView) view.findViewById(R.id.cube_view); in onCreate()
54 public boolean onTouch(View view, MotionEvent event) { in onCreate()
/cts/suite/cts/deviceTests/opengl/jni/graphics/
DProgramNode.cpp21 void ProgramNode::before(Program& program, Matrix& model, Matrix& view, Matrix& projection) { in before() argument
22 program.before(model, view, projection); in before()
25 void ProgramNode::after(Program& program, Matrix& model, Matrix& view, Matrix& projection) { in after() argument
26 program.after(model, view, projection); in after()
29 void ProgramNode::drawProgram(Matrix& model, Matrix& view, Matrix& projection) { in drawProgram() argument
30 SceneGraphNode::draw(mProgram, model, view, projection); in drawProgram()
/cts/tests/tests/opengl/src/android/opengl/cts/
DOpenGLES20ActivityTwo.java30 OpenGLES20View view; field in OpenGLES20ActivityTwo
51 view = new OpenGLES20View(this,type,i, vertexColors, mLatch); in setView()
52 setContentView(view); in setView()
57 view = new OpenGLES20View(this, type, i, f, mLatch) ; in setView()
58 setContentView(view); in setView()
72 if(view != null) { in onPause()
73 view.onPause(); in onPause()
80 if(view != null) { in onResume()
81 view.onResume(); in onResume()
/cts/tests/tests/app/src/android/app/cts/
DLifecycleTest.java35 import android.view.ContextMenu;
36 import android.view.KeyEvent;
37 import android.view.Menu;
38 import android.view.MenuItem;
39 import android.view.MotionEvent;
40 import android.view.View;
41 import android.view.ViewGroup;
42 import android.view.ContextMenu.ContextMenuInfo;
43 import android.view.WindowManager.LayoutParams;
DLaunchTest.java32 import android.view.ContextMenu;
33 import android.view.KeyEvent;
34 import android.view.Menu;
35 import android.view.MenuItem;
36 import android.view.MotionEvent;
37 import android.view.View;
38 import android.view.ViewGroup;
39 import android.view.ContextMenu.ContextMenuInfo;
40 import android.view.WindowManager.LayoutParams;
/cts/tests/tests/assist/testapp/src/android/voiceinteraction/testapp/
DTestApp.java26 import android.view.View;
27 import android.view.View.MeasureSpec;
28 import android.view.ViewGroup;
29 import android.view.ViewTreeObserver;
30 import android.view.ViewTreeObserver.OnGlobalLayoutListener;
35 import android.view.View;
36 import android.view.ViewTreeObserver;
37 import android.view.ViewTreeObserver.OnGlobalLayoutListener;
/cts/tests/tests/text/src/android/text/cts/
DAutoTextTest.java22 import android.view.View;
40 View view = new View(getContext()); in testGet() local
44 actual = AutoText.get(src, 0, src.length(), view); in testGet()
50 actual = AutoText.get(src, 0, src.length(), view); in testGet()
59 actual = AutoText.get(src, 0, src.length() + 1, view); in testGet()
67 actual = AutoText.get(src, 0, src.length() - 1, view); in testGet()
73 actual = AutoText.get(src, 0, src.length() - 1, view); in testGet()
85 View view = new View(getContext()); in testGetSize() local
87 assertTrue(AutoText.getSize(view) > 0); in testGetSize()
/cts/hostsidetests/theme/app/src/android/theme/app/modifiers/
DViewPressedModifier.java19 import android.view.View;
24 public View modifyView(View view) { in modifyView() argument
25 view.setPressed(true); in modifyView()
26 return view; in modifyView()
DViewCheckedModifier.java19 import android.view.View;
25 public View modifyView(View view) { in modifyView() argument
26 ((CheckBox) view).setChecked(true); in modifyView()
27 return view; in modifyView()

12345678910>>...24