HomeSort by relevance Sort by last modified time
    Searched defs:view1 (Results 1 - 17 of 17) sorted by null

  /cts/tests/tests/widget/src/android/widget/cts/
RelativeLayout_LayoutParamsTest.java 62 // view1, centered within its parent.
64 View view1 = activity.findViewById(R.id.relative_view1); local
65 ViewAsserts.assertHorizontalCenterAligned(relativeLayout, view1);
66 ViewAsserts.assertVerticalCenterAligned(relativeLayout, view1);
67 layoutParams = (RelativeLayout.LayoutParams) (view1.getLayoutParams());
71 // view2, below view1 and has same left position with view1.
74 ViewAsserts.assertLeftAligned(view1, view2);
75 assertEquals(view1.getBottom(), view2.getTop());
81 // view3, has same top position with view1 and same bottom position with view2
171 View view1 = activity.findViewById(R.id.relative_view21); local
    [all...]
CheckedTextViewTest.java 104 CheckedTextView view1 = (CheckedTextView) adapter.getView(1, null, null); local
107 assertTrue(view1.isChecked());
118 assertTrue(view1.isChecked());
122 view1.setChecked(false);
125 assertFalse(view1.isChecked());
TabWidgetTest.java 164 View view1 = new TextView(mActivity); local
165 mockTabWidget.addView(view1);
166 assertSame(view1, mockTabWidget.getChildAt(0));
  /external/chromium_org/ash/tooltips/
tooltip_controller_unittest.cc 138 TooltipTestView* view1 = new TooltipTestView; local
139 AddViewToWidgetAndResize(widget1.get(), view1);
140 view1->set_tooltip_text(base::ASCIIToUTF16("Tooltip Text for view 1"));
172 view1->bounds().CenterPoint());
  /external/chromium_org/ui/views/controls/native/
native_view_host_unittest.cc 227 // +-- view1 (View)
234 View* view1 = new View; local
235 toplevel()->GetRootView()->AddChildView(view1);
245 view1,
261 // Reparent view0 to view1, expect no parent change because the old and new
262 // parents of both view0 and view1 belong to the same toplevel widget.
267 view1->AddChildView(view0);
272 // Then, reparent view1 to contents view of child0.
280 child0->GetContentsView()->AddChildView(view1);
  /frameworks/testing/espresso/espresso-lib/src/main/java/com/google/android/apps/common/testing/ui/espresso/
