Home
last modified time | relevance | path

Searched refs:surfaceControl (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/util/
DASurfaceControlTestUtils.java39 public static void reparent(long surfaceControl, long newParentSurfaceControl) { in reparent() argument
41 nSurfaceTransaction_reparent(surfaceControl, newParentSurfaceControl, surfaceTransaction); in reparent()
50 public static void setVisibility(long surfaceControl, boolean visible) { in setVisibility() argument
52 nSurfaceTransaction_setVisibility(surfaceControl, surfaceTransaction, visible); in setVisibility()
56 public static void setBufferOpaque(long surfaceControl, boolean opaque) { in setBufferOpaque() argument
58 nSurfaceTransaction_setBufferOpaque(surfaceControl, surfaceTransaction, opaque); in setBufferOpaque()
62 public static void setGeometry(long surfaceControl, int srcLeft, int srcTop, int srcRight, in setGeometry() argument
66 nSurfaceTransaction_setGeometry(surfaceControl, surfaceTransaction, srcLeft, srcTop, in setGeometry()
72 public static void setZOrder(long surfaceControl, int z) { in setZOrder() argument
74 nSurfaceTransaction_setZOrder(surfaceControl, surfaceTransaction, z); in setZOrder()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DASurfaceControlTest.java135 for (Long surfaceControl : mSurfaceControls) { in surfaceDestroyed()
136 reparent(surfaceControl, 0); in surfaceDestroyed()
137 nSurfaceControl_release(surfaceControl); in surfaceDestroyed()
148 long surfaceControl = nSurfaceControl_createFromWindow(surface); in createFromWindow() local
149 assertTrue("failed to create surface control", surfaceControl != 0); in createFromWindow()
151 mSurfaceControls.add(surfaceControl); in createFromWindow()
152 return surfaceControl; in createFromWindow()
164 long surfaceControl, long surfaceTransaction, int width, int height, int color) { in setSolidBuffer() argument
165 long buffer = nSurfaceTransaction_setSolidBuffer(surfaceControl, surfaceTransaction, in setSolidBuffer()
172 public long setSolidBuffer(long surfaceControl, int width, int height, int color) { in setSolidBuffer() argument
[all …]
DASurfaceControlBackPressureTest.java118 BufferCycler(long surfaceControl, long[] buffers) { in BufferCycler() argument
119 mSurfaceControl = surfaceControl; in BufferCycler()
170 for (Long surfaceControl : mSurfaceControls) { in surfaceDestroyed()
171 reparent(surfaceControl, 0); in surfaceDestroyed()
172 nSurfaceControl_release(surfaceControl); in surfaceDestroyed()
189 long surfaceControl = nSurfaceControl_createFromWindow(surface); in createFromWindow() local
190 assertTrue("failed to create surface control", surfaceControl != 0); in createFromWindow()
192 mSurfaceControls.add(surfaceControl); in createFromWindow()
193 return surfaceControl; in createFromWindow()
196 public void setEnableBackPressure(long surfaceControl, boolean enableBackPressure) { in setEnableBackPressure() argument
[all …]
/cts/tests/tests/view/jni/
Dandroid_view_cts_ASurfaceControlTest.cpp171 ASurfaceControl* surfaceControl = in SurfaceControl_createFromWindow() local
173 if (!surfaceControl) { in SurfaceControl_createFromWindow()
179 return reinterpret_cast<jlong>(surfaceControl); in SurfaceControl_createFromWindow()
183 ASurfaceControl* surfaceControl = nullptr; in SurfaceControl_create() local
186 surfaceControl = ASurfaceControl_create( in SurfaceControl_create()
190 return reinterpret_cast<jlong>(surfaceControl); in SurfaceControl_create()
193 void SurfaceControl_acquire(JNIEnv* /*env*/, jclass, jlong surfaceControl) { in SurfaceControl_acquire() argument
194 ASurfaceControl_acquire(reinterpret_cast<ASurfaceControl*>(surfaceControl)); in SurfaceControl_acquire()
197 void SurfaceControl_release(JNIEnv* /*env*/, jclass, jlong surfaceControl) { in SurfaceControl_release() argument
198 ASurfaceControl_release(reinterpret_cast<ASurfaceControl*>(surfaceControl)); in SurfaceControl_release()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/inline/
DInlineContentViewTest.java96 final SurfaceControl surfaceControl = ((InlineContentView) view).getSurfaceControl(); in testGetSurfaceControl() local
98 assertThat(surfaceControl).isNotNull(); in testGetSurfaceControl()
107 public void onCreated(SurfaceControl surfaceControl) { in testSetSurfaceControlCallback()
108 assertThat(surfaceControl).isNotNull(); in testSetSurfaceControlCallback()
113 public void onDestroyed(SurfaceControl surfaceControl) { in testSetSurfaceControlCallback()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_FrameRateCtsActivity.cpp212 ASurfaceControl* surfaceControl = in surfaceControlSetFrameRate() local
215 ASurfaceTransaction_setFrameRateWithChangeStrategy(transaction, surfaceControl, frameRate, in surfaceControlSetFrameRate()
222 ASurfaceControl* surfaceControl = in surfaceControlSetVisibility() local
225 ASurfaceTransaction_setVisibility(transaction, surfaceControl, in surfaceControlSetVisibility()
234 ASurfaceControl* surfaceControl = surface->getSurfaceControl(); in surfaceControlPostBuffer() local
249 ASurfaceTransaction_setBuffer(transaction, surfaceControl, buffer.getBuffer()); in surfaceControlPostBuffer()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DSurfaceControlTest.java132 SurfaceControl surfaceControl = new SurfaceControl.Builder() in buildSmallRedSurface() local
137 fillWithColor(surfaceControl, Color.RED); in buildSmallRedSurface()
138 return surfaceControl; in buildSmallRedSurface()
/cts/tests/tests/graphics/src/android/graphics/cts/
DFrameRateCtsActivity.java986 private static native void nativeSurfaceControlDestroy(long surfaceControl);
988 long surfaceControl, float frameRate, int compatibility, int changeFrameRateStrategy);
990 long surfaceControl, boolean visible);
991 private static native boolean nativeSurfaceControlPostBuffer(long surfaceControl, int color);