Searched defs:layers (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/native/services/surfaceflinger/tests/
H A DStress_test.cpp52 std::array<surfaceflinger::LayerProto*, 10> layers = {}; local
53 for (size_t i = 0; i < layers.size(); ++i) {
54 layers[i] = layersProto.add_layers();
55 layers[i]->set_id(i);
58 layers[0]->add_children(1);
59 layers[1]->set_parent(0);
60 layers[0]->add_children(2);
61 layers[2]->set_parent(0);
62 layers[0]->add_children(3);
63 layers[
[all...]
/frameworks/base/core/jni/
H A Dandroid_os_GraphicsEnvironment.cpp37 void setDebugLayers_native(JNIEnv* env, jobject clazz, jstring layers) { argument
38 if (layers != nullptr) {
39 ScopedUtfChars layersChars(env, layers);
H A Dandroid_hardware_HardwareBuffer.cpp73 jint width, jint height, jint format, jint layers, jlong usage) {
85 sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers,
72 android_hardware_HardwareBuffer_create(JNIEnv* env, jobject clazz, jint width, jint height, jint format, jint layers, jlong usage) argument
/frameworks/native/services/surfaceflinger/
H A DSurfaceTracing.cpp59 void SurfaceTracing::traceLayers(const char* where, LayersProto layers) { argument
65 entry->mutable_layers()->Swap(&layers);
H A DSurfaceInterceptor.cpp43 void SurfaceInterceptor::enable(const SortedVector<sp<Layer>>& layers, argument
53 saveExistingSurfacesLocked(layers);
84 void SurfaceInterceptor::saveExistingSurfacesLocked(const SortedVector<sp<Layer>>& layers) { argument
86 for (const auto& l : layers) {
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/
H A Dparcelable_composer_frame.cpp51 std::vector<ParcelableComposerLayer> layers; local
52 for (size_t i = 0; i < frame_.layers.size(); ++i)
53 layers.push_back(ParcelableComposerLayer(frame_.layers[i]));
55 ret = parcel->writeParcelableVector(layers);
98 std::vector<ParcelableComposerLayer> layers; local
99 ret = parcel->readParcelableVector(&layers);
102 frame_.layers.clear();
103 for (size_t i = 0; i < layers.size(); ++i)
104 frame_.layers
[all...]
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DColorStateDrawable.java34 public ColorStateDrawable(Drawable[] layers, int color) { argument
35 super(layers);
/frameworks/native/libs/graphicsenv/
H A DGraphicsEnv.cpp81 void GraphicsEnv::setDebugLayers(const std::string layers) { argument
82 mDebugLayers = layers;
/frameworks/base/core/java/android/os/
H A DGraphicsEnvironment.java108 Log.i(TAG, "GPU debug layers enabled for " + packageName);
111 // This will ensure debug layers added will take precedence over
112 // the layers specified by the app.
115 String layers = Settings.Global.getString(context.getContentResolver(),
118 Log.i(TAG, "Debug layer list: " + layers);
119 if (layers != null && !layers.isEmpty()) {
120 setDebugLayers(layers);
219 private static native void setDebugLayers(String layers); argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
H A DBluetoothDeviceLayerDrawable.java45 private BluetoothDeviceLayerDrawable(@NonNull Drawable[] layers) { argument
46 super(layers);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DHardwareBgDrawable.java40 public HardwareBgDrawable(boolean roundTop, Drawable[] layers) { argument
41 super(layers);
42 if (layers.length != 2) {
43 throw new IllegalArgumentException("Need 2 layers");
46 mLayers = layers;
51 final Drawable[] layers;
53 layers = new Drawable[]{
58 layers = new Drawable[]{
64 layers[1].setTint(Utils.getColorAttr(context, android.R.attr.colorPrimary));
65 return layers;
[all...]
/frameworks/base/graphics/java/android/graphics/drawable/
H A DTransitionDrawable.java75 * Create a new transition drawable with the specified list of layers. At least
76 * 2 layers are required for this drawable to work properly.
78 public TransitionDrawable(Drawable[] layers) { argument
79 this(new TransitionState(null, null, null), layers);
84 * layers must be added to this drawable.
96 private TransitionDrawable(TransitionState state, Drawable[] layers) { argument
97 super(layers, state);
/frameworks/native/services/surfaceflinger/tests/hwc2/
H A DHwc2TestLayers.cpp21 Hwc2TestLayers::Hwc2TestLayers(const std::vector<hwc2_layer_t>& layers, argument
23 : Hwc2TestLayers(layers, coverage, displayArea,
26 Hwc2TestLayers::Hwc2TestLayers(const std::vector<hwc2_layer_t>& layers, argument
32 for (auto layer : layers) {
38 /* Iterate over the layers in order and assign z orders in the same order.
41 uint32_t nextZOrder = layers.size();
236 /* Sets the visible regions for a display. Returns false if the layers do not
240 /* The region of the display that is covered by layers above the current
246 /* Iterate over test layers from max z order to min z order. */
256 /* Remove the area covered by opaque layers abov
[all...]
/frameworks/native/vulkan/libvulkan/
H A Ddriver.h46 void* layers; member in struct:vulkan::api::InstanceData
/frameworks/native/libs/nativewindow/include/android/
H A Dhardware_buffer.h203 uint32_t layers; ///< Number of images in an image array. member in struct:AHardwareBuffer_Desc
/frameworks/native/services/surfaceflinger/layerproto/
H A DLayerProtoParser.cpp58 std::vector<std::unique_ptr<LayerProtoParser::Layer>> layers; local
62 // Make unique_ptr for top level layers since they are not children. This ensures there
64 layers.push_back(std::unique_ptr<Layer>(kv.second));
68 std::sort(layers.begin(), layers.end(), sortLayerUniquePtrs);
69 return layers;
77 const LayerProto& layerProto = layersProto.layers(i);
82 const LayerProto& layerProto = layersProto.layers(i);
215 std::vector<std::unique_ptr<LayerProtoParser::Layer>> layers) {
217 for (std::unique_ptr<LayerProtoParser::Layer>& layer : layers) {
214 layersToString( std::vector<std::unique_ptr<LayerProtoParser::Layer>> layers) argument
[all...]
/frameworks/native/vulkan/tools/
H A Dvkinfo.cpp43 std::vector<VkLayerProperties> layers; member in struct:__anon1939::GpuInfo
48 std::vector<VkLayerProperties> layers; member in struct:__anon1939::VulkanInfo
143 info.layers.resize(count);
145 vkEnumerateDeviceLayerProperties(gpu, &count, info.layers.data());
149 info.layer_extensions.resize(info.layers.size());
152 for (size_t i = 0; i < info.layers.size(); i++) {
153 EnumerateDeviceExtensions(gpu, info.layers[i].layerName,
218 info->layers.resize(count);
220 vkEnumerateInstanceLayerProperties(&count, info->layers.data());
224 info->layer_extensions.resize(info->layers
344 PrintLayers( const std::vector<VkLayerProperties>& layers, const std::vector<std::vector<VkExtensionProperties>> extensions, const Options& options, size_t indent) argument
[all...]
/frameworks/native/vulkan/vkjson/
H A Dvkjson.h88 std::vector<VkLayerProperties> layers; member in struct:VkJsonDevice
119 std::vector<VkJsonLayer> layers; member in struct:VkJsonInstance
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
H A DRecyclerItemAdapter.java123 final Drawable[] layers = {background, selectableItemBackground};
124 view.setBackgroundDrawable(new PatchedLayerDrawable(layers));
223 * Before Lollipop, LayerDrawable always return true in getPadding, even if the children layers
237 PatchedLayerDrawable(Drawable[] layers) { argument
238 super(layers);
/frameworks/base/core/java/android/hardware/
H A DHardwareBuffer.java147 * @param layers The number of layers in the buffer
151 * too large to allocate), if the format is not supported, if the requested number of layers
155 public static HardwareBuffer create(int width, int height, @Format int format, int layers, argument
166 if (layers <= 0) {
167 throw new IllegalArgumentException("Invalid layer count " + layers);
172 long nativeObject = nCreateHardwareBuffer(width, height, format, layers, usage);
175 "dimensions passed were too large, too many image layers were requested, " +
240 * Returns the number of layers in this buffer.
370 private static native long nCreateHardwareBuffer(int width, int height, int format, int layers, argument
[all...]
/frameworks/native/services/vr/hardware_composer/impl/
H A Dvr_hwc.h92 std::vector<ComposerLayer> layers; member in struct:android::dvr::ComposerView::Frame
99 // Returns a list of layers that need to be shown together. Layers are
176 // List of currently active layers.
/frameworks/base/libs/hwui/pipeline/skia/
H A DSkiaPipeline.cpp88 ATRACE_NAME("draw layers");
94 void SkiaPipeline::renderLayersImpl(const LayerUpdateQueue& layers, bool opaque, argument
98 // Render all layers that need to be updated, in order.
99 for (size_t i = 0; i < layers.entries().size(); i++) {
100 RenderNode* layerNode = layers.entries()[i].renderNode.get();
102 // removed during a dropped frame, but layers may still remain scheduled so
113 const Rect& layerDamage = layers.entries()[i].damage;
146 // either all the layers have been rendered or the context changes
150 ATRACE_NAME("flush layers (context changed)");
159 ATRACE_NAME("flush layers");
323 renderFrame(const LayerUpdateQueue& layers, const SkRect& clip, const std::vector<sp<RenderNode>>& nodes, bool opaque, bool wideColorGamut, const Rect& contentDrawBounds, sk_sp<SkSurface> surface) argument
356 renderFrameImpl(const LayerUpdateQueue& layers, const SkRect& clip, const std::vector<sp<RenderNode>>& nodes, bool opaque, bool wideColorGamut, const Rect& contentDrawBounds, SkCanvas* canvas) argument
485 renderOverdraw(const LayerUpdateQueue& layers, const SkRect& clip, const std::vector<sp<RenderNode>>& nodes, const Rect& contentDrawBounds, sk_sp<SkSurface> surface) argument
[all...]
/frameworks/native/cmds/flatland/
H A DMain.cpp45 // The dimensions of the space in which window layers are specified.
52 // The list of window layers.
53 LayerDesc layers[MAX_NUM_LAYERS]; member in struct:BenchmarkDesc
410 LayerDesc ld = mDesc.layers[i];
556 if (desc.layers[i].rendererFactory == NULL) {
569 // The surface into which layers are composited
/frameworks/native/services/surfaceflinger/tests/fakehwc/
H A DSFFakeHwc_test.cpp544 std::vector<LayerDebugInfo> layers; local
545 status_t result = sf->getLayerDebugInfo(&layers);
547 ALOGE("Failed to get layers %s %d", strerror(-result), result);
549 // If this fails, the test being torn down leaked layers.
550 EXPECT_EQ(0u, layers.size());
551 if (layers.size() > 0) {
552 for (auto layer = layers.begin(); layer != layers.end(); ++layer) {
678 // The layers will switch order, but both are rendered because the background layer is
908 // NOTE: All three layers wil
[all...]
/frameworks/base/libs/hwui/
H A DFrameBuilder.cpp52 FrameBuilder::FrameBuilder(const LayerUpdateQueue& layers, const LightGeometry& lightGeometry, argument
69 deferLayers(layers);
72 void FrameBuilder::deferLayers(const LayerUpdateQueue& layers) { argument
73 // Render all layers to be updated, in order. Defer in reverse order, so that they'll be
75 for (int i = layers.entries().size() - 1; i >= 0; i--) {
76 RenderNode* layerNode = layers.entries()[i].renderNode.get();
78 // removed during a dropped frame, but layers may still remain scheduled so
85 Rect layerDamage = layers.entries()[i].damage;
289 // (temp layers are clipped to viewport, since they don't persist offscreen content)
814 // Option - just skip layers wit
[all...]

Completed in 364 milliseconds

12