Home
last modified time | relevance | path

Searched refs:mBar (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DSwitchBarTest.java44 private SwitchBar mBar; field in SwitchBarTest
49 mBar = new SwitchBar(application, Robolectric.buildAttributeSet() in setUp()
61 assertThat(((TextView) mBar.findViewById(R.id.switch_text)).getText()) in cycleChecked_defaultLabel_shouldUpdateTextAndBackground()
64 mBar.setChecked(true); in cycleChecked_defaultLabel_shouldUpdateTextAndBackground()
66 assertThat(mBar.getBackground()).isInstanceOf(ColorDrawable.class); in cycleChecked_defaultLabel_shouldUpdateTextAndBackground()
67 assertThat(((TextView) mBar.findViewById(R.id.switch_text)).getText()) in cycleChecked_defaultLabel_shouldUpdateTextAndBackground()
76 mBar.setSwitchBarText(onText, offText); in cycleChecked_customLabel_shouldUpdateTextAndBackground()
77 assertThat(((TextView) mBar.findViewById(R.id.switch_text)).getText()) in cycleChecked_customLabel_shouldUpdateTextAndBackground()
80 mBar.setChecked(true); in cycleChecked_customLabel_shouldUpdateTextAndBackground()
81 assertThat(mBar.getBackground()).isInstanceOf(ColorDrawable.class); in cycleChecked_customLabel_shouldUpdateTextAndBackground()
[all …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DZoomControlBar.java36 private View mBar; field in ZoomControlBar
46 mBar = new View(context); in ZoomControlBar()
47 mBar.setBackgroundResource(R.drawable.zoom_slider_bar); in ZoomControlBar()
48 addView(mBar); in ZoomControlBar()
54 mBar.setActivated(activated); in setActivated()
129 mBar.layout(mTotalIconWidth, 0, mWidth - mTotalIconWidth, height); in onLayout()
142 pos = mBar.getRight() - sliderPosition; in onLayout()
146 pos = mBar.getLeft() + sliderPosition; in onLayout()