Home
last modified time | relevance | path

Searched refs:View (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/external/androidplot/Examples/DemoApp/src/com/androidplot/demos/
DMainActivity.java22 import android.view.View;
35 startSimplePieExButton.setOnClickListener(new View.OnClickListener() { in onCreate()
37 public void onClick(View view) { in onCreate()
43 startDynamicXYExButton.setOnClickListener(new View.OnClickListener() { in onCreate()
45 public void onClick(View view) { in onCreate()
51 startSimpleXYExButton.setOnClickListener(new View.OnClickListener() { in onCreate()
53 public void onClick(View view) { in onCreate()
59 startBarPlotExButton.setOnClickListener(new View.OnClickListener() { in onCreate()
61 public void onClick(View view) { in onCreate()
67 startOrSensorExButton.setOnClickListener(new View.OnClickListener() { in onCreate()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowViewGroup.java3 import android.view.View;
21 private List<View> children = new ArrayList<View>();
27 public View findViewById(int id) { in findViewById()
32 for (View child : children) { in findViewById()
33 View found = child.findViewById(id); in findViewById()
43 public View findViewWithTag(Object obj) { in findViewWithTag()
48 for (View child : children) { in findViewWithTag()
49 View found = child.findViewWithTag(obj); in findViewWithTag()
59 public void addView(View child) { in addView()
64 public void addView(View child, int index) { in addView()
[all …]
DShadowListView.java7 import android.view.View;
21 private List<View> headerViews = new ArrayList<View>();
22 private List<View> footerViews = new ArrayList<View>();
29 public View findViewById(int id) { in findViewById()
30 View child = super.findViewById(id); in findViewById()
41 private View findView(List<View> views, int viewId) { in findView()
42 View child = null; in findView()
43 for (View v : views) { in findView()
60 public boolean performItemClick(View view, int position, long id) { in performItemClick()
87 public void addHeaderView(View headerView) { in addHeaderView()
[all …]
DShadowView.java15 import android.view.View;
16 import android.view.View.MeasureSpec;
41 @Implements(View.class)
44 protected View realView;
50 private View.OnClickListener onClickListener;
51 private View.OnLongClickListener onLongClickListener;
54 private int visibility = View.VISIBLE;
71 protected View.OnKeyListener onKeyListener;
73 private View.OnFocusChangeListener onFocusChangeListener;
75 private View.OnTouchListener onTouchListener;
[all …]
DShadowRemoteViews.java6 import android.view.View;
47 public void doUpdate(View view) { in setTextViewText()
56 @Override void doUpdate(final View view) { in setOnClickPendingIntent()
57 view.setOnClickListener(new View.OnClickListener() { in setOnClickPendingIntent()
59 public void onClick(View v) { in setOnClickPendingIntent()
75 public void doUpdate(View view) { in setViewVisibility()
85 public void doUpdate(View view) { in setImageViewResource()
95 public void doUpdate(View view) { in setImageViewBitmap()
102 public void reapply(Context context, View v) { in reapply()
115 final void update(View parent) { in update()
[all …]
DShadowAdapterView.java5 import android.view.View;
27 private View mEmptyView;
50 public void setEmptyView(View emptyView) { in setEmptyView()
56 public int getPositionForView(android.view.View view) { in getPositionForView()
58 view = (View) view.getParent(); in getPositionForView()
106 mEmptyView.setVisibility(View.VISIBLE); in updateEmptyStatus()
107 setVisibility(View.GONE); in updateEmptyStatus()
110 setVisibility(View.VISIBLE); in updateEmptyStatus()
122 mEmptyView.setVisibility(View.GONE); in updateEmptyStatus()
124 setVisibility(View.VISIBLE); in updateEmptyStatus()
[all …]
DShadowPopupWindow.java6 import android.view.View;
19 private View contentView;
27 private View.OnTouchListener onTouchInterceptor;
33 public void __constructor__(View contentView) { in __constructor__()
38 public void __constructor__(View contentView, int width, int height, boolean focusable) { in __constructor__()
46 public void setContentView(View contentView) { in setContentView()
52 public View getContentView() { in getContentView()
139 public void setTouchInterceptor(android.view.View.OnTouchListener l) { in setTouchInterceptor()
144 public void showAsDropDown(View anchor) { in showAsDropDown()
152 public void showAsDropDown(View anchor, int xoff, int yoff) { in showAsDropDown()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DAdapterViewBehavior.java4 import android.view.View;
43 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { in shouldIgnoreSetSelectionCallsWithInvalidPosition()
76 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { in testSetAdapter_ShouldSelectFirstItemAsynchronously()
98 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { in testSetAdapter_ShouldFireOnNothingSelectedWhenAdapterCountIsReducedToZero()
118 View emptyView = new View(adapterView.getContext()); in testSetEmptyView_ShouldHideAdapterViewIfAdapterIsNull()
121 assertThat(adapterView.getVisibility(), is(View.GONE)); in testSetEmptyView_ShouldHideAdapterViewIfAdapterIsNull()
122 assertThat(emptyView.getVisibility(), is(View.VISIBLE)); in testSetEmptyView_ShouldHideAdapterViewIfAdapterIsNull()
128 View emptyView = new View(adapterView.getContext()); in testSetEmptyView_ShouldHideAdapterViewIfAdapterViewIsEmpty()
131 assertThat(adapterView.getVisibility(), is(View.GONE)); in testSetEmptyView_ShouldHideAdapterViewIfAdapterViewIsEmpty()
132 assertThat(emptyView.getVisibility(), is(View.VISIBLE)); in testSetEmptyView_ShouldHideAdapterViewIfAdapterViewIsEmpty()
[all …]
DViewMeasureSpecTest.java10 import android.view.View;
11 import android.view.View.MeasureSpec;
18 assertEquals(View.MeasureSpec.UNSPECIFIED, in testMode()
19 MeasureSpec.getMode(MeasureSpec.makeMeasureSpec(512, View.MeasureSpec.UNSPECIFIED))); in testMode()
20 assertEquals(View.MeasureSpec.EXACTLY, in testMode()
21 MeasureSpec.getMode(MeasureSpec.makeMeasureSpec(600, View.MeasureSpec.EXACTLY))); in testMode()
22 assertEquals(View.MeasureSpec.AT_MOST, in testMode()
23 MeasureSpec.getMode(MeasureSpec.makeMeasureSpec(320, View.MeasureSpec.AT_MOST))); in testMode()
29 MeasureSpec.getSize(MeasureSpec.makeMeasureSpec(512, View.MeasureSpec.UNSPECIFIED))); in testSize()
31 MeasureSpec.getSize(MeasureSpec.makeMeasureSpec(800, View.MeasureSpec.EXACTLY))); in testSize()
[all …]
DListViewTest.java25 import android.view.View;
58 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { in testSetSelection_ShouldFireOnItemSelectedListener()
76 listView.addHeaderView(new View(null)); in addHeaderView_ShouldThrowIfAdapterIsAlreadySet()
83 listView.addHeaderView(new View(null), null, false); in addHeaderView_ShouldThrowIfAdapterIsAlreadySet()
92 View view0 = new View(null); in addHeaderView_ShouldRecordHeaders()
94 View view1 = new View(null); in addHeaderView_ShouldRecordHeaders()
96 View view2 = new View(null); in addHeaderView_ShouldRecordHeaders()
98 View view3 = new View(null); in addHeaderView_ShouldRecordHeaders()
118 View view = new View(null); in addHeaderView_shouldAttachTheViewToTheList()
130 listView.addFooterView(new View(null)); in addFooterView_ShouldThrowIfAdapterIsAlreadySet()
[all …]
DViewTest.java9 import android.view.View.MeasureSpec;
28 private View view;
32 view = new View(new Activity()); in setUp()
55 view.setOnFocusChangeListener(new View.OnFocusChangeListener() { in shouldFocus()
57 public void onFocusChange(View v, boolean hasFocus) { in shouldFocus()
94 grandParent.setVisibility(View.GONE); in shouldKnowIfThisOrAncestorsAreVisible()
104 View child = root.getChildAt(i); in shouldInflateMergeRootedLayoutAndNotCreateReferentialLoops()
133 grandParent.setVisibility(View.GONE); in checkedClick_shouldThrowIfViewIsNotVisible()
211 new View(null); in shouldSupportAllConstructors()
212 new View(null, null); in shouldSupportAllConstructors()
[all …]
DViewInnerTextTest.java5 import android.view.View;
29 top.addView(new View(activity)); in testInnerText()
49 top.addView(textView("blah", View.VISIBLE)); in shouldOnlyIncludeViewTextViewsText()
50 top.addView(textView("blarg", View.GONE)); in shouldOnlyIncludeViewTextViewsText()
51 top.addView(textView("arrg", View.INVISIBLE)); in shouldOnlyIncludeViewTextViewsText()
59 top.addView(textView("blarg", View.GONE)); in shouldNotPrefixBogusSpaces()
60 top.addView(textView("arrg", View.INVISIBLE)); in shouldNotPrefixBogusSpaces()
61 top.addView(textView("blah", View.VISIBLE)); in shouldNotPrefixBogusSpaces()
67 return textView(text, View.VISIBLE); in textView()
DViewGroupTest.java4 import android.view.View;
33 private View child1;
34 private View child2;
36 private View child3a;
37 private View child3b;
47 child1 = new View(context); in setUp()
48 child2 = new View(context); in setUp()
50 child3a = new View(context); in setUp()
51 child3b = new View(context); in setUp()
94 assertThat(root.getChildAt(1), sameInstance((View) child3)); in testRemoveChildAt()
[all …]
DViewAnimatorTest.java4 import android.view.View;
25 View v = new View(null); in testHappyPath()
34 View v1 = new View(null); in testAnimatorHandlesCyclingViews()
35 View v2 = new View(null); in testAnimatorHandlesCyclingViews()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/res/
DViewLoader.java9 import android.view.View;
80 public View inflateView(Context context, String key) { in inflateView()
84 public View inflateView(Context context, String key, View parent) { in inflateView()
88 public View inflateView(Context context, int resourceId, View parent) { in inflateView()
92 …private View inflateView(Context context, String layoutName, Map<String, String> attributes, View in inflateView()
170 public View inflate(Context context, View parent) throws Exception { in inflate()
171 View view = create(context, (ViewGroup) parent); in inflate()
181 …private void invokeOnFinishInflate(View view) throws NoSuchMethodException, IllegalAccessException… in invokeOnFinishInflate()
182 Method onFinishInflate = View.class.getDeclaredMethod("onFinishInflate"); in invokeOnFinishInflate()
187 private View create(Context context, ViewGroup parent) throws Exception { in create()
[all …]
/external/replicaisland/src/com/replica/replicaisland/
DDifficultyMenuActivity.java11 import android.view.View;
16 private View mBabyButton;
17 private View mKidsButton;
18 private View mAdultsButton;
19 private View mBackground;
20 private View mBabyText;
21 private View mKidsText;
22 private View mAdultsText;
27 private View.OnClickListener sBabyButtonListener = new View.OnClickListener() {
28 public void onClick(View v) {
[all …]
DExtrasMenuActivity.java15 import android.view.View;
20 private View mLinearModeButton;
21 private View mLevelSelectButton;
22 private View mControlsButton;
23 private View mBackground;
24 private View mLevelSelectLocked;
25 private View mLinearModeLocked;
41 private View.OnClickListener sLinearModeButtonListener = new View.OnClickListener() {
42 public void onClick(View v) {
55 private View.OnClickListener sLevelSelectButtonListener = new View.OnClickListener() {
[all …]
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/bytecode/
DAndroidTranslatorTest.java8 import android.view.View;
82 View view = new View(null); in testDirectlyOn()
99 View.resolveSize(0, 0); in testDirectlyOn_Statics()
103 directlyOn(View.class); in testDirectlyOn_Statics()
104 View.resolveSize(0, 0); in testDirectlyOn_Statics()
111 View.resolveSize(0, 0); in testDirectlyOn_Statics()
116 View view1 = new View(null); in testDirectlyOn_InstanceChecking()
117 View view2 = new View(null); in testDirectlyOn_InstanceChecking()
137 directlyOn(View.class); in testDirectlyOn_Statics_InstanceChecking()
148 directlyOn(View.class); in testDirectlyOn_CallTwiceChecking()
[all …]
/external/droiddriver/src/io/appium/droiddriver/instrumentation/
DInstrumentationDriver.java23 import android.view.View;
35 public class InstrumentationDriver extends BaseDroidDriver<View, ViewElement> {
36 private static final Callable<View> FIND_ROOT_VIEW =
37 new Callable<View>() {
39 public View call() {
47 List<View> views = RootFinder.getRootViews();
50 for (View view : views) {
61 private final DroidDriverContext<View, ViewElement> context;
66 context = new DroidDriverContext<View, ViewElement>(instrumentation, this); in InstrumentationDriver()
82 protected ViewElement newUiElement(View rawElement, ViewElement parent) { in newUiElement()
[all …]
DViewElement.java23 import android.view.View;
42 public class ViewElement extends BaseUiElement<View, ViewElement> {
43 private final DroidDriverContext<View, ViewElement> context;
44 private final View view;
56 public ViewElement(DroidDriverContext<View, ViewElement> context, View view, ViewElement parent) { in ViewElement() argument
70 for (View childView : attributesSnapshot.childViews) { in ViewElement()
114 public View getRawElement() { in getRawElement()
120 private final View view;
123 List<View> childViews;
125 private AttributesSnapshot(View view) { in AttributesSnapshot()
[all …]
/external/llvm/tools/llvm-cov/
DSourceCoverageView.h29 std::unique_ptr<SourceCoverageView> View; member
32 std::unique_ptr<SourceCoverageView> View) in ExpansionView()
33 : Region(Region), View(std::move(View)) {} in ExpansionView()
35 : Region(std::move(RHS.Region)), View(std::move(RHS.View)) {} in ExpansionView()
38 View = std::move(RHS.View);
55 std::unique_ptr<SourceCoverageView> View; member
58 std::unique_ptr<SourceCoverageView> View) in InstantiationView()
59 : FunctionName(FunctionName), Line(Line), View(std::move(View)) {} in InstantiationView()
62 View(std::move(RHS.View)) {} in InstantiationView()
66 View = std::move(RHS.View);
[all …]
/external/webrtc/webrtc/examples/androidapp/src/org/appspot/apprtc/
DCallFragment.java17 import android.view.View;
29 private View controlView;
51 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView()
71 disconnectButton.setOnClickListener(new View.OnClickListener() { in onCreateView()
73 public void onClick(View view) { in onCreateView()
78 cameraSwitchButton.setOnClickListener(new View.OnClickListener() { in onCreateView()
80 public void onClick(View view) { in onCreateView()
85 videoScalingButton.setOnClickListener(new View.OnClickListener() { in onCreateView()
87 public void onClick(View view) { in onCreateView()
119 cameraSwitchButton.setVisibility(View.INVISIBLE); in onStart()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/tester/android/view/
DTestWindowManager.java4 import android.view.View;
16 private List<View> views = new ArrayList<View>();
19 public void addView(View view, android.view.ViewGroup.LayoutParams layoutParams) { in addView()
24 public void removeView(View view) { in removeView()
29 public void updateViewLayout(View arg0, android.view.ViewGroup.LayoutParams arg1) { in updateViewLayout()
38 public void removeViewImmediate(View arg0) { in removeViewImmediate()
41 public List<View> getViews() { in getViews()
/external/skia/platform_tools/android/apps/viewer/src/main/java/org/skia/viewer/
DStateAdapter.java7 import android.view.View;
92 public View getView(int position, View convertView, ViewGroup parent) { in getView()
103 View view = LayoutInflater.from(mViewerActivity).inflate(R.layout.fps_toggle, null); in getView()
108 mFPSFloatText.setVisibility(isChecked ? View.VISIBLE : View.INVISIBLE); in getView()
121 private void populateView(JSONObject item, View view) throws JSONException { in populateView()
136 itemView.setVisibility(View.GONE); in populateView()
142 valueText.setVisibility(View.VISIBLE); in populateView()
143 optionSpinner.setVisibility(View.GONE); in populateView()
155 View existingView = itemView.getChildAt(1); in populateView()
179 optionSpinner.setVisibility(View.VISIBLE); in populateView()
[all …]
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ui/
DFullScreenTask.java23 import android.view.View;
24 import android.view.View.OnClickListener;
48 public View mView = null;
97 protected View defaultView() { in defaultView()
129 private View getViewByName(String idName) { in getViewByName()
130 View result = null; in getViewByName()
141 View v = getViewByName(idName); in getViewDetail()
149 View v = getViewByName(idName); in setViewProperty()
169 View v = getViewByName(id); in setList()
189 public void onClick(View view) { in onClick()
[all …]

12345678910>>...18