/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/chrome/browser/ui/views/ |
generic_info_view_unittest.cc | 43 GenericInfoView* view1 = new GenericInfoView(1); local 44 root_view->AddChildView(view1); 45 view1->SetName(0, kName); 46 view1->SetValue(0, kValue); 47 EXPECT_EQ(kName, view1->name_views_[0]->GetText()); 48 EXPECT_EQ(kValue, view1->value_views_[0]->text()); 49 view1->ClearValues(); 50 EXPECT_TRUE(view1->value_views_[0]->text().empty());
|
/external/chromium_org/ash/tooltips/ |
tooltip_controller_unittest.cc | 139 TooltipTestView* view1 = new TooltipTestView; local 140 AddViewToWidgetAndResize(widget1.get(), view1); 141 view1->set_tooltip_text(ASCIIToUTF16("Tooltip Text for view 1")); 173 view1->bounds().CenterPoint());
|
/external/chromium_org/ui/views/controls/native/ |
native_view_host_unittest.cc | 240 // +-- view1 (View) 247 View* view1 = new View; local 248 toplevel()->GetRootView()->AddChildView(view1); 258 view1, 274 // Reparent view0 to view1, expect no parent change because the old and new 275 // parents of both view0 and view1 belong to the same toplevel widget. 280 view1->AddChildView(view0); 285 // Then, reparent view1 to contents view of child0. 293 child0->GetContentsView()->AddChildView(view1);
|
/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/chromium/chrome/browser/chromeos/notifications/ |
notification_browsertest.cc | 502 BalloonViewImpl* view1 = local 507 WaitForResize(view1); 512 EXPECT_TRUE(tester->IsActive(view1)); 516 EXPECT_FALSE(tester->IsActive(view1)); 520 EXPECT_FALSE(tester->IsActive(view1));
|
/external/chromium_org/ash/ |
focus_cycler_unittest.cc | 317 views::View* view1 = new views::View; local 318 view1->SetFocusable(true); 319 pane1->AddChildView(view1); 355 EXPECT_EQ(focus_manager->GetFocusedView(), view1); 374 EXPECT_EQ(focus_manager->GetFocusedView(), view1); 390 EXPECT_EQ(focus_manager->GetFocusedView(), view1); 398 EXPECT_EQ(focus_manager->GetFocusedView(), view1);
|
/external/chromium_org/ui/views/layout/ |
grid_layout_unittest.cc | 565 View* view1 = new SettableSizeView(gfx::Size(2, 40)); local 567 layout.AddView(view1); 575 // view1 should be 4 pixels wide 578 ExpectViewBoundsEquals(0, 40, 4, 40, view1); 603 View* view1 = new FlexibleView(100); local 604 layout.AddView(view1, 1, 1, GridLayout::FILL, GridLayout::LEADING);
|
/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 | 79 SimpleTestView* view1 = new SimpleTestView(&event_list, kView1ID); local 81 GetContentsView()->AddChildView(view1); 84 view1->RequestFocus(); 105 View* view1 = new View(); local 106 view1->SetFocusable(true); 109 GetContentsView()->AddChildView(view1); 118 view1->RequestFocus(); 120 EXPECT_TRUE(listener.focus_changes()[0] == ViewPair(null_view, view1)); 125 EXPECT_TRUE(listener.focus_changes()[0] == ViewPair(view1, view2)); 882 View* view1 = new View local [all...] |
/cts/tests/tests/view/src/android/view/cts/ |
ViewTreeObserverTest.java | 77 final View view1 = mActivity.findViewById(R.id.view1); local 83 view1.requestFocus(); 103 && listener.oldFocus == view1 && listener.newFocus == view2; 160 final View view1 = mActivity.findViewById(R.id.view1); local 161 mViewTreeObserver = view1.getViewTreeObserver(); 168 final View view1 = mActivity.findViewById(R.id.view1); local 169 mViewTreeObserver = view1.getViewTreeObserver() 223 final View view1 = mActivity.findViewById(R.id.view1); local [all...] |
/packages/apps/Email/tests/src/com/android/emailcommon/internet/ |
MimeUtilityTest.java | 370 final ArrayList<Part> view1 = new ArrayList<Part>(); local 372 MimeUtility.collectParts(cid1bp, view1, attach1);
|