Home
last modified time | relevance | path

Searched refs:checkConfig (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/hello_native_buffer/
H A Dhello_native_buffer.cpp47 …NativeBufferConfig(const OH_NativeBuffer_Config &config, const OH_NativeBuffer_Config &checkConfig) in CompareOH_NativeBufferConfig() argument
49 if (config.width != checkConfig.width) { in CompareOH_NativeBufferConfig()
52 if (config.height != checkConfig.height) { in CompareOH_NativeBufferConfig()
55 if (config.format != checkConfig.format) { in CompareOH_NativeBufferConfig()
58 if (config.usage != checkConfig.usage) { in CompareOH_NativeBufferConfig()
78 OH_NativeBuffer_Config checkConfig = {}; in main() local
79 OH_NativeBuffer_GetConfig(buffer, &checkConfig); in main()
80 CompareOH_NativeBufferConfig(config, checkConfig); in main()
/ohos5.0/foundation/graphic/graphic_surface/surface/test/unittest/
H A Dnative_buffer_test.cpp146 OH_NativeBuffer_GetConfig(buffer, &checkConfig);
147 ASSERT_NE(&checkConfig, nullptr);
160 checkConfig.width = 0x0;
161 checkConfig.height = 0x0;
162 checkConfig.format = 0x0;
163 checkConfig.usage = 0x0;
164 OH_NativeBuffer_GetConfig(nullptr, &checkConfig);
165 ASSERT_EQ(checkConfig.width, 0x0);
166 ASSERT_EQ(checkConfig.height, 0x0);
167 ASSERT_EQ(checkConfig.format, 0x0);
[all …]
/ohos5.0/foundation/graphic/graphic_surface/surface/test/fuzztest/nativebuffer_fuzzer/
H A Dnativebuffer_fuzzer.cpp43 OH_NativeBuffer_Config checkConfig = GetData<OH_NativeBuffer_Config>(); in DoSomethingInterestingWithMyAPI() local
50 OH_NativeBuffer_GetConfig(buffer, &checkConfig); in DoSomethingInterestingWithMyAPI()