Home
last modified time | relevance | path

Searched refs:BITS_PER_BYTE (Results 1 – 9 of 9) sorted by relevance

/test/xts/device_attest/services/oem_adapter/include/
Ddevice_attest_oem_adapter.h33 #define BITS_PER_BYTE 8 macro
/test/xts/hats/hdf/display/composer/common/
Ddisplay_test_utils.cpp33 const uint8_t BITS_PER_BYTE = 8; variable
123 *(data + i) = (value >> ((sizeof(uint32_t) - i - 1) * BITS_PER_BYTE)) & 0xff; in GetUint32()
162 *(data + i) = (value >> ((sizeof(uint32_t) - i - 1) * BITS_PER_BYTE)) & 0xff; in SetUint32()
Dhdi_test_render_utils.cpp26 *(data + i) = (value >> ((sizeof(uint32_t) - i - 1) * BITS_PER_BYTE)) & 0xff; in SetUint32()
/test/xts/hats/hdf/hdf_lite/display/
Ddisplay_test.h46 #define BITS_PER_BYTE 8 macro
Ddisplay_test.c94 esurface->stride = SAMPLE_IMAGE_WIDTH * bpp / BITS_PER_BYTE; in PicSourceSurfaceInit()
107 esurface->stride = g_displayTest.displayInfo.width * bpp / BITS_PER_BYTE; in DestSurfaceInit()
/test/xts/device_attest_lite/services/core/include/network/
Dattest_coap.h50 #define BITS_PER_BYTE 8 macro
/test/xts/device_attest/services/oem_adapter/src/
Ddevice_attest_oem_adapter.c66 … result |= ((uint8_t)tokenWithFlag[TOKEN_SIZE + i]) << ((TOKEN_FLAG_SIZE - 1 - i) * BITS_PER_BYTE); in GetTokenFlag()
74 flag[i] = (value >> (BITS_PER_BYTE * (TOKEN_FLAG_SIZE - 1 - i))) & 0xFF; in SetTokenFlag()
/test/xts/device_attest_lite/services/core/network/
Dattest_coap.c58 *tkl = (uint8_t)((GetRandomNum() % BITS_PER_BYTE) + 1); // create a random digit, range: 1~8 in CoapCreateToken()
158 …->rwBuffer[(*index)++] = (char)((contentLen - COAP_MESSAGE_DIFF_VALUE_TWO_BYTES) >> BITS_PER_BYTE); in CoapEncodeExtensionMsg()
507 if (((uint32_t)((*p)[1] << BITS_PER_BYTE) | (*p)[COAP_OPTION_EXTENSION_LEN]) > in CoapParseOptionExtension()
512 *value = (uint16_t)((((*p)[1] << BITS_PER_BYTE) | (*p)[COAP_OPTION_EXTENSION_LEN]) + in CoapParseOptionExtension()
Dattest_network.c862 size_t tempLength = (size_t)(((messageExtendedLength[0] & 0xFF) << BITS_PER_BYTE) | in DecodeExtendedLength()