/frameworks/base/core/jni/ |
D | android_view_Surface.cpp | 109 sp<Surface> android_view_Surface_getSurface(JNIEnv* env, jobject surfaceObj) { in android_view_Surface_getSurface() 110 sp<Surface> sur; in android_view_Surface_getSurface() 114 sur = reinterpret_cast<Surface *>( in android_view_Surface_getSurface() 122 jobject android_view_Surface_createFromSurface(JNIEnv* env, const sp<Surface>& surface) { in android_view_Surface_createFromSurface() 143 sp<Surface> surface(new Surface(bufferProducer, true)); in android_view_Surface_createFromIGraphicBufferProducer() 162 static inline bool isSurfaceValid(const sp<Surface>& sur) { in isSurfaceValid() 163 return Surface::isValid(sur); in isSurfaceValid() 177 sp<Surface> surface(new Surface(producer, true)); in nativeCreateFromSurfaceTexture() 188 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeRelease() 193 sp<Surface> sur(reinterpret_cast<Surface *>(nativeObject)); in nativeIsValid() [all …]
|
/frameworks/native/libs/gui/ |
D | Surface.cpp | 53 Surface::Surface(const sp<IGraphicBufferProducer>& bufferProducer, bool controlledByApp) in Surface() function in android::Surface 102 Surface::~Surface() { in ~Surface() 104 Surface::disconnect(NATIVE_WINDOW_API_CPU); in ~Surface() 108 sp<ISurfaceComposer> Surface::composerService() const { in composerService() 112 nsecs_t Surface::now() const { in now() 116 sp<IGraphicBufferProducer> Surface::getIGraphicBufferProducer() const { in getIGraphicBufferProducer() 120 void Surface::setSidebandStream(const sp<NativeHandle>& stream) { in setSidebandStream() 124 void Surface::allocateBuffers() { in allocateBuffers() 131 status_t Surface::setGenerationNumber(uint32_t generation) { in setGenerationNumber() 139 uint64_t Surface::getNextFrameNumber() const { in getNextFrameNumber() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayRotationTests.java | 57 import android.view.Surface; 153 freezeRotation(Surface.ROTATION_180); in testLocksUserRotation_LockRotation_DefaultDisplay() 156 assertEquals(Surface.ROTATION_180, mTarget.getUserRotation()); in testLocksUserRotation_LockRotation_DefaultDisplay() 160 assertEquals(Surface.ROTATION_180, Settings.System.getInt(mMockResolver, in testLocksUserRotation_LockRotation_DefaultDisplay() 168 freezeRotation(Surface.ROTATION_180); in testPersistsUserRotation_LockRotation_NonDefaultDisplay() 171 assertEquals(Surface.ROTATION_180, mTarget.getUserRotation()); in testPersistsUserRotation_LockRotation_NonDefaultDisplay() 174 WindowManagerPolicy.USER_ROTATION_LOCKED, Surface.ROTATION_180); in testPersistsUserRotation_LockRotation_NonDefaultDisplay() 232 freezeRotation(Surface.ROTATION_180); in testReturnsUserRotation_UserRotationLocked_NoAppRequest() 234 assertEquals(Surface.ROTATION_180, mTarget.rotationForOrientation( in testReturnsUserRotation_UserRotationLocked_NoAppRequest() 235 ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED, Surface.ROTATION_90)); in testReturnsUserRotation_UserRotationLocked_NoAppRequest() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
D | LegacyCameraDevice.java | 41 import android.view.Surface; 69 private SparseArray<Surface> mConfiguredSurfaces; 102 Surface errorTarget = (Surface) errorArg; in getExtrasFromRequest() 299 static boolean needsConversion(Surface s) throws BufferQueueAbandonedException { in needsConversion() 348 public int configureOutputs(SparseArray<Surface> outputs) { in configureOutputs() 367 public int configureOutputs(SparseArray<Surface> outputs, boolean validateSurfacesOnly) { in configureOutputs() 368 List<Pair<Surface, Size>> sizedSurfaces = new ArrayList<>(); in configureOutputs() 372 Surface output = outputs.valueAt(i); in configureOutputs() 485 for (Surface surface : request.getTargets()) { in submitRequestList() 627 public static Size getSurfaceSize(Surface surface) throws BufferQueueAbandonedException { in getSurfaceSize() [all …]
|
D | RequestHolder.java | 21 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/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | RotationButtonController.java | 34 import android.view.Surface; 275 if (windowRotation == Surface.ROTATION_0 || windowRotation == Surface.ROTATION_180) { in onRotationProposal() 354 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_90) return false; in isRotationAnimationCCW() 355 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_180) return true; //180d so CCW in isRotationAnimationCCW() 356 if (from == Surface.ROTATION_0 && to == Surface.ROTATION_270) return true; in isRotationAnimationCCW() 357 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_0) return true; in isRotationAnimationCCW() 358 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_180) return false; in isRotationAnimationCCW() 359 if (from == Surface.ROTATION_90 && to == Surface.ROTATION_270) return true; //180d so CCW in isRotationAnimationCCW() 360 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_0) return true; //180d so CCW in isRotationAnimationCCW() 361 if (from == Surface.ROTATION_180 && to == Surface.ROTATION_90) return true; in isRotationAnimationCCW() [all …]
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
D | SurfaceUtils.java | 26 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/tests/FlickerTests/src/com/android/server/wm/flicker/ |
D | DebugTest.java | 22 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() 98 Surface.ROTATION_0).includeJankyRuns().recordAllRuns() in openAppToSplitScreen() 118 CommonTransitions.resizeSplitScreen(testApp, bottomApp, uiDevice, Surface.ROTATION_0, in resizeSplitScreen() 131 CommonTransitions.editTextSetFocus(testApp, uiDevice, Surface.ROTATION_0) in editTextSetFocus() 142 CommonTransitions.editTextLoseFocusToHome(testApp, uiDevice, Surface.ROTATION_0) in editTextLoseFocusToHome() 153 CommonTransitions.editTextLoseFocusToHome(testApp, uiDevice, Surface.ROTATION_0) in editTextLoseFocusToApp() [all …]
|
/frameworks/native/libs/vr/libdisplay/include/private/dvr/ |
D | display_client.h | 15 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; 80 pdx::Status<std::unique_ptr<Surface>> CreateSurface(
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayRotation.java | 42 import android.view.Surface; 96 private int mUserRotation = Surface.ROTATION_0; 177 return Surface.ROTATION_0; in readRotation() 179 return Surface.ROTATION_90; in readRotation() 181 return Surface.ROTATION_180; in readRotation() 183 return Surface.ROTATION_270; in readRotation() 194 mLandscapeRotation = Surface.ROTATION_0; in configure() 195 mSeascapeRotation = Surface.ROTATION_180; in configure() 197 mPortraitRotation = Surface.ROTATION_90; in configure() 198 mUpsideDownRotation = Surface.ROTATION_270; in configure() [all …]
|
D | CircularDisplayMask.java | 33 import android.view.Surface; 34 import android.view.Surface.OutOfResourcesException; 46 private final Surface mSurface = new Surface(); 103 } catch (Surface.OutOfResourcesException e) { in drawIfNeeded() 109 case Surface.ROTATION_0: in drawIfNeeded() 110 case Surface.ROTATION_90: in drawIfNeeded() 114 case Surface.ROTATION_180: in drawIfNeeded() 118 case Surface.ROTATION_270: in drawIfNeeded()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/ |
D | RotationUtils.java | 19 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/av/services/camera/libcameraservice/device3/ |
D | Camera3SharedOutputStream.h | 36 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*/); 77 typedef std::pair<sp<Surface>, size_t> SurfaceUniqueId; 86 status_t revertPartialUpdateLocked(const KeyedVector<sp<Surface>, size_t> &removedSurfaces, 87 const KeyedVector<sp<Surface>, size_t> &attachedSurfaces);
|
/frameworks/base/core/java/android/view/ |
D | Surface.java | 55 public class Surface implements Parcelable { class 90 public static final @android.annotation.NonNull Parcelable.Creator<Surface> CREATOR = 91 new Parcelable.Creator<Surface>() { 93 public Surface createFromParcel(Parcel source) { 95 Surface s = new Surface(); 105 public Surface[] newArray(int size) { 106 return new Surface[size]; 188 public Surface() { in Surface() method in Surface 199 public Surface(@NonNull SurfaceControl from) { in Surface() method in Surface 219 public Surface(SurfaceTexture surfaceTexture) { in Surface() method in Surface [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | OutputConfiguration.java | 32 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/native/libs/gui/include/gui/ |
D | SurfaceControl.h | 39 class Surface; variable 74 sp<Surface> getSurface() const; 75 sp<Surface> createSurface() const; 96 friend class Surface; variable 100 sp<Surface> generateSurfaceLocked() const; 107 mutable sp<Surface> mSurfaceData;
|
D | Surface.h | 67 class Surface 68 : public ANativeObjectBase<ANativeWindow, Surface, RefBase> 87 explicit Surface(const sp<IGraphicBufferProducer>& bufferProducer, 98 static bool isValid(const sp<Surface>& surface) { in isValid() 186 virtual ~Surface(); 194 Surface& operator = (const Surface& rhs); 195 Surface(const Surface& rhs); 315 static status_t attachAndQueueBufferWithDataspace(Surface* surface, sp<GraphicBuffer> buffer, 324 ProducerListenerProxy(wp<Surface> parent, sp<SurfaceListener> listener) in ProducerListenerProxy() 338 wp<Surface> mParent;
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | RotationHelper.java | 24 import android.view.Surface; 46 private static int sDeviceRotation = Surface.ROTATION_0; // R/W synchronized on sRotationLock 96 case Surface.ROTATION_0: in publishRotation() 99 case Surface.ROTATION_90: in publishRotation() 102 case Surface.ROTATION_180: in publishRotation() 105 case Surface.ROTATION_270: in publishRotation()
|
/frameworks/base/core/java/android/hardware/display/ |
D | VirtualDisplay.java | 19 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/ |
D | Surface.cpp | 30 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/native/libs/vr/libdisplay/ |
D | display_client.cpp | 24 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() 181 Status<std::unique_ptr<Surface>> DisplayClient::CreateSurface( in CreateSurface() 184 if (auto client = Surface::Create(attributes, &error)) in CreateSurface()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
D | GLEnvironment.java | 25 import android.view.Surface; 106 public int registerSurface(Surface surface) { in registerSurface() 115 Surface surface = new Surface(surfaceTexture); in registerSurfaceTexture() 179 private native int nativeAddSurface(Surface surface); in nativeAddSurface() 181 private native int nativeAddSurfaceWidthHeight(Surface surface, int width, int height); in nativeAddSurfaceWidthHeight()
|
/frameworks/base/core/java/android/hardware/camera2/ |
D | CameraCaptureSession.java | 24 import android.view.Surface; 146 public abstract void prepare(@NonNull Surface surface) throws CameraAccessException; in prepare() 188 public abstract void prepare(int maxCount, @NonNull Surface surface) in prepare() 227 public abstract void tearDown(@NonNull Surface surface) throws CameraAccessException; in tearDown() 817 public abstract Surface getInputSurface(); in getInputSurface() 1016 @NonNull Surface surface) { in onSurfacePrepared() 1300 @NonNull CaptureRequest request, @NonNull Surface target, long frameNumber) { in onCaptureBufferLost()
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
D | CameraConstrainedHighSpeedCaptureSessionImpl.java | 30 import android.view.Surface; 82 Collection<Surface> outputSurfaces = request.getTargets(); in createHighSpeedRequestList() 107 Iterator<Surface> iterator = outputSurfaces.iterator(); in createHighSpeedRequestList() 108 Surface firstSurface = iterator.next(); in createHighSpeedRequestList() 109 Surface secondSurface = null; in createHighSpeedRequestList() 138 Surface recordingSurface = firstSurface; in createHighSpeedRequestList() 177 public void prepare(Surface surface) throws CameraAccessException { in prepare() 182 public void prepare(int maxCount, Surface surface) throws CameraAccessException { in prepare() 187 public void tearDown(Surface surface) throws CameraAccessException { in tearDown() 274 public Surface getInputSurface() { in getInputSurface() [all …]
|
/frameworks/base/libs/hwui/renderthread/ |
D | ReliableSurface.cpp | 33 struct SurfaceExposer : Surface { 37 using Surface::cancelBuffer; 38 using Surface::dequeueBuffer; 39 using Surface::lockBuffer_DEPRECATED; 40 using Surface::perform; 41 using Surface::queueBuffer; 42 using Surface::setBufferCount; 43 using Surface::setSwapInterval; 48 ReliableSurface::ReliableSurface(sp<Surface>&& surface) : mSurface(std::move(surface)) { in ReliableSurface() 231 Surface* ReliableSurface::getWrapped(const ANativeWindow* window) { in getWrapped()
|