Home
last modified time | relevance | path

Searched refs:parent (Results 1 – 25 of 635) sorted by relevance

12345678910>>...26

/frameworks/base/core/java/com/android/internal/widget/
DViewClippingUtil.java42 ViewGroup parent = (ViewGroup) transformedView.getParent(); in setClippingDeactivated() local
47 ArraySet<View> clipSet = (ArraySet<View>) parent.getTag(CLIP_CLIPPING_SET); in setClippingDeactivated()
50 parent.setTagInternal(CLIP_CLIPPING_SET, clipSet); in setClippingDeactivated()
52 Boolean clipChildren = (Boolean) parent.getTag(CLIP_CHILDREN_TAG); in setClippingDeactivated()
54 clipChildren = parent.getClipChildren(); in setClippingDeactivated()
55 parent.setTagInternal(CLIP_CHILDREN_TAG, clipChildren); in setClippingDeactivated()
57 Boolean clipToPadding = (Boolean) parent.getTag(CLIP_TO_PADDING); in setClippingDeactivated()
59 clipToPadding = parent.getClipToPadding(); in setClippingDeactivated()
60 parent.setTagInternal(CLIP_TO_PADDING, clipToPadding); in setClippingDeactivated()
65 parent.setClipChildren(clipChildren); in setClippingDeactivated()
[all …]
/frameworks/base/apct-tests/perftests/core/src/android/view/
DViewShowHidePerfTest.java75 private void createNestedLinearLayoutTree(Context context, LinearLayout parent,
79 parent.setBackgroundColor((mColorToggle < 2) ? Color.RED : Color.BLUE);
84parent.setOrientation(vertical ? LinearLayout.VERTICAL : LinearLayout.HORIZONTAL);
89 parent.addView(child, new LinearLayout.LayoutParams(
141 void run(BenchmarkState state, int width, int height, ViewGroup parent, View child); in run() argument
148 FrameLayout parent = new FrameLayout(getContext()); in testParentWithChild() local
149 mActivityRule.getActivity().setContentView(parent); in testParentWithChild()
153 layout(width, height, parent); in testParentWithChild()
155 callback.run(state, width, height, parent, mChild); in testParentWithChild()
173 testParentWithChild((state, width, height, parent, child) -> { in testRemove() argument
[all …]
/frameworks/ml/nn/tools/systrace_parser/parser/
Dtree.py80 elif node.phase() == PHASE_INITIALIZATION and node.parent.phase() != PHASE_INITIALIZATION:
82 elif (node.parent and node.parent.layer == LAYER_APPLICATION and
84 node.parent.phase() != node.phase() and node.parent.phase() != PHASE_OVERALL and
95 assert node.parent
96 new_parent = node.parent
102 new_parent = new_parent.parent
107 new_parent = new_parent.parent
111 new_parent = new_parent.parent
113 new_parent = new_parent.parent
128 (node.parent.layer == LAYER_APPLICATION and
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DSetFrameRateTest.cpp155 void SetFrameRateTest::reparentChildren(sp<Layer> parent, sp<Layer> newParent) { in reparentChildren() argument
156 parent.get()->reparentChildren(newParent); in reparentChildren()
218 auto parent = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local
222 addChild(parent, child1); in TEST_P()
227 EXPECT_EQ(FRAME_RATE_TREE, parent->getFrameRateForLayerTree()); in TEST_P()
233 EXPECT_EQ(FRAME_RATE_NO_VOTE, parent->getFrameRateForLayerTree()); in TEST_P()
243 auto parent = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local
247 addChild(parent, child1); in TEST_P()
252 parent->setFrameRate(FRAME_RATE_VOTE3); in TEST_P()
254 EXPECT_EQ(FRAME_RATE_VOTE3, parent->getFrameRateForLayerTree()); in TEST_P()
[all …]
/frameworks/base/core/java/android/view/
DGhostView.java45 final ViewGroup parent = (ViewGroup) mView.getParent(); in GhostView() local
47 parent.invalidate(); in GhostView()
83 final ViewGroup parent = (ViewGroup) mView.getParent(); in onDetachedFromWindow() local
84 if (parent != null) { in onDetachedFromWindow()
85 parent.invalidate(); in onDetachedFromWindow()
91 ViewGroup parent = (ViewGroup) view.getParent(); in calculateMatrix() local
93 parent.transformMatrixToGlobal(matrix); in calculateMatrix()
94 matrix.preTranslate(-parent.getScrollX(), -parent.getScrollY()); in calculateMatrix()
123 FrameLayout parent = new FrameLayout(view.getContext()); in addGhost() local
124 parent.setClipChildren(false); in addGhost()
[all …]
DViewStub.java258 ViewGroup parent = (ViewGroup) getParent(); in setVisibilityAsync() local
259 return new ViewReplaceRunnable(inflateViewNoAdd(parent)); in setVisibilityAsync()
265 private View inflateViewNoAdd(ViewGroup parent) { in inflateViewNoAdd() argument
272 final View view = factory.inflate(mLayoutResource, parent, false); in inflateViewNoAdd()
280 private void replaceSelfWithView(View view, ViewGroup parent) { in replaceSelfWithView() argument
281 final int index = parent.indexOfChild(this); in replaceSelfWithView()
282 parent.removeViewInLayout(this); in replaceSelfWithView()
286 parent.addView(view, index, layoutParams); in replaceSelfWithView()
288 parent.addView(view, index); in replaceSelfWithView()
304 final ViewGroup parent = (ViewGroup) viewParent; in inflate() local
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowTestsBase.java141 private WindowState createCommonWindow(WindowState parent, int type, String name) { in createCommonWindow() argument
142 final WindowState win = createWindow(parent, type, name); in createCommonWindow()
167 WindowState createWindow(WindowState parent, int type, String name) { in createWindow() argument
168 return (parent == null) in createWindow()
169 ? createWindow(parent, type, mDisplayContent, name) in createWindow()
170 : createWindow(parent, type, parent.mToken, name); in createWindow()
173 WindowState createWindow(WindowState parent, int type, String name, int ownerId) { in createWindow() argument
174 return (parent == null) in createWindow()
175 ? createWindow(parent, type, mDisplayContent, name, ownerId) in createWindow()
176 : createWindow(parent, type, parent.mToken, name, ownerId); in createWindow()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DLayerTypeTransaction_test.cpp43 sp<SurfaceControl> parent = in TEST_P() local
46 Transaction().setCrop_legacy(parent, Rect(0, 0, mDisplayWidth, mDisplayHeight)).apply(); in TEST_P()
57 Transaction().reparent(layerB, parent->getHandle()).apply(); in TEST_P()
64 sp<IBinder> parentHandle = parent->getHandle(); in TEST_P()
70 sp<SurfaceControl> parent = in TEST_P() local
79 parent.get())); in TEST_P()
82 .setColor(parent, half3{0.0f, 0.0f, 0.0f}) in TEST_P()
84 .show(parent) in TEST_P()
85 .setCrop_legacy(parent, Rect(0, 0, mDisplayWidth, mDisplayHeight)) in TEST_P()
90 .setRelativeLayer(childLayer, parent->getHandle(), -1) in TEST_P()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DRenderNodeTests.cpp45 auto parent = TestUtils::createNode(0, 0, 200, 400, in TEST() local
50 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST()
53 EXPECT_FALSE(parent->hasParents()) << "Root node shouldn't have any parents"; in TEST()
55 TestUtils::recordNode(*parent, [](Canvas& canvas) { in TEST()
60 EXPECT_FALSE(parent->hasParents()) << "Root node shouldn't have any parents"; in TEST()
62 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST()
65 EXPECT_FALSE(parent->hasParents()) << "Root node shouldn't have any parents"; in TEST()
72 auto parent = TestUtils::createNode(0, 0, 200, 400, in TEST() local
78 EXPECT_TRUE(parent->isValid()); in TEST()
80 EXPECT_TRUE(parent->nothingToDraw()); in TEST()
[all …]
/frameworks/base/core/java/android/animation/
DLayoutTransition.java733 private void runChangeTransition(final ViewGroup parent, View newView, final int changeReason) { in runChangeTransition() argument
767 final ViewTreeObserver observer = parent.getViewTreeObserver(); in runChangeTransition()
772 int numChildren = parent.getChildCount(); in runChangeTransition()
775 final View child = parent.getChildAt(i); in runChangeTransition()
779 setupChangeAnimation(parent, changeReason, baseAnimator, duration, child); in runChangeTransition()
783 ViewGroup tempParent = parent; in runChangeTransition()
800 CleanupCallback callback = new CleanupCallback(layoutChangeListenerMap, parent); in runChangeTransition()
802 parent.addOnAttachStateChangeListener(callback); in runChangeTransition()
830 private void setupChangeAnimation(final ViewGroup parent, final int changeReason, in setupChangeAnimation() argument
953 parent.requestTransitionStart(LayoutTransition.this); in setupChangeAnimation()
[all …]
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/test/widgets/
DContentWidget.java44 View parent = this; in onAttachedToWindow() local
45 while (parent != null) { in onAttachedToWindow()
46 if (parent.getId() == android.R.id.content && parent instanceof ViewGroup) { in onAttachedToWindow()
49 if (parent.getParent() instanceof ViewGroup) { in onAttachedToWindow()
50 parent = (ViewGroup) parent.getParent(); in onAttachedToWindow()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DHybridGroupManager.java59 View contentView, ViewGroup parent) { in inflateHybridViewWithStyle() argument
66 inflater.inflate(layout, parent, false); in inflateHybridViewWithStyle()
67 parent.addView(hybrid); in inflateHybridViewWithStyle()
71 private TextView inflateOverflowNumber(ViewGroup parent) { in inflateOverflowNumber() argument
74 R.layout.hybrid_overflow_number, parent, false); in inflateOverflowNumber()
75 parent.addView(numberView); in inflateOverflowNumber()
93 ViewGroup parent) { in bindFromNotification() argument
95 R.style.HybridNotification, parent); in bindFromNotification()
101 int style, ViewGroup parent) { in bindFromNotificationWithStyle() argument
103 reusableView = inflateHybridViewWithStyle(style, contentView, parent); in bindFromNotificationWithStyle()
[all …]
/frameworks/base/core/java/com/android/internal/view/menu/
DBaseMenuPresenter.java84 final ViewGroup parent = (ViewGroup) mMenuView; in updateMenuView() local
85 if (parent == null) return; in updateMenuView()
95 final View convertView = parent.getChildAt(childIndex); in updateMenuView()
98 final View itemView = getItemView(item, convertView, parent); in updateMenuView()
113 while (childIndex < parent.getChildCount()) { in updateMenuView()
114 if (!filterLeftoverView(parent, childIndex)) { in updateMenuView()
140 protected boolean filterLeftoverView(ViewGroup parent, int childIndex) { in filterLeftoverView() argument
141 parent.removeViewAt(childIndex); in filterLeftoverView()
158 public MenuView.ItemView createItemView(ViewGroup parent) { in createItemView() argument
159 return (MenuView.ItemView) mSystemInflater.inflate(mItemLayoutRes, parent, false); in createItemView()
[all …]
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/
DDividerItemDecoration.java103 public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) { in onDraw() argument
107 final int childCount = parent.getChildCount(); in onDraw()
108 final int width = parent.getWidth(); in onDraw()
111 final View view = parent.getChildAt(childViewIndex); in onDraw()
112 if (shouldDrawDividerBelow(view, parent)) { in onDraw()
122 Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { in getItemOffsets() argument
123 if (shouldDrawDividerBelow(view, parent)) { in getItemOffsets()
128 private boolean shouldDrawDividerBelow(View view, RecyclerView parent) { in shouldDrawDividerBelow() argument
129 final RecyclerView.ViewHolder holder = parent.getChildViewHolder(view); in shouldDrawDividerBelow()
131 final int lastItemIndex = parent.getAdapter().getItemCount() - 1; in shouldDrawDividerBelow()
[all …]
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/items/
DButtonItemTest.java48 private ViewGroup parent; field in ButtonItemTest
54 parent = new LinearLayout(context); in setUp()
83 final Button button = item.createButton(parent); in testCreateButton()
96 .that(item.createButton(parent).getId()) in testButtonItemSetsItsId()
103 final Button button = item.createButton(parent); in testCreateButtonTwice()
108 final Button button2 = item.createButton(parent); in testCreateButtonTwice()
120 final Button button = item.createButton(parent); in testSetEnabledTrue()
130 final Button button = item.createButton(parent); in testSetEnabledFalse()
140 final Button button = item.createButton(parent); in testSetText()
154 final Button button = item.createButton(parent); in testSetTheme()
[all …]
/frameworks/base/core/java/android/app/
DApplicationLoaders.java48 ClassLoader parent, String classLoaderName) { in getClassLoader() argument
50 librarySearchPath, libraryPermittedPath, parent, classLoaderName, in getClassLoader()
57 ClassLoader parent, String classLoaderName, in getClassLoaderWithSharedLibraries() argument
61 libraryPermittedPath, parent, zip, classLoaderName, sharedLibraries); in getClassLoaderWithSharedLibraries()
73 ClassLoader parent, String classLoaderName, List<ClassLoader> sharedLibraries) { in getSharedLibraryClassLoaderWithSharedLibraries() argument
74 ClassLoader loader = getCachedNonBootclasspathSystemLib(zip, parent, classLoaderName, in getSharedLibraryClassLoaderWithSharedLibraries()
81 librarySearchPath, libraryPermittedPath, parent, classLoaderName, sharedLibraries); in getSharedLibraryClassLoaderWithSharedLibraries()
86 ClassLoader parent, String cacheKey, in getClassLoader() argument
97 if (parent == null) { in getClassLoader()
98 parent = baseParent; in getClassLoader()
[all …]
/frameworks/base/core/java/android/app/admin/
DIDevicePolicyManager.aidl52 void setPasswordQuality(in ComponentName who, int quality, boolean parent); in setPasswordQuality() argument
53 int getPasswordQuality(in ComponentName who, int userHandle, boolean parent); in getPasswordQuality() argument
55 void setPasswordMinimumLength(in ComponentName who, int length, boolean parent); in setPasswordMinimumLength() argument
56 int getPasswordMinimumLength(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLength() argument
58 void setPasswordMinimumUpperCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumUpperCase() argument
59 int getPasswordMinimumUpperCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumUpperCase() argument
61 void setPasswordMinimumLowerCase(in ComponentName who, int length, boolean parent); in setPasswordMinimumLowerCase() argument
62 int getPasswordMinimumLowerCase(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLowerCase() argument
64 void setPasswordMinimumLetters(in ComponentName who, int length, boolean parent); in setPasswordMinimumLetters() argument
65 int getPasswordMinimumLetters(in ComponentName who, int userHandle, boolean parent); in getPasswordMinimumLetters() argument
[all …]
/frameworks/base/services/incremental/
Dpath.h70 std::string_view relativize(std::string_view parent, std::string_view nested);
71 inline std::string_view relativize(const char* parent, const char* nested) { in relativize() argument
72 return relativize(std::string_view(parent), std::string_view(nested)); in relativize()
74 inline std::string_view relativize(std::string_view parent, const char* nested) { in relativize() argument
75 return relativize(parent, std::string_view(nested)); in relativize()
77 inline std::string_view relativize(const char* parent, std::string_view nested) { in relativize() argument
78 return relativize(std::string_view(parent), nested); in relativize()
81 std::string_view relativize(std::string&& parent, std::string_view nested) = delete;
82 std::string_view relativize(std::string_view parent, std::string&& nested) = delete;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DViewGroupFadeHelper.kt90 var parent = excludedView.parent as ViewGroup? in <lambda>() variable
92 while (parent != null) { in <lambda>()
93 for (i in 0 until parent.childCount) { in <lambda>()
94 val child = parent.getChildAt(i) in <lambda>()
99 if (parent == root) { in <lambda>()
102 viewContainingExcludedView = parent in <lambda>()
103 parent = parent.parent as ViewGroup? in <lambda>()
/frameworks/base/core/tests/coretests/src/android/widget/layout/linear/
DBaselineAlignmentCenterGravityTest.java57 final View parent = (View) mButton1.getParent(); in testChildrenAligned() local
58 ViewAsserts.assertTopAligned(mButton1, parent); in testChildrenAligned()
59 ViewAsserts.assertTopAligned(mButton2, parent); in testChildrenAligned()
60 ViewAsserts.assertTopAligned(mButton3, parent); in testChildrenAligned()
61 ViewAsserts.assertBottomAligned(mButton1, parent); in testChildrenAligned()
62 ViewAsserts.assertBottomAligned(mButton2, parent); in testChildrenAligned()
63 ViewAsserts.assertBottomAligned(mButton3, parent); in testChildrenAligned()
/frameworks/base/sax/java/android/sax/
DChildren.java30 Element getOrCreate(Element parent, String uri, String localName) { in getOrCreate() argument
37 current = new Child(parent, uri, localName, parent.depth + 1, hash); in getOrCreate()
56 current = new Child(parent, uri, localName, parent.depth + 1, hash); in getOrCreate()
91 Child(Element parent, String uri, String localName, int depth, in Child() argument
93 super(parent, uri, localName, depth); in Child()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DNonInterceptingScrollView.java45 final ViewParent parent = getParent(); in onTouchEvent() local
46 if (parent != null) { in onTouchEvent()
47 parent.requestDisallowInterceptTouchEvent(true); in onTouchEvent()
68 final ViewParent parent = getParent(); in onInterceptTouchEvent() local
69 if (parent != null) { in onInterceptTouchEvent()
70 parent.requestDisallowInterceptTouchEvent(true); in onInterceptTouchEvent()
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java57 static void initializeBenchmarks(Activity parent, BenchmarkRunner benchmarks) { in initializeBenchmarks() argument
58 final String packageName = parent.getPackageName(); in initializeBenchmarks()
60 PackageManager pm = parent.getPackageManager(); in initializeBenchmarks()
102 ComponentName component = new ComponentName(parent, parent.getClass()); in initializeBenchmarks()
146 ActivityManager am = (ActivityManager) parent.getSystemService(Context.ACTIVITY_SERVICE); in initializeBenchmarks()
154 PendingIntent pi = PendingIntent.getActivity(parent, 0, new Intent(), 0); in initializeBenchmarks()
159 PowerManager pwr = (PowerManager) parent.getSystemService(Context.POWER_SERVICE); in initializeBenchmarks()
166 AppOpsManager appOps = (AppOpsManager) parent.getSystemService(Context.APP_OPS_SERVICE); in initializeBenchmarks()
184 UserManager userManager = (UserManager) parent.getSystemService(Context.USER_SERVICE); in initializeBenchmarks()
193 ConnectivityManager cm = (ConnectivityManager) parent in initializeBenchmarks()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DControlsUiControllerImpl.kt99 private lateinit var parent: ViewGroup in <lambda>() variable in com.android.systemui.controls.ui.ControlsUiControllerImpl
119 reload(parent) in <lambda>()
136 parent.removeAllViews() in <lambda>()
145 override fun show(parent: ViewGroup, dismissGlobalActions: Runnable) { in <lambda>()
147 this.parent = parent in <lambda>()
172 private fun reload(parent: ViewGroup) { in <lambda>()
178 val fadeAnim = ObjectAnimator.ofFloat(parent, "alpha", 1.0f, 0.0f) in <lambda>()
186 show(parent, dismissGlobalActions) in <lambda>()
187 val showAnim = ObjectAnimator.ofFloat(parent, "alpha", 0.0f, 1.0f) in <lambda>()
198 inflater.inflate(R.layout.controls_no_favorites, parent, true) in <lambda>()
[all …]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DViewLayerInvalidationActivity.java126 private void randomInvalidator(ViewGroup parent) { in randomInvalidator() argument
127 for (int i = 0; i < parent.getChildCount(); ++i) { in randomInvalidator()
128 View child = parent.getChildAt(i); in randomInvalidator()
142 LinearLayout parent = (LinearLayout) view; in collectLinearLayouts() local
143 linearLayouts.add(parent); in collectLinearLayouts()
144 for (int i = 0; i < parent.getChildCount(); ++i) { in collectLinearLayouts()
145 collectLinearLayouts(parent.getChildAt(i)); in collectLinearLayouts()
157 ViewGroup parent = (ViewGroup) view; in collectTextViews() local
158 for (int i = 0; i < parent.getChildCount(); ++i) { in collectTextViews()
159 collectTextViews(parent.getChildAt(i)); in collectTextViews()

12345678910>>...26