Searched refs:defval (Results 1 – 6 of 6) sorted by relevance
/hardware/interfaces/biometrics/common/config/tests/ |
D | ConfigTest.cpp | 124 std::int32_t defval = 5678; in TEST_F() local 131 {"", defval}, in TEST_F() 134 ASSERT_EQ((std::get<OptInt32>(cfg.parseInt32(values[i].strval))).value_or(defval), in TEST_F() 140 std::int64_t defval = 5678; in TEST_F() local 148 {"", defval}, in TEST_F() 151 ASSERT_EQ((std::get<OptInt64>(cfg.parseInt64(values[i].strval))).value_or(defval), in TEST_F() 157 bool defval = true; in TEST_F() local 166 ASSERT_EQ((std::get<OptBool>(cfg.parseBool(values[i].strval))).value_or(defval), in TEST_F() 172 std::vector<std::optional<int>> defval = {}; in TEST_F() local 176 } values[] = {{"1", {1}}, {"1,2,3", {1, 2, 3}}, {"1,2,b", defval}, {"", defval}}; in TEST_F()
|
/hardware/google/pixel/vibrator/common/ |
D | HardwareBase.h | 203 bool getProperty(const char *key, T *value, const T defval); 213 bool HwCalBase::getProperty(const char *key, T *outval, const T defval) { in getProperty() argument 215 *outval = utils::getProperty(mPropertyPrefix + key, defval); in getProperty()
|
/hardware/interfaces/broadcastradio/common/utils1x/include/broadcastradio-utils-1x/ |
D | Utils.h | 66 uint64_t getId(const V1_1::ProgramSelector& sel, const V1_1::IdentifierType type, uint64_t defval);
|
/hardware/interfaces/broadcastradio/common/utils1x/ |
D | Utils.cpp | 161 uint64_t getId(const ProgramSelector& sel, const IdentifierType type, uint64_t defval) { in getId() argument 162 if (!hasId(sel, type)) return defval; in getId()
|
/hardware/interfaces/broadcastradio/common/utils2x/include/broadcastradio-utils-2x/ |
D | Utils.h | 108 uint64_t getId(const V2_0::ProgramSelector& sel, const V2_0::IdentifierType type, uint64_t defval);
|
/hardware/interfaces/broadcastradio/common/utils2x/ |
D | Utils.cpp | 171 uint64_t getId(const ProgramSelector& sel, const IdentifierType type, uint64_t defval) { in getId() argument 172 if (!hasId(sel, type)) return defval; in getId()
|