/frameworks/base/libs/hwui/tests/unit/ |
H A D | CacheManagerTests.cpp | 39 std::vector<sk_sp<SkSurface>> surfaces; local 48 surfaces.push_back(surface); 51 ASSERT_TRUE(1 < surfaces.size()); 57 // free the surfaces 58 for (size_t i = 0; i < surfaces.size(); i++) { 59 ASSERT_TRUE(surfaces[i]->unique()); 60 surfaces[i].reset();
|
/frameworks/base/core/java/android/hardware/camera2/utils/ |
H A D | SurfaceUtils.java | 130 * Verify that that the surfaces are valid for high-speed recording mode, 133 * @param surfaces the surfaces to verify as valid in terms of size and format 137 public static void checkConstrainedHighSpeedSurfaces(Collection<Surface> surfaces, argument 139 if (surfaces == null || surfaces.size() == 0 || surfaces.size() > 2) { 158 for (Surface surface : surfaces) { 182 if (surfaces.size() == 2) { 184 Iterator<Surface> iterator = surfaces [all...] |
/frameworks/base/core/java/android/hardware/camera2/legacy/ |
H A D | GLThreadManager.java | 34 * GLThreadManager handles the thread used for rendering into the configured output surfaces. 62 public final Collection<Pair<Surface, Size>> surfaces; field in class:GLThreadManager.ConfigureHolder 66 Size>> surfaces, CaptureCollector collector) { 68 this.surfaces = surfaces; 89 mTextureRenderer.configureSurfaces(configure.surfaces); 185 * Queue a new call to draw into the surfaces specified in the next available preview 204 * Configure the GL renderer for the given set of output surfaces, and block until 207 * @param surfaces a collection of pairs of {@link android.view.Surface}s and their 211 public void setConfigurationAndWait(Collection<Pair<Surface, Size>> surfaces, argument 65 ConfigureHolder(ConditionVariable condition, Collection<Pair<Surface, Size>> surfaces, CaptureCollector collector) argument [all...] |
H A D | SurfaceTextureRenderer.java | 457 private void configureEGLOutputSurfaces(Collection<EGLSurfaceHolder> surfaces) { argument 458 if (surfaces == null || surfaces.size() == 0) { 464 for (EGLSurfaceHolder holder : surfaces) { 471 private void configureEGLPbufferSurfaces(Collection<EGLSurfaceHolder> surfaces) { argument 472 if (surfaces == null || surfaces.size() == 0) { 477 for (EGLSurfaceHolder holder : surfaces) { 650 * @param surfaces a {@link Collection} of surfaces 652 configureSurfaces(Collection<Pair<Surface, Size>> surfaces) argument [all...] |
H A D | LegacyCameraDevice.java | 294 * @return {@code true} if the surfaces uses {@link ImageFormat#YUV_420_888} or a compatible 335 * Configure the device with a set of output surfaces. 341 * @param outputs a list of surfaces to set. LegacyCameraDevice will take ownership of this 357 Log.e(TAG, "configureOutputs - invalid output surfaces are not allowed"); 448 // Make sure that there all requests have at least 1 surface; all surfaces are non-null 465 " device with valid surfaces before submitting requests"); 468 " device with valid surfaces before submitting requests"); 740 static List<Long> getSurfaceIds(SparseArray<Surface> surfaces) argument 742 if (surfaces == null) { 743 throw new NullPointerException("Null argument surfaces"); 758 getSurfaceIds(Collection<Surface> surfaces) argument [all...] |
H A D | RequestThreadManager.java | 119 public final Collection<Pair<Surface, Size>> surfaces; field in class:RequestThreadManager.ConfigureHolder 122 Size>> surfaces) { 124 this.surfaces = surfaces; 321 "Preview capture called with no preview surfaces configured."); 333 String outputsStr = outputs == null ? "null" : (outputs.size() + " surfaces"); 404 // LegacyCameraDevice is the producer of JPEG output surfaces 405 // so LegacyCameraDevice needs to connect to the surfaces. 532 private void resetJpegSurfaceFormats(Collection<Surface> surfaces) { argument 533 if (!USE_BLOB_FORMAT_OVERRIDE || surfaces 121 ConfigureHolder(ConditionVariable condition, Collection<Pair<Surface, Size>> surfaces) argument [all...] |
H A D | CameraDeviceUserShim.java | 523 SparseArray<Surface> surfaces = null; 531 surfaces = mSurfaces.clone(); 535 mLegacyDevice.configureOutputs(surfaces);
|
/frameworks/av/services/camera/libcameraservice/device3/ |
H A D | Camera3SharedOutputStream.cpp | 24 const std::vector<sp<Surface>>& surfaces, 32 mSurfaces(surfaces) { 74 status_t Camera3SharedOutputStream::setConsumers(const std::vector<sp<Surface>>& surfaces) { argument 76 if (surfaces.size() == 0) { 77 ALOGE("%s: it's illegal to set zero consumer surfaces!", __FUNCTION__); 82 for (auto& surface : surfaces) { 23 Camera3SharedOutputStream(int id, const std::vector<sp<Surface>>& surfaces, uint32_t width, uint32_t height, int format, uint64_t consumerUsage, android_dataspace dataSpace, camera3_stream_rotation_t rotation, nsecs_t timestampOffset, int setId) argument
|
H A D | Camera3SharedOutputStream.h | 32 * surfaces. A valid stream set id needs to be set to support buffer 35 Camera3SharedOutputStream(int id, const std::vector<sp<Surface>>& surfaces,
|
H A D | Camera3StreamSplitter.cpp | 41 status_t Camera3StreamSplitter::connect(const std::vector<sp<Surface> >& surfaces, argument 63 // Add output surfaces. This has to be before creating internal buffer queue 65 for (size_t i = 0; i < surfaces.size(); i++) { 66 if (surfaces[i] == nullptr) { 70 res = addOutputLocked(surfaces[i]);
|
H A D | Camera3StreamSplitter.h | 53 // with output surfaces. 54 status_t connect(const std::vector<sp<Surface> >& surfaces, 86 // Disconnect the buffer queue from output surfaces. 184 // Request surfaces for a particular buffer. And when the buffer becomes 185 // available from the input queue, the registered surfaces are used to decide
|
H A D | Camera3Device.cpp | 2056 const std::vector<size_t>& surfaces = iter->second; local 2057 for (const auto& surface : surfaces) { 2064 newRequest->mOutputSurfaces[i] = surfaces;
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | OutputConfiguration.java | 120 * Maximum number of surfaces supported by one {@link OutputConfiguration}. 122 * <p>The combined number of surfaces added by the constructor and 134 * surface group is a group of output surfaces that are not intended to receive camera output 136 * by all the surfaces from the same surface group, therefore may reduce the overall memory 278 * Enable multiple surfaces sharing the same OutputConfiguration 285 * <p>Two surfaces are compatible in the below cases:</p> 292 * able to use the same buffer layout for both surfaces. The only way to discover if this is the 304 * <p>Up to 2 surfaces can be shared for an OutputConfiguration. The supported surfaces for 343 * details of compatible surfaces [all...] |
/frameworks/native/libs/vr/libvrflinger/ |
H A D | display_service.cpp | 54 auto surfaces = GetDisplaySurfaces(); local 55 std::sort(surfaces.begin(), surfaces.end(), [](const auto& a, const auto& b) { 62 for (const auto& surface : surfaces) { 87 for (const auto& surface : surfaces) { 252 // application surfaces this has the side effect of notifying the display 253 // manager of the new surface. For direct surfaces, this may trigger a mode 355 "DisplayService::UpdateActiveDisplaySurfaces: %zd visible surfaces",
|
H A D | hardware_composer.cpp | 496 std::vector<std::shared_ptr<DirectDisplaySurface>> surfaces) { 498 surfaces.size()); 499 const bool display_idle = surfaces.size() == 0; 502 pending_surfaces_ = std::move(surfaces); 508 // Set idle state based on whether there are any surfaces to handle. 865 std::vector<std::shared_ptr<DirectDisplaySurface>> surfaces; 871 surfaces = std::move(pending_surfaces_); 877 // of the surfaces. This relative order is used for the HWC z-order value to 879 std::sort(surfaces.begin(), surfaces 495 SetDisplaySurfaces( std::vector<std::shared_ptr<DirectDisplaySurface>> surfaces) argument [all...] |
H A D | hardware_composer.h | 337 // Sets the display surfaces to compose the hardware layer stack. 339 std::vector<std::shared_ptr<DirectDisplaySurface>> surfaces); 386 // 1. Idle: no work to do (no visible surfaces). 418 // Reconfigures the layer stack if the display surfaces changed since the last
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | Camera2Source.java | 188 List<Surface> surfaces = new ArrayList<Surface>(); 189 surfaces.add(mSurface); 194 mCamera.createCaptureSession(surfaces, blkSession, mHandler);
|
/frameworks/av/services/camera/libcameraservice/api2/ |
H A D | CameraDeviceClient.cpp | 323 ALOGV("%s: ending configure (%d input stream, %zu output surfaces)", 397 std::vector<sp<IBinder>> surfaces; local 406 surfaces.push_back(mStreamMap.keyAt(i)); 418 if (surfaces.empty() && dIndex == NAME_NOT_FOUND) { 438 for (auto& surface : surfaces) { 488 std::vector<sp<Surface>> surfaces; local 529 surfaces.push_back(surface); 533 err = mDevice->createStream(surfaces, deferredConsumer, streamInfo.width, 874 //At the native side, there isn't a way to check whether 2 surfaces come from the same
|
/frameworks/base/core/java/android/hardware/camera2/impl/ |
H A D | CameraDeviceImpl.java | 382 * @param outputs a list of one or more surfaces, or {@code null} to unconfigure 732 final List<Surface> surfaces = mConfiguredOutputs.valueAt(i).getSurfaces(); 733 if (surfaces.contains(surface)) { 912 // Make sure that there all requests have at least 1 surface; all surfaces are non-null 2041 final List<Surface> surfaces = output.getSurfaces(); 2042 for (Surface surface : surfaces) { 2079 // Because 1 stream id could map to multiple surfaces, we need to specify both 2081 List<Surface> surfaces = 2083 for (Surface surface : surfaces) {
|