/cts/tests/tests/view/src/android/view/cts/ |
D | ViewTest.java | 17 package android.view.cts; 75 import android.view.ActionMode; 76 import android.view.ContextMenu; 77 import android.view.Display; 78 import android.view.HapticFeedbackConstants; 79 import android.view.InputDevice; 80 import android.view.KeyEvent; 81 import android.view.LayoutInflater; 82 import android.view.Menu; 83 import android.view.MenuInflater; [all …]
|
D | View_LayoutPositionTest.java | 17 package android.view.cts; 27 import android.view.View; 56 View view = mActivity.findViewById(R.id.testview); in testPositionInParent() local 63 assertEquals(-1, view.getBaseline()); in testPositionInParent() 66 view.getLocationOnScreen(vLocation); in testPositionInParent() 69 view.getDrawingRect(vRect); in testPositionInParent() 76 assertEquals(left, view.getLeft()); in testPositionInParent() 77 assertEquals(top, view.getTop()); in testPositionInParent() 78 assertEquals(right, view.getRight()); in testPositionInParent() 79 assertEquals(bottom, view.getBottom()); in testPositionInParent() [all …]
|
D | View_AnimationTest.java | 17 package android.view.cts; 32 import android.view.View; 33 import android.view.animation.TranslateAnimation; 34 import android.view.animation.cts.AnimationTestUtils; 72 final View view = mActivity.findViewById(R.id.mock_view); in testAnimation() local 74 view.setAnimation(null); in testAnimation() 75 assertNull(view.getAnimation()); in testAnimation() 77 view.setAnimation(mAnimation); in testAnimation() 78 mActivityRule.runOnUiThread(view::invalidate); in testAnimation() 80 AnimationTestUtils.assertRunAnimation(mInstrumentation, mActivityRule, view, mAnimation, in testAnimation() [all …]
|
D | ViewOutlineProviderTest.java | 17 package android.view.cts; 31 import android.view.View; 32 import android.view.ViewOutlineProvider; 48 private void setViewLeftTopRightBottom(View view, int left, int top, int right, int bottom) { in setViewLeftTopRightBottom() argument 49 view.setLeft(left); in setViewLeftTopRightBottom() 50 view.setTop(top); in setViewLeftTopRightBottom() 51 view.setRight(right); in setViewLeftTopRightBottom() 52 view.setBottom(bottom); in setViewLeftTopRightBottom() 58 View view = new View(mContext); in testBackground() local 59 setViewLeftTopRightBottom(view, 100, 200, 300, 400); in testBackground() [all …]
|
D | LayoutInflaterTest.java | 17 package android.view.cts; 40 import android.view.ContextThemeWrapper; 41 import android.view.Gravity; 42 import android.view.InflateException; 43 import android.view.LayoutInflater; 44 import android.view.LayoutInflater.Factory; 45 import android.view.LayoutInflater.Filter; 46 import android.view.View; 47 import android.view.ViewGroup; 48 import android.view.cts.util.XmlUtils; [all …]
|
D | ActionModeCallback2Test.java | 17 package android.view.cts; 26 import android.view.ActionMode; 27 import android.view.Menu; 28 import android.view.MenuItem; 29 import android.view.View; 50 View view = new View(mContext); in testCallbackOnGetContentRectDefaultWithView() local 51 view.setLeft(0); in testCallbackOnGetContentRectDefaultWithView() 52 view.setRight(VIEW_WIDTH); in testCallbackOnGetContentRectDefaultWithView() 53 view.setTop(0); in testCallbackOnGetContentRectDefaultWithView() 54 view.setBottom(VIEW_HEIGHT); in testCallbackOnGetContentRectDefaultWithView() [all …]
|
D | SurfaceViewSyncTest.java | 16 package android.view.cts; 36 import android.view.Gravity; 37 import android.view.SurfaceHolder; 38 import android.view.SurfaceView; 39 import android.view.View; 40 import android.view.ViewGroup; 41 import android.view.animation.LinearInterpolator; 42 import android.view.cts.surfacevalidator.AnimationFactory; 43 import android.view.cts.surfacevalidator.AnimationTestCase; 44 import android.view.cts.surfacevalidator.CapturedActivity; [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ToastTest.java | 35 import android.view.Gravity; 36 import android.view.View; 37 import android.view.ViewTreeObserver; 38 import android.view.WindowManager; 84 private static void assertShowToast(final View view) { in assertShowToast() argument 85 PollingCheck.waitFor(TIME_OUT, () -> null != view.getParent()); in assertShowToast() 88 private static void assertShowAndHide(final View view) { in assertShowAndHide() argument 89 assertShowToast(view); in assertShowAndHide() 90 PollingCheck.waitFor(TIME_OUT, () -> null == view.getParent()); in assertShowAndHide() 93 private static void assertNotShowToast(final View view) { in assertNotShowToast() argument [all …]
|
D | SimpleCursorTreeAdapterTest.java | 32 import android.view.View; 111 TextView view = new TextView(mContext); in testBindChildView() local 112 view.setId(R.id.cursorAdapter_item0); in testBindChildView() 113 mSimpleCursorTreeAdapter.bindChildView(view, null, mChildCursor, true); in testBindChildView() 114 assertEquals("child02", view.getText().toString()); in testBindChildView() 117 mSimpleCursorTreeAdapter.bindChildView(view, null, mChildCursor, false); in testBindChildView() 118 assertEquals("child12", view.getText().toString()); in testBindChildView() 130 TextView view = new TextView(mContext); in testBindGroupView() local 131 view.setId(R.id.cursorAdapter_group0); in testBindGroupView() 132 mSimpleCursorTreeAdapter.bindGroupView(view, null, mGroupCursor, true); in testBindGroupView() [all …]
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationTestUtils.java | 17 package android.view.animation.cts; 22 import android.view.View; 23 import android.view.ViewGroup; 24 import android.view.animation.Animation; 25 import android.view.animation.LayoutAnimationController; 53 final ActivityTestRule activityTestRule, final View view, final Animation animation) in assertRunAnimation() argument 55 assertRunAnimation(instrumentation, activityTestRule, view, animation, in assertRunAnimation() 70 final ActivityTestRule activityTestRule, final View view, final Animation animation, in assertRunAnimation() argument 73 activityTestRule.runOnUiThread(() -> view.startAnimation(animation)); in assertRunAnimation() 89 final ViewGroup view, final LayoutAnimationController controller, in assertRunController() argument [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | StateInitializeActivity.java | 17 package android.view.inputmethod.cts.util; 19 import static android.view.WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_HIDDEN; 24 import android.view.View; 25 import android.view.ViewGroup; 42 final View view = new View(this); in onCreate() local 43 view.setBackgroundColor(Color.WHITE); in onCreate() 44 view.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, in onCreate() 53 setContentView(view); in onCreate()
|
D | NavigationBarInfo.java | 17 package android.view.inputmethod.cts.util; 20 import static android.view.WindowManager.LayoutParams.FLAG_DIM_BEHIND; 21 import static android.view.inputmethod.cts.util.TestUtils.getOnMainSync; 34 import android.view.View; 35 import android.view.ViewGroup; 36 import android.view.WindowInsets; 89 final View view = new View(activity); in getInstance() 90 view.setLayoutParams(new ViewGroup.LayoutParams( in getInstance() 92 viewRef.set(view); in getInstance() 93 return view; in getInstance() [all …]
|
/cts/tests/tests/text/src/android/text/method/cts/ |
D | CharacterPickerDialogTest.java | 31 import android.view.View; 57 final View view = new TextViewNoIme(mActivity); in testConstructor() local 58 new CharacterPickerDialog(view.getContext(), view, content, "\u00A1", false); in testConstructor() local 66 final View view = new TextViewNoIme(mActivity); in testConstructorNullContext() local 67 new CharacterPickerDialog(null, view, content, "\u00A1", false); in testConstructorNullContext() 76 final View view = new TextViewNoIme(mActivity); in testOnItemClick() local 78 new CharacterPickerDialog(view.getContext(), view, text, "abc", false); in testOnItemClick() 86 replacePickerDialog.onItemClick(parent, view, 0, 0); in testOnItemClick() 95 replacePickerDialog.onItemClick(parent, view, 2, 0); in testOnItemClick() 102 new CharacterPickerDialog(view.getContext(), view, text, "abc", true); in testOnItemClick() [all …]
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | CtsMouseUtil.java | 26 import android.view.InputDevice; 27 import android.view.MotionEvent; 28 import android.view.View; 37 public static View.OnHoverListener installHoverListener(View view) { in installHoverListener() argument 38 return installHoverListener(view, true); in installHoverListener() 41 public static View.OnHoverListener installHoverListener(View view, boolean result) { in installHoverListener() argument 43 view.setOnHoverListener((v, event) -> { in installHoverListener() 51 public static void clearHoverListener(View view) { in clearHoverListener() argument 52 view.setOnHoverListener(null); in clearHoverListener() 107 public static void verifyEnterMove(View.OnHoverListener listener, View view, int moveCount) { in verifyEnterMove() argument [all …]
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeScrollTest.java | 25 import android.view.View; 58 final View view = mActivity.findViewById(R.id.text); in testChangeScroll() local 59 assertEquals(0, view.getScrollX()); in testChangeScroll() 60 assertEquals(0, view.getScrollY()); in testChangeScroll() 62 view.scrollTo(150, 300); in testChangeScroll() 63 view.setOnScrollChangeListener(listener); in testChangeScroll() 68 final View view = mActivity.findViewById(R.id.text); in testChangeScroll() local 69 final int scrollX = view.getScrollX(); in testChangeScroll() 70 final int scrollY = view.getScrollY(); in testChangeScroll() 78 final View view = mActivity.findViewById(R.id.text); in testChangeScroll() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | MyAutofillCallback.java | 25 import android.view.View; 26 import android.view.autofill.AutofillManager.AutofillCallback; 43 public void onAutofillEvent(View view, int event) { in onAutofillEvent() argument 44 Log.v(TAG, "onAutofillEvent: view=" + view + ", event=" + callbackEventAsString(event)); in onAutofillEvent() 45 mEvents.offer(new MyEvent(view, event)); in onAutofillEvent() 49 public void onAutofillEvent(View view, int childId, int event) { in onAutofillEvent() argument 50 Log.v(TAG, "onAutofillEvent: view=" + view + ", child=" + childId in onAutofillEvent() 52 mEvents.offer(new MyEvent(view, childId, event)); in onAutofillEvent() 92 assertWithMessage("Invalid view on event %s", event).that(event.view) in assertUiShownEvent() 123 assertWithMessage("Invalid view on event %s", event).that(event.view) in assertUiHiddenEvent() [all …]
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | AnimationActivity.java | 36 import android.view.MotionEvent; 37 import android.view.View; 38 import android.view.ViewGroup; 39 import android.view.animation.AccelerateInterpolator; 59 public AnimationView view = null; field in AnimationActivity 76 view = new AnimationView(this); in onCreate() 78 viewGroup.addView(view); in onCreate() 93 return createAnimator(view.newBall, "y", 1000, ValueAnimator.INFINITE, repeatMode, in createAnimatorWithRepeatMode() 98 return createAnimator(view.newBall, "y", 1000, repeatCount, ValueAnimator.REVERSE, in createAnimatorWithRepeatCount() 103 return createAnimator(view.newBall, "y", duration ,ValueAnimator.INFINITE, in createAnimatorWithDuration() [all …]
|
/cts/tests/framework/base/windowmanager/alertwindowappsdk25/src/android/server/wm/alertwindowappsdk25/ |
D | AlertWindowTestBaseActivity.java | 23 import android.view.WindowManager; 26 import static android.view.Gravity.LEFT; 27 import static android.view.Gravity.TOP; 28 import static android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; 29 import static android.view.WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 30 import static android.view.WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH; 65 final TextView view = new TextView(this); in createAlertWindow() local 66 view.setText(windowName + " type=" + type); in createAlertWindow() 67 view.setBackgroundColor(Color.RED); in createAlertWindow() 68 wm.addView(view, params); in createAlertWindow()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/cube/ |
D | CubePresentation.java | 22 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/tests/tests/toastlegacy/src/android/widget/toast/cts/legacy/ |
D | ToastActivity.java | 22 import android.view.View; 23 import android.view.ViewGroup; 33 View view = new View(this); in onCreate() local 34 view.setBackgroundColor(Color.BLUE); in onCreate() 35 view.setLayoutParams(new ViewGroup.LayoutParams( in onCreate() 38 setContentView(view); in onCreate()
|
/cts/tests/openglperf2/jni/graphics/ |
D | ProgramNode.cpp | 21 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/framework/base/windowmanager/alertwindowservice/src/android/server/wm/alertwindowservice/ |
D | AlertWindowService.java | 20 import static android.view.Gravity.LEFT; 21 import static android.view.Gravity.TOP; 22 import static android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE; 23 import static android.view.WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE; 24 import static android.view.WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH; 25 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; 36 import android.view.View; 37 import android.view.WindowManager; 93 final TextView view = new TextView(this); in addAlertWindow() local 94 view.setText("AlertWindowService" + mAlertWindows.size()); in addAlertWindow() [all …]
|
/cts/tests/framework/base/windowmanager/alertwindowapp/src/android/server/wm/alertwindowapp/ |
D | AlertWindowTestActivity.java | 22 import static android.view.WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY; 23 import static android.view.WindowManager.LayoutParams.TYPE_PHONE; 24 import static android.view.WindowManager.LayoutParams.TYPE_PRIORITY_PHONE; 25 import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ALERT; 26 import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_ERROR; 27 import static android.view.WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY;
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | LayerTests.java | 44 import android.view.Gravity; 45 import android.view.View; 46 import android.view.ViewTreeObserver; 68 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintAlpha() 72 view.setLayerType(View.LAYER_TYPE_HARDWARE, paint); in testLayerPaintAlpha() 75 view.setAlpha(0.5f); in testLayerPaintAlpha() 85 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintSimpleAlphaWithHardware() 86 view.setLayerType(View.LAYER_TYPE_HARDWARE, null); in testLayerPaintSimpleAlphaWithHardware() 89 view.setAlpha(0.5f); in testLayerPaintSimpleAlphaWithHardware() 99 .addLayout(R.layout.simple_red_layout, (ViewInitializer) view -> { in testLayerPaintSimpleAlphaWithSoftware() [all …]
|
/cts/hostsidetests/theme/app/src/android/theme/app/modifiers/ |
D | ViewPressedModifier.java | 19 import android.view.View; 24 public View modifyView(View view) { in modifyView() argument 25 view.setPressed(true); in modifyView() 26 return view; in modifyView()
|