Home
last modified time | relevance | path

Searched refs:holder (Results 1 – 25 of 113) sorted by relevance

12345

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java923 ViewHolder holder = getChildViewHolder(view); in scrollByInternal() local
924 if (holder != null && holder.mShadowingHolder != null) { in scrollByInternal()
925 ViewHolder shadowingHolder = holder.mShadowingHolder; in scrollByInternal()
1839 final ViewHolder holder = getChildViewHolderInt(mChildHelper.getChildAt(i)); in dispatchLayout() local
1840 if (holder.shouldIgnore() || (holder.isInvalid() && !mAdapter.hasStableIds())) { in dispatchLayout()
1843 final View view = holder.itemView; in dispatchLayout()
1844 mState.mPreLayoutHolderMap.put(holder, new ItemHolderInfo(holder, in dispatchLayout()
1860 final ViewHolder holder = getChildViewHolderInt(mChildHelper.getChildAt(i)); in dispatchLayout() local
1861 if (holder.isChanged() && !holder.isRemoved() && !holder.shouldIgnore()) { in dispatchLayout()
1862 long key = getChangedHolderKey(holder); in dispatchLayout()
[all …]
DDefaultItemAnimator.java53 public ViewHolder holder; field in DefaultItemAnimator.MoveInfo
56 private MoveInfo(ViewHolder holder, int fromX, int fromY, int toX, int toY) { in MoveInfo() argument
57 this.holder = holder; in MoveInfo()
106 for (ViewHolder holder : mPendingRemovals) { in runPendingAnimations()
107 animateRemoveImpl(holder); in runPendingAnimations()
120 animateMoveImpl(moveInfo.holder, moveInfo.fromX, moveInfo.fromY, in runPendingAnimations()
128 View view = moves.get(0).holder.itemView; in runPendingAnimations()
151 ViewHolder holder = changes.get(0).oldHolder; in runPendingAnimations() local
152 ViewCompat.postOnAnimationDelayed(holder.itemView, changer, getRemoveDuration()); in runPendingAnimations()
165 for (ViewHolder holder : additions) { in runPendingAnimations()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DRecentsPanelView.java149 ViewHolder holder = new ViewHolder(); in createView() local
150 holder.thumbnailView = convertView.findViewById(R.id.app_thumbnail); in createView()
151 holder.thumbnailViewImage = in createView()
155 updateThumbnail(holder, mRecentTasksLoader.getDefaultThumbnail(), false, false); in createView()
156 holder.iconView = (ImageView) convertView.findViewById(R.id.app_icon); in createView()
157 holder.iconView.setImageDrawable(mRecentTasksLoader.getDefaultIcon()); in createView()
158 holder.labelView = (TextView) convertView.findViewById(R.id.app_label); in createView()
159 holder.calloutLine = convertView.findViewById(R.id.recents_callout_line); in createView()
160 holder.descriptionView = (TextView) convertView.findViewById(R.id.app_description); in createView()
162 convertView.setTag(holder); in createView()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DRowHeaderPresenter.java86 public final void setSelectLevel(ViewHolder holder, float selectLevel) { in setSelectLevel() argument
87 holder.mSelectLevel = selectLevel; in setSelectLevel()
88 onSelectLevelChanged(holder); in setSelectLevel()
91 protected void onSelectLevelChanged(ViewHolder holder) { in onSelectLevelChanged() argument
92 holder.view.setAlpha(holder.mUnselectAlpha + holder.mSelectLevel * in onSelectLevelChanged()
93 (1f - holder.mUnselectAlpha)); in onSelectLevelChanged()
100 public int getSpaceUnderBaseline(ViewHolder holder) { in getSpaceUnderBaseline() argument
101 int space = holder.view.getPaddingBottom(); in getSpaceUnderBaseline()
102 if (holder.view instanceof TextView) { in getSpaceUnderBaseline()
103 space += (int) getFontDescent((TextView) holder.view, mFontMeasurePaint); in getSpaceUnderBaseline()
DListRowPresenter.java178 protected void initializeRowViewHolder(RowPresenter.ViewHolder holder) { in initializeRowViewHolder() argument
179 super.initializeRowViewHolder(holder); in initializeRowViewHolder()
180 final ViewHolder rowViewHolder = (ViewHolder) holder; in initializeRowViewHolder()
358 protected void onRowViewSelected(RowPresenter.ViewHolder holder, boolean selected) { in onRowViewSelected() argument
359 super.onRowViewSelected(holder, selected); in onRowViewSelected()
360 ViewHolder vh = (ViewHolder) holder; in onRowViewSelected()
399 protected void onRowViewExpanded(RowPresenter.ViewHolder holder, boolean expanded) { in onRowViewExpanded() argument
400 super.onRowViewExpanded(holder, expanded); in onRowViewExpanded()
401 ViewHolder vh = (ViewHolder) holder; in onRowViewExpanded()
411 protected void onBindRowViewHolder(RowPresenter.ViewHolder holder, Object item) { in onBindRowViewHolder() argument
[all …]
DRowPresenter.java225 public final ViewHolder getRowViewHolder(Presenter.ViewHolder holder) { in getRowViewHolder() argument
226 if (holder instanceof ContainerViewHolder) { in getRowViewHolder()
227 return ((ContainerViewHolder) holder).mRowViewHolder; in getRowViewHolder()
229 return (ViewHolder) holder; in getRowViewHolder()
239 public final void setRowViewExpanded(Presenter.ViewHolder holder, boolean expanded) { in setRowViewExpanded() argument
240 ViewHolder rowViewHolder = getRowViewHolder(holder); in setRowViewExpanded()
251 public final void setRowViewSelected(Presenter.ViewHolder holder, boolean selected) { in setRowViewSelected() argument
252 ViewHolder rowViewHolder = getRowViewHolder(holder); in setRowViewSelected()
399 public final void onViewAttachedToWindow(Presenter.ViewHolder holder) { in onViewAttachedToWindow() argument
400 onRowViewAttachedToWindow(getRowViewHolder(holder)); in onViewAttachedToWindow()
[all …]
DPresenter.java96 public void onViewAttachedToWindow(ViewHolder holder) { in onViewAttachedToWindow() argument
111 public void onViewDetachedFromWindow(ViewHolder holder) { in onViewDetachedFromWindow() argument
113 cancelAnimationsRecursive(holder.view); in onViewDetachedFromWindow()
141 public void setOnClickListener(ViewHolder holder, View.OnClickListener listener) { in setOnClickListener() argument
142 holder.view.setOnClickListener(listener); in setOnClickListener()
DItemBridgeAdapter.java130 ViewHolder(Presenter presenter, View view, Presenter.ViewHolder holder) { in ViewHolder() argument
133 mHolder = holder; in ViewHolder()
270 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { in onBindViewHolder() argument
272 ViewHolder viewHolder = (ViewHolder) holder; in onBindViewHolder()
283 public void onViewRecycled(RecyclerView.ViewHolder holder) { in onViewRecycled() argument
284 ViewHolder viewHolder = (ViewHolder) holder; in onViewRecycled()
295 public void onViewAttachedToWindow(RecyclerView.ViewHolder holder) { in onViewAttachedToWindow() argument
296 ViewHolder viewHolder = (ViewHolder) holder; in onViewAttachedToWindow()
304 public void onViewDetachedFromWindow(RecyclerView.ViewHolder holder) { in onViewDetachedFromWindow() argument
305 ViewHolder viewHolder = (ViewHolder) holder; in onViewDetachedFromWindow()
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java170 SessionHolder holder = mSessions.get(pi); in getSession() local
171 return holder == null ? null : holder.mSession; in getSession()
244 SessionHolder holder = getHolder(pi, true); in addRccListener() local
245 if (holder == null) { in addRccListener()
248 if (holder.mRccListener != null) { in addRccListener()
249 if (holder.mRccListener == listener) { in addRccListener()
257 holder.mRccListener = listener; in addRccListener()
258 holder.mFlags |= MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS; in addRccListener()
259 holder.mSession.setFlags(holder.mFlags); in addRccListener()
260 holder.update(); in addRccListener()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DSurfaceTextureRenderer.java399 for (EGLSurfaceHolder holder : surfaces) { in configureEGLOutputSurfaces()
401 Size size = LegacyCameraDevice.getSurfaceSize(holder.surface); in configureEGLOutputSurfaces()
402 holder.width = size.getWidth(); in configureEGLOutputSurfaces()
403 holder.height = size.getHeight(); in configureEGLOutputSurfaces()
404 holder.eglSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mConfigs, in configureEGLOutputSurfaces()
405 holder.surface, surfaceAttribs, /*offset*/ 0); in configureEGLOutputSurfaces()
419 for (EGLSurfaceHolder holder : surfaces) { in configureEGLPbufferSurfaces()
421 Size size = LegacyCameraDevice.getSurfaceSize(holder.surface); in configureEGLPbufferSurfaces()
430 holder.width = size.getWidth(); in configureEGLPbufferSurfaces()
431 holder.height = size.getHeight(); in configureEGLPbufferSurfaces()
[all …]
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java124 final ViewHolder holder; in getView() local
126 holder = new ViewHolder(); in getView()
131 holder.config = (TextView) convertView.findViewById(android.R.id.text1); in getView()
135 holder.packageName = (TextView) convertView.findViewById(android.R.id.text1); in getView()
136 holder.state = (TextView) convertView.findViewById(android.R.id.text2); in getView()
138 convertView.setTag(holder); in getView()
140 holder = (ViewHolder) convertView.getTag(); in getView()
143 if (holder.packageName != null) { in getView()
144 holder.packageName.setText(event.getPackageName()); in getView()
147 if (holder.state != null) { in getView()
[all …]
DUsageStatsActivity.java123 final ViewHolder holder; in getView() local
127 holder = new ViewHolder(); in getView()
128 holder.packageName = (TextView) convertView.findViewById(android.R.id.text1); in getView()
129 holder.usageTime = (TextView) convertView.findViewById(android.R.id.text2); in getView()
130 convertView.setTag(holder); in getView()
132 holder = (ViewHolder) convertView.getTag(); in getView()
135 holder.packageName.setText(mStats.get(position).getPackageName()); in getView()
136 holder.usageTime.setText(DateUtils.formatDuration( in getView()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DDisplaySinkService.java70 final SurfaceHolder holder = oldSurfaceView.getHolder(); in setSurfaceView()
71 holder.removeCallback(DisplaySinkService.this); in setSurfaceView()
81 final SurfaceHolder holder = surfaceView.getHolder(); in setSurfaceView()
82 holder.addCallback(DisplaySinkService.this); in setSurfaceView()
83 updateSurfaceFromUi(holder); in setSurfaceView()
107 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
112 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
113 updateSurfaceFromUi(holder); in surfaceChanged()
117 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
121 private void updateSurfaceFromUi(SurfaceHolder holder) { in updateSurfaceFromUi() argument
[all …]
/frameworks/base/rs/java/android/renderscript/
DRSSurfaceView.java66 SurfaceHolder holder = getHolder(); in init() local
67 holder.addCallback(this); in init()
75 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
76 mSurfaceHolder = holder; in surfaceCreated()
84 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
98 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
101 mRS.setSurface(holder, w, h); in surfaceChanged()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DSurfaceHolderTarget.java48 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
50 onSurfaceCreated(holder);
54 public void surfaceCreated (SurfaceHolder holder) {
55 onSurfaceCreated(holder);
59 public void surfaceDestroyed (SurfaceHolder holder) {
71 SurfaceHolder holder = ((SurfaceView)view).getHolder(); in onBindToView() local
72 if (holder == null) { in onBindToView()
76 setSurfaceHolder(holder); in onBindToView()
82 public void setSurfaceHolder(SurfaceHolder holder) { in setSurfaceHolder() argument
86 mSurfaceHolder = holder; in setSurfaceHolder()
[all …]
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFilterSurfaceView.java100 public synchronized void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
110 mListener.surfaceCreated(holder); in surfaceCreated()
115 public synchronized void surfaceChanged(SurfaceHolder holder, in surfaceChanged() argument
127 mListener.surfaceChanged(holder, format, width, height); in surfaceChanged()
132 public synchronized void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
137 mListener.surfaceDestroyed(holder); in surfaceDestroyed()
/frameworks/base/core/java/android/view/
DViewPropertyAnimatorRT.java80 NameValuesHolder holder = parent.mPendingAnimations.get(i); in doStartAnimation() local
81 int property = RenderNodeAnimator.mapViewPropertyToRenderProperty(holder.mNameConstant); in doStartAnimation()
83 final float finalValue = holder.mFromValue + holder.mDeltaValue; in doStartAnimation()
129 NameValuesHolder holder = mPendingAnimations.get(i); in cancelAnimators() local
130 int property = RenderNodeAnimator.mapViewPropertyToRenderProperty(holder.mNameConstant); in cancelAnimators()
DSurfaceHolder.java79 public void surfaceCreated(SurfaceHolder holder); in surfaceCreated() argument
92 public void surfaceChanged(SurfaceHolder holder, int format, int width, in surfaceChanged() argument
104 public void surfaceDestroyed(SurfaceHolder holder); in surfaceDestroyed() argument
121 public void surfaceRedrawNeeded(SurfaceHolder holder); in surfaceRedrawNeeded() argument
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraBinderTest.java171 BinderHolder holder = new BinderHolder(); in testConnect() local
174 CameraBinderTestUtils.USE_CALLING_UID, holder); in testConnect()
175 ICamera cameraUser = ICamera.Stub.asInterface(holder.getBinder()); in testConnect()
195 BinderHolder holder = new BinderHolder(); in testConnectPro() local
198 clientPackageName, CameraBinderTestUtils.USE_CALLING_UID, holder); in testConnectPro()
199 IProCameraUser cameraUser = IProCameraUser.Stub.asInterface(holder.getBinder()); in testConnectPro()
217 BinderHolder holder = new BinderHolder(); in testConnectLegacy() local
223 CameraBinderTestUtils.USE_CALLING_UID, holder); in testConnectLegacy()
224 cameraUser = ICamera.Stub.asInterface(holder.getBinder()); in testConnectLegacy()
300 BinderHolder holder = new BinderHolder(); in testConnectDevice() local
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DAdapterHelperTest.java91 for (ViewHolder holder : mViewHolders) { in cleanState()
92 if (holder.mPosition >= positionEnd) { in cleanState()
93 holder.offsetPosition(-itemCount, true); in cleanState()
94 } else if (holder.mPosition >= positionStart) { in cleanState()
95 holder.flagRemovedAndOffsetPosition(positionStart - 1, -itemCount, true); in cleanState()
104 for (ViewHolder holder : mViewHolders) { in cleanState()
105 if (holder.mPosition >= positionEnd) { in cleanState()
106 holder.offsetPosition(-itemCount, false); in cleanState()
107 } else if (holder.mPosition >= positionStart) { in cleanState()
108 holder.flagRemovedAndOffsetPosition(positionStart - 1, -itemCount, false); in cleanState()
[all …]
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java139 public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onSurfaceChanged() argument
140 super.onSurfaceChanged(holder, format, width, height); in onSurfaceChanged()
145 public void onSurfaceCreated(SurfaceHolder holder) { in onSurfaceCreated() argument
146 super.onSurfaceCreated(holder); in onSurfaceCreated()
150 public void onSurfaceDestroyed(SurfaceHolder holder) { in onSurfaceDestroyed() argument
151 super.onSurfaceDestroyed(holder); in onSurfaceDestroyed()
193 final SurfaceHolder holder = getSurfaceHolder(); in drawFrame() local
194 final Rect frame = holder.getSurfaceFrame(); in drawFrame()
200 c = holder.lockCanvas(); in drawFrame()
247 if (c != null) holder.unlockCanvasAndPost(c); in drawFrame()
/frameworks/base/core/java/android/accounts/
DChooseAccountActivity.java168 ViewHolder holder; in getView() local
172 holder = new ViewHolder(); in getView()
173 holder.text = (TextView) convertView.findViewById(R.id.account_row_text); in getView()
174 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon); in getView()
175 convertView.setTag(holder); in getView()
177 holder = (ViewHolder) convertView.getTag(); in getView()
180 holder.text.setText(mInfos[position].name); in getView()
181 holder.icon.setImageDrawable(mInfos[position].drawable); in getView()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraDeviceImpl.java532 final CaptureCallbackHolder holder; in checkEarlyTriggerSequenceComplete() local
534 holder = (index >= 0) ? mCaptureCallbackMap.valueAt(index) : null; in checkEarlyTriggerSequenceComplete()
535 if (holder != null) { in checkEarlyTriggerSequenceComplete()
545 if (holder != null) { in checkEarlyTriggerSequenceComplete()
564 holder.getCallback().onCaptureSequenceAborted( in checkEarlyTriggerSequenceComplete()
570 holder.getHandler().post(resultDispatch); in checkEarlyTriggerSequenceComplete()
1082 final CaptureCallbackHolder holder; in checkAndFireSequenceComplete() local
1090 holder = (index >= 0) ? mCaptureCallbackMap.valueAt(index) in checkAndFireSequenceComplete()
1092 if (holder != null) { in checkAndFireSequenceComplete()
1106 if (holder != null) { in checkAndFireSequenceComplete()
[all …]
/frameworks/base/core/java/android/app/
DNativeActivity.java263 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
265 mCurSurfaceHolder = holder; in surfaceCreated()
266 onSurfaceCreatedNative(mNativeHandle, holder.getSurface()); in surfaceCreated()
270 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
272 mCurSurfaceHolder = holder; in surfaceChanged()
273 onSurfaceChangedNative(mNativeHandle, holder.getSurface(), format, width, height); in surfaceChanged()
277 public void surfaceRedrawNeeded(SurfaceHolder holder) { in surfaceRedrawNeeded() argument
279 mCurSurfaceHolder = holder; in surfaceRedrawNeeded()
280 onSurfaceRedrawNeededNative(mNativeHandle, holder.getSurface()); in surfaceRedrawNeeded()
284 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityInputFilter.java247 MotionEventHolder holder = MotionEventHolder.obtain(event, policyFlags); in batchMotionEvent() local
248 holder.next = mEventQueue; in batchMotionEvent()
249 mEventQueue.previous = holder; in batchMotionEvent()
250 mEventQueue = holder; in batchMotionEvent()
387 MotionEventHolder holder = sPool.acquire(); in obtain() local
388 if (holder == null) { in obtain()
389 holder = new MotionEventHolder(); in obtain()
391 holder.event = MotionEvent.obtain(event); in obtain()
392 holder.policyFlags = policyFlags; in obtain()
393 return holder; in obtain()

12345