Home
last modified time | relevance | path

Searched refs:Surface (Results 1 – 25 of 427) sorted by relevance

12345678910>>...18

/frameworks/base/core/jni/
Dandroid_view_Surface.cpp100 sp<Surface> android_view_Surface_getSurface(JNIEnv* env, jobject surfaceObj) { in android_view_Surface_getSurface()
101 sp<Surface> sur; in android_view_Surface_getSurface()
105 sur = reinterpret_cast<Surface *>( in android_view_Surface_getSurface()
113 jobject android_view_Surface_createFromSurface(JNIEnv* env, const sp<Surface>& surface) { in android_view_Surface_createFromSurface()
134 sp<Surface> surface(new Surface(bufferProducer, true)); in android_view_Surface_createFromIGraphicBufferProducer()
140 static inline bool isSurfaceValid(const sp<Surface>& sur) { in isSurfaceValid()
141 return Surface::isValid(sur); in isSurfaceValid()
155 sp<Surface> surface(new Surface(producer, true)); in nativeCreateFromSurfaceTexture()
166 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeRelease()
171 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeIsValid()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayRotationTests.java58 import android.view.Surface;
162 freezeRotation(Surface.ROTATION_180); in testLocksUserRotation_LockRotation_DefaultDisplay()
165 assertEquals(Surface.ROTATION_180, mTarget.getUserRotation()); in testLocksUserRotation_LockRotation_DefaultDisplay()
169 assertEquals(Surface.ROTATION_180, Settings.System.getInt(mMockResolver, in testLocksUserRotation_LockRotation_DefaultDisplay()
177 freezeRotation(Surface.ROTATION_180); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
180 assertEquals(Surface.ROTATION_180, mTarget.getUserRotation()); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
183 WindowManagerPolicy.USER_ROTATION_LOCKED, Surface.ROTATION_180); in testPersistsUserRotation_LockRotation_NonDefaultDisplay()
241 freezeRotation(Surface.ROTATION_180); in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
243 assertEquals(Surface.ROTATION_180, mTarget.rotationForOrientation( in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
244 ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_90)); in testReturnsUserRotation_UserRotationLocked_NoAppRequest()
[all …]
/frameworks/native/libs/gui/
DSurface.cpp66 Surface::Surface(const sp<IGraphicBufferProducer>& bufferProducer, bool controlledByApp) in Surface() function in android::Surface
116 Surface::~Surface() { in ~Surface()
118 Surface::disconnect(NATIVE_WINDOW_API_CPU); in ~Surface()
122 sp<ISurfaceComposer> Surface::composerService() const { in composerService()
126 nsecs_t Surface::now() const { in now()
130 sp<IGraphicBufferProducer> Surface::getIGraphicBufferProducer() const { in getIGraphicBufferProducer()
134 void Surface::setSidebandStream(const sp<NativeHandle>& stream) { in setSidebandStream()
138 void Surface::allocateBuffers() { in allocateBuffers()
145 status_t Surface::setGenerationNumber(uint32_t generation) { in setGenerationNumber()
153 uint64_t Surface::getNextFrameNumber() const { in getNextFrameNumber()
[all …]
/frameworks/base/libs/hostgraphics/gui/
DSurface.h27 class Surface : public ANativeObjectBase<ANativeWindow, Surface, RefBase> {
29 explicit Surface(const sp<IGraphicBufferProducer>& bufferProducer,
33 static bool isValid(const sp<Surface>& surface) { return surface != nullptr; } in isValid()
54 virtual ~Surface() {} in ~Surface()
60 Surface& operator=(const Surface& rhs);
61 Surface(const Surface& rhs);
/frameworks/base/core/java/android/hardware/camera2/legacy/
DLegacyCameraDevice.java41 import android.view.Surface;
69 private SparseArray<Surface> mConfiguredSurfaces;
102 Surface errorTarget = (Surface) errorArg; in getExtrasFromRequest()
300 static boolean needsConversion(Surface s) throws BufferQueueAbandonedException { in needsConversion()
349 public int configureOutputs(SparseArray<Surface> outputs) { in configureOutputs()
368 public int configureOutputs(SparseArray<Surface> outputs, boolean validateSurfacesOnly) { in configureOutputs()
369 List<Pair<Surface, Size>> sizedSurfaces = new ArrayList<>(); in configureOutputs()
373 Surface output = outputs.valueAt(i); in configureOutputs()
486 for (Surface surface : request.getTargets()) { in submitRequestList()
636 public static Size getSurfaceSize(Surface surface) throws BufferQueueAbandonedException { in getSurfaceSize()
[all …]
DRequestHolder.java21 import android.view.Surface;
90 private boolean jpegType(Surface s) in jpegType()
108 private boolean previewType(Surface s) in previewType()
118 for (Surface s : request.getTargets()) { in numJpegTargets()
135 for (Surface s : request.getTargets()) { in numPreviewTargets()
211 public Collection<Surface> getHolderTargets() { in getHolderTargets()
250 public boolean jpegType(Surface s) in jpegType()
/frameworks/base/core/java/android/hardware/camera2/utils/
DSurfaceUtils.java26 import android.view.Surface;
44 public static boolean isSurfaceForPreview(Surface surface) { in isSurfaceForPreview()
55 public static boolean isSurfaceForHwVideoEncoder(Surface surface) { in isSurfaceForHwVideoEncoder()
65 public static long getSurfaceId(Surface surface) { in getSurfaceId()
82 public static Size getSurfaceSize(Surface surface) { in getSurfaceSize()
98 public static int getSurfaceFormat(Surface surface) { in getSurfaceFormat()
114 public static int getSurfaceDataspace(Surface surface) { in getSurfaceDataspace()
127 public static boolean isFlexibleConsumer(Surface output) { in isFlexibleConsumer()
136 private static void checkHighSpeedSurfaceFormat(Surface surface) { in checkHighSpeedSurfaceFormat()
153 public static void checkConstrainedHighSpeedSurfaces(Collection<Surface> surfaces, in checkConstrainedHighSpeedSurfaces()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DRotationButtonController.java35 import android.view.Surface;
282 if (windowRotation == Surface.ROTATION_0 || windowRotation == Surface.ROTATION_180) { in onRotationProposal()
374 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_90) return false; in isRotationAnimationCCW()
375 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_180) return true; //180d so CCW in isRotationAnimationCCW()
376 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_270) return true; in isRotationAnimationCCW()
377 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_0) return true; in isRotationAnimationCCW()
378 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_180) return false; in isRotationAnimationCCW()
379 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_270) return true; //180d so CCW in isRotationAnimationCCW()
380 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_0) return true; //180d so CCW in isRotationAnimationCCW()
381 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_90) return true; in isRotationAnimationCCW()
[all …]
DQuickswitchOrientedNavHandle.java22 import android.view.Surface;
30 private @Surface.Rotation int mDeltaRotation;
37 void setDeltaRotation(@Surface.Rotation int rotation) { in setDeltaRotation()
56 case Surface.ROTATION_0: in computeHomeHandleBounds()
57 case Surface.ROTATION_180: in computeHomeHandleBounds()
64 case Surface.ROTATION_90: in computeHomeHandleBounds()
70 case Surface.ROTATION_270: in computeHomeHandleBounds()
/frameworks/native/libs/vr/libdisplay/include/private/dvr/
Ddisplay_client.h15 class Surface : public pdx::ClientBase<Surface> {
19 static pdx::Status<std::unique_ptr<Surface>> CreateSurface( in CreateSurface()
22 pdx::Status<std::unique_ptr<Surface>> status; in CreateSurface()
63 explicit Surface(const SurfaceAttributes& attributes, int* error = nullptr);
64 explicit Surface(pdx::LocalChannelHandle channel_handle,
67 Surface(const Surface&) = delete;
68 void operator=(const Surface&) = delete;
81 pdx::Status<std::unique_ptr<Surface>> CreateSurface(
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DRotationUtils.java19 import android.view.Surface;
32 if (rot == Surface.ROTATION_90) { in getRotation()
34 } else if (rot == Surface.ROTATION_270) { in getRotation()
45 if (rot == Surface.ROTATION_90) { in getExactRotation()
47 } else if (rot == Surface.ROTATION_270) { in getExactRotation()
49 } else if (rot == Surface.ROTATION_180) { in getExactRotation()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayRotation.java56 import android.view.Surface;
122 @Surface.Rotation
179 @Surface.Rotation
180 private int mUserRotation = Surface.ROTATION_0;
262 return Surface.ROTATION_0; in readRotation()
264 return Surface.ROTATION_90; in readRotation()
266 return Surface.ROTATION_180; in readRotation()
268 return Surface.ROTATION_270; in readRotation()
288 mLandscapeRotation = Surface.ROTATION_0; in configure()
289 mSeascapeRotation = Surface.ROTATION_180; in configure()
[all …]
/frameworks/av/services/camera/libcameraservice/device3/
DCamera3SharedOutputStream.h36 Camera3SharedOutputStream(int id, const std::vector<sp<Surface>>& surfaces,
50 virtual status_t setConsumers(const std::vector<sp<Surface>>& consumers);
52 virtual ssize_t getSurfaceId(const sp<Surface> &surface);
63 virtual status_t updateStream(const std::vector<sp<Surface>> &outputSurfaces,
66 KeyedVector<sp<Surface>, size_t> *outputMap/*out*/);
83 typedef std::pair<sp<Surface>, size_t> SurfaceUniqueId;
92 status_t revertPartialUpdateLocked(const KeyedVector<sp<Surface>, size_t> &removedSurfaces,
93 const KeyedVector<sp<Surface>, size_t> &attachedSurfaces);
/frameworks/base/core/java/android/view/
DSurface.java59 public class Surface implements Parcelable { class
97 public static final @android.annotation.NonNull Parcelable.Creator<Surface> CREATOR =
98 new Parcelable.Creator<Surface>() {
100 public Surface createFromParcel(Parcel source) {
102 Surface s = new Surface();
112 public Surface[] newArray(int size) {
113 return new Surface[size];
220 public Surface() { in Surface() method in Surface
231 public Surface(@NonNull SurfaceControl from) { in Surface() method in Surface
251 public Surface(SurfaceTexture surfaceTexture) { in Surface() method in Surface
[all …]
/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/
DDebugTest.java22 import android.view.Surface;
54 CommonTransitions.openAppCold(testApp, uiDevice, Surface.ROTATION_0) in openAppCold()
63 CommonTransitions.openAppWarm(testApp, uiDevice, Surface.ROTATION_0) in openAppWarm()
72 CommonTransitions.changeAppRotation(testApp, uiDevice, Surface.ROTATION_0, in changeOrientationFromNaturalToLeft()
73 Surface.ROTATION_270).recordAllRuns().build().run(); in changeOrientationFromNaturalToLeft()
117 CommonTransitions.resizeSplitScreen(testApp, bottomApp, uiDevice, Surface.ROTATION_0, in resizeSplitScreen()
130 CommonTransitions.editTextSetFocus(testApp, uiDevice, Surface.ROTATION_0) in editTextSetFocus()
141 CommonTransitions.editTextLoseFocusToHome(testApp, uiDevice, Surface.ROTATION_0) in editTextLoseFocusToHome()
152 CommonTransitions.editTextLoseFocusToHome(testApp, uiDevice, Surface.ROTATION_0) in editTextLoseFocusToApp()
/frameworks/native/libs/bufferqueueconverter/
DBufferQueueConverter.cpp23 using ::android::Surface;
31 sp<Surface> surface;
32 SurfaceHolder(const sp<Surface>& s) : surface(s) {} in SurfaceHolder()
55 sp<Surface> newSurface(new Surface(bufferProducer, true)); in getSurfaceFromHGBP()
/frameworks/base/core/java/android/hardware/camera2/
DCameraCaptureSession.java26 import android.view.Surface;
149 public abstract void prepare(@NonNull Surface surface) throws CameraAccessException; in prepare()
191 public abstract void prepare(int maxCount, @NonNull Surface surface) in prepare()
230 public abstract void tearDown(@NonNull Surface surface) throws CameraAccessException; in tearDown()
820 public abstract Surface getInputSurface(); in getInputSurface()
920 public CameraOfflineSession switchToOffline(@NonNull Collection<Surface> offlineSurfaces, in switchToOffline()
947 public boolean supportsOfflineProcessing(@NonNull Surface surface) { in supportsOfflineProcessing()
1110 @NonNull Surface surface) { in onSurfacePrepared()
1394 @NonNull CaptureRequest request, @NonNull Surface target, long frameNumber) { in onCaptureBufferLost()
/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java24 import android.view.Surface;
46 private static int sDeviceRotation = Surface.ROTATION_0; // R/W synchronized on sRotationLock
97 case Surface.ROTATION_0: in publishRotation()
100 case Surface.ROTATION_90: in publishRotation()
103 case Surface.ROTATION_180: in publishRotation()
106 case Surface.ROTATION_270: in publishRotation()
/frameworks/native/libs/gui/include/gui/
DSurfaceControl.h39 class Surface; variable
70 sp<Surface> getSurface() const;
71 sp<Surface> createSurface() const;
96 friend class Surface; variable
100 sp<Surface> generateSurfaceLocked() const;
107 mutable sp<Surface> mSurfaceData;
/frameworks/base/core/java/android/hardware/camera2/params/
DOutputConfiguration.java32 import android.view.Surface;
145 public OutputConfiguration(@NonNull Surface surface) { in OutputConfiguration()
204 public OutputConfiguration(int surfaceGroupId, @NonNull Surface surface) { in OutputConfiguration()
227 public OutputConfiguration(@NonNull Surface surface, int rotation) { in OutputConfiguration()
253 public OutputConfiguration(int surfaceGroupId, @NonNull Surface surface, int rotation) { in OutputConfiguration()
258 mSurfaces = new ArrayList<Surface>(); in OutputConfiguration()
313 mSurfaces = new ArrayList<Surface>(); in OutputConfiguration()
447 public void addSurface(@NonNull Surface surface) { in addSurface()
496 public void removeSurface(@NonNull Surface surface) { in removeSurface()
543 ArrayList<Surface> surfaces = new ArrayList<Surface>(); in OutputConfiguration()
[all …]
/frameworks/base/core/java/android/util/
DRotationUtils.java19 import static android.view.Surface.ROTATION_0;
20 import static android.view.Surface.ROTATION_180;
21 import static android.view.Surface.ROTATION_270;
22 import static android.view.Surface.ROTATION_90;
25 import android.view.Surface.Rotation;
/frameworks/base/core/java/android/hardware/display/
DVirtualDisplay.java19 import android.view.Surface;
38 private Surface mSurface;
41 IVirtualDisplayCallback token, Surface surface) { in VirtualDisplay()
58 public Surface getSurface() { in getSurface()
74 public void setSurface(Surface surface) { in setSurface()
/frameworks/native/libs/gui/view/
DSurface.cpp30 status_t Surface::writeToParcel(Parcel* parcel) const { in writeToParcel()
34 status_t Surface::writeToParcel(Parcel* parcel, bool nameAlreadyWritten) const { in writeToParcel()
51 status_t Surface::readFromParcel(const Parcel* parcel) { in readFromParcel()
55 status_t Surface::readFromParcel(const Parcel* parcel, bool nameAlreadyRead) { in readFromParcel()
74 String16 Surface::readMaybeEmptyString16(const Parcel* parcel) { in readMaybeEmptyString16()
/frameworks/base/core/java/android/hardware/camera2/impl/
DCameraConstrainedHighSpeedCaptureSessionImpl.java32 import android.view.Surface;
84 Collection<Surface> outputSurfaces = request.getTargets(); in createHighSpeedRequestList()
109 Iterator<Surface> iterator = outputSurfaces.iterator(); in createHighSpeedRequestList()
110 Surface firstSurface = iterator.next(); in createHighSpeedRequestList()
111 Surface secondSurface = null; in createHighSpeedRequestList()
140 Surface recordingSurface = firstSurface; in createHighSpeedRequestList()
179 public void prepare(Surface surface) throws CameraAccessException { in prepare()
184 public void prepare(int maxCount, Surface surface) throws CameraAccessException { in prepare()
189 public void tearDown(Surface surface) throws CameraAccessException { in tearDown()
276 public Surface getInputSurface() { in getInputSurface()
[all …]
/frameworks/native/libs/vr/libdisplay/
Ddisplay_client.cpp24 Surface::Surface(LocalChannelHandle channel_handle, int* error) in Surface() function in android::dvr::display::Surface
41 Surface::Surface(const SurfaceAttributes& attributes, int* error) in Surface() function in android::dvr::display::Surface
59 Status<void> Surface::SetVisible(bool visible) { in SetVisible()
64 Status<void> Surface::SetZOrder(int z_order) { in SetZOrder()
69 Status<void> Surface::SetAttributes(const SurfaceAttributes& attributes) { in SetAttributes()
106 Status<std::unique_ptr<ProducerQueue>> Surface::CreateQueue( in CreateQueue()
131 Status<std::unique_ptr<ProducerQueue>> Surface::CreateQueue( in CreateQueue()
185 Status<std::unique_ptr<Surface>> DisplayClient::CreateSurface( in CreateSurface()
188 if (auto client = Surface::Create(attributes, &error)) in CreateSurface()

12345678910>>...18