AmbiguousViewMatcherException.java 50 private View view1; field in class:AmbiguousViewMatcherException
62 this.view1 = builder.view1;
71 ImmutableSet.<View>builder().add(builder.view1, builder.view2).add(builder.others).build();
87 private View view1; field in class:AmbiguousViewMatcherException.Builder
95 this.view1 = exception.view1;
111 public Builder withView1(View view1) {
112 this.view1 = view1;
    [all...]
  /external/chromium_org/ash/
focus_cycler_unittest.cc 322 views::View* view1 = new views::View; local
323 view1->SetFocusable(true);
324 pane1->AddChildView(view1);
360 EXPECT_EQ(focus_manager->GetFocusedView(), view1);
379 EXPECT_EQ(focus_manager->GetFocusedView(), view1);
395 EXPECT_EQ(focus_manager->GetFocusedView(), view1);
403 EXPECT_EQ(focus_manager->GetFocusedView(), view1);
  /external/chromium_org/ui/views/layout/
grid_layout_unittest.cc 592 View* view1 = new SettableSizeView(gfx::Size(2, 40)); local
594 layout.AddView(view1);
602 // view1 should be 4 pixels wide
605 ExpectViewBoundsEquals(0, 40, 4, 40, view1);
630 View* view1 = new FlexibleView(100); local
631 layout.AddView(view1, 1, 1, GridLayout::FILL, GridLayout::LEADING);
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
ViewTest.java 338 TestView view1 = new TestView(new Activity()); local
339 assertFalse(view1.onAnimationEndWasCalled);
340 shadowOf(view1).finishedAnimation();
341 assertTrue(view1.onAnimationEndWasCalled);
347 TestView view1 = new TestView(new Activity()); local
349 assertThat(view1.getHeight(), equalTo(0));
350 assertThat(view1.getWidth(), equalTo(0));
351 assertThat(view1.getMeasuredHeight(), equalTo(0));
352 assertThat(view1.getMeasuredWidth(), equalTo(0));
354 view1.measure( MeasureSpec.makeMeasureSpec(150, MeasureSpec.AT_MOST)
    [all...]
ListViewTest.java 94 View view1 = new View(null); local
95 view1.setId(1);
101 listView.addHeaderView(view1);
106 assertThat(shadowOf(listView).getHeaderViews().get(1), sameInstance(view1));
141 View view1 = new View(null); local
143 listView.addFooterView(view1);
145 assertThat(shadowOf(listView).getFooterViews().get(1), sameInstance(view1));
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/bytecode/
AndroidTranslatorTest.java 116 View view1 = new View(null); local
121 directlyOn(view1);
  /external/chromium_org/ui/views/focus/
focus_manager_unittest.cc 72 SimpleTestView* view1 = new SimpleTestView(&event_list, kView1ID); local
74 GetContentsView()->AddChildView(view1);
77 view1->RequestFocus();
98 View* view1 = new View(); local
99 view1->SetFocusable(true);
102 GetContentsView()->AddChildView(view1);
111 view1->RequestFocus();
113 EXPECT_TRUE(listener.focus_changes()[0] == ViewPair(null_view, view1));
118 EXPECT_TRUE(listener.focus_changes()[0] == ViewPair(view1, view2));
893 View* view1 = new View local
    [all...]
  /frameworks/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/matcher/
ViewMatchersTest.java 368 View view1 = new TextView(getInstrumentation().getTargetContext()); local
376 tiptop.addView(view1);
377 assertTrue(withParent(is((View) tiptop)).matches(view1));
381 assertFalse(withParent(is((View) secondLevel)).matches(view1));
390 View view1 = new TextView(getInstrumentation().getTargetContext()); local
398 tiptop.addView(view1);
399 assertTrue(withChild(is(view1)).matches(tiptop));
401 assertFalse(withChild(is((View) tiptop)).matches(view1));
403 assertFalse(withChild(is(view1)).matches(secondLevel));
  /cts/tests/tests/view/src/android/view/cts/
ViewTreeObserverTest.java 76 final View view1 = mActivity.findViewById(R.id.view1); local
82 view1.requestFocus();
102 && listener.oldFocus == view1 && listener.newFocus == view2;
159 final View view1 = mActivity.findViewById(R.id.view1); local
160 mViewTreeObserver = view1.getViewTreeObserver();
167 final View view1 = mActivity.findViewById(R.id.view1); local
168 mViewTreeObserver = view1.getViewTreeObserver()
222 final View view1 = mActivity.findViewById(R.id.view1); local
    [all...]
  /external/chromium_org/ui/views/widget/
widget_interactive_uitest.cc 490 View* view1 = new View; local
491 view1->SetFocusable(true);
492 widget1->GetContentsView()->AddChildView(view1);
504 view1->RequestFocus();
505 EXPECT_EQ(view1, widget1->GetFocusManager()->GetFocusedView());
518 EXPECT_EQ(view1, widget1->GetFocusManager()->GetFocusedView());
    [all...]
  /packages/apps/Email/tests/src/com/android/emailcommon/internet/
MimeUtilityTest.java 330 final ArrayList<Part> view1 = new ArrayList<Part>(); local
332 MimeUtility.collectParts(cid1bp, view1, attach1);
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/infobar/
InfoBarLayout.java 205 * standard infobar controls (icon, text, buttons). Depending on the available space, view1 and
211 public void setCustomContent(View view1, View view2) {
212 mCustomGroup = addGroup(view1, view2);
537 View view1 = mCustomGroup.views[1]; local
541 measureChildWithFixedWidth(view1, view1.getMeasuredWidth() + extraWidth1);

Completed in 477 milliseconds