/external/icu/icu4c/source/common/ |
D | capi_helper.h | 14 template<typename CType, typename CPPType, int32_t kMagic> 46 int32_t fMagic = kMagic; 50 template<typename CType, typename CPPType, int32_t kMagic> 52 IcuCApiHelper<CType, CPPType, kMagic>::validate(const CType* input, UErrorCode& status) { in validate() 61 if (static_cast<const IcuCApiHelper<CType, CPPType, kMagic>*>(impl)->fMagic != kMagic) { in validate() 68 template<typename CType, typename CPPType, int32_t kMagic> 70 IcuCApiHelper<CType, CPPType, kMagic>::validate(CType* input, UErrorCode& status) { in validate() 76 template<typename CType, typename CPPType, int32_t kMagic> 78 IcuCApiHelper<CType, CPPType, kMagic>::exportConstForC() const { in exportConstForC() 82 template<typename CType, typename CPPType, int32_t kMagic> [all …]
|
/external/icu/libicu/cts_headers/ |
D | capi_helper.h | 14 template<typename CType, typename CPPType, int32_t kMagic> 46 int32_t fMagic = kMagic; 50 template<typename CType, typename CPPType, int32_t kMagic> 52 IcuCApiHelper<CType, CPPType, kMagic>::validate(const CType* input, UErrorCode& status) { in validate() 61 if (static_cast<const IcuCApiHelper<CType, CPPType, kMagic>*>(impl)->fMagic != kMagic) { in validate() 68 template<typename CType, typename CPPType, int32_t kMagic> 70 IcuCApiHelper<CType, CPPType, kMagic>::validate(CType* input, UErrorCode& status) { in validate() 76 template<typename CType, typename CPPType, int32_t kMagic> 78 IcuCApiHelper<CType, CPPType, kMagic>::exportConstForC() const { in exportConstForC() 82 template<typename CType, typename CPPType, int32_t kMagic> [all …]
|
/external/skia/src/core/ |
D | SkPicture.cpp | 51 static const char kMagic[] = { 's', 'k', 'i', 'a', 'p', 'i', 'c', 't' }; variable 56 static_assert(sizeof(kMagic) == 8, ""); in createHeader() 57 static_assert(sizeof(kMagic) == sizeof(info.fMagic), ""); in createHeader() 58 memcpy(info.fMagic, kMagic, sizeof(kMagic)); in createHeader() 67 if (0 != memcmp(info.fMagic, kMagic, sizeof(kMagic))) { in IsValidPictInfo() 83 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in StreamIsSKP() 84 if (stream->read(&info.fMagic, sizeof(kMagic)) != sizeof(kMagic)) { in StreamIsSKP() 107 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in BufferIsSKP() 108 if (!buffer->readByteArray(&info.fMagic, sizeof(kMagic))) { in BufferIsSKP()
|
/external/skqp/src/core/ |
D | SkPicture.cpp | 43 static const char kMagic[] = { 's', 'k', 'i', 'a', 'p', 'i', 'c', 't' }; variable 48 static_assert(sizeof(kMagic) == 8, ""); in createHeader() 49 static_assert(sizeof(kMagic) == sizeof(info.fMagic), ""); in createHeader() 50 memcpy(info.fMagic, kMagic, sizeof(kMagic)); in createHeader() 59 if (0 != memcmp(info.fMagic, kMagic, sizeof(kMagic))) { in IsValidPictInfo() 74 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in StreamIsSKP() 75 if (stream->read(&info.fMagic, sizeof(kMagic)) != sizeof(kMagic)) { in StreamIsSKP() 101 SkASSERT(sizeof(kMagic) == sizeof(info.fMagic)); in BufferIsSKP() 102 if (!buffer->readByteArray(&info.fMagic, sizeof(kMagic))) { in BufferIsSKP()
|
/external/pigweed/pw_router/size_report/ |
D | static_router_with_one_route.cc | 25 static constexpr uint32_t kMagic = 0x8badf00d; member 28 : magic(kMagic), address(addr), payload(data) {} in BasicPacket() 46 return packet_->magic == BasicPacket::kMagic; in Parse() 71 PW_CHECK_UINT_EQ(packet.magic, BasicPacket::kMagic, "Some CHECK logic"); in main()
|
D | base.cc | 23 static constexpr uint32_t kMagic = 0x8badf00d; member 26 : magic(kMagic), address(addr), payload(data) {} in BasicPacket() 40 PW_CHECK_UINT_EQ(packet.magic, BasicPacket::kMagic, "Some CHECK logic"); in main()
|
/external/icing/icing/legacy/index/ |
D | icing-lite-index-header.h | 53 static const uint32_t kMagic = 0x6dfba6a0; member 72 return hdr_->magic == HeaderData::kMagic; in check_magic() 99 hdr_->magic = HeaderData::kMagic; in Reset()
|
D | icing-flash-bitmap.h | 128 static const uint32_t kMagic = 0x394b0698; variable
|
D | icing-flash-bitmap.cc | 85 if (accessor.header()->magic != kMagic) { in Verify() 153 accessor.header()->magic = kMagic; in Init()
|
/external/pigweed/pw_kvs/ |
D | key_value_store_binary_format_test.cc | 135 constexpr uint32_t kMagic = 0x5ab2f0b5; variable 159 MakeValidEntry(kMagic, 1, "key1", bytes::String("value1")); 161 MakeValidEntry(kMagic, 3, "k2", bytes::String("value2")); 163 MakeValidEntry(kMagic, 4, "k3y", bytes::String("value3")); 165 MakeValidEntry(kMagic, 5, "4k", bytes::String("value4")); 170 EntryFormat default_format = {.magic = kMagic, .checksum = &default_checksum}; 328 MakeValidEntry(kMagic, 7, "my_key", bytes::String("version 7")); in TEST_F() 330 MakeValidEntry(kMagic, 8, "my_key", bytes::String("version 8")); in TEST_F() 384 {.magic = kMagic, .checksum = &default_checksum}, in KvsErrorRecovery() 548 MakeValidEntry(kMagic, 7, "my_key", bytes::String("version 7")); in TEST_F() [all …]
|
D | entry_cache_test.cc | 198 constexpr uint32_t kMagic = 0xa14ae726; variable 202 bytes::Concat(uint32_t(kMagic), // magic 219 bytes::Concat(uint32_t(kMagic), // magic 233 bytes::Concat(uint32_t(kMagic), // magic 245 constexpr EntryFormat kFormat{.magic = uint32_t(kMagic), .checksum = nullptr};
|
/external/pigweed/pw_router/ |
D | static_router_test.cc | 24 static constexpr uint32_t kMagic = 0x8badf00d; member 27 : magic(kMagic), address(addr), payload(data) {} in BasicPacket() 42 return packet_->magic == BasicPacket::kMagic; in Parse()
|
/external/skqp/src/utils/ |
D | SkMultiPictureDocument.cpp | 36 static constexpr char kMagic[] = "Skia Multi-Picture Doc\n\n"; variable 73 wStream->writeText(kMagic); in onClose() 109 const size_t size = sizeof(kMagic) - 1; in SkMultiPictureDocumentReadPageCount() 111 if (size != stream->read(buffer, size) || 0 != memcmp(kMagic, buffer, size)) { in SkMultiPictureDocumentReadPageCount()
|
/external/skia/src/utils/ |
D | SkMultiPictureDocument.cpp | 37 static constexpr char kMagic[] = "Skia Multi-Picture Doc\n\n"; variable 81 wStream->writeText(kMagic); in onClose() 119 const size_t size = sizeof(kMagic) - 1; in SkMultiPictureDocumentReadPageCount() 121 if (size != stream->read(buffer, size) || 0 != memcmp(kMagic, buffer, size)) { in SkMultiPictureDocumentReadPageCount()
|
/external/icing/icing/file/ |
D | file-backed-proto.h | 50 static constexpr int32_t kMagic = 0x726f746f; member 155 if (header.magic != Header::kMagic) { in Read() 221 header.magic = Header::kMagic; in Write()
|
D | file-backed-vector.h | 94 static constexpr int32_t kMagic = 0x8bbbe237; member 377 header->magic = FileBackedVector<T>::Header::kMagic; in InitializeNewFile() 422 if (header->kMagic != FileBackedVector<T>::Header::kMagic) { in InitializeExistingFile()
|
/external/puffin/src/include/puffin/ |
D | puffpatch.h | 13 extern const char kMagic[];
|
/external/vulkan-validation-layers/layers/ |
D | hash_util.h | 67 static const uint64_t kMagic = sizeof(Key) > 4 ? Key(0x9e3779b97f4a7c16UL) : Key(0x9e3779b9U); variable 72 combined_ ^= Hasher()(value) + kMagic + (combined_ << 6) + (combined_ >> 2); in Combine()
|
/external/puffin/src/ |
D | puffpatch.cc | 32 const char kMagic[] = "PUF1"; variable 112 if (patch_magic != kMagic) { in DecodePatch()
|
/external/skia/third_party/etc1/ |
D | etc1.cpp | 617 static const char kMagic[] = { 'P', 'K', 'M', ' ', '1', '0' }; variable 639 memcpy(pHeader, kMagic, sizeof(kMagic)); in etc1_pkm_format_header() 652 if (memcmp(pHeader, kMagic, sizeof(kMagic))) { in etc1_pkm_is_valid()
|
/external/skqp/third_party/etc1/ |
D | etc1.cpp | 622 static const char kMagic[] = { 'P', 'K', 'M', ' ', '1', '0' }; variable 644 memcpy(pHeader, kMagic, sizeof(kMagic)); in etc1_pkm_format_header() 657 if (memcmp(pHeader, kMagic, sizeof(kMagic))) { in etc1_pkm_is_valid()
|
/external/pdfium/fxjs/ |
D | cfx_globaldata.cpp | 19 constexpr uint16_t kMagic = ('X' << 8) | 'F'; variable 281 if (wType != kMagic) in LoadGlobalPersistentVariablesFromBuffer() 382 uint16_t wType = kMagic; in SaveGlobalPersisitentVariables()
|
/external/icing/icing/index/main/ |
D | flash-index-storage-header.h | 36 static constexpr int kMagic = 0x6dfba6ae; member
|
/external/libchrome/base/ |
D | pickle_unittest.cc | 433 const uint32_t kMagic = 0x12345678; in TEST() local 436 pickle.WriteInt(kMagic); in TEST() 445 EXPECT_EQ(static_cast<uint32_t>(result), kMagic); in TEST()
|
/external/icing/icing/schema/ |
D | schema-store.h | 52 static constexpr int32_t kMagic = 0x72650d0a; member
|