Searched refs:colorPixels (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/base/msdp/device_status/test/fuzztest/startdrag_fuzzer/ |
H A D | startdrag_fuzzer.cpp | 55 uint32_t* colorPixels = new (std::nothrow) uint32_t[colorLen]; in CreatePixelMap() local 56 if (colorPixels == nullptr) { in CreatePixelMap() 61 auto ret = memset_s(colorPixels, colorByteCount, DEFAULT_ICON_COLOR, colorByteCount); in CreatePixelMap() 63 delete[] colorPixels; in CreatePixelMap() 67 … std::shared_ptr<Media::PixelMap> pixelMap = Media::PixelMap::Create(colorPixels, colorLen, opts); in CreatePixelMap() 69 delete[] colorPixels; in CreatePixelMap() 73 delete[] colorPixels; in CreatePixelMap()
|
/ohos5.0/base/msdp/device_status/test/unittest/services/unittest/src/ |
H A D | drag_data_manager_test.cpp | 75 uint32_t *colorPixels = new (std::nothrow) uint32_t[colorLen]; in CreatePixelMap() local 76 if (colorPixels == nullptr) { in CreatePixelMap() 81 auto ret = memset_s(colorPixels, colorByteCount, DEFAULT_ICON_COLOR, colorByteCount); in CreatePixelMap() 84 delete[] colorPixels; in CreatePixelMap() 87 …std::shared_ptr<Media::PixelMap> pixelMap = Media::PixelMap::Create(colorPixels, colorLen, options… in CreatePixelMap() 90 delete[] colorPixels; in CreatePixelMap() 93 delete[] colorPixels; in CreatePixelMap()
|