Home
last modified time | relevance | path

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

12345678910>>...30

/frameworks/base/core/java/android/view/
DViewPropertyAnimatorRT.java48 public boolean startAnimation(ViewPropertyAnimator parent) { in startAnimation() argument
49 cancelAnimators(parent.mPendingAnimations); in startAnimation()
50 if (!canHandleAnimator(parent)) { in startAnimation()
53 doStartAnimation(parent); in startAnimation()
66 private void doStartAnimation(ViewPropertyAnimator parent) { in doStartAnimation() argument
67 int size = parent.mPendingAnimations.size(); in doStartAnimation()
69 long startDelay = parent.getStartDelay(); in doStartAnimation()
70 long duration = parent.getDuration(); in doStartAnimation()
71 TimeInterpolator interpolator = parent.getInterpolator(); in doStartAnimation()
80 NameValuesHolder holder = parent.mPendingAnimations.get(i); in doStartAnimation()
[all …]
DGhostView.java41 final ViewGroup parent = (ViewGroup) mView.getParent(); in GhostView() local
43 parent.mRecreateDisplayList = true; in GhostView()
44 parent.getDisplayList(); in GhostView()
84 final ViewGroup parent = (ViewGroup) mView.getParent(); in onDetachedFromWindow() local
85 if (parent != null) { in onDetachedFromWindow()
86 parent.mRecreateDisplayList = true; in onDetachedFromWindow()
87 parent.getDisplayList(); in onDetachedFromWindow()
93 ViewGroup parent = (ViewGroup) view.getParent(); in calculateMatrix() local
95 parent.transformMatrixToGlobal(matrix); in calculateMatrix()
96 matrix.preTranslate(-parent.getScrollX(), -parent.getScrollY()); in calculateMatrix()
[all …]
DLayoutInflater.java156 public View onCreateView(View parent, String name, Context context, AttributeSet attrs); in onCreateView() argument
176 public View onCreateView(View parent, String name, Context context, AttributeSet attrs) { in onCreateView() argument
177 View v = mF12 != null ? mF12.onCreateView(parent, name, context, attrs) in onCreateView()
180 return mF22 != null ? mF22.onCreateView(parent, name, context, attrs) in onCreateView()
680 protected View onCreateView(View parent, String name, AttributeSet attrs) in onCreateView() argument
695 View createViewFromTag(View parent, String name, AttributeSet attrs, boolean inheritContext) { in createViewFromTag() argument
701 if (parent != null && inheritContext) { in createViewFromTag()
702 viewContext = parent.getContext(); in createViewFromTag()
725 view = mFactory2.onCreateView(parent, name, viewContext, attrs); in createViewFromTag()
733 view = mPrivateFactory.onCreateView(parent, name, viewContext, attrs); in createViewFromTag()
[all …]
DViewOverlay.java168 ViewGroup parent = (ViewGroup) child.getParent(); in add() local
169 if (parent != mHostView && parent.getParent() != null && in add()
170 parent.mAttachInfo != null) { in add()
175 parent.getLocationOnScreen(parentLocation); in add()
180 parent.removeView(child); in add()
181 if (parent.getLayoutTransition() != null) { in add()
183 parent.getLayoutTransition().cancel(LayoutTransition.DISAPPEARING); in add()
/frameworks/base/core/java/com/android/internal/view/menu/
DBaseMenuPresenter.java82 final ViewGroup parent = (ViewGroup) mMenuView; in updateMenuView() local
83 if (parent == null) return; in updateMenuView()
93 final View convertView = parent.getChildAt(childIndex); in updateMenuView()
96 final View itemView = getItemView(item, convertView, parent); in updateMenuView()
111 while (childIndex < parent.getChildCount()) { in updateMenuView()
112 if (!filterLeftoverView(parent, childIndex)) { in updateMenuView()
138 protected boolean filterLeftoverView(ViewGroup parent, int childIndex) { in filterLeftoverView() argument
139 parent.removeViewAt(childIndex); in filterLeftoverView()
156 public MenuView.ItemView createItemView(ViewGroup parent) { in createItemView() argument
157 return (MenuView.ItemView) mSystemInflater.inflate(mItemLayoutRes, parent, false); in createItemView()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DBaseMenuPresenter.java86 final ViewGroup parent = (ViewGroup) mMenuView; in updateMenuView() local
87 if (parent == null) return; in updateMenuView()
97 final View convertView = parent.getChildAt(childIndex); in updateMenuView()
100 final View itemView = getItemView(item, convertView, parent); in updateMenuView()
115 while (childIndex < parent.getChildCount()) { in updateMenuView()
116 if (!filterLeftoverView(parent, childIndex)) { in updateMenuView()
142 protected boolean filterLeftoverView(ViewGroup parent, int childIndex) { in filterLeftoverView() argument
143 parent.removeViewAt(childIndex); in filterLeftoverView()
160 public MenuView.ItemView createItemView(ViewGroup parent) { in createItemView() argument
161 return (MenuView.ItemView) mSystemInflater.inflate(mItemLayoutRes, parent, false); in createItemView()
[all …]
/frameworks/base/core/java/android/animation/
DLayoutTransition.java726 private void runChangeTransition(final ViewGroup parent, View newView, final int changeReason) { in runChangeTransition() argument
760 final ViewTreeObserver observer = parent.getViewTreeObserver(); // used for later cleanup in runChangeTransition()
765 int numChildren = parent.getChildCount(); in runChangeTransition()
768 final View child = parent.getChildAt(i); in runChangeTransition()
772 setupChangeAnimation(parent, changeReason, baseAnimator, duration, child); in runChangeTransition()
776 ViewGroup tempParent = parent; in runChangeTransition()
795 parent.getViewTreeObserver().removeOnPreDrawListener(this); in runChangeTransition()
835 private void setupChangeAnimation(final ViewGroup parent, final int changeReason, in setupChangeAnimation() argument
958 parent.requestTransitionStart(LayoutTransition.this); in setupChangeAnimation()
975 listener.startTransition(LayoutTransition.this, parent, child, in setupChangeAnimation()
[all …]
/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/core/java/android/app/
DApplicationLoaders.java30 public ClassLoader getClassLoader(String zip, String libPath, ClassLoader parent) in getClassLoader() argument
41 if (parent == null) { in getClassLoader()
42 parent = baseParent; in getClassLoader()
50 if (parent == baseParent) { in getClassLoader()
58 new PathClassLoader(zip, libPath, parent); in getClassLoader()
66 PathClassLoader pathClassloader = new PathClassLoader(zip, parent); in getClassLoader()
DTaskStackBuilder.java129 final Intent parent = sourceActivity.getParentActivityIntent(); in addParentStack() local
130 if (parent != null) { in addParentStack()
133 ComponentName target = parent.getComponent(); in addParentStack()
135 target = parent.resolveActivity(mSourceContext.getPackageManager()); in addParentStack()
138 addNextIntent(parent); in addParentStack()
174 final Intent parent = parentActivity == null && insertAt == 0 in addParentStack() local
177 mIntents.add(insertAt, parent); in addParentStack()
/frameworks/support/v4/java/android/support/v4/view/
DViewParentCompat.java34 ViewParent parent, View child, AccessibilityEvent event); in requestSendAccessibilityEvent() argument
40 ViewParent parent, View child, AccessibilityEvent event) { in requestSendAccessibilityEvent() argument
55 ViewParent parent, View child, AccessibilityEvent event) { in requestSendAccessibilityEvent() argument
56 return ViewParentCompatICS.requestSendAccessibilityEvent(parent, child, event); in requestSendAccessibilityEvent()
95 ViewParent parent, View child, AccessibilityEvent event) { in requestSendAccessibilityEvent() argument
96 return IMPL.requestSendAccessibilityEvent(parent, child, event); in requestSendAccessibilityEvent()
/frameworks/support/v4/java/android/support/v4/app/
DTaskStackBuilder.java197 Intent parent = null; in addParentStack() local
199 parent = ((SupportParentable) sourceActivity).getSupportParentActivityIntent(); in addParentStack()
201 if (parent == null) { in addParentStack()
202 parent = NavUtils.getParentActivityIntent(sourceActivity); in addParentStack()
205 if (parent != null) { in addParentStack()
208 ComponentName target = parent.getComponent(); in addParentStack()
210 target = parent.resolveActivity(mSourceContext.getPackageManager()); in addParentStack()
213 addNextIntent(parent); in addParentStack()
240 Intent parent = NavUtils.getParentActivityIntent(mSourceContext, sourceActivityName); in addParentStack() local
241 while (parent != null) { in addParentStack()
[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()
DZOrderingActivity.java15 ViewGroup grandParent = (ViewGroup) findViewById(R.id.parent); in onCreate()
22 ViewGroup parent = (ViewGroup) grandParent.getChildAt(i); in onCreate() local
23 for (int j = 0; j < parent.getChildCount(); j++) { in onCreate()
24 parent.getChildAt(j).setOnClickListener(l); in onCreate()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java181 private Keyboard parent; field in Keyboard.Row
183 public Row(Keyboard parent) { in Row() argument
184 this.parent = parent; in Row()
187 public Row(Resources res, Keyboard parent, XmlResourceParser parser) { in Row() argument
188 this.parent = parent; in Row()
193 parent.mDisplayWidth, parent.mDefaultWidth); in Row()
196 parent.mDisplayHeight, parent.mDefaultHeight); in Row()
199 parent.mDisplayWidth, parent.mDefaultHorizontalGap); in Row()
202 parent.mDisplayHeight, parent.mDefaultVerticalGap); in Row()
313 public Key(Row parent) { in Key() argument
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DShadowHelper.java36 public void prepareParent(ViewGroup parent); in prepareParent() argument
52 public void prepareParent(ViewGroup parent) { in prepareParent() argument
80 public void prepareParent(ViewGroup parent) { in prepareParent() argument
81 ShadowHelperJbmr2.prepareParent(parent); in prepareParent()
108 public void prepareParent(ViewGroup parent) { in prepareParent() argument
158 public void prepareParent(ViewGroup parent) { in prepareParent() argument
159 mImpl.prepareParent(parent); in prepareParent()
DActionPresenterSelector.java53 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() argument
54 View v = LayoutInflater.from(parent.getContext()) in onCreateViewHolder()
55 .inflate(R.layout.lb_action_1_line, parent, false); in onCreateViewHolder()
56 return new ActionViewHolder(v, parent.getLayoutDirection()); in onCreateViewHolder()
75 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() argument
76 View v = LayoutInflater.from(parent.getContext()) in onCreateViewHolder()
77 .inflate(R.layout.lb_action_2_lines, parent, false); in onCreateViewHolder()
78 return new ActionViewHolder(v, parent.getLayoutDirection()); in onCreateViewHolder()
/frameworks/base/test-runner/src/android/test/
DViewAsserts.java323 static public void assertGroupIntegrity(ViewGroup parent) { in assertGroupIntegrity() argument
324 final int count = parent.getChildCount(); in assertGroupIntegrity()
328 assertNotNull("group should not contain null children", parent.getChildAt(i)); in assertGroupIntegrity()
329 assertSame(parent, parent.getChildAt(i).getParent()); in assertGroupIntegrity()
339 static public void assertGroupContains(ViewGroup parent, View child) { in assertGroupContains() argument
340 final int count = parent.getChildCount(); in assertGroupContains()
345 if (parent.getChildAt(i) == child) { in assertGroupContains()
363 static public void assertGroupNotContains(ViewGroup parent, View child) { in assertGroupNotContains() argument
364 final int count = parent.getChildCount(); in assertGroupNotContains()
368 if (parent.getChildAt(i) == child) { in assertGroupNotContains()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListHeterogeneous.java40 protected View createView(int position, ViewGroup parent, int desiredHeight) { in createView() argument
44 position, parent.getContext(), getValueAtPosition(position), desiredHeight); in createView()
47 position, parent.getContext(), getValueAtPosition(position), desiredHeight); in createView()
50 position, parent.getContext(), getValueAtPosition(position), desiredHeight); in createView()
57 public View convertView(int position, View convertView, ViewGroup parent) { in convertView() argument
/frameworks/base/core/java/android/widget/
DSimpleExpandableListAdapter.java222 View convertView, ViewGroup parent) { in getChildView() argument
225 v = newChildView(isLastChild, parent); in getChildView()
239 public View newChildView(boolean isLastChild, ViewGroup parent) { in newChildView() argument
240 return mInflater.inflate((isLastChild) ? mLastChildLayout : mChildLayout, parent, false); in newChildView()
271 ViewGroup parent) { in getGroupView() argument
274 v = newGroupView(isExpanded, parent); in getGroupView()
288 public View newGroupView(boolean isExpanded, ViewGroup parent) { in newGroupView() argument
290 parent, false); in newGroupView()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
Dtransform.rs29 static void debugTransform(SgTransform *data, const ParentData *parent) {
33 rsDebug("parent", (int)parent);
77 const ParentData *parent = (const ParentData *)usrData;
80 debugTransform(data, parent);
102 if (parent) {
103 data->isDirty = (parent->changed || data->isDirty) ? 1 : 0;
105 rsMatrixLoad(globalMat, parent->mat);
/frameworks/base/tools/preload/
DProc.java32 final Proc parent; field in Proc
60 Proc(Proc parent, int id) { in Proc() argument
61 this.parent = parent; in Proc()
79 return parent != null && parent.name.equals("zygote") in fromZygote()
/frameworks/base/tools/layoutlib/bridge/src/android/view/
DLayoutInflater_Delegate.java52 View parent, final AttributeSet attrs, boolean finishInflate, boolean inheritContext) in rInflate() argument
64 thisInflater.rInflate_Original(parser, parent, attrs, finishInflate, inheritContext); in rInflate()
77 public static void parseInclude(LayoutInflater thisInflater, XmlPullParser parser, View parent, in parseInclude() argument
82 if (parent instanceof ViewGroup) { in parseInclude()
114 thisInflater.rInflate(childParser, parent, childAttrs, false, in parseInclude()
117 final View view = thisInflater.createViewFromTag(parent, childName, in parseInclude()
119 final ViewGroup group = (ViewGroup) parent; in parseInclude()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DViewStubCompat.java194 final ViewGroup parent = (ViewGroup) viewParent; in inflate() local
201 final View view = factory.inflate(mLayoutResource, parent, in inflate()
208 final int index = parent.indexOfChild(this); in inflate()
209 parent.removeViewInLayout(this); in inflate()
213 parent.addView(view, index, layoutParams); in inflate()
215 parent.addView(view, index); in inflate()

12345678910>>...30