Home
last modified time | relevance | path

Searched refs:ViewGroup (Results 1 – 25 of 687) sorted by relevance

12345678910>>...28

/frameworks/base/core/java/android/view/
DGhostView.java45 final ViewGroup parent = (ViewGroup) mView.getParent(); in GhostView()
83 final ViewGroup parent = (ViewGroup) mView.getParent(); in onDetachedFromWindow()
90 public static void calculateMatrix(View view, ViewGroup host, Matrix matrix) { in calculateMatrix()
91 ViewGroup parent = (ViewGroup) view.getParent(); in calculateMatrix()
99 public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) { in addGhost()
100 if (!(view.getParent() instanceof ViewGroup)) { in addGhost()
109 ViewGroup oldGrandParent = (ViewGroup) oldParent.getParent(); in addGhost()
140 public static GhostView addGhost(View view, ViewGroup viewGroup) { in addGhost()
150 ViewGroup parent = (ViewGroup) ghostView.getParent(); in removeGhost()
151 ViewGroup grandParent = (ViewGroup) parent.getParent(); in removeGhost()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/focus/
DListOfEditTexts.java23 import android.view.ViewGroup;
52 mLinearLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
53 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
54 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
60 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
61 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
67 mListView.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
68 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
69 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
73 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
[all …]
DGoneParentFocusedChild.java23 import android.view.ViewGroup;
60 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
61 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
62 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
67 mGoneGroup.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
68 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
69 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
73 ViewGroup.LayoutParams.WRAP_CONTENT, in onCreate()
74 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
DVerticalFocusSearch.java23 import android.view.ViewGroup;
70 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
71 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
72 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
105 ViewGroup.LayoutParams.MATCH_PARENT, in makeWide()
106 ViewGroup.LayoutParams.WRAP_CONTENT)); in makeWide()
123 ViewGroup.LayoutParams.WRAP_CONTENT, in addSkinny()
130 ViewGroup.LayoutParams.WRAP_CONTENT, in addSkinny()
136 ViewGroup.LayoutParams.MATCH_PARENT, in addSkinny()
137 ViewGroup.LayoutParams.WRAP_CONTENT)); in addSkinny()
DHorizontalFocusSearch.java22 import android.view.ViewGroup;
63 mLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
64 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
65 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
97 ViewGroup.LayoutParams.WRAP_CONTENT, in makeTall()
98 ViewGroup.LayoutParams.MATCH_PARENT)); in makeTall()
106 ViewGroup.LayoutParams.WRAP_CONTENT, in addShort()
113 ViewGroup.LayoutParams.WRAP_CONTENT, in addShort()
120 ViewGroup.LayoutParams.WRAP_CONTENT, in addShort()
121 ViewGroup.LayoutParams.MATCH_PARENT)); in addShort()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DZenRadioLayout.java20 import android.view.ViewGroup;
42 ViewGroup radioGroup = (ViewGroup) getChildAt(0); in onMeasure()
43 ViewGroup radioContent = (ViewGroup) getChildAt(1); in onMeasure()
72 if (content instanceof ViewGroup) { in findFirstClickable()
73 ViewGroup group = (ViewGroup) content; in findFirstClickable()
84 if (content instanceof ViewGroup) { in findLastClickable()
85 ViewGroup group = (ViewGroup) content; in findLastClickable()
/frameworks/base/core/java/com/android/internal/app/
DMicroAlertController.java24 import android.view.ViewGroup;
40 protected void setupContent(ViewGroup contentPanel) { in setupContent()
62 ((ViewGroup) topPanel.getParent()).removeView(topPanel); in setupContent()
70 ((ViewGroup) buttonPanel.getParent()).removeView(buttonPanel); in setupContent()
77 final ViewGroup scrollParent = (ViewGroup) mScrollView.getParent(); in setupContent()
83 new ViewGroup.LayoutParams( in setupContent()
84 ViewGroup.LayoutParams.MATCH_PARENT, in setupContent()
85 ViewGroup.LayoutParams.MATCH_PARENT)); in setupContent()
98 protected void setupTitle(ViewGroup topPanel) { in setupTitle()
106 protected void setupButtons(ViewGroup buttonPanel) { in setupButtons()
/frameworks/base/core/java/android/transition/
DScene.java27 import android.view.ViewGroup;
40 private ViewGroup mSceneRoot;
62 public static Scene getSceneForLayout(ViewGroup sceneRoot, int layoutId, Context context) { in getSceneForLayout()
89 public Scene(ViewGroup sceneRoot) { in Scene()
108 private Scene(ViewGroup sceneRoot, int layoutId, Context context) { in Scene()
124 public Scene(ViewGroup sceneRoot, View layout) { in Scene()
133 public Scene(ViewGroup sceneRoot, ViewGroup layout) { in Scene()
145 public ViewGroup getSceneRoot() { in getSceneRoot()
205 static void setCurrentScene(@NonNull ViewGroup sceneRoot, @Nullable Scene scene) { in setCurrentScene()
218 public static Scene getCurrentScene(@NonNull ViewGroup sceneRoot) { in getCurrentScene()
DTransitionManager.java25 import android.view.ViewGroup;
78 private static ThreadLocal<WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>>
80 new ThreadLocal<WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>>();
82 private static ArrayList<ViewGroup> sPendingTransitions = new ArrayList<ViewGroup>();
159 ViewGroup sceneRoot = scene.getSceneRoot(); in getTransition()
189 final ViewGroup sceneRoot = scene.getSceneRoot(); in changeScene()
219 private static ArrayMap<ViewGroup, ArrayList<Transition>> getRunningTransitions() { in getRunningTransitions()
220 WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>> runningTransitions = in getRunningTransitions()
223 ArrayMap<ViewGroup, ArrayList<Transition>> transitions = runningTransitions.get(); in getRunningTransitions()
228 ArrayMap<ViewGroup, ArrayList<Transition>> transitions = new ArrayMap<>(); in getRunningTransitions()
[all …]
DSlide.java26 import android.view.ViewGroup;
61 float getGoneX(ViewGroup sceneRoot, View view, float fraction); in getGoneX()
64 float getGoneY(ViewGroup sceneRoot, View view, float fraction); in getGoneY()
70 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) { in getGoneY()
78 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) { in getGoneX()
85 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) {
92 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) {
106 public float getGoneY(ViewGroup sceneRoot, View view, float fraction) {
113 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) {
120 public float getGoneX(ViewGroup sceneRoot, View view, float fraction) {
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DViewGroupAttributesTest.java28 private static final class MyViewGroup extends ViewGroup {
53 ViewGroup.FOCUS_BEFORE_DESCENDANTS, mViewGroup.getDescendantFocusability()); in testDescendantFocusabilityEnum()
60 mViewGroup.setDescendantFocusability(ViewGroup.FOCUS_AFTER_DESCENDANTS); in testDescendantFocusabilityEnum()
61 assertEquals(ViewGroup.FOCUS_AFTER_DESCENDANTS, mViewGroup.getDescendantFocusability()); in testDescendantFocusabilityEnum()
63 mViewGroup.setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); in testDescendantFocusabilityEnum()
64 assertEquals(ViewGroup.FOCUS_BLOCK_DESCENDANTS, mViewGroup.getDescendantFocusability()); in testDescendantFocusabilityEnum()
66 mViewGroup.setDescendantFocusability(ViewGroup.FOCUS_BEFORE_DESCENDANTS); in testDescendantFocusabilityEnum()
67 assertEquals(ViewGroup.FOCUS_BEFORE_DESCENDANTS, mViewGroup.getDescendantFocusability()); in testDescendantFocusabilityEnum()
DBigCache.java37 testBed.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
38 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
58 scroller.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
59 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
/frameworks/base/packages/SystemUI/plugin/ExamplePlugin/src/com/android/systemui/plugin/testoverlayplugin/
DSampleOverlayPlugin.java22 import android.view.ViewGroup;
55 () -> ((ViewGroup) mStatusBarView.getParent()).removeView(mStatusBarView)); in onDestroy()
58 mNavBarView.post(() -> ((ViewGroup) mNavBarView.getParent()).removeView(mNavBarView)); in onDestroy()
69 if (statusBar instanceof ViewGroup) { in setup()
71 .inflate(R.layout.colored_overlay, (ViewGroup) statusBar, false); in setup()
72 ((ViewGroup) statusBar).addView(mStatusBarView); in setup()
74 if (navBar instanceof ViewGroup) { in setup()
76 .inflate(R.layout.colored_overlay, (ViewGroup) navBar, false); in setup()
77 ((ViewGroup) navBar).addView(mNavBarView); in setup()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DReparenting.java22 import android.view.ViewGroup;
29 ViewGroup mSceneRoot;
30 ViewGroup mContainer1, mContainer2;
37 ViewGroup container = findViewById(R.id.container); in onCreate()
48 private void setupButtons(int startIndex, ViewGroup parent) { in setupButtons()
64 ViewGroup oldParent = (ViewGroup) v.getParent();
65 ViewGroup newParent = oldParent == mContainer1 ? mContainer2 : mContainer1;
/frameworks/base/core/tests/coretests/src/android/util/
DListItemFactory.java22 import android.view.ViewGroup;
53 ViewGroup.LayoutParams.MATCH_PARENT, in twoButtonsSeparatedByFiller()
64 ViewGroup.LayoutParams.MATCH_PARENT, in twoButtonsSeparatedByFiller()
159 final ViewGroup.LayoutParams lp = new AbsListView.LayoutParams( in button()
160 ViewGroup.LayoutParams.MATCH_PARENT, in button()
161 ViewGroup.LayoutParams.WRAP_CONTENT); in button()
199 final ViewGroup.LayoutParams lp = new AbsListView.LayoutParams( in text()
200 ViewGroup.LayoutParams.MATCH_PARENT, in text()
201 ViewGroup.LayoutParams.WRAP_CONTENT); in text()
242 ViewGroup.LayoutParams.MATCH_PARENT, in doubleText()
[all …]
DListScenario.java23 import android.view.ViewGroup;
318 mListView.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
319 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
320 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
380 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
381 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
385 mLinearLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
386 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
387 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
389 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DBaseMenuPresenter.java24 import android.view.ViewGroup;
70 public MenuView getMenuView(ViewGroup root) { in getMenuView()
84 final ViewGroup parent = (ViewGroup) mMenuView; in updateMenuView()
127 final ViewGroup currentParent = (ViewGroup) itemView.getParent(); in addItemView()
131 ((ViewGroup) mMenuView).addView(itemView, childIndex); in addItemView()
140 protected boolean filterLeftoverView(ViewGroup parent, int childIndex) { in filterLeftoverView()
158 public MenuView.ItemView createItemView(ViewGroup parent) { in createItemView()
173 public View getItemView(MenuItemImpl item, View convertView, ViewGroup parent) { in getItemView()
/frameworks/base/core/java/android/widget/
DListPopupWindow.java39 import android.view.ViewGroup;
74 private int mDropDownHeight = ViewGroup.LayoutParams.WRAP_CONTENT;
75 private int mDropDownWidth = ViewGroup.LayoutParams.WRAP_CONTENT;
146 public static final int MATCH_PARENT = ViewGroup.LayoutParams.MATCH_PARENT;
152 public static final int WRAP_CONTENT = ViewGroup.LayoutParams.WRAP_CONTENT;
553 if (height < 0 && ViewGroup.LayoutParams.WRAP_CONTENT != height in setHeight()
554 && ViewGroup.LayoutParams.MATCH_PARENT != height) { in setHeight()
644 if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
648 } else if (mDropDownWidth == ViewGroup.LayoutParams.WRAP_CONTENT) { in show()
655 if (mDropDownHeight == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
[all …]
DAbsoluteLayout.java23 import android.view.ViewGroup;
42 public class AbsoluteLayout extends ViewGroup {
106 protected ViewGroup.LayoutParams generateDefaultLayoutParams() { in generateDefaultLayoutParams()
133 public ViewGroup.LayoutParams generateLayoutParams(AttributeSet attrs) { in generateLayoutParams()
139 protected boolean checkLayoutParams(ViewGroup.LayoutParams p) { in checkLayoutParams()
144 protected ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams p) { in generateLayoutParams()
159 public static class LayoutParams extends ViewGroup.LayoutParams {
218 public LayoutParams(ViewGroup.LayoutParams source) { in LayoutParams()
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DGlobalActionsGridLayout.java26 import android.view.ViewGroup;
60 ViewGroup separated = getSeparatedView(); in updateSeparatedItemSize()
65 ViewGroup.LayoutParams childParams = firstChild.getLayoutParams(); in updateSeparatedItemSize()
68 childParams.width = ViewGroup.LayoutParams.MATCH_PARENT; in updateSeparatedItemSize()
69 childParams.height = ViewGroup.LayoutParams.MATCH_PARENT; in updateSeparatedItemSize()
71 childParams.width = ViewGroup.LayoutParams.WRAP_CONTENT; in updateSeparatedItemSize()
72 childParams.height = ViewGroup.LayoutParams.WRAP_CONTENT; in updateSeparatedItemSize()
99 ViewGroup separatedList = getSeparatedView(); in removeAllItems()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DAdjacentListsWithAdjacentISVsInside.java23 import android.view.ViewGroup;
46 ((ViewGroup) mLeftListView.getChildAt(0)).getChildAt(0); in getLeftIsv()
51 ((ViewGroup) mLeftListView.getChildAt(0)).getChildAt(1); in getLeftMiddleIsv()
56 ((ViewGroup) mRightListView.getChildAt(0)).getChildAt(0); in getRightMiddleIsv()
61 ((ViewGroup) mRightListView.getChildAt(0)).getChildAt(1); in getRightIsv()
93 new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.WRAP_CONTENT, 1.0f); in combineAdjacent()
121 public View getView(int position, View convertView, ViewGroup parent) { in getView()
DListButtonsDiagonalAcrossItems.java24 import android.view.ViewGroup;
38 return (Button) ((ViewGroup) getListView().getChildAt(0)).getChildAt(0); in getLeftButton()
42 return (Button) ((ViewGroup) getListView().getChildAt(1)).getChildAt(1); in getCenterButton()
46 return (Button) ((ViewGroup) getListView().getChildAt(2)).getChildAt(2); in getRightButton()
50 protected View createView(int position, ViewGroup parent, in createView()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DBackgroundFallbackTest.java35 import android.view.ViewGroup;
62 ViewGroup mStatusBarView;
63 ViewGroup mNavigationBarView;
65 ViewGroup mDecorViewMock;
66 ViewGroup mContentRootMock;
67 ViewGroup mContentContainerMock;
68 ViewGroup mContentMock;
245 private void setTranslucent(ViewGroup bar) { in setTranslucent()
249 private ViewGroup mockView(int left, int top, int right, int bottom, Drawable background, in mockView()
250 int visibility, List<ViewGroup> children) { in mockView()
[all …]
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DLayoutUtils.java20 import android.view.ViewGroup;
27 private static void recursivelyGather(ViewGroup currentNode, List<View> nodeList) { in recursivelyGather()
32 if (view instanceof ViewGroup) { in recursivelyGather()
33 recursivelyGather((ViewGroup) view, nodeList); in recursivelyGather()
43 public static List<View> gatherViewTree(ViewGroup root) { in gatherViewTree()
/frameworks/base/core/java/com/android/internal/widget/
DPagerAdapter.java23 import android.view.ViewGroup;
94 public void startUpdate(ViewGroup container) { in startUpdate()
109 public Object instantiateItem(ViewGroup container, int position) { in instantiateItem()
123 public void destroyItem(ViewGroup container, int position, Object object) { in destroyItem()
136 public void setPrimaryItem(ViewGroup container, int position, Object object) { in setPrimaryItem()
147 public void finishUpdate(ViewGroup container) { in finishUpdate()

12345678910>>...28