Home
last modified time | relevance | path

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

123

/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/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DDisplaySinkService.java69 final SurfaceHolder holder = oldSurfaceView.getHolder(); in setSurfaceView()
70 holder.removeCallback(DisplaySinkService.this); in setSurfaceView()
80 final SurfaceHolder holder = surfaceView.getHolder(); in setSurfaceView()
81 holder.addCallback(DisplaySinkService.this); in setSurfaceView()
82 updateSurfaceFromUi(holder); in setSurfaceView()
106 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
111 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
112 updateSurfaceFromUi(holder); in surfaceChanged()
116 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
120 private void updateSurfaceFromUi(SurfaceHolder holder) { in updateSurfaceFromUi() argument
[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/graphics/java/android/renderscript/
DRSSurfaceView.java74 SurfaceHolder holder = getHolder(); in init() local
75 holder.addCallback(this); in init()
83 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
84 mSurfaceHolder = holder; in surfaceCreated()
92 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
106 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
109 mRS.setSurface(holder, w, h); in surfaceChanged()
/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/hardware/camera2/impl/
DCameraDevice.java545 final CaptureListenerHolder holder; in onCaptureStarted() local
549 holder = CameraDevice.this.mCaptureListenerMap.get(requestId); in onCaptureStarted()
552 if (holder == null) { in onCaptureStarted()
559 holder.getHandler().post( in onCaptureStarted()
563 holder.getListener().onCaptureStarted( in onCaptureStarted()
565 holder.getRequest(), in onCaptureStarted()
578 final CaptureListenerHolder holder; in onResultReceived() local
588 holder = CameraDevice.this.mCaptureListenerMap.get(requestId); in onResultReceived()
591 if (holder != null && !holder.isRepeating() && !quirkIsPartialResult) { in onResultReceived()
601 if (holder != null && holder.isRepeating() && !quirkIsPartialResult in onResultReceived()
[all …]
/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
121 public void surfaceRedrawNeeded(SurfaceHolder holder); in surfaceRedrawNeeded() argument
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/
DCameraBinderTest.java115 BinderHolder holder = new BinderHolder(); in testConnect() local
118 CameraBinderTestUtils.USE_CALLING_UID, holder); in testConnect()
119 ICamera cameraUser = ICamera.Stub.asInterface(holder.getBinder()); in testConnect()
139 BinderHolder holder = new BinderHolder(); in testConnectPro() local
142 clientPackageName, CameraBinderTestUtils.USE_CALLING_UID, holder); in testConnectPro()
143 IProCameraUser cameraUser = IProCameraUser.Stub.asInterface(holder.getBinder()); in testConnectPro()
180 BinderHolder holder = new BinderHolder(); in testConnectDevice() local
183 clientPackageName, CameraBinderTestUtils.USE_CALLING_UID, holder); in testConnectDevice()
184 ICameraDeviceUser cameraUser = ICameraDeviceUser.Stub.asInterface(holder.getBinder()); in testConnectDevice()
/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()
DChooseAccountTypeActivity.java185 ViewHolder holder; in getView() local
189 holder = new ViewHolder(); in getView()
190 holder.text = (TextView) convertView.findViewById(R.id.account_row_text); in getView()
191 holder.icon = (ImageView) convertView.findViewById(R.id.account_row_icon); in getView()
192 convertView.setTag(holder); in getView()
194 holder = (ViewHolder) convertView.getTag(); in getView()
197 holder.text.setText(mInfos.get(position).name); in getView()
198 holder.icon.setImageDrawable(mInfos.get(position).drawable); in getView()
/frameworks/base/services/java/com/android/server/accessibility/
DAccessibilityInputFilter.java246 MotionEventHolder holder = MotionEventHolder.obtain(event, policyFlags); in batchMotionEvent() local
247 holder.next = mEventQueue; in batchMotionEvent()
248 mEventQueue.previous = holder; in batchMotionEvent()
249 mEventQueue = holder; in batchMotionEvent()
386 MotionEventHolder holder = sPool.acquire(); in obtain() local
387 if (holder == null) { in obtain()
388 holder = new MotionEventHolder(); in obtain()
390 holder.event = MotionEvent.obtain(event); in obtain()
391 holder.policyFlags = policyFlags; in obtain()
392 return holder; in obtain()
/frameworks/base/core/java/android/app/
DNativeActivity.java264 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
266 mCurSurfaceHolder = holder; in surfaceCreated()
267 onSurfaceCreatedNative(mNativeHandle, holder.getSurface()); in surfaceCreated()
271 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
273 mCurSurfaceHolder = holder; in surfaceChanged()
274 onSurfaceChangedNative(mNativeHandle, holder.getSurface(), format, width, height); in surfaceChanged()
278 public void surfaceRedrawNeeded(SurfaceHolder holder) { in surfaceRedrawNeeded() argument
280 mCurSurfaceHolder = holder; in surfaceRedrawNeeded()
281 onSurfaceRedrawNeededNative(mNativeHandle, holder.getSurface()); in surfaceRedrawNeeded()
285 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipWakeLock.java51 synchronized void acquire(Object holder) { in acquire() argument
52 mHolders.add(holder); in acquire()
61 synchronized void release(Object holder) { in release() argument
62 mHolders.remove(holder); in release()
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
DSurfaceAndTextureViews.java127 SurfaceHolder holder = getHolder(); in SimpleSurfaceView() local
128 holder.addCallback(this); in SimpleSurfaceView()
133 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() argument
138 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() argument
140 Canvas canvas = holder.lockCanvas(); in surfaceChanged()
142 holder.unlockCanvasAndPost(canvas); in surfaceChanged()
146 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() argument
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DSimpleAppView.java39 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
40 super.surfaceChanged(holder, format, w, h); in surfaceChanged()
46 mRS.setSurface(holder, w, h); in surfaceChanged()
/frameworks/base/services/java/com/android/server/am/
DTaskRecord.java331 return info.subtasks.get(info.numSubThumbbails-1).holder.lastThumbnail; in getTaskTopThumbnailLocked()
376 ThumbnailHolder holder = null; in getTaskAccessInfoLocked() local
382 holder = ar.thumbHolder; in getTaskAccessInfoLocked()
383 if (holder != null) { in getTaskAccessInfoLocked()
384 thumbs.mainThumbnail = holder.lastThumbnail; in getTaskAccessInfoLocked()
404 if (ar.thumbHolder != holder && holder != null) { in getTaskAccessInfoLocked()
406 holder = ar.thumbHolder; in getTaskAccessInfoLocked()
408 sub.holder = holder; in getTaskAccessInfoLocked()
423 if (resumedActivity != null && resumedActivity.thumbHolder == sub.holder) { in getTaskAccessInfoLocked()
426 return sub.holder.lastThumbnail; in getTaskAccessInfoLocked()
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
DNativeMedia.java86 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onCreate()
91 public void surfaceCreated(SurfaceHolder holder) { in onCreate()
93 setSurface(holder.getSurface()); in onCreate()
96 public void surfaceDestroyed(SurfaceHolder holder) { in onCreate()
108 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onCreate()
113 public void surfaceCreated(SurfaceHolder holder) { in onCreate()
115 setSurface(holder.getSurface()); in onCreate()
118 public void surfaceDestroyed(SurfaceHolder holder) { in onCreate()
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
DSceneGraphView.java53 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
54 super.surfaceChanged(holder, format, w, h); in surfaceChanged()
59 mRS.setSurface(holder, w, h); in surfaceChanged()
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/
DFountainFboView.java35 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
36 super.surfaceChanged(holder, format, w, h); in surfaceChanged()
40 mRS.setSurface(holder, w, h); in surfaceChanged()
/frameworks/base/docs/html/training/improving-layouts/
Dsmooth-scrolling.jd73 }.execute(holder);
91 findViewById()} is to use the "view holder" design pattern.</p>
110 ViewHolder holder = new ViewHolder();
111 holder.icon = (ImageView) convertView.findViewById(R.id.listitem_image);
112 holder.text = (TextView) convertView.findViewById(R.id.listitem_text);
113 holder.timestamp = (TextView) convertView.findViewById(R.id.listitem_timestamp);
114 holder.progress = (ProgressBar) convertView.findViewById(R.id.progress_spinner);
115 convertView.setTag(holder);
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
DRSTestView.java55 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
56 super.surfaceChanged(holder, format, w, h); in surfaceChanged()
60 mRS.setSurface(holder, w, h); in surfaceChanged()
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
DRSTestView.java55 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
56 super.surfaceChanged(holder, format, w, h); in surfaceChanged()
60 mRS.setSurface(holder, w, h); in surfaceChanged()
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
DRsBenchView.java53 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
54 super.surfaceChanged(holder, format, w, h); in surfaceChanged()
59 mRS.setSurface(holder, w, h); in surfaceChanged()
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DRSTestView.java55 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
56 super.surfaceChanged(holder, format, w, h); in surfaceChanged()
60 mRS.setSurface(holder, w, h); in surfaceChanged()
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/
DFountainView.java52 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() argument
53 super.surfaceChanged(holder, format, w, h); in surfaceChanged()
57 mRS.setSurface(holder, w, h); in surfaceChanged()

123