Home
last modified time | relevance | path

Searched refs:itemView (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/view/menu/
DBaseMenuPresenter.java98 final View itemView = getItemView(item, convertView, parent); in updateMenuView() local
101 itemView.setPressed(false); in updateMenuView()
102 itemView.jumpDrawablesToCurrentState(); in updateMenuView()
104 if (itemView != convertView) { in updateMenuView()
105 addItemView(itemView, childIndex); in updateMenuView()
126 protected void addItemView(View itemView, int childIndex) { in addItemView() argument
127 final ViewGroup currentParent = (ViewGroup) itemView.getParent(); in addItemView()
129 currentParent.removeView(itemView); in addItemView()
131 ((ViewGroup) mMenuView).addView(itemView, childIndex); in addItemView()
174 MenuView.ItemView itemView; in getItemView() local
[all …]
DMenuPopup.java141 View itemView = null; in measureIndividualMenuWidth() local
151 itemView = null; in measureIndividualMenuWidth()
158 itemView = adapter.getView(i, itemView, parent); in measureIndividualMenuWidth()
159 itemView.measure(widthMeasureSpec, heightMeasureSpec); in measureIndividualMenuWidth()
161 final int itemWidth = itemView.getMeasuredWidth(); in measureIndividualMenuWidth()
DIconMenuPresenter.java60 public void bindItemView(MenuItemImpl item, ItemView itemView) { in bindItemView() argument
61 final IconMenuItemView view = (IconMenuItemView) itemView; in bindItemView()
80 protected void addItemView(View itemView, int childIndex) {
81 final IconMenuItemView v = (IconMenuItemView) itemView;
87 super.addItemView(itemView, childIndex);
DMenuAdapter.java93 MenuView.ItemView itemView = (MenuView.ItemView) convertView; in getView() local
97 itemView.initialize(getItem(position), 0); in getView()
/frameworks/base/core/java/com/android/internal/widget/
DDefaultItemAnimator.java134 View view = moves.get(0).holder.itemView; in runPendingAnimations()
158 holder.itemView.postOnAnimationDelayed(changer, getRemoveDuration()); in runPendingAnimations()
184 View view = additions.get(0).itemView; in runPendingAnimations()
200 final View view = holder.itemView; in animateRemoveImpl()
224 holder.itemView.setAlpha(0); in animateAdd()
230 final View view = holder.itemView; in animateAddImpl()
258 final View view = holder.itemView; in animateMove()
259 fromX += holder.itemView.getTranslationX(); in animateMove()
260 fromY += holder.itemView.getTranslationY(); in animateMove()
279 final View view = holder.itemView; in animateMoveImpl()
[all …]
DRecyclerView.java523 mLayout.removeAndRecycleView(viewHolder.itemView, mRecycler);
788 if (mChildHelper.isHidden(vh.itemView)) { in initAdapterManager()
1237 final View view = viewHolder.itemView; in addAnimatingView()
3290 mState.mFocusedSubChildId = getDeepestFocusedViewWithId(focusedVh.itemView); in saveFocusInfo()
3319 if (nextFocus.itemView.hasFocusable()) { in findNextViewToFocus()
3320 return nextFocus.itemView; in findNextViewToFocus()
3329 if (nextFocus.itemView.hasFocusable()) { in findNextViewToFocus()
3330 return nextFocus.itemView; in findNextViewToFocus()
3382 if (focusTarget == null || mChildHelper.isHidden(focusTarget.itemView) in recoverFocusFromState()
3383 || !focusTarget.itemView.hasFocusable()) { in recoverFocusFromState()
[all …]
DSimpleItemAnimator.java94 View disappearingItemView = viewHolder.itemView; in animateDisappearance()
138 + " with view " + viewHolder.itemView); in animatePersistence()
151 Log.d(TAG, "CHANGED: " + oldHolder + " with view " + oldHolder.itemView); in animateChange()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java316 if (mPendingCleanup.remove(animation.mViewHolder.itemView)) {
502 outPosition[0] = mSelectedStartX + mDx - mSelected.itemView.getLeft(); in getSelectedDxDy()
504 outPosition[0] = mSelected.itemView.getTranslationX(); in getSelectedDxDy()
507 outPosition[1] = mSelectedStartY + mDy - mSelected.itemView.getTop(); in getSelectedDxDy()
509 outPosition[1] = mSelected.itemView.getTranslationY(); in getSelectedDxDy()
559 mOverdrawChild = selected.itemView; in select()
568 if (prevSelected.itemView.getParent() != null) { in select()
617 mPendingCleanup.add(prevSelected.itemView); in select()
626 if (mOverdrawChild == prevSelected.itemView) { in select()
627 removeChildDrawingOrderCallbackIfNecessary(prevSelected.itemView); in select()
[all …]
DItemTouchUIUtilImpl.java48 private float findMaxElevation(RecyclerView recyclerView, View itemView) { in findMaxElevation() argument
53 if (child == itemView) { in findMaxElevation()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
DItemViewHolder.java29 ItemViewHolder(View itemView) { in ItemViewHolder() argument
30 super(itemView); in ItemViewHolder()
45 itemView.setClickable(isEnabled); in setEnabled()
46 itemView.setEnabled(isEnabled); in setEnabled()
47 itemView.setFocusable(isEnabled); in setEnabled()
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/volume/
DCarVolumeItem.java102 public CarVolumeItemViewHolder(@NonNull View itemView) { in CarVolumeItemViewHolder() argument
103 super(itemView); in CarVolumeItemViewHolder()
105 mSeekBar = itemView.findViewById(R.id.seek_bar); in CarVolumeItemViewHolder()
106 mPrimaryIcon = itemView.findViewById(R.id.primary_icon); in CarVolumeItemViewHolder()
107 mSupplementalIcon = itemView.findViewById(R.id.supplemental_icon); in CarVolumeItemViewHolder()
108 mSupplementalIconDivider = itemView.findViewById(R.id.supplemental_icon_divider); in CarVolumeItemViewHolder()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DLayoutPreferenceTest.java57 mHolder.itemView.callOnClick(); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent()
60 assertThat(mHolder.itemView.isFocusable()).isTrue(); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent()
61 assertThat(mHolder.itemView.isClickable()).isTrue(); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent()
69 assertThat(mHolder.itemView.isFocusable()).isFalse(); in setNonSelectable_viewShouldNotBeSelectable()
70 assertThat(mHolder.itemView.isClickable()).isFalse(); in setNonSelectable_viewShouldNotBeSelectable()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DDividerItemDecorationTest.java161 final View itemView = new View(context); in drawDecoration()
162 itemView.setMinimumWidth(20); in drawDecoration()
163 itemView.setMinimumHeight(5); in drawDecoration()
164 return ViewHolder.createInstance(itemView, allowDividerAbove, allowDividerBelow); in drawDecoration()
201 View itemView, boolean allowDividerAbove, boolean allowDividerBelow) { in createInstance() argument
202 return new ViewHolder(itemView, allowDividerAbove, allowDividerBelow); in createInstance()
205 private ViewHolder(View itemView, boolean allowDividerAbove, boolean allowDividerBelow) { in ViewHolder() argument
206 super(itemView); in ViewHolder()
/frameworks/base/packages/SettingsLib/LayoutPreference/src/com/android/settingslib/widget/
DLayoutPreference.java134 holder.itemView.setOnClickListener(mClickListener); in onBindViewHolder()
137 holder.itemView.setFocusable(selectable); in onBindViewHolder()
138 holder.itemView.setClickable(selectable); in onBindViewHolder()
142 FrameLayout layout = (FrameLayout) holder.itemView; in onBindViewHolder()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DFrameworkActionBar.java196 View itemView = null; in measureContentWidth() local
207 itemView = null; in measureContentWidth()
214 itemView = adapter.getView(i, itemView, mMeasureParent); in measureContentWidth()
215 itemView.measure(widthMeasureSpec, heightMeasureSpec); in measureContentWidth()
217 final int itemWidth = itemView.getMeasuredWidth(); in measureContentWidth()
DOverflowMenuAdapter.java80 MenuView.ItemView itemView = (MenuView.ItemView) convertView; in getView() local
81 itemView.initialize(getItem(position), 0); in getView()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/items/
DRecyclerItemAdapterTest.java129 assertNotNull("Background should be set", viewHolder.itemView.getBackground()); in testCreateViewHolder()
130 assertEquals("foobar", viewHolder.itemView.getTag()); in testCreateViewHolder()
140 assertNull("Background should be null", viewHolder.itemView.getBackground()); in testCreateViewHolderNoBackground()
150 Drawable background = viewHolder.itemView.getBackground(); in testCreateViewHolderWithExistingBackground()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileAdapter.java247 holder.itemView.setVisibility(mTileDividerIndex < mTiles.size() - 1 ? View.VISIBLE in onBindViewHolder()
262 ((TextView) holder.itemView.findViewById(android.R.id.title)).setText(titleText); in onBindViewHolder()
470 public Holder(View itemView) { in Holder() argument
471 super(itemView); in Holder()
472 if (itemView instanceof FrameLayout) { in Holder()
473 mTileView = (CustomizeTileView) ((FrameLayout) itemView).getChildAt(0); in Holder()
480 itemView.clearAnimation(); in clearDrag()
488 itemView.animate() in startDrag()
501 itemView.animate() in stopDrag()
633 return move(from, to, target.itemView);
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DLockscreenFragment.java152 public Holder(View itemView) { in Holder() argument
153 super(itemView); in Holder()
154 icon = (ImageView) itemView.findViewById(android.R.id.icon); in Holder()
155 title = (TextView) itemView.findViewById(android.R.id.title); in Holder()
156 expand = (ExpandableIndicator) itemView.findViewById(R.id.expand); in Holder()
274 holder.itemView.setOnClickListener( in onBindViewHolder()
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java226 final View itemView = mInflater.inflate(mLayoutResId, container, false); in instantiateItem() local
228 final SimpleMonthView v = itemView.findViewById(mCalendarViewId); in instantiateItem()
276 final ViewHolder holder = new ViewHolder(position, itemView, v); in instantiateItem()
279 container.addView(itemView); in instantiateItem()
DSpinner.java850 View itemView = null; in measureContentWidth() local
867 itemView = null; in measureContentWidth()
869 itemView = adapter.getView(i, itemView, this); in measureContentWidth()
870 if (itemView.getLayoutParams() == null) { in measureContentWidth()
871 itemView.setLayoutParams(new ViewGroup.LayoutParams( in measureContentWidth()
875 itemView.measure(widthMeasureSpec, heightMeasureSpec); in measureContentWidth()
876 width = Math.max(width, itemView.getMeasuredWidth()); in measureContentWidth()
DActivityChooserView.java807 View itemView = null; in measureContentWidth() local
814 itemView = getView(i, itemView, null); in measureContentWidth()
815 itemView.measure(widthMeasureSpec, heightMeasureSpec); in measureContentWidth()
816 contentWidth = Math.max(contentWidth, itemView.getMeasuredWidth()); in measureContentWidth()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedPreferenceHelperTest.java60 when(mViewHolder.itemView.findViewById(android.R.id.summary)) in bindPreference_disabled_shouldDisplayDisabledSummary()
76 when(mViewHolder.itemView.findViewById(android.R.id.summary)) in bindPreference_notDisabled_shouldNotHideSummary()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/
DHeaderRecyclerView.java42 HeaderViewHolder(View itemView) { in HeaderViewHolder() argument
43 super(itemView); in HeaderViewHolder()
154 FrameLayout mHeaderParent = (FrameLayout) holder.itemView; in onBindViewHolder()
/frameworks/base/packages/SettingsLib/BarChartPreference/src/com/android/settingslib/widget/
DBarChartPreference.java168 holder.itemView.setVisibility(View.INVISIBLE); in onBindViewHolder()
171 holder.itemView.setVisibility(View.VISIBLE); in onBindViewHolder()

12