Home
last modified time | relevance | path

Searched refs:getParent (Results 1 – 25 of 73) sorted by relevance

123

/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceParentGroupTest.java64 assertNull(screen.getParent()); in parentViaCodeTest()
67 assertNull(category.getParent()); in parentViaCodeTest()
70 assertNull(pref.getParent()); in parentViaCodeTest()
73 assertEquals(screen, category.getParent()); in parentViaCodeTest()
76 assertEquals(category, pref.getParent()); in parentViaCodeTest()
79 assertNull(category.getParent()); in parentViaCodeTest()
82 assertNull(pref.getParent()); in parentViaCodeTest()
105 assertEquals(screen, category.getParent()); in parentViaInflationTest()
106 assertEquals(category, screenInner.getParent()); in parentViaInflationTest()
107 assertEquals(screenInner, pref.getParent()); in parentViaInflationTest()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStorePlacementTest.java83 assertEquals("Pictures", before.getParent()); in testDefault()
124 assertEquals(before.getParent(), after.getParent()); in testDisplayName_SameMime()
152 assertEquals("Pictures", before.getParent()); in testDirectory_Valid()
158 assertEquals("Pictures", after.getParent()); in testDirectory_Valid()
164 assertEquals("DCIM/Vacation", after.getParent()); in testDirectory_Valid()
170 assertEquals("DCIM/Misc", after.getParent()); in testDirectory_Valid()
176 assertEquals("Pictures/Misc", after.getParent()); in testDirectory_Valid()
182 assertEquals("Pictures", after.getParent()); in testDirectory_Valid()
/cts/tests/tests/view/src/android/view/cts/
DViewStubTest.java98 assertNotNull(viewStub1.getParent()); in testSetVisibility()
105 assertNotNull(viewStub1.getParent()); in testSetVisibility()
116 assertNull(viewStub1.getParent()); in testSetVisibility()
120 assertNull(viewStub2.getParent()); in testSetVisibility()
197 final ViewParent vsParent = viewStub.getParent(); in testInflate()
209 assertNull(viewStub.getParent()); in testInflate()
210 assertSame(vsParent, view.getParent()); in testInflate()
228 assertNull(stub.getParent()); in testInflateErrorNullParent()
DViewGroupTest.java375 assertSame(mMockViewGroup, mTextView.getParent()); in testAttachViewToParent()
410 assertEquals(mMockViewGroup, textView1.getParent()); in testBringChildToFront()
416 assertEquals(mMockViewGroup, textView2.getParent()); in testBringChildToFront()
514 assertSame(mMockViewGroup, mTextView.getParent()); in testDetachAllViewsFromParent()
517 assertNull(mTextView.getParent()); in testDetachAllViewsFromParent()
529 assertNull(mTextView.getParent()); in testDetachViewFromParent()
537 assertSame(mMockViewGroup, mTextView.getParent()); in testDetachViewFromParentWithParamView()
542 assertNull(mMockViewGroup.getParent()); in testDetachViewFromParentWithParamView()
560 assertNull(textView1.getParent()); in testDetachViewsFromParent()
561 assertNull(textView2.getParent()); in testDetachViewsFromParent()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DViewAnimatorTest.java97 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testShowNext()
142 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testAccessDisplayedChild()
177 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testAccessDisplayedChildBoundary()
206 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testGetBaseline()
235 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testShowPrevious()
272 final RelativeLayout parent = (RelativeLayout) v.getParent(); in testGetCurrentView()
293 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testAddView()
337 final RelativeLayout parent = (RelativeLayout) v1.getParent(); in testRemoveViews()
DListViewTest.java351 ((ViewGroup) headerView1.getParent()).removeView(headerView1); in testAccessHeaderView()
352 ((ViewGroup) headerView2.getParent()).removeView(headerView2); in testAccessHeaderView()
577 ((ViewGroup) headerView.getParent()).removeView(headerView); in testFindViewTraversal()
591 ((ViewGroup) headerView.getParent()).removeView(headerView); in testFindViewWithTagTraversal()
698 assertNull("test sanity, header should be removed", header.getParent()); in testFullDetachHeaderViewOnScroll()
715 assertNull("test sanity, header should be removed", header.getParent()); in testFullDetachHeaderViewOnRelayout()
730 while (header.getParent() != null) { in testFullDetachHeaderViewOnScrollForFocus()
749 assertNull("test sanity, unused view should be removed", theView.getParent()); in testFullyDetachUnusedViewOnScroll()
757 assertNotNull("test sanity, view should be re-added", theView.getParent()); in testFullyDetachUnusedViewOnScroll()
773 assertNull("test sanity, unused view should be removed", theView.getParent()); in testFullyDetachUnusedViewOnReLayout()
[all …]
DToastTest.java99 PollingCheck.waitFor(TIME_OUT, () -> null != view.getParent()); in assertShowToast()
104 PollingCheck.waitFor(TIME_OUT, () -> null == view.getParent()); in assertShowAndHide()
110 assertNull(view.getParent()); in assertNotShowToast()
135 assertNull(view.getParent()); in testShow()
161 assertNull(view.getParent()); in testCancel()
DNumberPickerTest.java304 ((View) mNumberPicker.getParent()).setAccessibilityDelegate(mMockA11yDelegate); in testAccessValue()
310 ((View) mNumberPicker.getParent()).setAccessibilityDelegate(null); in testAccessValue()
433 ((View) mNumberPicker.getParent()).setAccessibilityDelegate(mMockA11yDelegate); in testInteractionWithSwipeUp()
451 ((View) mNumberPicker.getParent()).setAccessibilityDelegate(null); in testInteractionWithSwipeUp()
DGridViewTest.java552 assertNull("test sanity, unused view should be removed", theView.getParent()); in testFullyDetachUnusedViewOnScroll()
560 assertNotNull("test sanity, view should be re-added", theView.getParent()); in testFullyDetachUnusedViewOnScroll()
578 assertNull("test sanity, unused view should be removed", theView.getParent()); in testFullyDetachUnusedViewOnReLayout()
584 assertNotNull("test sanity, view should be re-added", theView.getParent()); in testFullyDetachUnusedViewOnReLayout()
600 while(theView.getParent() != null) { in testFullyDetachUnusedViewOnScrollForFocus()
607 while(theView.getParent() == null) { in testFullyDetachUnusedViewOnScrollForFocus()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAutoFinishSessionTest.java70 mParent = ((ViewGroup) mEditText1.getParent());
125 () -> ((ViewGroup) mEditText1.getParent()).removeView(mEditText1),
127 () -> ((ViewGroup) mEditText2.getParent()).removeView(mEditText2),
184 () -> ((ViewGroup) mParent.getParent()).removeView(mParent),
290 () -> ((ViewGroup) mParent.getParent()).removeView(mParent),
/cts/tests/tests/os/src/android/os/cts/
DCustomClassLoaderTest.java68 ClassLoader.getSystemClassLoader().getParent()); in testCustomDexClassLoader()
86 ClassLoader.getSystemClassLoader().getParent()); in testCustomPathClassLoader()
/cts/suite/audio_quality/lib/src/task/
DTaskAsync.cpp97 ASSERT(getParent()->getType() == TaskGeneric::ETaskSequential); in getParentSequential()
98 return reinterpret_cast<TaskSequential*>(getParent()); in getParentSequential()
DTaskGeneric.cpp60 TaskGeneric* TaskGeneric::getParent() in getParent() function in TaskGeneric
74 task = task->getParent(); in getTestCase()
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DAbstractRootViewActivity.java107 return (ViewGroup) mRootView.getParent(); in getGrandParent()
113 return (ViewGroup) getGrandParent().getParent(); in getGrandGrandParent()
DCustomViewActivity.java120 final View grandpa1 = (View) mCustomView.getParent(); in assertJustInitialViewsAppeared()
121 final View grandpa2 = (View) grandpa1.getParent(); in assertJustInitialViewsAppeared()
/cts/hostsidetests/classloaders/splits/apps/src/com/android/cts/classloadersplitapp/
DSplitAppTest.java95 assertEquals("dalvik.system.PathClassLoader", cl.getParent().getClass().getName()); in testFeatureAClassLoader()
108 assertEquals("dalvik.system.DelegateLastClassLoader", cl.getParent().getClass().getName()); in testFeatureBClassLoader()
DBaseReceiver.java31 final ClassLoader parent = loader.getParent(); in onReceive()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DAccessibilityEndToEndActivity.java88 () -> withTouchableAsParent.apply((View) delegated.getParent()))::run); in onCreate()
92 return () -> ((View) target.getParent()).setTouchDelegate( in setTouchDelegate()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeTransformTest.java141 ViewGroup container = (ViewGroup) view.getParent(); in testReparentWithOverlay()
158 ViewGroup container = (ViewGroup) view.getParent(); in testReparentWithOverlay()
/cts/hostsidetests/classloaders/splits/apps/feature_b/src/com/android/cts/classloadersplitapp/feature_b/
DFeatureBReceiver.java32 final ClassLoader parent = loader.getParent(); in onReceive()
/cts/hostsidetests/classloaders/splits/apps/feature_a/src/com/android/cts/classloadersplitapp/feature_a/
DFeatureAReceiver.java32 final ClassLoader parent = loader.getParent(); in onReceive()
/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/
DWebViewStartupCtsActivity.java44 ViewGroup vg = (ViewGroup)mWebView.getParent(); in detachAndDestroyWebView()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DWebViewTestActivity.java48 ViewParent parent = mWebView.getParent(); in onDestroy()
/cts/tests/tests/telecom/src/android/telecom/cts/
DRemoteConferenceTest.java77 if (mCall1.getParent() != confCall || mCall2.getParent() != confCall) { in testRemoteConferenceCreate()
100 if (!(mCall1.getParent() == confCall) && (confCall.getChildren().contains(mCall1))) { in testRemoteConferenceSplit()
108 if ((mCall1.getParent() == confCall) || (confCall.getChildren().contains(mCall1))) { in testRemoteConferenceSplit()
DConferenceTest.java82 if (mCall1.getParent() != conf || mCall2.getParent() != conf) { in testConferenceCreate()
113 if (!(mCall1.getParent() == conf) && (conf.getChildren().contains(mCall1))) { in testConferenceSplit()
120 if ((mCall1.getParent() == conf) || (conf.getChildren().contains(mCall1))) { in testConferenceSplit()

123