Home | History | Annotate | Download | only in cts

Lines Matching defs:mPopupWindow

81     private ListPopupWindow mPopupWindow;
94 mPopupWindow.dismiss();
111 if ((mPopupWindowBuilder != null) && (mPopupWindow != null)) {
139 mPopupWindow = new ListPopupWindow(mActivity);
140 assertFalse(mPopupWindow.isShowing());
150 mPopupWindow.setBackgroundDrawable(drawable);
151 assertSame(drawable, mPopupWindow.getBackground());
153 mPopupWindow.setBackgroundDrawable(null);
154 assertNull(mPopupWindow.getBackground());
162 assertEquals(0, mPopupWindow.getAnimationStyle());
164 mPopupWindow.setAnimationStyle(android.R.style.Animation_Toast);
165 assertEquals(android.R.style.Animation_Toast, mPopupWindow.getAnimationStyle());
168 mPopupWindow.setAnimationStyle(-100);
169 assertEquals(-100, mPopupWindow.getAnimationStyle());
178 assertEquals(WindowManager.LayoutParams.WRAP_CONTENT, mPopupWindow.getHeight());
181 mPopupWindow.setHeight(height);
182 assertEquals(height, mPopupWindow.getHeight());
185 mPopupWindow.setHeight(height);
186 assertEquals(height, mPopupWindow.getHeight());
188 mPopupWindow.setHeight(0);
189 assertEquals(0, mPopupWindow.getHeight());
192 mPopupWindow.setHeight(height);
193 assertEquals(height, mPopupWindow.getHeight());
197 mPopupWindow.setHeight(height);
220 assertEquals(WindowManager.LayoutParams.WRAP_CONTENT, mPopupWindow.getWidth());
223 mPopupWindow.setWidth(width);
224 assertEquals(width, mPopupWindow.getWidth());
227 mPopupWindow.setWidth(width);
228 assertEquals(width, mPopupWindow.getWidth());
230 mPopupWindow.setWidth(0);
231 assertEquals(0, mPopupWindow.getWidth());
234 mPopupWindow.setWidth(width);
235 assertEquals(width, mPopupWindow.getWidth());
238 mPopupWindow.setWidth(width);
239 assertEquals(width, mPopupWindow.getWidth());
244 final ListView listView = mPopupWindow.getListView();
249 assertTrue(mPopupWindow.isShowing());
250 assertEquals(upperAnchor, mPopupWindow.getAnchorView());
265 getDisplay().getWidth() - mPopupWindow.getWidth() + listViewInWindowXY[0];
282 assertEquals(0, mPopupWindow.getHorizontalOffset());
283 assertEquals(0, mPopupWindow.getVerticalOffset());
294 assertEquals(50, mPopupWindow.getHorizontalOffset());
295 assertEquals(0, mPopupWindow.getVerticalOffset());
306 assertEquals(0, mPopupWindow.getHorizontalOffset());
307 assertEquals(60, mPopupWindow.getVerticalOffset());
318 assertEquals(0, mPopupWindow.getHorizontalOffset());
319 assertEquals(0, mPopupWindow.getVerticalOffset());
330 assertEquals(0, mPopupWindow.getHorizontalOffset());
331 assertEquals(0, mPopupWindow.getVerticalOffset());
342 assertTrue(mPopupWindow.isShowing());
345 mPopupWindow.getListView().getRootView().getLayoutParams();
354 assertTrue(mPopupWindow.isShowing());
358 assertFalse(mPopupWindow.isShowing());
362 assertFalse(mPopupWindow.isShowing());
380 mPopupWindow.setOnDismissListener(null);
396 assertEquals(PopupWindow.INPUT_METHOD_NEEDED, mPopupWindow.getInputMethodMode());
397 assertFalse(mPopupWindow.isInputMethodNotNeeded());
399 mPopupWindow.setInputMethodMode(PopupWindow.INPUT_METHOD_FROM_FOCUSABLE);
400 assertEquals(PopupWindow.INPUT_METHOD_FROM_FOCUSABLE, mPopupWindow.getInputMethodMode());
401 assertFalse(mPopupWindow.isInputMethodNotNeeded());
403 mPopupWindow.setInputMethodMode(PopupWindow.INPUT_METHOD_NEEDED);
404 assertEquals(PopupWindow.INPUT_METHOD_NEEDED, mPopupWindow.getInputMethodMode());
405 assertFalse(mPopupWindow.isInputMethodNotNeeded());
407 mPopupWindow.setInputMethodMode(PopupWindow.INPUT_METHOD_NOT_NEEDED);
408 assertEquals(PopupWindow.INPUT_METHOD_NOT_NEEDED, mPopupWindow.getInputMethodMode());
409 assertTrue(mPopupWindow.isInputMethodNotNeeded());
411 mPopupWindow.setInputMethodMode(-1);
412 assertEquals(-1, mPopupWindow.getInputMethodMode());
413 assertFalse(mPopupWindow.isInputMethodNotNeeded());
422 mPopupWindow = new ListPopupWindow(mActivity);
424 mPopupWindow.getSoftInputMode());
426 mPopupWindow
428 mPopupWindow.getSoftInputMode());
430 mPopupWindow.setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
432 mPopupWindow.getSoftInputMode());
447 assertTrue("Popup window showing", mPopupWindow.isShowing());
449 assertEquals("Popup window modality", setupAsModal, mPopupWindow.isModal());
460 final ListView popupListView = mPopupWindow.getListView();
462 mPopupWindow.getBackground().getPadding(rect);
469 assertFalse("Popup window not showing after outside click", mPopupWindow.isShowing());
491 mActivityRule.runOnUiThread(() -> mPopupWindow.performItemClick(2));
497 assertFalse(mPopupWindow.isShowing());
503 () -> mPopupWindow.getListView().performItemClick(null, 1, 1));
509 assertFalse(mPopupWindow.isShowing());
529 assertEquals(ListPopupWindow.POSITION_PROMPT_ABOVE, mPopupWindow.getPromptPosition());
531 final ListView listView = mPopupWindow.getListView();
561 assertEquals(ListPopupWindow.POSITION_PROMPT_BELOW, mPopupWindow.getPromptPosition());
563 final ListView listView = mPopupWindow.getListView();
590 final ListView listView = mPopupWindow.getListView();
594 () -> mPopupWindow.setSelection(1));
599 assertEquals(1, mPopupWindow.getSelectedItemId());
600 assertEquals(1, mPopupWindow.getSelectedItemPosition());
601 assertEquals("Bob", mPopupWindow.getSelectedItem());
602 View selectedView = mPopupWindow.getSelectedView();
609 () -> mPopupWindow.setSelection(3));
614 assertEquals(3, mPopupWindow.getSelectedItemId());
615 assertEquals(3, mPopupWindow.getSelectedItemPosition());
616 assertEquals("Deirdre", mPopupWindow.getSelectedItem());
617 selectedView = mPopupWindow.getSelectedView();
624 mPopupWindow::clearListSelection);
629 assertEquals(AdapterView.INVALID_ROW_ID, mPopupWindow.getSelectedItemId());
630 assertEquals(AdapterView.INVALID_POSITION, mPopupWindow.getSelectedItemPosition());
631 assertEquals(null, mPopupWindow.getSelectedItem());
632 assertEquals(null, mPopupWindow.getSelectedView());
647 assertTrue(mPopupWindow.isShowing());
661 (MockViewForListPopupWindow) mPopupWindow.getAnchorView();
662 anchor.wireTo(mPopupWindow);
673 assertFalse(mPopupWindow.isShowing());
683 final View root = mPopupWindow.getListView().getRootView();
687 (MockViewForListPopupWindow) mPopupWindow.getAnchorView();
688 anchor.wireTo(mPopupWindow);
695 final ListView listView = mPopupWindow.getListView();
697 () -> mPopupWindow.setSelection(1));
744 assertFalse(mPopupWindow.isShowing());
768 final View.OnTouchListener dragListener = mPopupWindow.createDragToOpenListener(anchor);
772 anchor.setOnClickListener((View view) -> mPopupWindow.show());
799 assertFalse(mPopupWindow.isShowing());
944 mPopupWindow = new ListPopupWindow(mActivity, null, mPopupStyleAttr, 0);
946 mPopupWindow = new ListPopupWindow(mActivity);
986 mPopupWindow.setAdapter(listPopupAdapter);
987 mPopupWindow.setAnchorView(mActivity.findViewById(mAnchorId));
995 mPopupWindow.setOnItemClickListener(mOnItemClickListener);
1005 mPopupWindow.setOnItemSelectedListener(mOnItemSelectedListener);
1006 mPopupWindow.setListSelector(
1012 mPopupWindow.setOnDismissListener(mOnDismissListener);
1015 mPopupWindow.setModal(mIsModal);
1017 mPopupWindow.setWindowLayoutType(mWindowLayoutType);
1021 mPopupWindow.setContentWidth(
1022 getContentWidth(listPopupAdapter, mPopupWindow.getBackground()));
1026 mPopupWindow.setHorizontalOffset(mHorizontalOffset);
1030 mPopupWindow.setVerticalOffset(mVerticalOffset);
1034 mPopupWindow.setDropDownGravity(mDropDownGravity);
1038 mPopupWindow.setPromptPosition(mPromptPosition);
1039 mPopupWindow.setPromptView(mPromptView);
1045 mPopupWindow.show();
1046 assertTrue(mPopupWindow.isShowing());
1050 if (mPopupWindow == null || mPopupWindow.isShowing()) {
1053 mPopupWindow.show();
1054 assertTrue(mPopupWindow.isShowing());
1058 if (mPopupWindow == null || !mPopupWindow.isShowing())
1060 mPopupWindow.dismiss();