/frameworks/native/services/surfaceflinger/tests/ |
D | Stress_test.cpp | 52 std::array<surfaceflinger::LayerProto*, 10> layers = {}; in generateLayerProto() local 53 for (size_t i = 0; i < layers.size(); ++i) { in generateLayerProto() 54 layers[i] = layersProto.add_layers(); in generateLayerProto() 55 layers[i]->set_id(i); in generateLayerProto() 58 layers[0]->add_children(1); in generateLayerProto() 59 layers[1]->set_parent(0); in generateLayerProto() 60 layers[0]->add_children(2); in generateLayerProto() 61 layers[2]->set_parent(0); in generateLayerProto() 62 layers[0]->add_children(3); in generateLayerProto() 63 layers[3]->set_parent(0); in generateLayerProto() [all …]
|
/frameworks/native/services/vr/hardware_composer/tests/ |
D | vr_composer_test.cpp | 130 frame.layers.push_back(ComposerView::ComposerLayer{ in TEST_F() 149 ASSERT_EQ(1u, received_frame.layers.size()); in TEST_F() 150 ASSERT_EQ(frame.layers[0].id, received_frame.layers[0].id); in TEST_F() 151 ASSERT_NE(nullptr, received_frame.layers[0].buffer.get()); in TEST_F() 152 ASSERT_TRUE(received_frame.layers[0].fence->isValid()); in TEST_F() 153 ASSERT_EQ(frame.layers[0].display_frame.left, in TEST_F() 154 received_frame.layers[0].display_frame.left); in TEST_F() 155 ASSERT_EQ(frame.layers[0].display_frame.top, in TEST_F() 156 received_frame.layers[0].display_frame.top); in TEST_F() 157 ASSERT_EQ(frame.layers[0].display_frame.right, in TEST_F() [all …]
|
/frameworks/native/libs/vr/libdvr/ |
D | dvr_hardware_composer_client.cpp | 134 return frame->frame.layers.size(); in dvrHwcFrameGetLayerCount() 161 return frame->frame.layers[layer_index].id; in dvrHwcFrameGetLayerId() 167 frame->frame.layers[layer_index].buffer.get()); in dvrHwcFrameGetLayerBuffer() 173 return frame->frame.layers[layer_index].fence->dup(); in dvrHwcFrameGetLayerFence() 179 frame->frame.layers[layer_index].display_frame.left, in dvrHwcFrameGetLayerDisplayFrame() 180 frame->frame.layers[layer_index].display_frame.top, in dvrHwcFrameGetLayerDisplayFrame() 181 frame->frame.layers[layer_index].display_frame.right, in dvrHwcFrameGetLayerDisplayFrame() 182 frame->frame.layers[layer_index].display_frame.bottom, in dvrHwcFrameGetLayerDisplayFrame() 188 frame->frame.layers[layer_index].crop.left, in dvrHwcFrameGetLayerCrop() 189 frame->frame.layers[layer_index].crop.top, in dvrHwcFrameGetLayerCrop() [all …]
|
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
D | parcelable_composer_frame.cpp | 51 std::vector<ParcelableComposerLayer> layers; in writeToParcel() local 52 for (size_t i = 0; i < frame_.layers.size(); ++i) in writeToParcel() 53 layers.push_back(ParcelableComposerLayer(frame_.layers[i])); in writeToParcel() 55 ret = parcel->writeParcelableVector(layers); in writeToParcel() 98 std::vector<ParcelableComposerLayer> layers; in readFromParcel() local 99 ret = parcel->readParcelableVector(&layers); in readFromParcel() 102 frame_.layers.clear(); in readFromParcel() 103 for (size_t i = 0; i < layers.size(); ++i) in readFromParcel() 104 frame_.layers.push_back(layers[i].layer()); in readFromParcel()
|
/frameworks/native/libs/renderengine/tests/ |
D | RenderEngineTest.cpp | 121 std::vector<renderengine::LayerSettings> layers, sp<GraphicBuffer> buffer) { in invokeDraw() 123 status_t status = sRE->drawLayers(settings, layers, buffer->getNativeBuffer(), true, in invokeDraw() 134 if (layers.size() > 0) { in invokeDraw() 141 std::vector<renderengine::LayerSettings> layers; in drawEmptyLayers() local 144 invokeDraw(settings, layers, buffer); in drawEmptyLayers() 304 std::vector<renderengine::LayerSettings> layers; in fillBuffer() local 311 layers.push_back(layer); in fillBuffer() 313 invokeDraw(settings, layers, mBuffer); in fillBuffer() 346 std::vector<renderengine::LayerSettings> layers; in fillRedOffsetBuffer() local 353 layers.push_back(layer); in fillRedOffsetBuffer() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | HardwareBgDrawable.java | 40 public HardwareBgDrawable(boolean roundTop, Drawable[] layers) { in HardwareBgDrawable() argument 41 super(layers); in HardwareBgDrawable() 42 if (layers.length != 2) { in HardwareBgDrawable() 46 mLayers = layers; in HardwareBgDrawable() 51 final Drawable[] layers; in getLayers() local 53 layers = new Drawable[]{ in getLayers() 58 layers = new Drawable[]{ in getLayers() 64 layers[1].setTintList(Utils.getColorAttr(context, android.R.attr.colorPrimary)); in getLayers() 65 return layers; in getLayers()
|
/frameworks/base/core/java/android/hardware/ |
D | HardwareBuffer.java | 162 @Format int format, @IntRange(from = 1) int layers, @Usage long usage) { in create() 172 if (layers <= 0) { in create() 173 throw new IllegalArgumentException("Invalid layer count " + layers); in create() 178 long nativeObject = nCreateHardwareBuffer(width, height, format, layers, usage); in create() 200 @Format int format, @IntRange(from = 1) int layers, @Usage long usage) { in isSupported() 210 if (layers <= 0) { in isSupported() 211 throw new IllegalArgumentException("Invalid layer count " + layers); in isSupported() 216 return nIsSupported(width, height, format, layers, usage); in isSupported() 422 private static native long nCreateHardwareBuffer(int width, int height, int format, int layers, in nCreateHardwareBuffer() argument 438 private static native boolean nIsSupported(int width, int height, int format, int layers, in nIsSupported() argument
|
/frameworks/native/vulkan/tools/ |
D | vkinfo.cpp | 43 std::vector<VkLayerProperties> layers; member 48 std::vector<VkLayerProperties> layers; member 143 info.layers.resize(count); in GatherGpuInfo() 145 vkEnumerateDeviceLayerProperties(gpu, &count, info.layers.data()); in GatherGpuInfo() 149 info.layer_extensions.resize(info.layers.size()); in GatherGpuInfo() 152 for (size_t i = 0; i < info.layers.size(); i++) { in GatherGpuInfo() 153 EnumerateDeviceExtensions(gpu, info.layers[i].layerName, in GatherGpuInfo() 218 info->layers.resize(count); in GatherInfo() 220 vkEnumerateInstanceLayerProperties(&count, info->layers.data()); in GatherInfo() 224 info->layer_extensions.resize(info->layers.size()); in GatherInfo() [all …]
|
/frameworks/ml/nn/tools/test_generator/ |
D | spec_visualizer.py | 127 layers = {} 129 layers[node] = max([layers[i] for i in node.ins], default=-1) + 1 131 layers[node] = min([layers[o] for o in node.outs], default=layers[node]+1) - 1 132 num_layers = max(layers.values()) + 1 140 coords[node] = (CoordX(layer_cnt[layers[node]]), CoordY(layers[node])) 141 layer_cnt[layers[node]] += 1
|
/frameworks/native/opengl/libs/EGL/ |
D | GLES_layers.md | 4 …ader will be instantiated. If debug layers are enabled, the LayerLoader will scan specified direc… 6 …ist will be specified by colon separated filenames (see [Enabling layers](#Enabling-layers) below). 8 The layers will be traversed in the order they are specified, so the first layer will be directly b… 29 …layers are not required to do anything with the info provided by `AndroidGLESLayer_Initialize` or … 31 ## Placing layers 33 Where layers can be found, in order of priority 56 …Determine the ABI of your target application, then install an APK containing the layers you wish t… 58 adb install --abi armeabi-v7a layers.apk 63 ## Enabling layers 68 # Enable layers [all …]
|
/frameworks/base/core/jni/ |
D | android_os_GraphicsEnvironment.cpp | 74 void setDebugLayers_native(JNIEnv* env, jobject clazz, jstring layers) { in setDebugLayers_native() argument 75 if (layers != nullptr) { in setDebugLayers_native() 76 ScopedUtfChars layersChars(env, layers); in setDebugLayers_native() 81 void setDebugLayersGLES_native(JNIEnv* env, jobject clazz, jstring layers) { in setDebugLayersGLES_native() argument 82 if (layers != nullptr) { in setDebugLayersGLES_native() 83 ScopedUtfChars layersChars(env, layers); in setDebugLayersGLES_native()
|
D | android_hardware_HardwareBuffer.cpp | 74 jint width, jint height, jint format, jint layers, jlong usage) { in android_hardware_HardwareBuffer_create() argument 86 sp<GraphicBuffer> buffer = new GraphicBuffer(width, height, pixelFormat, layers, in android_hardware_HardwareBuffer_create() 115 jint width, jint height, jint format, jint layers, jlong usage) { in android_hardware_HardwareBuffer_isSupported() argument 121 desc.layers = layers; in android_hardware_HardwareBuffer_isSupported()
|
/frameworks/ml/nn/tools/systrace_parser/parser/ |
D | output.py | 2 from parser.naming import layers, names, phases, make_tag, subphases 61 for layer in layers + [LAYER_TOTAL]: 72 for layer in layers: 82 for layer in layers + [LAYER_TOTAL]: 89 for layer in layers: 102 for layer in (layers + [LAYER_TOTAL]):
|
D | aggregate.py | 7 from parser.naming import layers, phases, subphases 64 for layer in layers: 107 for layer in reversed(layers): 127 for layer in reversed(layers):
|
/frameworks/native/services/surfaceflinger/tests/hwc2/ |
D | Hwc2Test.cpp | 640 const std::vector<hwc2_layer_t>& layers, uint32_t numRequests, in handleRequests() argument 660 EXPECT_EQ(std::count(layers.begin(), layers.end(), requestedLayer), in handleRequests() 708 const std::vector<hwc2_layer_t>& layers, uint32_t numTypes, in handleCompositionChanges() argument 723 auto layer = std::find(layers.begin(), layers.end(), in handleCompositionChanges() 726 EXPECT_TRUE(layer != layers.end() || !testLayers.contains(*layer)) in handleCompositionChanges() 770 for (auto layer : layers) { in handleCompositionChanges() 1158 std::vector<hwc2_layer_t>&& layers) in destroyLayers() argument 1160 for (hwc2_layer_t layer : layers) { in destroyLayers() 1212 hwc2_display_t display, const std::vector<hwc2_layer_t>& layers, 1217 hwc2_display_t display, std::vector<hwc2_layer_t>* layers); [all …]
|
D | Hwc2TestLayers.cpp | 21 Hwc2TestLayers::Hwc2TestLayers(const std::vector<hwc2_layer_t>& layers, in Hwc2TestLayers() argument 23 : Hwc2TestLayers(layers, coverage, displayArea, in Hwc2TestLayers() 26 Hwc2TestLayers::Hwc2TestLayers(const std::vector<hwc2_layer_t>& layers, in Hwc2TestLayers() argument 32 for (auto layer : layers) { in Hwc2TestLayers() 41 uint32_t nextZOrder = layers.size(); in Hwc2TestLayers()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaPipeline.cpp | 92 void SkiaPipeline::renderLayersImpl(const LayerUpdateQueue& layers, bool opaque) { in renderLayersImpl() argument 96 for (size_t i = 0; i < layers.entries().size(); i++) { in renderLayersImpl() 97 RenderNode* layerNode = layers.entries()[i].renderNode.get(); in renderLayersImpl() 109 const Rect& layerDamage = layers.entries()[i].damage; in renderLayersImpl() 292 void SkiaPipeline::renderFrame(const LayerUpdateQueue& layers, const SkRect& clip, in renderFrame() argument 304 renderLayersImpl(layers, opaque); in renderFrame() 311 renderFrameImpl(layers, clip, nodes, opaque, contentDrawBounds, canvas, preTransform); in renderFrame() 316 renderOverdraw(layers, clip, nodes, contentDrawBounds, surface, preTransform); in renderFrame() 332 void SkiaPipeline::renderFrameImpl(const LayerUpdateQueue& layers, const SkRect& clip, in renderFrameImpl() argument 484 void SkiaPipeline::renderOverdraw(const LayerUpdateQueue& layers, const SkRect& clip, in renderOverdraw() argument [all …]
|
D | SkiaPipeline.h | 52 void renderFrame(const LayerUpdateQueue& layers, const SkRect& clip, 61 void renderLayersImpl(const LayerUpdateQueue& layers, bool opaque); 120 void renderFrameImpl(const LayerUpdateQueue& layers, const SkRect& clip, 129 void renderOverdraw(const LayerUpdateQueue& layers, const SkRect& clip,
|
/frameworks/layoutlib/bridge/src/android/view/shadow/ |
D | SpotShadowVertexCalculator.java | 56 public static int getStripSize(int rays, int layers){ in getStripSize() argument 57 return (2 + rays + ((layers) * 2 * (rays + 1))); in getStripSize() 84 int layers, in calculateShadow() argument 157 layers, strength, retstrips); in calculateShadow()
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 50 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate() 59 desc->width, desc->height, desc->layers, strerror(-err), gbuffer->handle); in AHardwareBuffer_allocate() 88 outDesc->layers = gbuffer->getLayerCount(); in AHardwareBuffer_describe() 374 status_t err = gBuffer->isSupported(desc->width, desc->height, desc->format, desc->layers, in AHardwareBuffer_isSupported() 387 trialDesc.layers = desc->layers == 6 ? 6 : 12; in AHardwareBuffer_isSupported() 389 trialDesc.layers = desc->layers == 1 ? 1 : 2; in AHardwareBuffer_isSupported() 431 format, desc->layers, usage, desc->stride)); in AHardwareBuffer_createFromHandle() 449 if (desc->width == 0 || desc->height == 0 || desc->layers == 0) { in AHardwareBuffer_isValidDescription() 466 if (desc->height != 1 || desc->layers != 1) { in AHardwareBuffer_isValidDescription() 485 if (desc->layers != 1) { in AHardwareBuffer_isValidDescription() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | TransitionDrawable.java | 82 public TransitionDrawable(Drawable[] layers) { in TransitionDrawable() argument 83 this(new TransitionState(null, null, null), layers); in TransitionDrawable() 100 private TransitionDrawable(TransitionState state, Drawable[] layers) { in TransitionDrawable() argument 101 super(layers, state); in TransitionDrawable()
|
/frameworks/native/vulkan/vkjson/ |
D | vkjson_instance.cc | 101 device.layers.resize(layer_count); in VkJsonGetDevice() 103 device.layers.data()); in VkJsonGetDevice() 328 std::vector<VkLayerProperties> layers(count); in VkJsonGetInstance() local 329 result = vkEnumerateInstanceLayerProperties(&count, layers.data()); in VkJsonGetInstance() 332 instance.layers.reserve(count); in VkJsonGetInstance() 333 for (auto& layer : layers) { in VkJsonGetInstance() 334 instance.layers.push_back(VkJsonLayer{layer, std::vector<VkExtensionProperties>()}); in VkJsonGetInstance() 336 &instance.layers.back().extensions)) in VkJsonGetInstance()
|
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/ |
D | RecyclerItemAdapter.java | 125 final Drawable[] layers = {background, selectableItemBackground}; in onCreateViewHolder() local 126 view.setBackgroundDrawable(new PatchedLayerDrawable(layers)); in onCreateViewHolder() 236 PatchedLayerDrawable(Drawable[] layers) { in PatchedLayerDrawable() argument 237 super(layers); in PatchedLayerDrawable()
|
/frameworks/opt/colorpicker/src/com/android/colorpicker/ |
D | ColorStateDrawable.java | 34 public ColorStateDrawable(Drawable[] layers, int color) { in ColorStateDrawable() argument 35 super(layers); in ColorStateDrawable()
|
/frameworks/native/vulkan/libvulkan/ |
D | api.cpp | 149 const std::string layers = android::GraphicsEnv::getInstance().getDebugLayers(); in GetLayersFromSettings() local 150 if (!layers.empty()) { in GetLayersFromSettings() 151 ALOGV("Debug layer list: %s", layers.c_str()); in GetLayersFromSettings() 152 std::vector<std::string> paths = android::base::Split(layers, ":"); in GetLayersFromSettings() 467 static void DestroyLayers(ActiveLayer* layers, 1013 data.layers = layers_; in StealLayers() 1020 void LayerChain::DestroyLayers(ActiveLayer* layers, in DestroyLayers() argument 1024 layers[i].ref.~LayerRef(); in DestroyLayers() 1026 allocator.pfnFree(allocator.pUserData, layers); in DestroyLayers() 1138 ActiveLayer* layers = reinterpret_cast<ActiveLayer*>(data.layers); in DestroyInstance() local [all …]
|