Home
last modified time | relevance | path

Searched refs:container (Results 1 – 25 of 49) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDefaultFocusHighlightTest.java241 MockDrawableContainer container; in testDrawableContainer() local
245 container = new MockDrawableContainer(); in testDrawableContainer()
248 container.setConstantState(containerState); in testDrawableContainer()
249 container.setState(FOCUSED_STATE); in testDrawableContainer()
250 assertFalse(container.hasFocusStateSpecified()); in testDrawableContainer()
253 container = new MockDrawableContainer(); in testDrawableContainer()
256 container.setConstantState(containerState); in testDrawableContainer()
260 container.selectDrawable(0); in testDrawableContainer()
261 container.setState(FOCUSED_STATE); in testDrawableContainer()
262 assertFalse(container.hasFocusStateSpecified()); in testDrawableContainer()
[all …]
/cts/tests/fragment/src/android/fragment/cts/
DFragmentViewTests.java51 ViewGroup container = (ViewGroup) in addFragments() local
59 FragmentTestUtil.assertChildren(container, fragment1); in addFragments()
65 FragmentTestUtil.assertChildren(container, fragment1, fragment2); in addFragments()
76 FragmentTestUtil.assertChildren(container, fragment1, fragment2, fragment3, fragment4); in addFragments()
80 FragmentTestUtil.assertChildren(container, fragment1, fragment2); in addFragments()
84 assertEquals(1, container.getChildCount()); in addFragments()
85 FragmentTestUtil.assertChildren(container, fragment1); in addFragments()
89 FragmentTestUtil.assertChildren(container); in addFragments()
171 ViewGroup container = (ViewGroup) in removeFragments() local
185 FragmentTestUtil.assertChildren(container, fragment1, fragment2, fragment3, fragment4); in removeFragments()
[all …]
DFragmentExecuteTests.java52 ViewGroup container = (ViewGroup) in executeAndPopNormal() local
68 FragmentTestUtil.assertChildren(container, fragment); in executeAndPopNormal()
75 FragmentTestUtil.assertChildren(container); in executeAndPopNormal()
98 ViewGroup container = (ViewGroup) in popBackStackImmediateSomething() local
110 FragmentTestUtil.assertChildren(container); in popBackStackImmediateSomething()
121 ViewGroup container = (ViewGroup) in popBackStackImmediateNothing() local
132 FragmentTestUtil.assertChildren(container, fragment); in popBackStackImmediateNothing()
141 ViewGroup container = (ViewGroup) in popBackStackImmediateInt() local
171 FragmentTestUtil.assertChildren(container, fragment1); in popBackStackImmediateInt()
198 FragmentTestUtil.assertChildren(container, fragment1); in popBackStackImmediateInt()
[all …]
DNestedInflatedFragmentTest.java69 public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, in onCreateView() argument
71 return inflater.inflate(R.layout.nested_inflated_fragment_parent, container, false); in onCreateView()
78 public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, in onCreateView() argument
80 return inflater.inflate(R.layout.nested_inflated_fragment_child, container, false); in onCreateView()
87 public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, in onCreateView() argument
DCountCallsFragment.java37 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
40 return super.onCreateView(inflater, container, savedInstanceState); in onCreateView()
DStrictViewFragment.java40 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
44 final View result = inflater.inflate(mLayoutId, container, false); in onCreateView()
DLoaderActivity.java44 ViewGroup container = (ViewGroup) textView.getParent(); in onCreate() local
47 container.addView(textViewB); in onCreate()
DTransitionFragment.java65 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
70 return super.onCreateView(inflater, container, savedInstanceState); in onCreateView()
DFragmentTestUtil.java145 public static void assertChildren(ViewGroup container, Fragment... fragments) { in assertChildren() argument
148 numFragments, container.getChildCount()); in assertChildren()
150 assertEquals("Wrong Fragment View order for [" + i + "]", container.getChildAt(i), in assertChildren()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DFragmentTest.java51 .add(R.id.container, fragment1) in testOnCreateOrder()
52 .add(R.id.container, fragment2) in testOnCreateOrder()
65 .add(R.id.container, fragmentA) in testChildFragmentManagerGone()
76 .replace(R.id.container, fragmentB) in testChildFragmentManagerGone()
89 .replace(R.id.container, fragmentA) in testChildFragmentManagerGone()
128 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
130 return inflater.inflate(R.layout.fragment_a, container, false); in onCreateView()
136 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
138 return inflater.inflate(R.layout.fragment_b, container, false); in onCreateView()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDragDropTest.java413 injectMouse5(R.id.container, MotionEvent.ACTION_MOVE); in testNoExtraEvents()
419 expectEvent5(DragEvent.ACTION_DRAG_STARTED, R.id.container, R.id.draggable); in testNoExtraEvents()
454 mActivity.findViewById(R.id.container).setOnDragListener((v, ev) -> { in testBlackHole()
469 expectEvent5(DragEvent.ACTION_DRAG_STARTED, R.id.container, R.id.draggable); in testBlackHole()
471 expectEvent5(DragEvent.ACTION_DRAG_ENTERED, R.id.container); in testBlackHole()
472 expectEvent5(DragEvent.ACTION_DRAG_LOCATION, R.id.container, R.id.subcontainer); in testBlackHole()
473 expectEvent6(DragEvent.ACTION_DROP, R.id.container, R.id.subcontainer); in testBlackHole()
476 expectEndEventSuccess(R.id.container); in testBlackHole()
504 mActivity.findViewById(R.id.container).setOnDragListener((v, ev) -> { in testEnterExit()
522 expectEvent5(DragEvent.ACTION_DRAG_STARTED, R.id.container, R.id.draggable); in testEnterExit()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java364 View container = mLayoutInflater.inflate(R.layout.inflater_override_theme_layout, null); in testOverrideTheme() local
365 verifyThemeType(container, "view_outer", R.id.view_outer, 1); in testOverrideTheme()
366 verifyThemeType(container, "view_inner", R.id.view_inner, 2); in testOverrideTheme()
367 verifyThemeType(container, "view_attr", R.id.view_attr, 3); in testOverrideTheme()
368 verifyThemeType(container, "view_include", R.id.view_include, 4); in testOverrideTheme()
369 verifyThemeType(container, "view_include_notheme", R.id.view_include_notheme, 5); in testOverrideTheme()
372 private void verifyThemeType(View container, String tag, int id, int type) { in verifyThemeType() argument
374 View view = container.findViewById(id); in verifyThemeType()
410 final View container = inflater.inflate(R.layout.inflater_layout_include, null); in testInclude() local
411 assertNotNull(container.findViewById(R.id.include_layout_explicit)); in testInclude()
[all …]
DMockView.java577 protected void dispatchRestoreInstanceState(SparseArray<Parcelable> container) { in dispatchRestoreInstanceState() argument
578 super.dispatchRestoreInstanceState(container); in dispatchRestoreInstanceState()
587 protected void dispatchSaveInstanceState(SparseArray<Parcelable> container) { in dispatchSaveInstanceState() argument
588 super.dispatchSaveInstanceState(container); in dispatchSaveInstanceState()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeTransformTest.java141 ViewGroup container = (ViewGroup) view.getParent(); in testReparentWithOverlay() local
142 assertEquals(2, container.getChildCount()); in testReparentWithOverlay()
158 ViewGroup container = (ViewGroup) view.getParent(); in testReparentWithOverlay() local
159 assertEquals(1, container.getChildCount()); in testReparentWithOverlay()
DTransitionActivity.java33 mContent = findViewById(R.id.container); in onCreate()
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationTest.java66 mView = (LinearLayout) mActivity.findViewById(R.id.container); in setup()
215 ViewGroup container, View view, int transitionType) { in endTransition() argument
216 this.mContainer = container; in endTransition()
223 ViewGroup container, View view, int transitionType) { in startTransition() argument
224 this.mContainer = container; in startTransition()
/cts/tests/tests/widget/src/android/widget/cts/
DGridLayoutTest.java199 private View[][] populate(GridLayout container) { in populate() argument
200 Context context = container.getContext(); in populate()
211 container.addView(v, lp); in populate()
221 container.addView(v, lp); in populate()
232 container.addView(v, lp); in populate()
246 container.addView(v, lp); in populate()
DFrameLayoutTest.java143 final LinearLayout container = in testGatherTransparentRegion() local
154 () -> container.requestTransparentRegion(mFrameLayout)); in testGatherTransparentRegion()
310 private static void assertCenterAligned(View container, Drawable drawable) { in assertCenterAligned() argument
312 int leftDelta = rect.left - container.getLeft(); in assertCenterAligned()
313 int rightDelta = container.getRight() - rect.right; in assertCenterAligned()
314 int topDelta = rect.top - container.getTop(); in assertCenterAligned()
315 int bottomDelta = container.getBottom() - rect.bottom; in assertCenterAligned()
DTextViewFontVariationTest.java43 final ViewGroup container = in getTextViewFontVariationSettings() local
45 return ((TextView) container.findViewById(id)).getFontVariationSettings(); in getTextViewFontVariationSettings()
DDatePickerTest.java284 SparseArray<Parcelable> container = new SparseArray<Parcelable>(); in testAccessInstanceState() local
290 datePicker.saveHierarchyState(container); in testAccessInstanceState()
298 datePicker.dispatchRestoreInstanceState(container); in testAccessInstanceState()
366 protected void dispatchRestoreInstanceState(SparseArray<Parcelable> container) { in dispatchRestoreInstanceState() argument
367 super.dispatchRestoreInstanceState(container); in dispatchRestoreInstanceState()
DSwitchTest.java242 final ViewGroup container = (ViewGroup) mActivity.findViewById(R.id.container); in testAccessText() local
243 WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, container, in testAccessText()
244 () -> container.addView(mSwitch)); in testAccessText()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/
DPhaseStartFragment.java52 …public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { in onCreateView() argument
53 View rootView = inflater.inflate(R.layout.fragment_start_phase, container, false); in onCreateView()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DFragmentWithEditText.java32 @Nullable public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, in onCreateView() argument
DFragmentWithMoreEditTexts.java32 @Nullable public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, in onCreateView() argument
/cts/tests/app/app/src/android/app/stubs/
DFragmentTestActivity.java117 public View onCreateView(LayoutInflater inflater, ViewGroup container, in onCreateView() argument
119 return inflater.inflate(mLayoutId, container, false); in onCreateView()

12