Home
last modified time | relevance | path

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

1234

/frameworks/base/native/android/
Dsurface_control.cpp65 void SurfaceControl_acquire(SurfaceControl* surfaceControl) { in SurfaceControl_acquire() argument
67 surfaceControl->incStrong((void*)SurfaceControl_acquire); in SurfaceControl_acquire()
70 void SurfaceControl_release(SurfaceControl* surfaceControl) { in SurfaceControl_release() argument
72 surfaceControl->decStrong((void*)SurfaceControl_acquire); in SurfaceControl_release()
88 sp<SurfaceControl> surfaceControl; in ASurfaceControl_createFromWindow() local
90 surfaceControl = in ASurfaceControl_createFromWindow()
96 surfaceControl = nullptr; in ASurfaceControl_createFromWindow()
99 if (!surfaceControl) { in ASurfaceControl_createFromWindow()
103 SurfaceControl_acquire(surfaceControl.get()); in ASurfaceControl_createFromWindow()
104 return reinterpret_cast<ASurfaceControl*>(surfaceControl.get()); in ASurfaceControl_createFromWindow()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DBlurUtilsTest.kt61 val surfaceControl = mock(SurfaceControl::class.java) in testApplyBlur_invalidSurfaceControl() constant
63 `when`(viewRootImpl.surfaceControl).thenReturn(surfaceControl) in testApplyBlur_invalidSurfaceControl()
70 val surfaceControl = mock(SurfaceControl::class.java) in testApplyBlur_success() constant
72 `when`(viewRootImpl.surfaceControl).thenReturn(surfaceControl) in testApplyBlur_success()
73 `when`(surfaceControl.isValid).thenReturn(true) in testApplyBlur_success()
75 verify(transaction).setBackgroundBlurRadius(eq(surfaceControl), eq(radius)) in testApplyBlur_success()
76 verify(transaction).setOpaque(eq(surfaceControl), eq(true)) in testApplyBlur_success()
83 val surfaceControl = mock(SurfaceControl::class.java) in testApplyBlur_blurDisabled() constant
85 `when`(viewRootImpl.surfaceControl).thenReturn(surfaceControl) in testApplyBlur_blurDisabled()
86 `when`(surfaceControl.isValid).thenReturn(true) in testApplyBlur_blurDisabled()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DWindowInfosListener_test.cpp56 sp<SurfaceControl> surfaceControl = in TEST_F() local
61 .setLayerStack(surfaceControl, ui::DEFAULT_LAYER_STACK) in TEST_F()
62 .show(surfaceControl) in TEST_F()
63 .setLayer(surfaceControl, INT32_MAX - 1) in TEST_F()
64 .setInputWindowInfo(surfaceControl, windowInfo) in TEST_F()
72 Transaction().reparent(surfaceControl, nullptr).apply(); in TEST_F()
86 sp<SurfaceControl> surfaceControl = in TEST_F() local
91 .setLayerStack(surfaceControl, ui::DEFAULT_LAYER_STACK) in TEST_F()
92 .show(surfaceControl) in TEST_F()
93 .setLayer(surfaceControl, INT32_MAX - 1) in TEST_F()
[all …]
DCredentials_test.cpp346 sp<SurfaceControl> surfaceControl = in TEST_F() local
353 .setLayerStack(surfaceControl, ui::DEFAULT_LAYER_STACK) in TEST_F()
354 .show(surfaceControl) in TEST_F()
355 .setLayer(surfaceControl, INT32_MAX - 1) in TEST_F()
356 .setCrop(surfaceControl, crop) in TEST_F()
357 .setInputWindowInfo(surfaceControl, windowInfo) in TEST_F()
364 Transaction().setTrustedOverlay(surfaceControl, true).apply(/*synchronous=*/true); in TEST_F()
385 Transaction().setTrustedOverlay(surfaceControl, true).apply(/*synchronous=*/true); in TEST_F()
/frameworks/native/services/automotive/display/
DAutomotiveDisplayProxyService.cpp35 sp<SurfaceControl> surfaceControl = nullptr; in getIGraphicBufferProducer() local
78 surfaceControl = surfaceClient->createSurface( in getIGraphicBufferProducer()
82 if (surfaceControl == nullptr || !surfaceControl->isValid()) { in getIGraphicBufferProducer()
88 DisplayDesc descriptor = {displayToken, surfaceControl}; in getIGraphicBufferProducer()
92 surfaceControl = it->second.surfaceControl; in getIGraphicBufferProducer()
96 auto targetSurface = surfaceControl->getSurface(); in getIGraphicBufferProducer()
118 t.setLayerStack(it->second.surfaceControl, displayState.layerStack); in showWindow()
120 status_t status = t.setLayer(it->second.surfaceControl, 0x7FFFFFFF) in showWindow()
121 .show(it->second.surfaceControl) in showWindow()
136 .hide(it->second.surfaceControl) in hideWindow()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DSurfaceViewRequestReceiver.java64 SurfaceControl surfaceControl = SurfaceViewRequestUtils.getSurfaceControl(bundle); in onReceive() local
65 if (surfaceControl != null) { in onReceive()
67 viewSize = new Size(surfaceControl.getWidth(), surfaceControl.getHeight()); in onReceive()
85 final float scale = Math.min(surfaceControl.getWidth() / (float) viewSize.getWidth(), in onReceive()
86 surfaceControl.getHeight() / (float) viewSize.getHeight()); in onReceive()
91 view.setTranslationX((surfaceControl.getWidth() - scale * viewSize.getWidth()) / 2); in onReceive()
92 view.setTranslationY((surfaceControl.getHeight() - scale * viewSize.getHeight()) / 2); in onReceive()
/frameworks/base/libs/input/
DSpriteController.cpp91 void SpriteController::disposeSurfaceLocked(const sp<SurfaceControl>& surfaceControl) { in disposeSurfaceLocked() argument
93 mLocked.disposedSurfaces.push_back(surfaceControl); in disposeSurfaceLocked()
125 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites()
130 update.state.surfaceControl = in doUpdateSprites()
133 if (update.state.surfaceControl != NULL) { in doUpdateSprites()
144 if (update.state.surfaceControl == nullptr) { in doUpdateSprites()
156 update.state.surfaceControl->updateDefaultBufferSize(desiredWidth, desiredHeight); in doUpdateSprites()
163 t.hide(update.state.surfaceControl); in doUpdateSprites()
171 t.reparent(update.state.surfaceControl, mParentSurfaceProvider(update.state.displayId)); in doUpdateSprites()
188 if (update.state.surfaceControl != NULL && !update.state.surfaceDrawn in doUpdateSprites()
[all …]
DSpriteController.h179 sp<SurfaceControl> surfaceControl; member
222 inline void setSurfaceLocked(const sp<SurfaceControl>& surfaceControl, in setSurfaceLocked() argument
224 mLocked.state.surfaceControl = surfaceControl; in setSurfaceLocked()
270 void disposeSurfaceLocked(const sp<SurfaceControl>& surfaceControl);
/frameworks/base/tests/graphics/HwAccelerationTest/jni/
Dnative-lib.cpp26 surfaceControl = ASurfaceControl_createFromWindow(parent, "PenLayer"); in MyWrapper()
29 ~MyWrapper() { ASurfaceControl_release(surfaceControl); } in ~MyWrapper()
33 ASurfaceTransaction_setBuffer(transaction, surfaceControl, buffer, -1); in setBuffer()
34 ASurfaceTransaction_setVisibility(transaction, surfaceControl, in setBuffer()
40 ASurfaceControl* surfaceControl = nullptr; member
/frameworks/base/core/java/android/view/
DWindowRelayoutResult.java48 public final SurfaceControl surfaceControl; field in WindowRelayoutResult
86 @NonNull SurfaceControl surfaceControl, @NonNull InsetsState insetsState, in WindowRelayoutResult() argument
90 this.surfaceControl = requireNonNull(surfaceControl); in WindowRelayoutResult()
104 surfaceControl.readFromParcel(in); in readFromParcel()
115 surfaceControl.writeToParcel(dest, flags); in writeToParcel()
DWindowManagerImpl.java540 @NonNull SurfaceControl surfaceControl, @NonNull Choreographer choreographer, in registerBatchedSurfaceControlInputReceiver() argument
543 Objects.requireNonNull(surfaceControl); in registerBatchedSurfaceControlInputReceiver()
547 surfaceControl, choreographer, receiver); in registerBatchedSurfaceControlInputReceiver()
554 @NonNull SurfaceControl surfaceControl, @NonNull Looper looper, in registerUnbatchedSurfaceControlInputReceiver() argument
557 Objects.requireNonNull(surfaceControl); in registerUnbatchedSurfaceControlInputReceiver()
561 hostInputTransferToken, surfaceControl, looper, receiver); in registerUnbatchedSurfaceControlInputReceiver()
565 public void unregisterSurfaceControlInputReceiver(@NonNull SurfaceControl surfaceControl) { in unregisterSurfaceControlInputReceiver() argument
566 Objects.requireNonNull(surfaceControl); in unregisterSurfaceControlInputReceiver()
567 mGlobal.unregisterSurfaceControlInputReceiver(surfaceControl); in unregisterSurfaceControlInputReceiver()
572 public IBinder getSurfaceControlInputClientToken(@NonNull SurfaceControl surfaceControl) { in getSurfaceControlInputClientToken() argument
[all …]
/frameworks/av/camera/tests/fuzzer/
Dcamera_fuzzer.cpp179 sp<SurfaceControl> surfaceControl = nullptr; in invokeCamera() local
181 surfaceControl = composerClient->createSurface(String8("FUZZSURFACE"), 1280, 800, in invokeCamera()
184 surfaceControl = composerClient->createSurface( in invokeCamera()
196 if (surfaceControl) { in invokeCamera()
197 surface = surfaceControl->getSurface(); in invokeCamera()
206 if (surfaceControl) { in invokeCamera()
211 if (surfaceControl) { in invokeCamera()
216 if (surfaceControl) { in invokeCamera()
221 if (surfaceControl) { in invokeCamera()
226 if (surfaceControl) { in invokeCamera()
[all …]
Dcamera_c2CaptureRequest_fuzzer.cpp83 sp<SurfaceControl> surfaceControl = composerClient->createSurface( in LLVMFuzzerTestOneInput() local
89 if (surfaceControl) { in LLVMFuzzerTestOneInput()
90 sp<Surface> surface = surfaceControl->getSurface(); in LLVMFuzzerTestOneInput()
101 surfaceControl.clear(); in LLVMFuzzerTestOneInput()
Dcamera_c2SessionConfiguration_fuzzer.cpp58 sp<SurfaceControl> surfaceControl = composerClient->createSurface( in LLVMFuzzerTestOneInput() local
62 if (surfaceControl) { in LLVMFuzzerTestOneInput()
63 sp<Surface> surface = surfaceControl->getSurface(); in LLVMFuzzerTestOneInput()
/frameworks/base/services/core/java/com/android/server/wm/
DBlackFrame.java42 SurfaceControl surfaceControl) throws OutOfResourcesException { in BlackSurface() argument
52 .setParent(surfaceControl) in BlackSurface()
86 SurfaceControl surfaceControl) in BlackFrame() argument
99 outer.left, outer.top, inner.right, inner.top, dc, surfaceControl); in BlackFrame()
103 outer.left, inner.top, inner.left, outer.bottom, dc, surfaceControl); in BlackFrame()
108 surfaceControl); in BlackFrame()
112 inner.right, outer.top, outer.right, inner.bottom, dc, surfaceControl); in BlackFrame()
DActivityRecordInputSink.java67 SurfaceControl surfaceControl = mActivityRecord.makeChildSurface(null) in createSurface() local
73 t.setLayer(surfaceControl, Integer.MIN_VALUE); in createSurface()
74 return surfaceControl; in createSurface()
/frameworks/base/core/tests/coretests/jni/
DViewRootImplTestJni.cpp48 ASurfaceControl* surfaceControl = in nativeCreateASurfaceControlFromSurface() local
50 if (!surfaceControl) { in nativeCreateASurfaceControlFromSurface()
56 ASurfaceControl_release(surfaceControl); in nativeCreateASurfaceControlFromSurface()
/frameworks/base/core/java/android/widget/inline/
DInlineContentView.java76 void onCreated(@NonNull SurfaceControl surfaceControl); in onCreated() argument
83 void onDestroyed(@NonNull SurfaceControl surfaceControl); in onDestroyed() argument
117 final SurfaceControl surfaceControl = mSurfaceView.getSurfaceControl();
118 surfaceControl.addOnReparentListener(mOnReparentListener);
119 mSurfaceControlCallback.onCreated(surfaceControl);
130 final SurfaceControl surfaceControl = mSurfaceView.getSurfaceControl();
131 surfaceControl.removeOnReparentListener(mOnReparentListener);
132 mSurfaceControlCallback.onDestroyed(surfaceControl);
/frameworks/base/core/java/android/window/
DPictureInPictureSurfaceTransaction.java177 @NonNull SurfaceControl surfaceControl, in apply() argument
180 tx.setMatrix(surfaceControl, matrix, new float[9]); in apply()
182 tx.setPosition(surfaceControl, in apply()
186 tx.setWindowCrop(surfaceControl, surfaceTransaction.mWindowCrop); in apply()
189 tx.setCornerRadius(surfaceControl, surfaceTransaction.mCornerRadius); in apply()
192 tx.setShadowRadius(surfaceControl, surfaceTransaction.mShadowRadius); in apply()
195 tx.setAlpha(surfaceControl, surfaceTransaction.mAlpha); in apply()
/frameworks/av/camera/tests/
DCameraZSLTests.cpp171 sp<SurfaceControl> surfaceControl; in TEST_F() local
256 surfaceControl = mComposerClient->createSurface( in TEST_F()
263 ASSERT_TRUE(nullptr != surfaceControl.get()); in TEST_F()
264 ASSERT_TRUE(surfaceControl->isValid()); in TEST_F()
267 .setLayer(surfaceControl, 0x7fffffff) in TEST_F()
268 .show(surfaceControl) in TEST_F()
271 previewSurface = surfaceControl->getSurface(); in TEST_F()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DBlurUtils.kt80 if (viewRootImpl == null || !viewRootImpl.surfaceControl.isValid || in prepareBlur()
104 if (viewRootImpl == null || !viewRootImpl.surfaceControl.isValid) { in applyBlur()
109 it.setBackgroundBlurRadius(viewRootImpl.surfaceControl, radius) in applyBlur()
127 it.setOpaque(viewRootImpl.surfaceControl, opaque) in applyBlur()
/frameworks/native/services/surfaceflinger/
DTransactionCallbackInvoker.cpp129 sp<IBinder> surfaceControl = handle->surfaceControl.promote(); in addCallbackHandle() local
130 if (surfaceControl) { in addCallbackHandle()
150 transactionStats->surfaceStats.emplace_back(surfaceControl, handle->acquireTimeOrFence, in addCallbackHandle()
222 : listener(transactionListener), callbackIds(ids), surfaceControl(sc) {} in CallbackHandle()
/frameworks/base/apct-tests/perftests/surfaceflinger/src/android/surfaceflinger/
DBufferFlinger.java62 public void addBuffer(SurfaceControl.Transaction t, SurfaceControl surfaceControl) { in addBuffer() argument
71 t.setBufferTransform(surfaceControl, transform); in addBuffer()
73 surfaceControl, in addBuffer()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/navigationbar/
DRegionSamplingHelperTest.kt60 lateinit var surfaceControl: SurfaceControl variable in com.android.systemui.shared.navigationbar.RegionSamplingHelperTest
71 whenever(viewRootImpl.surfaceControl).thenReturn(surfaceControl) in setup()
72 whenever(surfaceControl.isValid).thenReturn(true) in setup()
/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
DAttachedChoreographerNativeTest.java61 private static native long nativeSurfaceControl_getChoreographer(SurfaceControl surfaceControl); in nativeSurfaceControl_getChoreographer() argument
126 SurfaceControl surfaceControl = mSurfaceView.getSurfaceControl(); in test_choreographer_callbacksForVariousFrameRates()
127 mChoreographerPtr = nativeSurfaceControl_getChoreographer(surfaceControl); in test_choreographer_callbacksForVariousFrameRates()
135 .setFrameRate(surfaceControl, expectedFrameRate, in test_choreographer_callbacksForVariousFrameRates()

1234