/cts/tests/tests/view/src/android/view/cts/ |
D | FocusFinderTest.java | 29 import android.view.View; 77 mTopLeft.setNextFocusLeftId(View.NO_ID); in setup() 78 mTopRight.setNextFocusLeftId(View.NO_ID); in setup() 79 mBottomLeft.setNextFocusLeftId(View.NO_ID); in setup() 80 mBottomRight.setNextFocusLeftId(View.NO_ID); in setup() 99 verifyNextFocus(mTopLeft, View.FOCUS_RIGHT, mTopRight); in testFindNextFocus() 100 verifyNextFocus(mTopRight, View.FOCUS_DOWN, mBottomRight); in testFindNextFocus() 101 verifyNextFocus(mBottomRight, View.FOCUS_LEFT, mBottomLeft); in testFindNextFocus() 102 verifyNextFocus(mBottomLeft, View.FOCUS_UP, mTopLeft); in testFindNextFocus() 104 verifyNextFocus(null, View.FOCUS_RIGHT, mTopLeft); in testFindNextFocus() [all …]
|
D | View_MeasureSpecTest.java | 22 import android.view.View; 23 import android.view.View.MeasureSpec; 47 mUnspecifiedMeasureSpec = View.MeasureSpec.makeMeasureSpec(MEASURE_SPEC_SIZE, in setup() 48 View.MeasureSpec.UNSPECIFIED); in setup() 49 mExactlyMeasureSpec = View.MeasureSpec.makeMeasureSpec(MEASURE_SPEC_SIZE, in setup() 50 View.MeasureSpec.EXACTLY); in setup() 51 mAtMostMeasureSpec = View.MeasureSpec.makeMeasureSpec(MEASURE_SPEC_SIZE, in setup() 52 View.MeasureSpec.AT_MOST); in setup() 58 View.MeasureSpec.getSize(mUnspecifiedMeasureSpec)); in testGetSize() 60 View.MeasureSpec.getSize(mExactlyMeasureSpec)); in testGetSize() [all …]
|
D | SoundEffectConstantsTest.java | 23 import android.view.View; 39 .getContantForFocusDirection(View.FOCUS_RIGHT)); in testGetContantForFocusDirection() 41 .getContantForFocusDirection(View.FOCUS_DOWN)); in testGetContantForFocusDirection() 43 .getContantForFocusDirection(View.FOCUS_LEFT)); in testGetContantForFocusDirection() 45 .getContantForFocusDirection(View.FOCUS_UP)); in testGetContantForFocusDirection() 48 .getContantForFocusDirection(View.FOCUS_FORWARD)); in testGetContantForFocusDirection() 51 .getContantForFocusDirection(View.FOCUS_BACKWARD)); in testGetContantForFocusDirection() 62 SoundEffectConstants.getConstantForFocusDirection(View.FOCUS_RIGHT, in testGetConstantForFocusDirection() 65 SoundEffectConstants.getConstantForFocusDirection(View.FOCUS_DOWN, in testGetConstantForFocusDirection() 68 SoundEffectConstants.getConstantForFocusDirection(View.FOCUS_LEFT, in testGetConstantForFocusDirection() [all …]
|
D | HoverTest.java | 36 import android.view.View; 67 private View mOuter; 68 private View mMiddle1; 69 private View mMiddle2; 70 private View mInner11; 71 private View mInner12; 72 private View mInner21; 73 private View mInner22; 75 private View mOverlapping; 76 private View mLayer1; [all …]
|
D | View_FocusHandlingTest.java | 30 import android.view.View; 69 View v1 = activity.findViewById(R.id.view1); in testFocusHandling() 70 View v2 = activity.findViewById(R.id.view2); in testFocusHandling() 71 View v3 = activity.findViewById(R.id.view3); in testFocusHandling() 72 View v4 = activity.findViewById(R.id.view4); in testFocusHandling() 121 assertSame(v2, v1.focusSearch(View.FOCUS_RIGHT)); in testFocusHandling() 122 assertSame(v3, v1.focusSearch(View.FOCUS_DOWN)); in testFocusHandling() 124 assertSame(v1, v2.focusSearch(View.FOCUS_LEFT)); in testFocusHandling() 125 assertSame(v4, v2.focusSearch(View.FOCUS_DOWN)); in testFocusHandling() 127 assertSame(v1, v3.focusSearch(View.FOCUS_UP)); in testFocusHandling() [all …]
|
D | View_UsingViewsTest.java | 42 import android.view.View; 43 import android.view.View.OnClickListener; 140 View.OnClickListener okButtonListener = spy(new MockOnClickOkListener()); in testSetProperties() 149 View.OnClickListener cancelButtonListener = mock(View.OnClickListener.class); in testSetProperties() 153 }).when(cancelButtonListener).onClick(any(View.class)); in testSetProperties() 165 assertEquals(View.DRAWING_CACHE_QUALITY_AUTO, mEditText.getDrawingCacheQuality()); in testSetProperties() 166 mEditText.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_LOW); in testSetProperties() 167 assertEquals(View.DRAWING_CACHE_QUALITY_LOW, mEditText.getDrawingCacheQuality()); in testSetProperties() 168 mEditText.setDrawingCacheQuality(View.DRAWING_CACHE_QUALITY_HIGH); in testSetProperties() 169 assertEquals(View.DRAWING_CACHE_QUALITY_HIGH, mEditText.getDrawingCacheQuality()); in testSetProperties() [all …]
|
D | ViewTest.java | 94 import android.view.View; 95 import android.view.View.BaseSavedState; 96 import android.view.View.OnLongClickListener; 97 import android.view.View.OnUnhandledKeyEventListener; 201 new View(mActivity); in testConstructor() 205 new View(mActivity, attrs); in testConstructor() 207 new View(mActivity, null); in testConstructor() 209 new View(mActivity, attrs, 0); in testConstructor() 211 new View(mActivity, null, 1); in testConstructor() 218 new View(null, attrs); in testConstructorNullContext1() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/ |
D | VisibilitySetterActionTest.java | 28 import android.view.View; 48 assertThat(new VisibilitySetterAction.Builder(42, View.VISIBLE).build()).isNotNull(); in testValidVisibilities() 49 assertThat(new VisibilitySetterAction.Builder(42, View.GONE).build()).isNotNull(); in testValidVisibilities() 50 assertThat(new VisibilitySetterAction.Builder(42, View.INVISIBLE).build()).isNotNull(); in testValidVisibilities() 58 new VisibilitySetterAction.Builder(42, View.VISIBLE); in testInvalidVisibilities() 65 final VisibilitySetterAction action = new VisibilitySetterAction.Builder(42, View.VISIBLE) in testOneChild() 67 final View view = new View(sContext); in testOneChild() 69 view.setVisibility(View.GONE); in testOneChild() 74 assertThat(view.getVisibility()).isEqualTo(View.VISIBLE); in testOneChild() 79 final VisibilitySetterAction action = new VisibilitySetterAction.Builder(42, View.VISIBLE) in testOneChildAddedTwice() [all …]
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ExplodeTest.java | 28 import android.view.View; 63 final View redSquare = mActivity.findViewById(R.id.redSquare); in testExplode() 64 final View greenSquare = mActivity.findViewById(R.id.greenSquare); in testExplode() 65 final View blueSquare = mActivity.findViewById(R.id.blueSquare); in testExplode() 66 final View yellowSquare = mActivity.findViewById(R.id.yellowSquare); in testExplode() 75 redSquare.setVisibility(View.INVISIBLE); in testExplode() 76 greenSquare.setVisibility(View.INVISIBLE); in testExplode() 77 blueSquare.setVisibility(View.INVISIBLE); in testExplode() 78 yellowSquare.setVisibility(View.INVISIBLE); in testExplode() 82 assertEquals(View.VISIBLE, redSquare.getVisibility()); in testExplode() [all …]
|
D | SlideEdgeTest.java | 31 import android.view.View; 84 final View redSquare = mActivity.findViewById(R.id.redSquare); in testSlideOut() 85 final View greenSquare = mActivity.findViewById(R.id.greenSquare); in testSlideOut() 86 final View hello = mActivity.findViewById(R.id.hello); in testSlideOut() 94 redSquare.setVisibility(View.INVISIBLE); in testSlideOut() 95 greenSquare.setVisibility(View.INVISIBLE); in testSlideOut() 96 hello.setVisibility(View.INVISIBLE); in testSlideOut() 101 assertEquals(View.VISIBLE, redSquare.getVisibility()); in testSlideOut() 102 assertEquals(View.VISIBLE, greenSquare.getVisibility()); in testSlideOut() 103 assertEquals(View.VISIBLE, hello.getVisibility()); in testSlideOut() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | TvAppVerifierActivity.java | 21 import android.view.View; 38 private View mPostTarget; 40 public View getPostTarget() { in getPostTarget() 50 View view = mInflater.inflate(R.layout.location_mode_main, null); in onCreate() 60 public static void setButtonEnabled(View item, boolean enabled) { in setButtonEnabled() 61 View button = item.findViewById(R.id.user_action_button); in setButtonEnabled() 67 public static void setPassState(View item, boolean passed) { in setPassState() 81 public View createAndAttachUserItem(int instructionTextId, int buttonTextId, in createAndAttachUserItem() 82 View.OnClickListener l) { in createAndAttachUserItem() 83 View item = mInflater.inflate(R.layout.tv_item, mItemList, false); in createAndAttachUserItem() [all …]
|
D | ParentalControlTestActivity.java | 25 import android.view.View; 35 implements View.OnClickListener { 40 private View mTurnOnParentalControlItem; 41 private View mVerifyReceiveBroadcast1Item; 42 private View mBlockTvMaItem; 43 private View mVerifyReceiveBroadcast2Item; 44 private View mBlockUnblockItem; 45 private View mParentalControlsSwitchYesItem; 46 private View mParentalControlsSwitchNoItem; 47 private View mSupportThirdPartyInputYesItem; [all …]
|
D | MicrophoneDeviceTestActivity.java | 24 import android.view.View; 38 implements View.OnClickListener { 43 private HashMap<View, List<Object>> mInputDeviceItems; 44 private View mPreparationYesItem; 45 private View mPreparationNoItem; 48 public void onClick(View v) { in onClick() 49 final View postTarget = getPostTarget(); in onClick() 65 for (View item : mInputDeviceItems.keySet()) { in onClick() 70 final View pairedItem = (View) triple.get(2); in onClick() 108 mInputDeviceItems = new HashMap<View, List<Object>>(); in createInputDeviceItems() [all …]
|
/cts/tests/framework/base/windowmanager/dndsourceapp/src/android/server/wm/dndsourceapp/ |
D | DragSource.java | 33 import android.view.View; 59 View view = getLayoutInflater().inflate(R.layout.source_activity, null); in onCreate() 65 setUpDragSource("global_same_app", plainUri, View.DRAG_FLAG_GLOBAL_SAME_APPLICATION); in onCreate() 66 setUpDragSource("cancel_soon", plainUri, View.DRAG_FLAG_GLOBAL); in onCreate() 68 setUpDragSource("grant_none", plainUri, View.DRAG_FLAG_GLOBAL); in onCreate() 70 View.DRAG_FLAG_GLOBAL | View.DRAG_FLAG_GLOBAL_URI_READ); in onCreate() 72 View.DRAG_FLAG_GLOBAL | View.DRAG_FLAG_GLOBAL_URI_WRITE); in onCreate() 74 View.DRAG_FLAG_GLOBAL | View.DRAG_FLAG_GLOBAL_URI_READ | in onCreate() 75 View.DRAG_FLAG_GLOBAL_PERSISTABLE_URI_PERMISSION); in onCreate() 80 View.DRAG_FLAG_GLOBAL | View.DRAG_FLAG_GLOBAL_URI_READ | in onCreate() [all …]
|
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/ |
D | ViewUnitTest.java | 25 import android.view.View; 58 View view = activity.findViewById(R.id.view); in testContentSensitivityXmlAttribute() 59 assertThat(view.getContentSensitivity()).isEqualTo(View.CONTENT_SENSITIVITY_AUTO); in testContentSensitivityXmlAttribute() 64 assertThat(view.getContentSensitivity()).isEqualTo(View.CONTENT_SENSITIVITY_AUTO); in testContentSensitivityXmlAttribute() 70 .isEqualTo(View.CONTENT_SENSITIVITY_NOT_SENSITIVE); in testContentSensitivityXmlAttribute() 75 assertThat(view.getContentSensitivity()).isEqualTo(View.CONTENT_SENSITIVITY_SENSITIVE); in testContentSensitivityXmlAttribute() 83 View view = new View(mContext); in testContentSensitivity() 86 assertThat(view.getContentSensitivity()).isEqualTo(View.CONTENT_SENSITIVITY_AUTO); in testContentSensitivity() 90 view.setContentSensitivity(View.CONTENT_SENSITIVITY_NOT_SENSITIVE); in testContentSensitivity() 92 .isEqualTo(View.CONTENT_SENSITIVITY_NOT_SENSITIVE); in testContentSensitivity() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ViewPropertyAnimatorTests.java | 29 import android.view.View; 71 View testContent = view.findViewById(R.id.viewalpha_test_container); in testViewNonCustomAlpha() 114 public void verifyViewState(View target) { in testViewTranslateX() 125 public void configureView(View target) { in testViewTranslateXBy() 135 public void verifyViewState(View target) { in testViewTranslateXBy() 152 public void verifyViewState(View target) { in testViewTranslateY() 163 public void configureView(View target) { in testViewTranslateYBy() 173 public void verifyViewState(View target) { in testViewTranslateYBy() 188 public void verifyViewState(View target) { in testViewTranslateZ() 199 public void configureView(View target) { in testViewTranslateZBy() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | AccessibilityDragAndDropActivity.java | 23 import android.view.View; 34 View.AccessibilityDelegate delegate = new View.AccessibilityDelegate() { in onCreate() 36 public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo info) { in onCreate() 42 public boolean performAccessibilityAction(View host, int action, Bundle args) { in onCreate() 46 View.DragShadowBuilder shadowBuilder = new View.DragShadowBuilder(); in onCreate() 48 View.DRAG_FLAG_ACCESSIBILITY_ACTION); in onCreate() 57 View.OnDragListener dragListener = new View.OnDragListener() { in onCreate() 59 public boolean onDrag(View v, DragEvent event) { in onCreate()
|
D | AccessibilityWindowQueryActivity.java | 19 import android.view.View; 36 findViewById(R.id.button5).setOnClickListener(new View.OnClickListener() { in onCreate() 37 public void onClick(View v) { in onCreate() 41 findViewById(R.id.button5).setOnLongClickListener(new View.OnLongClickListener() { in onCreate() 42 public boolean onLongClick(View v) { in onCreate() 47 findViewById(R.id.button5).setAccessibilityDelegate(new View.AccessibilityDelegate() { in onCreate() 49 public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo info) { in onCreate() 55 public boolean performAccessibilityAction(View host, int action, Bundle args) { in onCreate()
|
/cts/tests/tests/gameservice/CtsGameServiceTakeScreenshotVerifier/src/android/service/games/cts/takescreenshotverifier/ |
D | MainActivity.java | 20 import android.view.View; 39 View.SYSTEM_UI_FLAG_IMMERSIVE in onCreate() 40 | View.SYSTEM_UI_FLAG_LAYOUT_STABLE in onCreate() 41 | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION in onCreate() 42 | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN in onCreate() 43 | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION in onCreate() 44 | View.SYSTEM_UI_FLAG_FULLSCREEN); in onCreate()
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentTransitionTest.java | 34 import android.view.View; 106 final View blue = findBlue(); in enterExitTransitions() 107 final View green = findBlue(); in enterExitTransitions() 124 final View green2 = findGreen(); in enterExitTransitions() 125 final View blue2 = findBlue(); in enterExitTransitions() 180 final View startBlue = findBlue(); in removeAdded() 181 final View startGreen = findGreen(); in removeAdded() 206 final View endBlue = findBlue(); in removeAdded() 207 final View endGreen = findGreen(); in removeAdded() 221 final View popBlue = findBlue(); in removeAdded() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
D | LayoutTests.java | 20 import static android.view.View.SYSTEM_UI_FLAG_FULLSCREEN; 21 import static android.view.View.SYSTEM_UI_FLAG_HIDE_NAVIGATION; 22 import static android.view.View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY; 23 import static android.view.View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN; 24 import static android.view.View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION; 43 import android.view.View; 126 final View view = new View(activity); in doTestLayoutAfterRemovingFocus() 167 final View view = new View(activity); in testAddingImmersiveWindow() 197 final View[] view = new View[1]; in testChangingFocusableFlag() 208 new View(activity) { in testChangingFocusableFlag() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SlidingDrawerTest.java | 37 import android.view.View; 113 View handle = mDrawer.getHandle(); in testGetHandle() 120 View content = mDrawer.getContent(); in testGetContent() 128 View content = mDrawer.getContent(); in testOpenAndClose() 130 assertEquals(View.GONE, content.getVisibility()); in testOpenAndClose() 134 assertEquals(View.VISIBLE, content.getVisibility()); in testOpenAndClose() 138 assertEquals(View.GONE, content.getVisibility()); in testOpenAndClose() 143 View content = mDrawer.getContent(); in testAnimateOpenAndClose() 146 assertEquals(View.GONE, content.getVisibility()); in testAnimateOpenAndClose() 150 assertEquals(View.GONE, content.getVisibility()); in testAnimateOpenAndClose() [all …]
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | EventCapturingClickListener.java | 23 import android.view.View; 28 public class EventCapturingClickListener implements View.OnClickListener { 30 private final BlockingQueue<View> mViews = new LinkedBlockingQueue<>(); 33 public void onClick(View view) { in onClick() 38 public void assertClicked(View... views) { in assertClicked() 39 View view; in assertClicked() 41 for (View v : views) { in assertClicked() 64 View view = mViews.poll(waitTime, SECONDS); in assertNoneClicked()
|
D | EventCapturingLongClickListener.java | 24 import android.view.View; 30 public class EventCapturingLongClickListener implements View.OnLongClickListener { 36 private final BlockingQueue<View> mViews = new LinkedBlockingQueue<>(); 47 public boolean onLongClick(View view) { in onLongClick() 53 public void assertLongClicked(View... views) { in assertLongClicked() 54 View view; in assertLongClicked() 56 for (View v : views) { in assertLongClicked() 79 View view = mViews.poll(waitTime, SECONDS); in assertNoneLongClicked()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/unit/ |
D | ViewNodeTest.java | 28 import android.view.View; 56 View view = new View(mContext); in testAutofillIdMethods_orphanView() 82 View child = new View(mContext); in testAutofillIdMethods_parentedView() 130 View view = new View(mContext); in testInvalidSetters() 189 View view = new View(mContext); in testVisibility() 193 structure.setVisibility(View.VISIBLE); in testVisibility() 194 assertThat(node.getVisibility()).isEqualTo(View.VISIBLE); in testVisibility() 195 assertThat(cloneThroughParcel(node).getVisibility()).isEqualTo(View.VISIBLE); in testVisibility() 197 structure.setVisibility(View.GONE); in testVisibility() 198 assertThat(node.getVisibility()).isEqualTo(View.GONE); in testVisibility() [all …]
|