Home
last modified time | relevance | path

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

123

/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/base/native/android/
Dsurface_control.cpp61 void SurfaceControl_acquire(SurfaceControl* surfaceControl) { in SurfaceControl_acquire() argument
63 surfaceControl->incStrong((void*)SurfaceControl_acquire); in SurfaceControl_acquire()
66 void SurfaceControl_release(SurfaceControl* surfaceControl) { in SurfaceControl_release() argument
68 surfaceControl->decStrong((void*)SurfaceControl_acquire); in SurfaceControl_release()
84 sp<SurfaceControl> surfaceControl; in ASurfaceControl_createFromWindow() local
86 surfaceControl = in ASurfaceControl_createFromWindow()
91 surfaceControl = in ASurfaceControl_createFromWindow()
98 if (!surfaceControl) { in ASurfaceControl_createFromWindow()
102 SurfaceControl_acquire(surfaceControl.get()); in ASurfaceControl_createFromWindow()
103 return reinterpret_cast<ASurfaceControl*>(surfaceControl.get()); in ASurfaceControl_createFromWindow()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DWindowInfosListener_test.cpp84 sp<SurfaceControl> surfaceControl = in TEST_F() local
89 .setLayerStack(surfaceControl, ui::DEFAULT_LAYER_STACK) in TEST_F()
90 .show(surfaceControl) in TEST_F()
91 .setLayer(surfaceControl, INT32_MAX - 1) in TEST_F()
92 .setInputWindowInfo(surfaceControl, windowInfo) in TEST_F()
99 Transaction().reparent(surfaceControl, nullptr).apply(); in TEST_F()
112 sp<SurfaceControl> surfaceControl = in TEST_F() local
117 .setLayerStack(surfaceControl, ui::DEFAULT_LAYER_STACK) in TEST_F()
118 .show(surfaceControl) in TEST_F()
119 .setLayer(surfaceControl, INT32_MAX - 1) in TEST_F()
[all …]
/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()
74 surfaceControl, hostToken); in onReceive()
88 final float scale = Math.min(surfaceControl.getWidth() / (float) viewSize.getWidth(), in onReceive()
89 surfaceControl.getHeight() / (float) viewSize.getHeight()); in onReceive()
94 view.setTranslationX((surfaceControl.getWidth() - scale * viewSize.getWidth()) / 2); in onReceive()
95 view.setTranslationY((surfaceControl.getHeight() - scale * viewSize.getHeight()) / 2); in onReceive()
/frameworks/base/libs/input/
DSpriteController.cpp84 void SpriteController::disposeSurfaceLocked(const sp<SurfaceControl>& surfaceControl) { in disposeSurfaceLocked() argument
86 mLocked.disposedSurfaces.push_back(surfaceControl); in disposeSurfaceLocked()
129 if (update.state.surfaceControl == NULL && update.state.wantSurfaceVisible()) { in doUpdateSprites()
134 update.state.surfaceControl = obtainSurface( in doUpdateSprites()
136 if (update.state.surfaceControl != NULL) { in doUpdateSprites()
147 if (update.state.surfaceControl == nullptr) { in doUpdateSprites()
158 update.state.surfaceControl->updateDefaultBufferSize(desiredWidth, desiredHeight); in doUpdateSprites()
165 t.hide(update.state.surfaceControl); in doUpdateSprites()
173 t.reparent(update.state.surfaceControl, mParentSurfaceProvider(update.state.displayId)); in doUpdateSprites()
190 if (update.state.surfaceControl != NULL && !update.state.surfaceDrawn in doUpdateSprites()
[all …]
DSpriteController.h172 sp<SurfaceControl> surfaceControl; member
213 inline void setSurfaceLocked(const sp<SurfaceControl>& surfaceControl, in setSurfaceLocked() argument
215 mLocked.state.surfaceControl = surfaceControl; in setSurfaceLocked()
261 void disposeSurfaceLocked(const sp<SurfaceControl>& surfaceControl);
/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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorViewModelTests.java124 SurfaceControl surfaceControl = mock(SurfaceControl.class); in testDeleteCaptionOnChangeTransitionWhenNecessary() local
130 taskInfo, surfaceControl, startT, finishT); in testDeleteCaptionOnChangeTransitionWhenNecessary()
135 taskInfo, surfaceControl, startT, finishT); in testDeleteCaptionOnChangeTransitionWhenNecessary()
143 surfaceControl, in testDeleteCaptionOnChangeTransitionWhenNecessary()
155 SurfaceControl surfaceControl = mock(SurfaceControl.class); in testCreateCaptionOnChangeTransitionWhenNecessary() local
162 taskInfo, surfaceControl, startT, finishT); in testCreateCaptionOnChangeTransitionWhenNecessary()
168 taskInfo, surfaceControl, startT, finishT); in testCreateCaptionOnChangeTransitionWhenNecessary()
176 surfaceControl, in testCreateCaptionOnChangeTransitionWhenNecessary()
189 SurfaceControl surfaceControl = mock(SurfaceControl.class); in testCreateAndDisposeEventReceiver() local
194 taskInfo, surfaceControl, startT, finishT); in testCreateAndDisposeEventReceiver()
[all …]
/frameworks/base/tests/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); in setBuffer()
34 ASurfaceTransaction_setVisibility(transaction, surfaceControl, in setBuffer()
40 ASurfaceControl* surfaceControl = nullptr; member
/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()
DBackNavigationController.java408 SurfaceControl surfaceControl = windowContainer.getSurfaceControl(); in onBackNavigationDone() local
416 if (surfaceControl != null && surfaceControl.isValid()) { in onBackNavigationDone()
420 t.hide(surfaceControl); in onBackNavigationDone()
479 SurfaceControl surfaceControl = windowContainer.getSurfaceControl(); in resetSurfaces() local
480 if (surfaceControl != null) { in resetSurfaces()
481 tx.reparent(surfaceControl, in resetSurfaces()
/frameworks/native/services/surfaceflinger/tests/fakehwc/
DSFFakeHwc_test.cpp356 auto surfaceControl = in Test_HotplugOneConfig() local
360 EXPECT_TRUE(surfaceControl != nullptr); in Test_HotplugOneConfig()
361 EXPECT_TRUE(surfaceControl->isValid()); in Test_HotplugOneConfig()
362 fillSurfaceRGBA8(surfaceControl, BLUE); in Test_HotplugOneConfig()
368 ts.setLayer(surfaceControl, INT32_MAX - 2).show(surfaceControl); in Test_HotplugOneConfig()
419 auto surfaceControl = in Test_HotplugTwoSeparateConfigs() local
423 EXPECT_TRUE(surfaceControl != nullptr); in Test_HotplugTwoSeparateConfigs()
424 EXPECT_TRUE(surfaceControl->isValid()); in Test_HotplugTwoSeparateConfigs()
425 fillSurfaceRGBA8(surfaceControl, BLUE); in Test_HotplugTwoSeparateConfigs()
431 ts.setLayer(surfaceControl, INT32_MAX - 2).show(surfaceControl); in Test_HotplugTwoSeparateConfigs()
[all …]
/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/native/cmds/surfacereplayer/replayer/
DBufferQueueScheduler.cpp26 const sp<SurfaceControl>& surfaceControl, const HSV& color, int id) in BufferQueueScheduler() argument
27 : mSurfaceControl(surfaceControl), mColor(color), mSurfaceId(id), mContinueScheduling(true) {} in BufferQueueScheduler()
68 const sp<SurfaceControl>& surfaceControl, const HSV& color) { in setSurfaceControl() argument
70 mSurfaceControl = surfaceControl; in setSurfaceControl()
DBufferQueueScheduler.h55 BufferQueueScheduler(const sp<SurfaceControl>& surfaceControl, const HSV& color, int id);
61 void setSurfaceControl(const sp<SurfaceControl>& surfaceControl, const HSV& color);
/frameworks/av/camera/tests/
DCameraZSLTests.cpp169 sp<SurfaceControl> surfaceControl; in TEST_F() local
253 surfaceControl = mComposerClient->createSurface( in TEST_F()
260 ASSERT_TRUE(nullptr != surfaceControl.get()); in TEST_F()
261 ASSERT_TRUE(surfaceControl->isValid()); in TEST_F()
264 .setLayer(surfaceControl, 0x7fffffff) in TEST_F()
265 .show(surfaceControl) in TEST_F()
268 previewSurface = surfaceControl->getSurface(); in TEST_F()
/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/native/services/surfaceflinger/
DTransactionCallbackInvoker.cpp132 sp<IBinder> surfaceControl = handle->surfaceControl.promote(); in addCallbackHandle() local
133 if (surfaceControl) { in addCallbackHandle()
171 transactionStats->surfaceStats.emplace_back(surfaceControl, handle->acquireTimeOrFence, in addCallbackHandle()
243 : listener(transactionListener), callbackIds(ids), surfaceControl(sc) {} in CallbackHandle()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DBlurUtils.kt81 if (viewRootImpl == null || !viewRootImpl.surfaceControl.isValid) { in applyBlur()
86 it.setBackgroundBlurRadius(viewRootImpl.surfaceControl, radius) in applyBlur()
95 it.setOpaque(viewRootImpl.surfaceControl, opaque) in applyBlur()
/frameworks/base/apct-tests/perftests/surfaceflinger/src/android/surfaceflinger/
DBufferFlinger.java56 public void addBuffer(SurfaceControl.Transaction t, SurfaceControl surfaceControl) { in addBuffer() argument
59 t.setBuffer(surfaceControl, in addBuffer()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DRotationAnimationUtils.java113 public static float getLumaOfSurfaceControl(Display display, SurfaceControl surfaceControl) { in getLumaOfSurfaceControl() argument
114 if (surfaceControl == null) { in getLumaOfSurfaceControl()
122 SurfaceControl.captureLayers(surfaceControl, crop, 1); in getLumaOfSurfaceControl()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPhonePipMenuController.java335 final SurfaceControl surfaceControl = getSurfaceControl(); in movePipMenu() local
336 if (surfaceControl == null) { in movePipMenu()
341 menuTx.setMatrix(surfaceControl, mMoveTransform, mTmpTransform); in movePipMenu()
364 final SurfaceControl surfaceControl = getSurfaceControl(); in resizePipMenu() local
365 if (surfaceControl == null) { in resizePipMenu()
370 menuTx.setCrop(surfaceControl, destinationBounds); in resizePipMenu()
/frameworks/base/core/jni/
Dandroid_graphics_BLASTBufferQueue.cpp153 static void nativeUpdate(JNIEnv* env, jclass clazz, jlong ptr, jlong surfaceControl, jlong width, in nativeUpdate() argument
156 queue->update(reinterpret_cast<SurfaceControl*>(surfaceControl), width, height, format); in nativeUpdate()
176 static bool nativeIsSameSurfaceControl(JNIEnv* env, jclass clazz, jlong ptr, jlong surfaceControl) { in nativeIsSameSurfaceControl() argument
178 return queue->isSameSurfaceControl(reinterpret_cast<SurfaceControl*>(surfaceControl)); in nativeIsSameSurfaceControl()

123