/frameworks/base/core/java/com/android/internal/view/ |
D | SurfaceCallbackHelper.java | 21 import android.view.SurfaceHolder; 46 …public void dispatchSurfaceRedrawNeededAsync(SurfaceHolder holder, SurfaceHolder.Callback callback… in dispatchSurfaceRedrawNeededAsync() 57 for (SurfaceHolder.Callback c : callbacks) { in dispatchSurfaceRedrawNeededAsync() 58 if (c instanceof SurfaceHolder.Callback2) { in dispatchSurfaceRedrawNeededAsync() 59 ((SurfaceHolder.Callback2) c).surfaceRedrawNeededAsync( in dispatchSurfaceRedrawNeededAsync()
|
D | BaseSurfaceHolder.java | 25 import android.view.SurfaceHolder; 30 public abstract class BaseSurfaceHolder implements SurfaceHolder { 34 public final ArrayList<SurfaceHolder.Callback> mCallbacks 35 = new ArrayList<SurfaceHolder.Callback>(); 36 SurfaceHolder.Callback[] mGottenCallbacks; 90 public SurfaceHolder.Callback[] getCallbacks() { in getCallbacks() 99 mGottenCallbacks = new SurfaceHolder.Callback[N]; in getCallbacks()
|
/frameworks/base/rs/java/android/renderscript/ |
D | RSSurfaceView.java | 22 import android.view.SurfaceHolder; 37 public class RSSurfaceView extends SurfaceView implements SurfaceHolder.Callback { 38 private SurfaceHolder mSurfaceHolder; 70 SurfaceHolder holder = getHolder(); in init() 79 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() 88 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() 102 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged()
|
/frameworks/native/libs/bufferqueueconverter/include/bufferqueueconverter/ |
D | BufferQueueConverter.h | 31 typedef struct SurfaceHolder SurfaceHolder; typedef 36 using SurfaceHolderUniquePtr = std::unique_ptr<SurfaceHolder, void(*)(SurfaceHolder*)>; 54 ANativeWindow* getNativeWindow(SurfaceHolder* surfaceHolder);
|
/frameworks/base/apct-tests/perftests/surfaceflinger/src/android/surfaceflinger/ |
D | SurfaceFlingerTestActivity.java | 25 import android.view.SurfaceHolder; 69 SurfaceHolder holder = getHolder(); in TestSurfaceView() 70 holder.addCallback(new SurfaceHolder.Callback() { in TestSurfaceView() 72 public void surfaceCreated(SurfaceHolder holder) { in TestSurfaceView() 76 public void surfaceChanged(SurfaceHolder holder, int format, int width, in TestSurfaceView() 79 public void surfaceDestroyed(SurfaceHolder holder) { in TestSurfaceView() 89 SurfaceHolder holder = getHolder(); in getChildSurfaceControlHelper()
|
/frameworks/base/core/java/android/view/ |
D | SurfaceHolder.java | 36 public interface SurfaceHolder { interface 82 void surfaceCreated(@NonNull SurfaceHolder holder); in surfaceCreated() 95 void surfaceChanged(@NonNull SurfaceHolder holder, @PixelFormat.Format int format, in surfaceChanged() 107 void surfaceDestroyed(@NonNull SurfaceHolder holder); in surfaceDestroyed() 128 void surfaceRedrawNeeded(@NonNull SurfaceHolder holder); in surfaceRedrawNeeded() 146 default void surfaceRedrawNeededAsync(@NonNull SurfaceHolder holder, in surfaceRedrawNeededAsync()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | FilterSurfaceView.java | 22 import android.view.SurfaceHolder; 28 public class FilterSurfaceView extends SurfaceView implements SurfaceHolder.Callback { 35 private SurfaceHolder.Callback mListener; 52 public synchronized void bindToListener(SurfaceHolder.Callback listener, GLEnvironment glEnv) { in bindToListener() 100 public synchronized void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() 115 public synchronized void surfaceChanged(SurfaceHolder holder, in surfaceChanged() 132 public synchronized void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed()
|
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
D | GameActivity.java | 24 import android.view.SurfaceHolder; 31 public class GameActivity extends Activity implements SurfaceHolder.Callback { 32 private SurfaceHolder mSurfaceHolder; 49 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() 54 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() 61 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed()
|
/frameworks/native/libs/bufferqueueconverter/ |
D | BufferQueueConverter.cpp | 30 struct SurfaceHolder { struct 32 SurfaceHolder(const sp<Surface>& s) : surface(s) {} in SurfaceHolder() function 38 void destroySurfaceHolder(SurfaceHolder* surfaceHolder) { in destroySurfaceHolder() 61 return SurfaceHolderUniquePtr(new SurfaceHolder(newSurface), destroySurfaceHolder); in getSurfaceFromHGBP() 65 ANativeWindow* getNativeWindow(SurfaceHolder* handle) { in getNativeWindow()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | SurfaceHolderTarget.java | 26 import android.view.SurfaceHolder; 41 private SurfaceHolder mSurfaceHolder = null; 46 private SurfaceHolder.Callback mSurfaceHolderListener = new SurfaceHolder.Callback() { 48 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { 54 public void surfaceCreated (SurfaceHolder holder) { 59 public void surfaceDestroyed (SurfaceHolder holder) { 71 SurfaceHolder holder = ((SurfaceView)view).getHolder(); in onBindToView() 82 public void setSurfaceHolder(SurfaceHolder holder) { in setSurfaceHolder() 189 private synchronized void onSurfaceCreated(SurfaceHolder holder) { in onSurfaceCreated()
|
/frameworks/base/tests/SurfaceControlViewHostTest/src/com/android/test/viewembed/ |
D | SurfaceInputTestActivity.java | 39 import android.view.SurfaceHolder; 149 private final SurfaceHolder.Callback mLocalSurfaceViewCallback = new SurfaceHolder.Callback() { 151 public void surfaceCreated(@NonNull SurfaceHolder holder) { 172 public void surfaceChanged(@NonNull SurfaceHolder holder, int format, int width, 178 public void surfaceDestroyed(@NonNull SurfaceHolder holder) { 184 private final SurfaceHolder.Callback mRemoteSurfaceViewHolder = new SurfaceHolder.Callback() { 186 public void surfaceCreated(@NonNull SurfaceHolder holder) { 192 public void surfaceChanged(@NonNull SurfaceHolder holder, int format, int width, 197 public void surfaceDestroyed(@NonNull SurfaceHolder holder) {
|
D | SurfaceControlViewHostTest.java | 26 import android.view.SurfaceHolder; 34 public class SurfaceControlViewHostTest extends Activity implements SurfaceHolder.Callback{ 72 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() 77 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() 84 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed()
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | CustomRenderer.java | 28 import android.view.SurfaceHolder; 101 private SurfaceHolder.Callback2 mSurfaceCallbacks = new SurfaceHolder.Callback2() { 104 public void surfaceRedrawNeeded(SurfaceHolder holder) { 108 public void surfaceCreated(SurfaceHolder holder) { 112 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { 124 public void surfaceDestroyed(SurfaceHolder holder) {
|
D | HardwareCanvasSurfaceViewActivity.java | 28 import android.view.SurfaceHolder; 29 import android.view.SurfaceHolder.Callback; 90 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() 96 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() 101 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() 106 private final SurfaceHolder mSurface; 110 public RenderingThread(SurfaceHolder surface) { in RenderingThread()
|
D | MovingSurfaceViewActivity.java | 26 import android.view.SurfaceHolder; 27 import android.view.SurfaceHolder.Callback; 103 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() 107 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() 114 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed()
|
D | ScrollingStretchSurfaceViewActivity.java | 26 import android.view.SurfaceHolder; 27 import android.view.SurfaceHolder.Callback; 66 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() 70 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() 111 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | SurfaceViewSyncValidatorTestCase.java | 28 import android.view.SurfaceHolder; 64 final SurfaceHolder.Callback mCallback = new SurfaceHolder.Callback() { 66 public void surfaceCreated(@NonNull SurfaceHolder holder) { 76 public void surfaceChanged(@NonNull SurfaceHolder holder, int format, int width, 87 public void surfaceDestroyed(@NonNull SurfaceHolder holder) { 144 private final SurfaceHolder mSurfaceHolder; 188 RenderingThread(SurfaceHolder holder) {
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | MediaFrameworkTest.java | 33 import android.view.SurfaceHolder; 52 public class MediaFrameworkTest extends Activity implements SurfaceHolder.Callback { 67 private SurfaceHolder mSurfaceHolder = null; 83 mSurfaceHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); in onCreate() 107 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() 113 public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) { in surfaceChanged() 118 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated()
|
D | Camera2SurfaceViewActivity.java | 24 import android.view.SurfaceHolder; 32 public class Camera2SurfaceViewActivity extends Activity implements SurfaceHolder.Callback { 98 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() 102 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() 112 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed()
|
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/ |
D | NativeMedia.java | 25 import android.view.SurfaceHolder; 51 SurfaceHolder mSurfaceHolder1; 56 SurfaceHolder mSurfaceHolder2; 84 mSurfaceHolder1.addCallback(new SurfaceHolder.Callback() { in onCreate() 86 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onCreate() 91 public void surfaceCreated(SurfaceHolder holder) { in onCreate() 96 public void surfaceDestroyed(SurfaceHolder holder) { in onCreate() 106 mSurfaceHolder2.addCallback(new SurfaceHolder.Callback() { in onCreate() 108 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in onCreate() 113 public void surfaceCreated(SurfaceHolder holder) { in onCreate() [all …]
|
/frameworks/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/activity/ |
D | TorusViewerActivity.kt | 24 import android.view.SurfaceHolder in <lambda>() 59 surfaceView.holder.addCallback(object : SurfaceHolder.Callback { in <lambda>() 61 holder: SurfaceHolder, in <lambda>() 69 override fun surfaceDestroyed(holder: SurfaceHolder) { in <lambda>() 72 override fun surfaceCreated(holder: SurfaceHolder) { in <lambda>()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewRootSurfaceCallbackTest.java | 39 public class ViewRootSurfaceCallbackTest implements SurfaceHolder.Callback2 { 85 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() 90 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() 99 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() 103 public void surfaceRedrawNeeded(SurfaceHolder holder) { in surfaceRedrawNeeded()
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
D | DisplaySinkService.java | 30 import android.view.SurfaceHolder; 36 public class DisplaySinkService extends Service implements SurfaceHolder.Callback { 70 final SurfaceHolder holder = oldSurfaceView.getHolder(); in setSurfaceView() 81 final SurfaceHolder holder = surfaceView.getHolder(); in setSurfaceView() 107 public void surfaceCreated(SurfaceHolder holder) { in surfaceCreated() 112 public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() 117 public void surfaceDestroyed(SurfaceHolder holder) { in surfaceDestroyed() 121 private void updateSurfaceFromUi(SurfaceHolder holder) { in updateSurfaceFromUi()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/taskview/ |
D | TaskViewTest.java | 51 import android.view.SurfaceHolder; 192 mTaskView.surfaceCreated(mock(SurfaceHolder.class)); in testOnTaskAppeared_withSurface_legacyTransitions() 203 mTaskView.surfaceCreated(mock(SurfaceHolder.class)); in testSurfaceCreated_noTask_legacyTransitions() 215 mTaskView.surfaceCreated(mock(SurfaceHolder.class)); in testSurfaceCreated_withTask_legacyTransitions() 225 SurfaceHolder sh = mock(SurfaceHolder.class); in testSurfaceDestroyed_noTask_legacyTransitions() 237 SurfaceHolder sh = mock(SurfaceHolder.class); in testSurfaceDestroyed_withTask_shouldNotHideTask_legacyTransitions() 249 SurfaceHolder sh = mock(SurfaceHolder.class); in testSurfaceDestroyed_withTask_legacyTransitions() 262 mTaskView.surfaceCreated(mock(SurfaceHolder.class)); in testOnReleased_legacyTransitions() 274 mTaskView.surfaceCreated(mock(SurfaceHolder.class)); in testOnTaskVanished_legacyTransitions() 324 mTaskView.surfaceCreated(mock(SurfaceHolder.class)); in testSurfaceCreated_noTask() [all …]
|
/frameworks/base/tests/SurfaceViewSyncTest/src/com/android/test/ |
D | SurfaceViewSyncActivity.java | 29 import android.view.SurfaceHolder; 44 public class SurfaceViewSyncActivity extends Activity implements SurfaceHolder.Callback { 102 public void surfaceCreated(@NonNull SurfaceHolder holder) { in surfaceCreated() 111 public void surfaceChanged(@NonNull SurfaceHolder holder, int format, int width, int height) { in surfaceChanged() 127 public void surfaceDestroyed(@NonNull SurfaceHolder holder) { in surfaceDestroyed() 132 private final SurfaceHolder mSurfaceHolder; 141 RenderingThread(SurfaceHolder holder) { in RenderingThread()
|