Lines Matching refs:parent

73                 private void createNestedLinearLayoutTree(Context context, LinearLayout parent,
77 parent.setBackgroundColor((mColorToggle < 2) ? Color.RED : Color.BLUE);
82 parent.setOrientation(vertical ? LinearLayout.VERTICAL : LinearLayout.HORIZONTAL);
86 // vertical: match parent in x axis, horizontal: y axis.
87 parent.addView(child, new LinearLayout.LayoutParams(
139 void run(BenchmarkState state, int width, int height, ViewGroup parent, View child);
146 FrameLayout parent = new FrameLayout(getContext());
147 mActivityRule.getActivity().setContentView(parent);
151 layout(width, height, parent);
153 callback.run(state, width, height, parent, mChild);
171 testParentWithChild((state, width, height, parent, child) -> {
174 updateAndValidateDisplayList(parent); // Note, done to be safe, likely not needed
175 parent.addView(child);
177 updateAndValidateDisplayList(parent);
180 parent.removeAllViews();
187 testParentWithChild((state, width, height, parent, child) -> {
191 updateAndValidateDisplayList(parent); // Note, done to be safe, likely not needed
192 parent.removeAllViews();
193 updateAndValidateDisplayList(parent);
196 parent.addView(child);
203 testParentWithChild((state, width, height, parent, child) -> {
206 parent.removeAllViews();
207 updateAndValidateDisplayList(parent); // Note, done to be safe, likely not needed
208 parent.addView(child);
212 updateAndValidateDisplayList(parent);
218 testParentWithChild((state, width, height, parent, child) -> {
219 parent.addView(child);
223 layout(width, height, parent);
224 updateAndValidateDisplayList(parent);
226 layout(width, height, parent);
227 updateAndValidateDisplayList(parent);