Home
last modified time | relevance | path

Searched refs:AssignIfValid (Results 1 – 10 of 10) sorted by relevance

/external/libchrome/base/memory/
Dplatform_shared_memory_region_android.cc121 if (!CheckAdd(offset, size).AssignIfValid(&end_byte) || end_byte > size_) { in MapAt()
Dplatform_shared_memory_region_posix.cc170 if (!CheckAdd(offset, size).AssignIfValid(&end_byte) || end_byte > size_) { in MapAt()
/external/libchrome/base/
Dsafe_numerics_unittest.cc1475 EXPECT_TRUE(int8_max.AssignIfValid(&uint8_dest)); in TEST()
1477 EXPECT_FALSE(int8_min.AssignIfValid(&uint8_dest)); in TEST()
1478 EXPECT_TRUE(int8_max.AssignIfValid(&int16_dest)); in TEST()
1480 EXPECT_TRUE(int8_min.AssignIfValid(&int16_dest)); in TEST()
1482 EXPECT_FALSE(double_max.AssignIfValid(&uint8_dest)); in TEST()
1483 EXPECT_FALSE(double_max.AssignIfValid(&int16_dest)); in TEST()
1484 EXPECT_TRUE(double_max.AssignIfValid(&double_dest)); in TEST()
Dpickle.cc79 if (!CheckMul(num_elements, size_element).AssignIfValid(&num_bytes)) in GetReadPointerAndAdvance()
/external/libchrome/base/numerics/
DREADME.md112 the AssignIfValid method will trigger a compile error if the result is ignored).
117 if (!CheckAdd(kHeaderSize, CheckMul(count, kItemSize)).AssignIfValid(&size)) {
249 * `AssignIfValid()` - Assigns the underlying value to the supplied
280 if (!CheckAdd(input, padding, kHeaderLength).AssignIfValid(&buff_size) ||
Dchecked_math.h70 AssignIfValid(Dst* result) const { in AssignIfValid() function
/external/libchrome/base/metrics/
Dhistogram_samples.cc150 if (!new_count.AssignIfValid(&single_sample.as_parts.count)) in Accumulate()
/external/angle/src/common/third_party/base/anglebase/numerics/
Dsafe_math.h95 constexpr bool AssignIfValid(Dst *result) const in AssignIfValid() function
/external/angle/src/libANGLE/renderer/gl/
DFramebufferGL.cpp985 if (!checkedXOffset.AssignIfValid(&xOffset) || !checkedYOffset.AssignIfValid(&yOffset)) in adjustSrcDstRegion()
1111 if (!checkedXOffset.AssignIfValid(&xOffset) || !checkedYOffset.AssignIfValid(&yOffset)) in adjustSrcDstRegion()
/external/pdfium/third_party/base/numerics/
Dsafe_math.h141 constexpr bool AssignIfValid(Dst* result) const { in AssignIfValid() function