Home
last modified time | relevance | path

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

12345678910>>...43

/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/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/
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()
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()
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()
/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/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.java38 testBed.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
39 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
59 scroller.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
60 ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
/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.java26 import android.view.ViewGroup;
79 private static ThreadLocal<WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>>
81 new ThreadLocal<WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>>>();
83 private static ArrayList<ViewGroup> sPendingTransitions = new ArrayList<ViewGroup>();
160 ViewGroup sceneRoot = scene.getSceneRoot(); in getTransition()
190 final ViewGroup sceneRoot = scene.getSceneRoot(); in changeScene()
220 private static ArrayMap<ViewGroup, ArrayList<Transition>> getRunningTransitions() { in getRunningTransitions()
221 WeakReference<ArrayMap<ViewGroup, ArrayList<Transition>>> runningTransitions = in getRunningTransitions()
224 ArrayMap<ViewGroup, ArrayList<Transition>> transitions = runningTransitions.get(); in getRunningTransitions()
229 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/packages/SystemUI/src/com/android/systemui/complication/dagger/
DRegisteredComplicationsModule.java20 import android.view.ViewGroup;
70 ViewGroup.LayoutParams.WRAP_CONTENT, in provideClockTimeLayoutParams()
77 ViewGroup.LayoutParams.WRAP_CONTENT, in provideClockTimeLayoutParams()
92 ViewGroup.LayoutParams.WRAP_CONTENT, in provideHomeControlsChipLayoutParams()
93 ViewGroup.LayoutParams.WRAP_CONTENT, in provideHomeControlsChipLayoutParams()
107 ViewGroup.LayoutParams.WRAP_CONTENT, in provideMediaEntryLayoutParams()
108 ViewGroup.LayoutParams.WRAP_CONTENT, in provideMediaEntryLayoutParams()
128 ViewGroup.LayoutParams.WRAP_CONTENT, in provideOpenHubLayoutParams()
129 ViewGroup.LayoutParams.WRAP_CONTENT, in provideOpenHubLayoutParams()
142 ViewGroup.LayoutParams.WRAP_CONTENT, in provideSmartspaceLayoutParams()
[all …]
/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/com/android/internal/view/
DScrollViewCaptureHelperTest.java19 import static android.view.ViewGroup.LayoutParams.MATCH_PARENT;
20 import static android.view.ViewGroup.LayoutParams.WRAP_CONTENT;
24 import android.view.ViewGroup;
32 extends AbsCaptureHelperTest<ViewGroup, ScrollViewCaptureHelper> {
45 protected ScrollView createScrollableContent(ViewGroup parent) { in createScrollableContent()
50 scrollView.addView(content, new ViewGroup.LayoutParams(MATCH_PARENT, WRAP_CONTENT)); in createScrollableContent()
57 content.addView(view, new ViewGroup.LayoutParams(MATCH_PARENT, CHILD_VIEW_HEIGHT)); in createScrollableContent()
/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 …]
/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/com/android/internal/widget/
DViewGroupFader.java21 import android.view.ViewGroup;
22 import android.view.ViewGroup.MarginLayoutParams;
57 protected final ViewGroup mParent;
95 void provideBounds(ViewGroup parent, View child, Rect bounds); in provideBounds()
106 void provideBounds(ViewGroup parent, Rect bounds); in provideBounds()
115 public void provideBounds(ViewGroup parent, Rect bounds) { in provideBounds()
131 public void provideBounds(ViewGroup parent, Rect bounds) { in provideBounds()
143 public void provideBounds(ViewGroup parent, View child, Rect bounds) { in provideBounds()
162 public void provideBounds(ViewGroup parent, View child, Rect bounds) { in provideBounds()
172 ViewGroup parent, in ViewGroupFader()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/
DListScenario.java24 import android.view.ViewGroup;
313 mListView.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
314 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
315 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
375 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
376 ViewGroup.LayoutParams.WRAP_CONTENT)); in onCreate()
380 mLinearLayout.setLayoutParams(new ViewGroup.LayoutParams( in onCreate()
381 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
382 ViewGroup.LayoutParams.MATCH_PARENT)); in onCreate()
384 ViewGroup.LayoutParams.MATCH_PARENT, in onCreate()
[all …]
/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()
DGlobalActionsLayout.java23 import android.view.ViewGroup;
45 ViewGroup listView = getListView(); in setBackgrounds()
53 ViewGroup separatedView = getSeparatedView(); in setBackgrounds()
91 ViewGroup separated = getSeparatedView(); in addToSeparatedView()
125 ViewGroup separatedView = getSeparatedView(); in onUpdateList()
126 ViewGroup listView = getListView(); in onUpdateList()
146 protected ViewGroup getSeparatedView() { in getSeparatedView()
151 protected ViewGroup getListView() { in getListView()
/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/tests/coretests/src/android/widget/listview/
DAdjacentListsWithAdjacentISVsInside.java23 import android.view.ViewGroup;
47 ((ViewGroup) mLeftListView.getChildAt(0)).getChildAt(0); in getLeftIsv()
52 ((ViewGroup) mLeftListView.getChildAt(0)).getChildAt(1); in getLeftMiddleIsv()
57 ((ViewGroup) mRightListView.getChildAt(0)).getChildAt(0); in getRightMiddleIsv()
62 ((ViewGroup) mRightListView.getChildAt(0)).getChildAt(1); in getRightIsv()
96 new LinearLayout.LayoutParams(0, ViewGroup.LayoutParams.WRAP_CONTENT, 1.0f); in combineAdjacent()
124 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/java/android/widget/
DListPopupWindow.java39 import android.view.ViewGroup;
77 private int mDropDownHeight = ViewGroup.LayoutParams.WRAP_CONTENT;
78 private int mDropDownWidth = ViewGroup.LayoutParams.WRAP_CONTENT;
149 public static final int MATCH_PARENT = ViewGroup.LayoutParams.MATCH_PARENT;
155 public static final int WRAP_CONTENT = ViewGroup.LayoutParams.WRAP_CONTENT;
560 if (height < 0 && ViewGroup.LayoutParams.WRAP_CONTENT != height in setHeight()
561 && ViewGroup.LayoutParams.MATCH_PARENT != height) { in setHeight()
651 if (mDropDownWidth == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
655 } else if (mDropDownWidth == ViewGroup.LayoutParams.WRAP_CONTENT) { in show()
662 if (mDropDownHeight == ViewGroup.LayoutParams.MATCH_PARENT) { in show()
[all …]

12345678910>>...43