/cts/tests/surfacecontrol/src/android/view/cts/util/ |
D | ASurfaceControlTestUtils.java | 41 public static void reparent(long surfaceControl, long newParentSurfaceControl) { in reparent() argument 43 nSurfaceTransaction_reparent(surfaceControl, newParentSurfaceControl, surfaceTransaction); in reparent() 52 public static void setVisibility(long surfaceControl, boolean visible) { in setVisibility() argument 54 nSurfaceTransaction_setVisibility(surfaceControl, surfaceTransaction, visible); in setVisibility() 58 public static void setBufferOpaque(long surfaceControl, boolean opaque) { in setBufferOpaque() argument 60 nSurfaceTransaction_setBufferOpaque(surfaceControl, surfaceTransaction, opaque); in setBufferOpaque() 64 public static void setGeometry(long surfaceControl, int srcLeft, int srcTop, int srcRight, in setGeometry() argument 68 nSurfaceTransaction_setGeometry(surfaceControl, surfaceTransaction, srcLeft, srcTop, in setGeometry() 74 public static void setZOrder(long surfaceControl, int z) { in setZOrder() argument 76 nSurfaceTransaction_setZOrder(surfaceControl, surfaceTransaction, z); in setZOrder() [all …]
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | ASurfaceControlBackPressureTest.java | 113 BufferCycler(long surfaceControl, long[] buffers) { in BufferCycler() argument 114 mSurfaceControl = surfaceControl; in BufferCycler() 166 for (Long surfaceControl : mSurfaceControls) { in surfaceDestroyed() 167 reparent(surfaceControl, 0); in surfaceDestroyed() 168 nSurfaceControl_release(surfaceControl); in surfaceDestroyed() 185 long surfaceControl = nSurfaceControl_createFromWindow(surface); in createFromWindow() local 186 assertTrue("failed to create surface control", surfaceControl != 0); in createFromWindow() 188 mSurfaceControls.add(surfaceControl); in createFromWindow() 189 return surfaceControl; in createFromWindow() 192 public void setEnableBackPressure(long surfaceControl, boolean enableBackPressure) { in setEnableBackPressure() argument [all …]
|
D | SurfaceControlTest.java | 156 for (SurfaceControl surfaceControl : mSurfaceControls) { in surfaceDestroyed() 157 transaction.reparent(surfaceControl, null); in surfaceDestroyed() 170 SurfaceControl surfaceControl = new SurfaceControl.Builder() in createFromWindow() local 175 mSurfaceControls.add(surfaceControl); in createFromWindow() 176 return surfaceControl; in createFromWindow() 181 SurfaceControl surfaceControl = new SurfaceControl.Builder() in create() local 186 mSurfaceControls.add(surfaceControl); in create() 187 return surfaceControl; in create() 190 public void setSolidBuffer(SurfaceControl surfaceControl, in setSolidBuffer() argument 193 setSolidBuffer(surfaceControl, tx, width, height, color); in setSolidBuffer() [all …]
|
D | ASurfaceControlTest.java | 183 for (Long surfaceControl : mSurfaceControls) { in surfaceDestroyed() 184 reparent(surfaceControl, 0); in surfaceDestroyed() 185 nSurfaceControl_release(surfaceControl); in surfaceDestroyed() 196 long surfaceControl = nSurfaceControl_createFromWindow(surface); in createFromWindow() local 197 assertTrue("failed to create surface control", surfaceControl != 0); in createFromWindow() 199 mSurfaceControls.add(surfaceControl); in createFromWindow() 200 return surfaceControl; in createFromWindow() 212 long surfaceControl, long surfaceTransaction, int width, int height, int color) { in setSolidBuffer() argument 213 long buffer = nSurfaceTransaction_setSolidBuffer(surfaceControl, surfaceTransaction, in setSolidBuffer() 220 public long setSolidBuffer(long surfaceControl, int width, int height, int color) { in setSolidBuffer() argument [all …]
|
D | TrustedPresentationCallbackTest.java | 110 SurfaceControl surfaceControl = new SurfaceControl.Builder() in createChildSc() local 116 return surfaceControl; in createChildSc() 119 private void setBuffer(SurfaceControl surfaceControl, int width, int height) { in setBuffer() argument 123 .setBuffer(surfaceControl, buffer) in setBuffer() 126 mActivity.mSurfaceControls.add(surfaceControl); in setBuffer() 491 for (SurfaceControl surfaceControl : mSurfaceControls) { in surfaceDestroyed() 492 transaction.reparent(surfaceControl, null); in surfaceDestroyed()
|
/cts/tests/surfacecontrol/jni/ |
D | android_view_cts_ASurfaceControlTest.cpp | 209 ASurfaceControl* surfaceControl = in SurfaceControl_createFromWindow() local 211 if (!surfaceControl) { in SurfaceControl_createFromWindow() 217 return reinterpret_cast<jlong>(surfaceControl); in SurfaceControl_createFromWindow() 221 ASurfaceControl* surfaceControl = nullptr; in SurfaceControl_create() local 224 surfaceControl = ASurfaceControl_create( in SurfaceControl_create() 228 return reinterpret_cast<jlong>(surfaceControl); in SurfaceControl_create() 231 void SurfaceControl_acquire(JNIEnv* /*env*/, jclass, jlong surfaceControl) { in SurfaceControl_acquire() argument 232 ASurfaceControl_acquire(reinterpret_cast<ASurfaceControl*>(surfaceControl)); in SurfaceControl_acquire() 239 void SurfaceControl_release(JNIEnv* /*env*/, jclass, jlong surfaceControl) { in SurfaceControl_release() argument 240 ASurfaceControl_release(reinterpret_cast<ASurfaceControl*>(surfaceControl)); in SurfaceControl_release() [all …]
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_FrameRateCtsActivity.cpp | 225 ASurfaceControl* surfaceControl = in surfaceControlSetFrameRate() local 229 ASurfaceTransaction_setFrameRate(transaction, surfaceControl, frameRate, in surfaceControlSetFrameRate() 232 ASurfaceTransaction_setFrameRateWithChangeStrategy(transaction, surfaceControl, frameRate, in surfaceControlSetFrameRate() 240 ASurfaceControl* surfaceControl = in surfaceControlClearFrameRate() local 243 ASurfaceTransaction_clearFrameRate(transaction, surfaceControl); in surfaceControlClearFrameRate() 249 ASurfaceControl* surfaceControl = in surfaceControlSetVisibility() local 252 ASurfaceTransaction_setVisibility(transaction, surfaceControl, in surfaceControlSetVisibility() 261 ASurfaceControl* surfaceControl = surface->getSurfaceControl(); in surfaceControlPostBuffer() local 276 ASurfaceTransaction_setBuffer(transaction, surfaceControl, buffer.getBuffer(), -1); in surfaceControlPostBuffer()
|
/cts/tests/tests/widget/src/android/widget/cts/inline/ |
D | InlineContentViewTest.java | 104 final SurfaceControl surfaceControl = ((InlineContentView) view).getSurfaceControl(); in testGetSurfaceControl() local 106 assertThat(surfaceControl).isNotNull(); in testGetSurfaceControl() 115 public void onCreated(SurfaceControl surfaceControl) { in testSetSurfaceControlCallback() 116 assertThat(surfaceControl).isNotNull(); in testSetSurfaceControlCallback() 121 public void onDestroyed(SurfaceControl surfaceControl) { in testSetSurfaceControlCallback()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2022-20357/ |
D | poc.cpp | 39 sp<SurfaceControl> surfaceControl = in main() local 42 sp<SurfaceControl> newSurfaceControl = new SurfaceControl(surfaceControl); in main()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | FrameRateCtsActivity.java | 1032 private static native void nativeSurfaceControlDestroy(long surfaceControl); 1034 long surfaceControl, float frameRate, int compatibility, int changeFrameRateStrategy); 1036 long surfaceControl, boolean visible); 1037 private static native boolean nativeSurfaceControlPostBuffer(long surfaceControl, int color); 1039 private static native void nativeSurfaceControlClearFrameRate(long surfaceControl);
|