Home
last modified time | relevance | path

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

123456

/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconControllerImpl.java96 for (StatusBarIconHolder holder : holders) { in addIconGroup()
97 int tag = holder.getTag(); in addIconGroup()
98 int viewIndex = getViewIndex(getSlotIndex(slot.getName()), holder.getTag()); in addIconGroup()
99 group.onIconAdded(viewIndex, slot.getName(), blocked, holder); in addIconGroup()
135 for (StatusBarIconHolder holder : iconsForSlot) { in onTuningChanged()
136 setIcon(getSlotIndex(item.getName()), holder); in onTuningChanged() local
144 private void addSystemIcon(int index, StatusBarIconHolder holder) { in addSystemIcon() argument
146 int viewIndex = getViewIndex(index, holder.getTag()); in addSystemIcon()
149 mIconGroups.forEach(l -> l.onIconAdded(viewIndex, slot, blocked, holder)); in addSystemIcon()
155 StatusBarIconHolder holder = getIcon(index, 0); in setIcon() local
[all …]
DStatusBarIconHolder.java52 StatusBarIconHolder holder = new StatusBarIconHolder(); in fromResId() local
53 holder.mIcon = new StatusBarIcon(UserHandle.SYSTEM, context.getPackageName(), in fromResId()
55 return holder; in fromResId()
59 StatusBarIconHolder holder = new StatusBarIconHolder(); in fromWifiIconState() local
60 holder.mWifiState = state; in fromWifiIconState()
61 holder.mType = TYPE_WIFI; in fromWifiIconState()
62 return holder; in fromWifiIconState()
66 StatusBarIconHolder holder = new StatusBarIconHolder(); in fromMobileIconState() local
67 holder.mMobileState = state; in fromMobileIconState()
68 holder.mType = TYPE_MOBILE; in fromMobileIconState()
[all …]
DStatusBarIconList.java65 public void setIcon(int index, @NonNull StatusBarIconHolder holder) { in setIcon() argument
66 mSlots.get(index).addHolder(holder); in setIcon()
135 for (StatusBarIconHolder holder : mSubSlots) { in getHolderForTag()
136 if (holder.getTag() == tag) { in getHolderForTag()
137 return holder; in getHolderForTag()
145 public void addHolder(StatusBarIconHolder holder) { in addHolder() argument
146 int tag = holder.getTag(); in addHolder()
148 mHolder = holder; in addHolder()
150 setSubSlot(holder, tag); in addHolder()
173 private void setSubSlot(StatusBarIconHolder holder, int tag) { in setSubSlot() argument
[all …]
DStatusBarIconController.java108 StatusBarIconHolder holder) { in onIconAdded() argument
109 StatusIconDisplayable view = addHolder(index, slot, blocked, holder); in onIconAdded()
165 StatusBarIconHolder holder) { in onIconAdded() argument
166 StatusIconDisplayable view = addHolder(index, slot, blocked, holder); in onIconAdded()
238 StatusBarIconHolder holder) { in onIconAdded() argument
239 addHolder(index, slot, blocked, holder); in onIconAdded()
243 StatusBarIconHolder holder) { in addHolder() argument
244 switch (holder.getType()) { in addHolder()
246 return addIcon(index, slot, blocked, holder.getIcon()); in addHolder()
249 return addSignalIcon(index, slot, holder.getWifiState()); in addHolder()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DDefaultItemAnimator.java59 public ViewHolder holder; field in DefaultItemAnimator.MoveInfo
62 MoveInfo(ViewHolder holder, int fromX, int fromY, int toX, int toY) { in MoveInfo() argument
63 this.holder = holder; in MoveInfo()
112 for (ViewHolder holder : mPendingRemovals) { in runPendingAnimations()
113 animateRemoveImpl(holder); in runPendingAnimations()
126 animateMoveImpl(moveInfo.holder, moveInfo.fromX, moveInfo.fromY, in runPendingAnimations()
134 View view = moves.get(0).holder.itemView; in runPendingAnimations()
157 ViewHolder holder = changes.get(0).oldHolder; in runPendingAnimations() local
158 holder.itemView.postOnAnimationDelayed(changer, getRemoveDuration()); in runPendingAnimations()
172 for (ViewHolder holder : additions) { in runPendingAnimations()
[all …]
DRecyclerView.java1627 final ViewHolder holder = getChildViewHolderInt(mChildHelper.getChildAt(i)); in hasUpdatedView() local
1628 if (holder == null || holder.shouldIgnore()) { in hasUpdatedView()
1631 if (holder.isUpdated()) { in hasUpdatedView()
3447 final ViewHolder holder = getChildViewHolderInt(mChildHelper.getChildAt(i)); in dispatchLayoutStep1() local
3448 if (holder.shouldIgnore() || (holder.isInvalid() && !mAdapter.hasStableIds())) { in dispatchLayoutStep1()
3452 .recordPreLayoutInformation(mState, holder, in dispatchLayoutStep1()
3453 ItemAnimator.buildAdapterChangeFlagsForAnimations(holder), in dispatchLayoutStep1()
3454 holder.getUnmodifiedPayloads()); in dispatchLayoutStep1()
3455 mViewInfoStore.addToPreLayout(holder, animationInfo); in dispatchLayoutStep1()
3456 if (mState.mTrackOldChangeHolders && holder.isUpdated() && !holder.isRemoved() in dispatchLayoutStep1()
[all …]
DViewInfoStore.java66 void addToPreLayout(ViewHolder holder, ItemHolderInfo info) { in addToPreLayout() argument
67 InfoRecord record = mLayoutHolderMap.get(holder); in addToPreLayout()
70 mLayoutHolderMap.put(holder, record); in addToPreLayout()
76 boolean isDisappearing(ViewHolder holder) { in isDisappearing() argument
77 final InfoRecord record = mLayoutHolderMap.get(holder); in isDisappearing()
134 void addToOldChangeHolders(long key, ViewHolder holder) { in addToOldChangeHolders() argument
135 mOldChangedHolders.put(key, holder); in addToOldChangeHolders()
147 void addToAppearedInPreLayoutHolders(ViewHolder holder, ItemHolderInfo info) { in addToAppearedInPreLayoutHolders() argument
148 InfoRecord record = mLayoutHolderMap.get(holder); in addToAppearedInPreLayoutHolders()
151 mLayoutHolderMap.put(holder, record); in addToAppearedInPreLayoutHolders()
[all …]
DGapWorker.java254 RecyclerView.ViewHolder holder = RecyclerView.getChildViewHolderInt(attachedView); in isPrefetchPositionAttached() local
256 if (holder.mPosition == position && !holder.isInvalid()) { in isPrefetchPositionAttached()
271 RecyclerView.ViewHolder holder = recycler.tryGetViewHolderForPositionByDeadline( in prefetchPositionWithDeadline() local
274 if (holder != null) { in prefetchPositionWithDeadline()
275 if (holder.isBound()) { in prefetchPositionWithDeadline()
278 recycler.recycleView(holder.itemView); in prefetchPositionWithDeadline()
284 recycler.addViewHolderToRecycledViewPool(holder, false); in prefetchPositionWithDeadline()
287 return holder; in prefetchPositionWithDeadline()
325 RecyclerView.ViewHolder holder = prefetchPositionWithDeadline(task.view, in flushTaskWithDeadline() local
327 if (holder != null && holder.mNestedRecyclerView != null) { in flushTaskWithDeadline()
[all …]
/frameworks/base/packages/SettingsLib/BarChartPreference/src/com/android/settingslib/widget/
DBarChartPreference.java156 public void onBindViewHolder(PreferenceViewHolder holder) { in onBindViewHolder() argument
157 super.onBindViewHolder(holder); in onBindViewHolder()
158 holder.setDividerAllowedAbove(true); in onBindViewHolder()
159 holder.setDividerAllowedBelow(true); in onBindViewHolder()
163 bindChartTitleView(holder); in onBindViewHolder()
164 bindChartDetailsView(holder); in onBindViewHolder()
168 holder.itemView.setVisibility(View.INVISIBLE); in onBindViewHolder()
171 holder.itemView.setVisibility(View.VISIBLE); in onBindViewHolder()
176 setEmptyViewVisible(holder, true /* visible */); in onBindViewHolder()
179 setEmptyViewVisible(holder, false /* visible */); in onBindViewHolder()
[all …]
/frameworks/base/media/java/android/media/session/
DMediaSessionLegacyHelper.java166 SessionHolder holder = mSessions.get(pi); in getSession() local
167 return holder == null ? null : holder.mSession; in getSession()
205 SessionHolder holder = getHolder(pi, true); in addRccListener() local
206 if (holder == null) { in addRccListener()
209 if (holder.mRccListener != null) { in addRccListener()
210 if (holder.mRccListener == listener) { in addRccListener()
218 holder.mRccListener = listener; in addRccListener()
219 holder.mFlags |= MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS; in addRccListener()
220 holder.mSession.setFlags(holder.mFlags); in addRccListener()
221 holder.update(); in addRccListener()
[all …]
/frameworks/base/core/java/android/hardware/camera2/legacy/
DSurfaceTextureRenderer.java405 for (EGLSurfaceHolder holder : mConversionSurfaces) { in clearState()
407 LegacyCameraDevice.disconnectSurface(holder.surface); in clearState()
464 for (EGLSurfaceHolder holder : surfaces) { in configureEGLOutputSurfaces()
465 holder.eglSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, mConfigs, in configureEGLOutputSurfaces()
466 holder.surface, surfaceAttribs, /*offset*/ 0); in configureEGLOutputSurfaces()
477 for (EGLSurfaceHolder holder : surfaces) { in configureEGLPbufferSurfaces()
478 int length = holder.width * holder.height; in configureEGLPbufferSurfaces()
482 EGL14.EGL_WIDTH, holder.width, in configureEGLPbufferSurfaces()
483 EGL14.EGL_HEIGHT, holder.height, in configureEGLPbufferSurfaces()
486 holder.eglSurface = in configureEGLPbufferSurfaces()
[all …]
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java123 final ViewHolder holder; in getView() local
125 holder = new ViewHolder(); in getView()
130 holder.config = (TextView) convertView.findViewById(android.R.id.text1); in getView()
134 holder.packageName = (TextView) convertView.findViewById(android.R.id.text1); in getView()
135 holder.state = (TextView) convertView.findViewById(android.R.id.text2); in getView()
137 convertView.setTag(holder); in getView()
139 holder = (ViewHolder) convertView.getTag(); in getView()
142 if (holder.packageName != null) { in getView()
143 holder.packageName.setText(event.getPackageName()); in getView()
146 if (holder.state != null) { in getView()
[all …]
/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/services/accessibility/java/com/android/server/accessibility/
DKeyboardInterceptor.java104 final KeyEventHolder holder = KeyEventHolder.obtain(event, policyFlags, dispatchTime); in addEventToQueue() local
105 holder.next = mEventQueueStart; in addEventToQueue()
106 mEventQueueStart.previous = holder; in addEventToQueue()
107 mEventQueueStart = holder; in addEventToQueue()
162 KeyEventHolder holder = sPool.acquire(); in obtain() local
163 if (holder == null) { in obtain()
164 holder = new KeyEventHolder(); in obtain()
166 holder.event = KeyEvent.obtain(event); in obtain()
167 holder.policyFlags = policyFlags; in obtain()
168 holder.dispatchTime = dispatchTime; in obtain()
[all …]
/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/rs/java/android/renderscript/
DRSSurfaceView.java69 SurfaceHolder holder = getHolder(); in init() local
70 holder.addCallback(this); in init()
78 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
79 mSurfaceHolder = holder; in surfaceCreated()
87 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
101 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
104 mRS.setSurface(holder, w, h); in surfaceChanged()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DDelegateManager.java203 NativeAllocationHolder holder = holderRef.get(); in removeJavaReferenceFor() local
204 if (holder != null) { in removeJavaReferenceFor()
208 holder.mReferred = null; in removeJavaReferenceFor()
223 NativeAllocationHolder holder; in markAsNativeAllocation() local
239 holder = new NativeAllocationHolder(referent, delegate); in markAsNativeAllocation()
242 holder = null; in markAsNativeAllocation()
246 if (holder != null) { in markAsNativeAllocation()
248 sNativeAllocations.add(holder); in markAsNativeAllocation()
250 sNativeAllocationsReferences.put(holder.mReferred, new WeakReference<>(holder)); in markAsNativeAllocation()
/frameworks/base/core/java/android/view/
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
125 void surfaceRedrawNeeded(SurfaceHolder holder); in surfaceRedrawNeeded() argument
143 default void surfaceRedrawNeededAsync(SurfaceHolder holder, Runnable drawingFinished) { in surfaceRedrawNeededAsync() argument
144 surfaceRedrawNeeded(holder); in surfaceRedrawNeededAsync()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DTileAdapter.java236 public boolean onFailedToRecycleView(Holder holder) { in onFailedToRecycleView() argument
237 holder.clearDrag(); in onFailedToRecycleView()
242 public void onBindViewHolder(final Holder holder, int position) { in onBindViewHolder() argument
243 if (holder.getItemViewType() == TYPE_HEADER) { in onBindViewHolder()
246 if (holder.getItemViewType() == TYPE_DIVIDER) { in onBindViewHolder()
247 holder.itemView.setVisibility(mTileDividerIndex < mTiles.size() - 1 ? View.VISIBLE in onBindViewHolder()
251 if (holder.getItemViewType() == TYPE_EDIT) { in onBindViewHolder()
262 ((TextView) holder.itemView.findViewById(android.R.id.title)).setText(titleText); in onBindViewHolder()
265 if (holder.getItemViewType() == TYPE_ACCESSIBLE_DROP) { in onBindViewHolder()
266 holder.mTileView.setClickable(true); in onBindViewHolder()
[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/packages/SettingsLib/LayoutPreference/src/com/android/settingslib/widget/
DLayoutPreference.java133 public void onBindViewHolder(PreferenceViewHolder holder) { in onBindViewHolder() argument
134 holder.itemView.setOnClickListener(mClickListener); in onBindViewHolder()
137 holder.itemView.setFocusable(selectable); in onBindViewHolder()
138 holder.itemView.setClickable(selectable); in onBindViewHolder()
139 holder.setDividerAllowedAbove(mAllowDividerAbove); in onBindViewHolder()
140 holder.setDividerAllowedBelow(mAllowDividerBelow); in onBindViewHolder()
142 FrameLayout layout = (FrameLayout) holder.itemView; in onBindViewHolder()
/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()
158 public void onSurfaceDestroyed(SurfaceHolder holder) { in onSurfaceDestroyed() argument
159 super.onSurfaceDestroyed(holder); in onSurfaceDestroyed()
201 final SurfaceHolder holder = getSurfaceHolder(); in drawFrame() local
202 final Rect frame = holder.getSurfaceFrame(); in drawFrame()
208 c = holder.lockCanvas(); in drawFrame()
255 if (c != null) holder.unlockCanvasAndPost(c); in drawFrame()
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java200 final ViewHolder holder = (ViewHolder) object; in isViewFromObject() local
201 return view == holder.container; in isViewFromObject()
276 final ViewHolder holder = new ViewHolder(position, itemView, v); in instantiateItem() local
277 mItems.put(position, holder); in instantiateItem()
281 return holder; in instantiateItem()
286 final ViewHolder holder = (ViewHolder) object; in destroyItem() local
287 container.removeView(holder.container); in destroyItem()
294 final ViewHolder holder = (ViewHolder) object; in getItemPosition() local
295 return holder.position; in getItemPosition()
311 final ViewHolder holder = (ViewHolder) object; in getView() local
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedSwitchPreference.java91 public void onBindViewHolder(PreferenceViewHolder holder) { in onBindViewHolder() argument
92 super.onBindViewHolder(holder); in onBindViewHolder()
93 mHelper.onBindViewHolder(holder); in onBindViewHolder()
103 final View restrictedIcon = holder.findViewById(R.id.restricted_icon); in onBindViewHolder()
104 final View switchWidget = holder.findViewById(android.R.id.switch_widget); in onBindViewHolder()
113 final TextView additionalSummaryView = (TextView) holder.findViewById( in onBindViewHolder()
124 final TextView summaryView = (TextView) holder.findViewById(android.R.id.summary); in onBindViewHolder()
/frameworks/base/core/java/android/app/
DNativeActivity.java259 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
261 mCurSurfaceHolder = holder; in surfaceCreated()
262 onSurfaceCreatedNative(mNativeHandle, holder.getSurface()); in surfaceCreated()
266 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
268 mCurSurfaceHolder = holder; in surfaceChanged()
269 onSurfaceChangedNative(mNativeHandle, holder.getSurface(), format, width, height); in surfaceChanged()
273 public void surfaceRedrawNeeded(SurfaceHolder holder) { in surfaceRedrawNeeded() argument
275 mCurSurfaceHolder = holder; in surfaceRedrawNeeded()
276 onSurfaceRedrawNeededNative(mNativeHandle, holder.getSurface()); in surfaceRedrawNeeded()
280 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument

123456