/chre-3.4.0/apps/test/chqts/src/shared/ |
D | nano_endian_le_test.cc | 36 uint32_t value; in TEST() local 37 ::memcpy(&value, kLittleEndianRepresentation, sizeof(value)); in TEST() 39 value = nanoapp_testing::littleEndianToHost(value); in TEST() 40 EXPECT_EQ(0, ::memcmp(&value, kLittleEndianRepresentation, sizeof(value))); in TEST() 44 uint32_t value; in TEST() local 45 ::memcpy(&value, kLittleEndianRepresentation, sizeof(value)); in TEST() 47 value = nanoapp_testing::hostToLittleEndian(value); in TEST() 48 EXPECT_EQ(0, ::memcmp(&value, kLittleEndianRepresentation, sizeof(value))); in TEST()
|
D | nano_endian_be_test.cc | 37 uint32_t value; in TEST() local 38 ::memcpy(&value, kLittleEndianRepresentation, sizeof(value)); in TEST() 40 value = nanoapp_testing::littleEndianToHost(value); in TEST() 41 EXPECT_EQ(0, ::memcmp(&value, kBigEndianRepresentation, sizeof(value))); in TEST() 45 uint32_t value; in TEST() local 46 ::memcpy(&value, kBigEndianRepresentation, sizeof(value)); in TEST() 48 value = nanoapp_testing::hostToLittleEndian(value); in TEST() 49 EXPECT_EQ(0, ::memcmp(&value, kLittleEndianRepresentation, sizeof(value))); in TEST()
|
D | macros.h | 40 #define ASSERT_GE(value, lower, failureMessage) \ 41 if ((value) < (lower)) sendFatalFailureToHost(failureMessage) 47 #define ASSERT_LE(value, upper, failureMessage) \ 48 if ((value) > (upper)) sendFatalFailureToHost(failureMessage) 54 #define ASSERT_LT(value, upper, failureMessage) \ 55 if ((value) >= (upper)) sendFatalFailureToHost(failureMessage) 61 #define ASSERT_IN_RANGE(value, lower, upper, failureMessage) \ 62 ASSERT_GE((value), (lower), failureMessage); \ 63 ASSERT_LE((value), (upper), failureMessage)
|
D | nano_endian_test.cc | 80 uint32_t value; in TEST() local 81 ::memcpy(&value, kLittleEndianRepresentation, sizeof(value)); in TEST() 83 value = nanoapp_testing::littleEndianToHost(value); in TEST() 84 EXPECT_EQ(kValue, value); in TEST() 88 uint32_t value = kValue; in TEST() local 89 value = nanoapp_testing::hostToLittleEndian(value); in TEST() 91 const uint8_t *bytes = reinterpret_cast<uint8_t *>(&value); in TEST()
|
D | send_message.cc | 136 const uint32_t *value) { in sendStringToHost() argument 143 if (value != nullptr) { in sendStringToHost() 155 if (value != nullptr) { in sendStringToHost() 157 ptr, fullMessageLen - static_cast<size_t>(ptr - fullMessage), *value); in sendStringToHost() 169 static void logFatalMessage(const char *message, const uint32_t *value) { in logFatalMessage() argument 170 if (value != nullptr) { in logFatalMessage() 171 chreLog(CHRE_LOG_ERROR, "TEST ABORT: %s0x%08" PRIX32, message, *value); in logFatalMessage() 177 void sendFatalFailureToHost(const char *message, const uint32_t *value, in sendFatalFailureToHost() argument 179 sendFailureToHost(message, value); in sendFatalFailureToHost() 180 logFatalMessage(message, value); in sendFatalFailureToHost() [all …]
|
D | send_message.h | 134 const uint32_t *value = nullptr); 140 const uint32_t *value = nullptr) { 141 sendStringToHost(MessageType::kFailure, message, value); 149 const uint32_t *value = nullptr, 162 void sendFatalFailureToHostUint8(const char *message, const uint8_t value); 169 const uint32_t *value = nullptr,
|
D | nano_endian.h | 55 static inline T hostToLittleEndian(T value) { in hostToLittleEndian() argument 57 swapBytes(reinterpret_cast<uint8_t *>(&value), sizeof(T)); in hostToLittleEndian() 59 return value; in hostToLittleEndian() 63 static inline T littleEndianToHost(T value) { in littleEndianToHost() argument 66 return hostToLittleEndian(value); in littleEndianToHost()
|
/chre-3.4.0/platform/zephyr/include/chre/target_platform/ |
D | atomic_base_impl.h | 27 value = ATOMIC_INIT(starting_value); in AtomicBool() 31 return atomic_set(&value, desired); 35 return atomic_get(&value); in load() 39 atomic_set(&value, desired); in store() 43 return atomic_set(&value, desired); in exchange() 47 value = ATOMIC_INIT(starting_value); in AtomicUint32() 51 return atomic_set(&value, desired); 55 return atomic_get(&value); in load() 59 atomic_set(&value, desired); in store() 63 return atomic_set(&value, desired); in exchange() [all …]
|
/chre-3.4.0/apps/test/chqts/src/general_test/ |
D | cell_info_base.cc | 26 bool CellInfoBase::isBoundedInt32(int32_t value, int32_t lower, int32_t upper, in isBoundedInt32() argument 28 return (((value >= lower) && (value <= upper)) || in isBoundedInt32() 29 (invalidAllowed && (value == invalid))); in isBoundedInt32() 32 bool CellInfoBase::isBoundedInt64(int64_t value, int64_t lower, int64_t upper, in isBoundedInt64() argument 34 return (((value >= lower) && (value <= upper)) || in isBoundedInt64() 35 (invalidAllowed && (value == invalid))); in isBoundedInt64() 38 void CellInfoBase::sendFatalFailureInt32(const char *message, int32_t value) { in sendFatalFailureInt32() argument 39 uint32_t val = static_cast<uint32_t>(value); in sendFatalFailureInt32() 43 void CellInfoBase::sendFatalFailureUint8(const char *message, uint8_t value) { in sendFatalFailureUint8() argument 44 uint32_t val = value; in sendFatalFailureUint8()
|
D | cell_info_base.h | 27 static void sendFatalFailureInt32(const char *message, int32_t value); 28 static void sendFatalFailureUint8(const char *message, uint8_t value); 35 static bool isBoundedInt32(int32_t value, int32_t lower, int32_t upper, 37 static bool isBoundedInt64(int64_t value, int64_t lower, int64_t upper,
|
D | logging_consistency_test.cc | 79 type value = std::numeric_limits<type>::min(); \ in setUp() 83 value, value, value, value, value); \ in setUp()
|
D | basic_sensor_tests.cc | 25 static void checkFloat(float value, float extremeLow, float extremeHigh) { in checkFloat() argument 26 if ((value < extremeLow) || (value > extremeHigh)) { in checkFloat() 27 uint32_t i = static_cast<uint32_t>(value); in checkFloat() 60 checkFloat(data->readings[i].value, extremeLow, extremeHigh); in verifyFloatData()
|
/chre-3.4.0/util/tests/ |
D | unique_ptr_test.cc | 12 Value(int value) : value(value) { in Value() 21 value = other.value; in operator =() 25 int value; member 34 EXPECT_EQ(myInt.get()->value, 0xcafe); in TEST() 35 EXPECT_EQ(myInt->value, 0xcafe); in TEST() 36 EXPECT_EQ((*myInt).value, 0xcafe); in TEST() 37 EXPECT_EQ(myInt[0].value, 0xcafe); in TEST() 58 Value *value = myInt.get(); in TEST() local 61 EXPECT_EQ(moved.get(), value); in TEST() 79 EXPECT_EQ(myMovedInt.get()->value, 0xcafe); in TEST() [all …]
|
D | dynamic_vector_test.cc | 42 void setValue(int value) { in setValue() argument 43 mValue = value; in setValue() 123 MovableButNonCopyable(int value) : mValue(value) {} in MovableButNonCopyable() argument 168 CopyableButNonMovable(int value) : mValue(value) {} in CopyableButNonMovable() argument 212 MovableAndCopyable(int value) : mValue(value) {} in MovableAndCopyable() argument 273 Foo(int value) : value(value) { in Foo() argument 278 value = other.value; in Foo() 297 int value; member in Foo 312 ASSERT_EQ(vector[0].value, 1000); in TEST() 313 ASSERT_EQ(vector[1].value, 2000); in TEST() [all …]
|
D | optional_test.cc | 33 void setValueToFlipWhenDestruct(bool *value) { in setValueToFlipWhenDestruct() argument 34 valueToFlipWhenDestruct = value; in setValueToFlipWhenDestruct() 45 object.value().setValueToFlipWhenDestruct(&destructed); in TEST() 125 MovableButNonCopyable(int value) : mValue(value) {} in MovableButNonCopyable() argument
|
/chre-3.4.0/java/test/chqts/src/com/google/android/chre/test/chqts/ |
D | ContextHubTestConstants.java | 229 TestNames(int value) { in TestNames() argument 230 this.mValue = value; in TestNames() 324 MessageType(int value) { in MessageType() argument 325 this.mValue = value; in MessageType() 352 public static MessageType fromInt(int value, String errorMessage) { in fromInt() argument 354 if (value == type.asInt()) { in fromInt() 359 Assert.fail("Unknown MessageType (" + value + ") from " in fromInt()
|
/chre-3.4.0/util/include/chre/util/ |
D | macros.h | 37 #define IS_BIT_SET(value, bit) (((value) & (bit)) == (bit)) 52 #define BITMASK_HAS_VALUE(mask, value) ((mask & value) == value)
|
D | optional.h | 33 static_assert(!std::is_reference<ObjectType>::value, 91 ObjectType &value(); 92 const ObjectType &value() const;
|
D | buffer.h | 42 static_assert(std::is_trivial<ElementType>::value, 44 static_assert(std::is_trivially_destructible<ElementType>::value,
|
/chre-3.4.0/apps/audio_world/ |
D | audio_world.cc | 58 char getFftCharForValue(uint16_t value) { in getFftCharForValue() argument 64 if (value < kFftLowLimit) { in getFftCharForValue() 66 } else if (value >= kFftLowLimit && value < kFftMedLimit) { in getFftCharForValue() 68 } else if (value >= kFftMedLimit && value < kFftHighLimit) { in getFftCharForValue() 70 } else if (value >= kFftHighLimit && value < kFftVeryHighLimit) { in getFftCharForValue() 106 float value = in handleAudioDataEvent() local 108 fftStr[i] = getFftCharForValue(static_cast<uint16_t>(value)); in handleAudioDataEvent()
|
/chre-3.4.0/platform/slpi/see/include/ |
D | sns_osa.h | 47 #define SNS_ASSERT(value) \ argument 48 if (!(value)) ERR_FATAL(#value, 0, 0, 0)
|
/chre-3.4.0/java/test/utils/src/com/google/android/utils/chre/ |
D | SettingsUtil.java | 66 String value = enable ? "1" : "0"; in setWifiScanningSettings() local 68 mInstrumentation, "settings put global wifi_scan_always_enabled " + value); in setWifiScanningSettings() 77 String value = enable ? "enable" : "disable"; in setWifi() local 78 ChreTestUtil.executeShellCommand(mInstrumentation, "svc wifi " + value); in setWifi()
|
/chre-3.4.0/pal/doc/ |
D | Doxyfile | 11 # TAG = value [value, ...] 13 # TAG += value [value, ...] 25 # The default value is: UTF-8. 33 # The default value is: My Project. 69 # The default value is: NO. 77 # The default value is: NO. 92 # The default value is: English. 99 # The default value is: YES. 108 # The default value is: YES. 126 # The default value is: NO. [all …]
|
/chre-3.4.0/chre_api/doc/ |
D | Doxyfile | 11 # TAG = value [value, ...] 13 # TAG += value [value, ...] 25 # The default value is: UTF-8. 33 # The default value is: My Project. 69 # The default value is: NO. 77 # The default value is: NO. 92 # The default value is: English. 99 # The default value is: YES. 108 # The default value is: YES. 126 # The default value is: NO. [all …]
|
/chre-3.4.0/external/flatbuffers/include/flatbuffers/ |
D | stl_emulation.h | 55 inline char& string_back(std::string &value) { in string_back() argument 56 return value[value.length() - 1]; in string_back() 59 inline char string_back(const std::string &value) { in string_back() argument 60 return value[value.length() - 1]; in string_back() 162 static_assert(is_unsigned<T>::value, "Specialization not implemented!"); 260 T* value = ptr_; 262 return value; 266 T* value = ptr_; 268 if (value) delete value;
|