/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
ActionPresenterSelector.java | 62 ActionViewHolder vh = (ActionViewHolder) viewHolder; local 63 vh.mAction = action; 64 vh.mButton.setText(action.getLabel1()); 84 ActionViewHolder vh = (ActionViewHolder) viewHolder; local 86 vh.mAction = action; 89 final int startPadding = vh.view.getResources() 91 final int endPadding = vh.view.getResources() 93 vh.view.setPaddingRelative(startPadding, 0, endPadding, 0); 95 final int padding = vh.view.getResources() 97 vh.view.setPaddingRelative(padding, 0, padding, 0) 118 ActionViewHolder vh = (ActionViewHolder) viewHolder; local [all...] |
VerticalGridPresenter.java | 139 ViewHolder vh = createGridViewHolder(parent); local 140 vh.mInitialized = false; 141 initializeGridViewHolder(vh); 142 if (!vh.mInitialized) { 145 return vh; 177 * @param vh The ViewHolder to initialize for the vertical grid. 179 protected void initializeGridViewHolder(ViewHolder vh) { 184 vh.getGridView().setNumColumns(mNumColumns); 185 vh.mInitialized = true; 187 vh.mItemBridgeAdapter.setWrapper(mWrapper) 245 ViewHolder vh = (ViewHolder) viewHolder; local 253 ViewHolder vh = (ViewHolder) viewHolder; local [all...] |
ListRowPresenter.java | 332 private int getSpaceUnderBaseline(ListRowPresenter.ViewHolder vh) { 333 RowHeaderPresenter.ViewHolder headerViewHolder = vh.getHeaderViewHolder(); 343 private void setVerticalPadding(ListRowPresenter.ViewHolder vh) { 346 if (vh.isExpanded()) { 347 int headerSpaceUnderBaseline = getSpaceUnderBaseline(vh); 349 paddingTop = (vh.isSelected() ? sExpandedSelectedRowTopPadding : vh.mPaddingTop) - 352 sExpandedRowNoHovercardBottomPadding : vh.mPaddingBottom; 353 } else if (vh.isSelected()) { 354 paddingTop = sSelectedRowTopPadding - vh.mPaddingBottom 378 ViewHolder vh = (ViewHolder) holder; local 419 ViewHolder vh = (ViewHolder) holder; local 431 ViewHolder vh = (ViewHolder) holder; local 439 ViewHolder vh = (ViewHolder) holder; local 540 ViewHolder vh = (ViewHolder) holder; local 554 ViewHolder vh = (ViewHolder) holder; local [all...] |
ControlButtonPresenterSelector.java | 89 ActionViewHolder vh = (ActionViewHolder) viewHolder; local 90 vh.mIcon.setImageDrawable(action.getIcon()); 91 if (vh.mLabel != null) { 93 vh.mLabel.setText(action.getLabel1()); 95 vh.mLabel.setText(null); 100 if (!TextUtils.equals(vh.mFocusableView.getContentDescription(), contentDescription)) { 101 vh.mFocusableView.setContentDescription(contentDescription); 102 vh.mFocusableView.sendAccessibilityEvent( 109 ActionViewHolder vh = (ActionViewHolder) viewHolder; local 110 vh.mIcon.setImageDrawable(null) [all...] |
PlaybackControlsPresenter.java | 228 public void setProgressColor(ViewHolder vh, int color) { 231 ((LayerDrawable) vh.mProgressBar.getProgressDrawable()) 235 public void setTotalTime(ViewHolder vh, int ms) { 236 vh.setTotalTime(ms); 239 public int getTotalTime(ViewHolder vh) { 240 return vh.getTotalTime(); 243 public void setCurrentTime(ViewHolder vh, int ms) { 244 vh.setCurrentTime(ms); 247 public int getCurrentTime(ViewHolder vh) { 248 return vh.getCurrentTime() 285 ViewHolder vh = (ViewHolder) holder; local 302 ViewHolder vh = (ViewHolder) holder; local [all...] |
RowPresenter.java | 165 ViewHolder vh = createRowViewHolder(parent); local 166 vh.mInitialzed = false; 171 vh.mHeaderViewHolder = (RowHeaderPresenter.ViewHolder) 172 mHeaderPresenter.onCreateViewHolder((ViewGroup) vh.view); 174 result = new ContainerViewHolder(containerView, vh); 176 result = vh; 178 initializeRowViewHolder(vh); 179 if (!vh.mInitialzed) { 199 * @param vh The ViewHolder to initialize for the Row. 201 protected void initializeRowViewHolder(ViewHolder vh) { [all...] |
AbstractDetailsDescriptionPresenter.java | 118 ViewHolder vh = (ViewHolder) viewHolder; local 119 onBindDescription(vh, item); 122 if (TextUtils.isEmpty(vh.mTitle.getText())) { 123 vh.mTitle.setVisibility(View.GONE); 126 vh.mTitle.setVisibility(View.VISIBLE); 127 vh.mTitle.setLineSpacing(vh.mTitleLineSpacing - vh.mTitle.getLineHeight() + 128 vh.mTitle.getLineSpacingExtra(), vh.mTitle.getLineSpacingMultiplier()) [all...] |
ControlBarPresenter.java | 149 Presenter.ViewHolder vh = mViewHolders.get(position); local 151 if (vh == null) { 152 vh = presenter.onCreateViewHolder(mControlBar); 153 mViewHolders.put(position, vh); 155 final Presenter.ViewHolder itemViewHolder = vh; 156 presenter.setOnClickListener(vh, new View.OnClickListener() { 167 if (vh.view.getParent() == null) { 168 mControlBar.addView(vh.view); 170 presenter.onBindViewHolder(vh, item); 241 ViewHolder vh = (ViewHolder) holder local 256 ViewHolder vh = (ViewHolder) holder; local [all...] |
DetailsOverviewRowPresenter.java | 372 protected void onRowViewSelected(RowPresenter.ViewHolder vh, boolean selected) { 373 super.onRowViewSelected(vh, selected); 375 ((ViewHolder) vh).dispatchItemSelection(null); 383 ViewHolder vh = new ViewHolder(v, mDetailsPresenter); local 385 initDetailsOverview(vh); 387 return vh; 396 private void initDetailsOverview(ViewHolder vh) { 397 final View overview = vh.mOverviewFrame; 403 vh.mOverviewFrame.setForeground(null); 422 ViewHolder vh = (ViewHolder) holder local 513 ViewHolder vh = (ViewHolder) holder; local 528 ViewHolder vh = (ViewHolder) holder; local [all...] |
PlaybackControlsRowPresenter.java | 164 ViewHolder vh = ((BoundData) data).mRowViewHolder; 165 if (vh.mSelectedViewHolder != itemViewHolder || vh.mSelectedItem != item) { 166 vh.mSelectedViewHolder = itemViewHolder; 167 vh.mSelectedItem = item; 168 vh.dispatchItemSelection(); 178 ViewHolder vh = ((BoundData) data).mRowViewHolder; 180 getOnItemClickedListener().onItemClicked(item, vh.getRow()); 184 vh, vh.getRow()) 313 ViewHolder vh = new ViewHolder(v, mDescriptionPresenter); local 343 ViewHolder vh = (ViewHolder) holder; local 401 ViewHolder vh = (ViewHolder) holder; local [all...] |
/development/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
BaseLayoutManagerActivity.java | 82 final SimpleStringAdapter.ViewHolder vh = super 84 vh.itemView.setOnClickListener(new View.OnClickListener() { 87 final int pos = vh.getAdapterPosition(); 93 return vh;
|
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/ |
DialogAdapter.java | 47 final ViewHolder vh = new ViewHolder(v); local 55 Setting s = vh.mSetting; 72 return vh;
|
PanelAdapter.java | 59 final ViewHolder vh = new ViewHolder(v); local 63 Setting s = vh.mSetting; 69 return vh;
|
/external/chromium_org/content/browser/renderer_host/ |
compositing_iosurface_mac.h | 145 float vh = static_cast<float>(vertex_size.height()); local 149 verts_[1].set(0.0f, vh, 0.0f, 0.0f); 150 verts_[2].set(vw, vh, tw, 0.0f);
|
/packages/apps/Music/src/com/android/music/ |
MusicPicker.java | 218 ViewHolder vh = new ViewHolder(); local 219 vh.line1 = (TextView) v.findViewById(R.id.line1); 220 vh.line2 = (TextView) v.findViewById(R.id.line2); 221 vh.duration = (TextView) v.findViewById(R.id.duration); 222 vh.radio = (RadioButton) v.findViewById(R.id.radio); 223 vh.play_indicator = (ImageView) v.findViewById(R.id.play_indicator); 224 vh.buffer1 = new CharArrayBuffer(100); 225 vh.buffer2 = new char[200]; 226 v.setTag(vh); 232 ViewHolder vh = (ViewHolder) view.getTag() local [all...] |
/packages/apps/Settings/src/com/android/settings/notification/ |
NotificationAppList.java | 258 final ViewHolder vh = new ViewHolder(); local 259 vh.row = (ViewGroup) v; 260 vh.row.setLayoutTransition(new LayoutTransition()); 261 vh.row.setLayoutTransition(new LayoutTransition()); 262 vh.icon = (ImageView) v.findViewById(android.R.id.icon); 263 vh.title = (TextView) v.findViewById(android.R.id.title); 264 vh.subtitle = (TextView) v.findViewById(android.R.id.text1); 265 vh.rowDivider = v.findViewById(R.id.row_divider); 266 v.setTag(vh); 289 final ViewHolder vh = (ViewHolder) view.getTag() local [all...] |
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZoneFilterTypeAdapter.java | 56 ViewHolder vh = new ViewHolder(); local 57 vh.strTextView = (TextView) v.findViewById(R.id.value); 58 v.setTag(vh); 121 ViewHolder vh = (ViewHolder) v.getTag(); local 129 vh.filterType = filter.type; 130 vh.str = filter.constraint; 131 vh.time = filter.time; 132 vh.strTextView.setText(filter.constraint); 151 ViewHolder vh = (ViewHolder) v.getTag(); local 152 mListener.onSetFilter(vh.filterType, vh.str, vh.time) [all...] |
TimeZoneResultAdapter.java | 70 ViewHolder vh = new ViewHolder(); local 71 vh.timeZone = (TextView) v.findViewById(R.id.time_zone); 72 vh.timeOffset = (TextView) v.findViewById(R.id.time_offset); 73 vh.location = (TextView) v.findViewById(R.id.location); 74 v.setTag(vh); 281 ViewHolder vh = (ViewHolder) v.getTag(); local 286 vh.timeZone.setText(tzi.mDisplayName); 288 vh.timeOffset.setText(tzi.getGmtDisplayName(mContext)); 292 vh.location.setVisibility(View.INVISIBLE); 294 vh.location.setText(location) [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
DefaultItemAnimatorTest.java | 158 assertTrue("all vh animations should end", 167 ViewHolder vh = createViewHolder(1); local 168 expectItems(vh); 169 assertTrue(animateAdd(vh)); 175 ViewHolder vh = createViewHolder(1); local 176 expectItems(vh); 177 assertTrue(animateRemove(vh)); 183 ViewHolder vh = createViewHolder(1); local 184 expectItems(vh); 185 assertTrue(animateMove(vh, 0, 0, 100, 100)) 191 ViewHolder vh = createViewHolder(1); local 224 final ViewHolder vh = createViewHolder(1); local 231 final ViewHolder vh = createViewHolder(1); local 238 ViewHolder vh = createViewHolder(1); local 245 ViewHolder vh = createViewHolder(1); local 252 ViewHolder vh = createViewHolder(1); local 267 ViewHolder vh = createViewHolder(1); local 283 ViewHolder vh = createViewHolder(1); local 299 ViewHolder vh = createViewHolder(1); local 365 final ViewHolder vh = mAdapter.createViewHolder(mDummyParent, 1); local [all...] |
RecyclerViewAnimationsTest.java | 212 for (RecyclerView.ViewHolder vh : addVH) { 213 assertNotSame("add-remove item should not animate add", testView[0], vh.itemView); 215 for (RecyclerView.ViewHolder vh : moveVH) { 216 assertNotSame("add-remove item should not animate move", testView[0], vh.itemView); 218 for (RecyclerView.ViewHolder vh : removeVH) { 219 assertNotSame("add-remove item should not animate remove", testView[0], vh.itemView); 222 for (RecyclerView.ViewHolder vh : mRecycledViews) { 223 found |= vh.itemView == testView[0]; 259 TestViewHolder vh = super.onCreateViewHolder(parent, viewType); 261 Log.d(TAG, logPrefix + " onCreateVH" + vh.toString()) 733 RecyclerView.ViewHolder vh = recyclerView.getChildViewHolder(view); local 1062 final RecyclerView.ViewHolder vh = mRecyclerView local 1179 ViewHolder vh = getChildViewHolderInt(getChildAt(i)); local 1187 ViewHolder vh = getChildViewHolderInt(getChildAt(i)); local [all...] |
/external/chromium_org/ui/views/controls/ |
scroll_view.cc | 564 int vh = contents_viewport_->height(); local 567 vert_sb_->Update(vh, ch, -origin);
|
/external/fio/ |
verify.c | 394 struct vhdr_meta *vh = hdr_priv(hdr); local 400 if (vh->offset == io_u->offset + vc->hdr_num * td->o.verify_interval) 416 if (vh->numberio != io_u->numberio) 430 struct vhdr_xxhash *vh = hdr_priv(hdr); local 440 if (vh->hash == hash) 444 vc->good_crc = &vh->hash; 454 struct vhdr_sha512 *vh = hdr_priv(hdr); local 465 if (!memcmp(vh->sha512, sha512_ctx.buf, sizeof(sha512))) 469 vc->good_crc = vh->sha512; 471 vc->crc_len = sizeof(vh->sha512) 479 struct vhdr_sha256 *vh = hdr_priv(hdr); local 504 struct vhdr_sha1 *vh = hdr_priv(hdr); local 529 struct vhdr_crc7 *vh = hdr_priv(hdr); local 550 struct vhdr_crc16 *vh = hdr_priv(hdr); local 571 struct vhdr_crc64 *vh = hdr_priv(hdr); local 592 struct vhdr_crc32 *vh = hdr_priv(hdr); local 613 struct vhdr_crc32 *vh = hdr_priv(hdr); local 634 struct vhdr_md5 *vh = hdr_priv(hdr); local 872 struct vhdr_meta *vh = hdr_priv(hdr); local 886 struct vhdr_xxhash *vh = hdr_priv(hdr); local 896 struct vhdr_sha512 *vh = hdr_priv(hdr); local 907 struct vhdr_sha256 *vh = hdr_priv(hdr); local 918 struct vhdr_sha1 *vh = hdr_priv(hdr); local 929 struct vhdr_crc7 *vh = hdr_priv(hdr); local 936 struct vhdr_crc16 *vh = hdr_priv(hdr); local 943 struct vhdr_crc32 *vh = hdr_priv(hdr); local 950 struct vhdr_crc32 *vh = hdr_priv(hdr); local 957 struct vhdr_crc64 *vh = hdr_priv(hdr); local 964 struct vhdr_md5 *vh = hdr_priv(hdr); local [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
AdapterHelper.java | 137 ViewHolder vh = mCallback.findViewHolder(position); local 138 if (vh != null || canFindInPreLayout(position)) { 190 ViewHolder vh = mCallback.findViewHolder(position); local 191 if (vh != null || canFindInPreLayout(position)) { // deferred
|
/ndk/tests/build/b9193874-neon/jni/ |
b9193874-neon.c | 259 int32x4_t vh = vmovl_s16(vget_high_s16(vv)); local 261 int32x4_t ugh = vmlal_lane_s16(vh, vget_high_s16(uu), cf16, 1); 307 int32x4_t vh = vmovl_s16(vget_high_s16(vv)); local 309 int32x4_t ugh = vmlal_lane_s16(vh, vget_high_s16(uu), cf16, 1);
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
AgendaFragment.java | 331 AgendaAdapter.ViewHolder vh = mAgendaListView.getSelectedViewHolder(); local 333 Log.d(TAG, "selected viewholder is null: " + (vh == null)); 334 showEventInfo(event, vh != null ? vh.allDay : false, mForceReplace);
|