Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 499) sorted by relevance

12345678910>>...20

/device/google/redfin/vibrator/drv2624/
DHardware.h38 bool setAutocal(std::string value) override { return set(value, &mAutocal); } in setAutocal() argument
39 bool setOlLraPeriod(uint32_t value) override { return set(value, &mOlLraPeriod); } in setOlLraPeriod() argument
40 bool setActivate(bool value) override { return set(value, &mActivate); } in setActivate() argument
41 bool setDuration(uint32_t value) override { return set(value, &mDuration); } in setDuration() argument
42 bool setState(bool value) override { return set(value, &mState); } in setState() argument
44 bool setRtpInput(int8_t value) override { return set(value, &mRtpInput); } in setRtpInput() argument
45 bool setMode(std::string value) override { return set(value, &mMode); } in setMode() argument
46 bool setSequencer(std::string value) override { return set(value, &mSequencer); } in setSequencer() argument
47 bool setScale(uint8_t value) override { return set(value, &mScale); } in setScale() argument
48 bool setCtrlLoop(bool value) override { return set(value, &mCtrlLoop); } in setCtrlLoop() argument
[all …]
DVibrator.h35 virtual bool setAutocal(std::string value) = 0;
37 virtual bool setOlLraPeriod(uint32_t value) = 0;
40 virtual bool setActivate(bool value) = 0;
42 virtual bool setDuration(uint32_t value) = 0;
45 virtual bool setState(bool value) = 0;
50 virtual bool setRtpInput(int8_t value) = 0;
56 virtual bool setMode(std::string value) = 0;
59 virtual bool setSequencer(std::string value) = 0;
65 virtual bool setScale(uint8_t value) = 0;
68 virtual bool setCtrlLoop(bool value) = 0;
[all …]
/device/google/barbet/vibrator/drv2624/
DHardware.h38 bool setAutocal(std::string value) override { return set(value, &mAutocal); } in setAutocal() argument
39 bool setOlLraPeriod(uint32_t value) override { return set(value, &mOlLraPeriod); } in setOlLraPeriod() argument
40 bool setActivate(bool value) override { return set(value, &mActivate); } in setActivate() argument
41 bool setDuration(uint32_t value) override { return set(value, &mDuration); } in setDuration() argument
42 bool setState(bool value) override { return set(value, &mState); } in setState() argument
44 bool setRtpInput(int8_t value) override { return set(value, &mRtpInput); } in setRtpInput() argument
45 bool setMode(std::string value) override { return set(value, &mMode); } in setMode() argument
46 bool setSequencer(std::string value) override { return set(value, &mSequencer); } in setSequencer() argument
47 bool setScale(uint8_t value) override { return set(value, &mScale); } in setScale() argument
48 bool setCtrlLoop(bool value) override { return set(value, &mCtrlLoop); } in setCtrlLoop() argument
[all …]
DVibrator.h35 virtual bool setAutocal(std::string value) = 0;
37 virtual bool setOlLraPeriod(uint32_t value) = 0;
40 virtual bool setActivate(bool value) = 0;
42 virtual bool setDuration(uint32_t value) = 0;
45 virtual bool setState(bool value) = 0;
50 virtual bool setRtpInput(int8_t value) = 0;
56 virtual bool setMode(std::string value) = 0;
59 virtual bool setSequencer(std::string value) = 0;
65 virtual bool setScale(uint8_t value) = 0;
68 virtual bool setCtrlLoop(bool value) = 0;
[all …]
/device/google/sunfish/vibrator/drv2624/
DHardware.h43 bool setAutocal(std::string value) override { return set(value, &mAutocal); } in setAutocal() argument
44 bool setOlLraPeriod(uint32_t value) override { return set(value, &mOlLraPeriod); } in setOlLraPeriod() argument
45 bool setActivate(bool value) override { return set(value, &mActivate); } in setActivate() argument
46 bool setDuration(uint32_t value) override { return set(value, &mDuration); } in setDuration() argument
47 bool setState(bool value) override { return set(value, &mState); } in setState() argument
49 bool setRtpInput(int8_t value) override { return set(value, &mRtpInput); } in setRtpInput() argument
50 bool setMode(std::string value) override { return set(value, &mMode); } in setMode() argument
51 bool setSequencer(std::string value) override { return set(value, &mSequencer); } in setSequencer() argument
52 bool setScale(uint8_t value) override { return set(value, &mScale); } in setScale() argument
53 bool setCtrlLoop(bool value) override { return set(value, &mCtrlLoop); } in setCtrlLoop() argument
[all …]
DVibrator.h38 virtual bool setAutocal(std::string value) = 0;
40 virtual bool setOlLraPeriod(uint32_t value) = 0;
43 virtual bool setActivate(bool value) = 0;
45 virtual bool setDuration(uint32_t value) = 0;
48 virtual bool setState(bool value) = 0;
53 virtual bool setRtpInput(int8_t value) = 0;
59 virtual bool setMode(std::string value) = 0;
62 virtual bool setSequencer(std::string value) = 0;
68 virtual bool setScale(uint8_t value) = 0;
71 virtual bool setCtrlLoop(bool value) = 0;
[all …]
/device/google/cuttlefish/common/libs/utils/
Dflag_parser_test.cpp48 std::string value; in TEST() local
49 auto flag = GflagsCompatFlag("myflag", value); in TEST()
51 ASSERT_EQ(value, "a"); in TEST()
53 ASSERT_EQ(value, "b"); in TEST()
55 ASSERT_EQ(value, "c"); in TEST()
57 ASSERT_EQ(value, "d"); in TEST()
59 ASSERT_EQ(value, ""); in TEST()
63 std::string value; in TEST() local
64 auto flag = GflagsCompatFlag("my_flag", value); in TEST()
66 ASSERT_EQ(value, "a"); in TEST()
[all …]
Dflag_parser.cpp139 Result<bool> ParseBool(const std::string& value, const std::string& name) { in ParseBool() argument
140 auto result = android::base::ParseBool(value); in ParseBool()
142 "Failed to parse value \"" << value << "\" for " << name); in ParseBool()
300 auto value = getter_ ? XmlEscape((*getter_)()) : std::string{""}; in WriteGflagsCompatXml()
301 out << " <default>" << value << "</default>\n"; in WriteGflagsCompatXml()
302 out << " <current>" << value << "</current>\n"; in WriteGflagsCompatXml()
414 Flag VerbosityFlag(android::base::LogSeverity& value) { in VerbosityFlag() argument
416 .Getter([&value]() { return FromSeverity(value); }) in VerbosityFlag()
417 .Setter([&value](const FlagMatch& match) -> Result<void> { in VerbosityFlag()
418 value = CF_EXPECT(ToSeverity(match.value)); in VerbosityFlag()
[all …]
/device/linaro/dragonboard/shared/utils/pd-mapper/
Djson.c48 static int json_parse_property(struct json_value *value);
72 static int json_parse_string(struct json_value *value) in json_parse_string() argument
91 value->type = JSON_TYPE_STRING; in json_parse_string()
92 value->u.string = strdup(buf); in json_parse_string()
97 static int json_parse_number(struct json_value *value) in json_parse_number() argument
111 value->type = JSON_TYPE_NUMBER; in json_parse_number()
112 value->u.number = strtod(buf, NULL); in json_parse_number()
117 static int json_parse_keyword(struct json_value *value) in json_parse_keyword() argument
127 value->type = JSON_TYPE_TRUE; in json_parse_keyword()
131 value->type = JSON_TYPE_FALSE; in json_parse_keyword()
[all …]
/device/google/felix/vibrator/cs40l26/
DHardware.h87 bool setF0(std::string value) override { return set(value, &mF0); } in setF0() argument
88 bool setF0Offset(uint32_t value) override { return set(value, &mF0Offset); } in setF0Offset() argument
89 bool setRedc(std::string value) override { return set(value, &mRedc); } in setRedc() argument
90 bool setQ(std::string value) override { return set(value, &mQ); } in setQ() argument
91 bool getEffectCount(uint32_t *value) override { return get(value, &mEffectCount); } in getEffectCount() argument
92 bool pollVibeState(uint32_t value, int32_t timeoutMs) override { in pollVibeState() argument
93 return poll(value, &mVibeState, timeoutMs); in pollVibeState()
96 bool getOwtFreeSpace(uint32_t *value) override { return get(value, &mOwtFreeSpace); } in getOwtFreeSpace() argument
97 bool setF0CompEnable(bool value) override { return set(value, &mF0CompEnable); } in setF0CompEnable() argument
98 bool setRedcCompEnable(bool value) override { return set(value, &mRedcCompEnable); } in setRedcCompEnable() argument
[all …]
/device/google/trout/hal/vehicle/2.0/
DDefaultVehicleHalServer.cpp54 prop.value = config.initialValue; in storePropInitialValue()
57 prop.value = valueForAreaIt->second; in storePropInitialValue()
79 for (const auto& value : values) { in sendAllValuesToClient() local
80 onPropertyValueFromCar(value, update_status); in sendAllValuesToClient()
102 void DefaultVehicleHalServer::onFakeValueGenerated(const VehiclePropValue& value) { in onFakeValueGenerated() argument
104 LOG(DEBUG) << __func__ << ": " << toString(value); in onFakeValueGenerated()
105 auto updatedPropValue = getValuePool()->obtain(value); in onFakeValueGenerated()
107 updatedPropValue->timestamp = value.timestamp; in onFakeValueGenerated()
122 const auto& v = request.value; in handleGenerateFakeDataRequest()
184 int32_t keyCode = request.value.int32Values[2]; in handleGenerateFakeDataRequest()
[all …]
/device/google/redfin/vibrator/drv2624/tests/
Dmocks.h24 MOCK_METHOD1(setAutocal, bool(std::string value));
25 MOCK_METHOD1(setOlLraPeriod, bool(uint32_t value));
26 MOCK_METHOD1(setActivate, bool(bool value));
27 MOCK_METHOD1(setDuration, bool(uint32_t value));
28 MOCK_METHOD1(setState, bool(bool value));
30 MOCK_METHOD1(setRtpInput, bool(int8_t value));
31 MOCK_METHOD1(setMode, bool(std::string value));
32 MOCK_METHOD1(setSequencer, bool(std::string value));
33 MOCK_METHOD1(setScale, bool(uint8_t value));
34 MOCK_METHOD1(setCtrlLoop, bool(bool value));
[all …]
Dtest-hwapi.cpp90 void expectContent(const std::string &name, const T &value) { in expectContent() argument
91 mExpectedContent[name] << value << std::endl; in expectContent()
96 void updateContent(const std::string &name, const T &value) { in updateContent() argument
97 std::ofstream(mFileMap[name]) << value << std::endl; in updateContent()
101 void expectAndUpdateContent(const std::string &name, const T &value) { in expectAndUpdateContent() argument
102 expectContent(name, value); in expectAndUpdateContent()
103 updateContent(name, value); in expectAndUpdateContent()
265 int8_t value = std::rand(); in TEST_P() local
267 expectContent(name, +value); in TEST_P()
269 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
[all …]
/device/google/barbet/vibrator/drv2624/tests/
Dmocks.h24 MOCK_METHOD1(setAutocal, bool(std::string value));
25 MOCK_METHOD1(setOlLraPeriod, bool(uint32_t value));
26 MOCK_METHOD1(setActivate, bool(bool value));
27 MOCK_METHOD1(setDuration, bool(uint32_t value));
28 MOCK_METHOD1(setState, bool(bool value));
30 MOCK_METHOD1(setRtpInput, bool(int8_t value));
31 MOCK_METHOD1(setMode, bool(std::string value));
32 MOCK_METHOD1(setSequencer, bool(std::string value));
33 MOCK_METHOD1(setScale, bool(uint8_t value));
34 MOCK_METHOD1(setCtrlLoop, bool(bool value));
[all …]
Dtest-hwapi.cpp90 void expectContent(const std::string &name, const T &value) { in expectContent() argument
91 mExpectedContent[name] << value << std::endl; in expectContent()
96 void updateContent(const std::string &name, const T &value) { in updateContent() argument
97 std::ofstream(mFileMap[name]) << value << std::endl; in updateContent()
101 void expectAndUpdateContent(const std::string &name, const T &value) { in expectAndUpdateContent() argument
102 expectContent(name, value); in expectAndUpdateContent()
103 updateContent(name, value); in expectAndUpdateContent()
265 int8_t value = std::rand(); in TEST_P() local
267 expectContent(name, +value); in TEST_P()
269 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
[all …]
/device/google/sunfish/vibrator/drv2624/tests/
Dmocks.h24 MOCK_METHOD1(setAutocal, bool(std::string value));
25 MOCK_METHOD1(setOlLraPeriod, bool(uint32_t value));
26 MOCK_METHOD1(setActivate, bool(bool value));
27 MOCK_METHOD1(setDuration, bool(uint32_t value));
28 MOCK_METHOD1(setState, bool(bool value));
30 MOCK_METHOD1(setRtpInput, bool(int8_t value));
31 MOCK_METHOD1(setMode, bool(std::string value));
32 MOCK_METHOD1(setSequencer, bool(std::string value));
33 MOCK_METHOD1(setScale, bool(uint8_t value));
34 MOCK_METHOD1(setCtrlLoop, bool(bool value));
[all …]
Dtest-hwapi.cpp91 void expectContent(const std::string &name, const T &value) { in expectContent() argument
92 mExpectedContent[name] << value << std::endl; in expectContent()
97 void updateContent(const std::string &name, const T &value) { in updateContent() argument
98 std::ofstream(mFileMap[name]) << value << std::endl; in updateContent()
102 void expectAndUpdateContent(const std::string &name, const T &value) { in expectAndUpdateContent() argument
103 expectContent(name, value); in expectAndUpdateContent()
104 updateContent(name, value); in expectAndUpdateContent()
266 int8_t value = std::rand(); in TEST_P() local
268 expectContent(name, +value); in TEST_P()
270 EXPECT_TRUE(func(*mHwApi, value)); in TEST_P()
[all …]
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/cmsis/
Dcore_cmInstr.h129 __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) in __REV16() argument
144 __attribute__((section(".revsh_text"))) __STATIC_INLINE __ASM int32_t __REVSH(int32_t value) in __REVSH() argument
171 #define __BKPT(value) __breakpoint(value) argument
225 #define __STREXB(value, ptr) __strex(value, ptr) argument
237 #define __STREXH(value, ptr) __strex(value, ptr) argument
249 #define __STREXW(value, ptr) __strex(value, ptr) argument
300 __attribute__((section(".rrx_text"))) __STATIC_INLINE __ASM uint32_t __RRX(uint32_t value) in __RRX() argument
345 #define __STRBT(value, ptr) __strt(value, ptr) argument
355 #define __STRHT(value, ptr) __strt(value, ptr) argument
365 #define __STRT(value, ptr) __strt(value, ptr) argument
[all …]
/device/google/felix/vibrator/cs40l26/tests/
Dmocks.h28 MOCK_METHOD1(setGPIOOutput, bool(bool value));
37 MOCK_METHOD1(setF0, bool(std::string value));
38 MOCK_METHOD1(setF0Offset, bool(uint32_t value));
39 MOCK_METHOD1(setRedc, bool(std::string value));
40 MOCK_METHOD1(setQ, bool(std::string value));
41 MOCK_METHOD1(getEffectCount, bool(uint32_t *value));
42 MOCK_METHOD2(pollVibeState, bool(uint32_t value, int32_t timeoutMs));
44 MOCK_METHOD1(getOwtFreeSpace, bool(uint32_t *value));
45 MOCK_METHOD1(setF0CompEnable, bool(bool value));
46 MOCK_METHOD1(setRedcCompEnable, bool(bool value));
[all …]
/device/generic/goldfish/camera/
Dmetadata_utils.cpp66 for (const auto& [tag, value] : m) { in serializeCameraMetadataMap()
67 if (value.count > 0) { in serializeCameraMetadataMap()
70 const size_t expectedDataSize = value.count * elementSize; in serializeCameraMetadataMap()
72 if (value.data.size() == expectedDataSize) { in serializeCameraMetadataMap()
73 if (add_camera_metadata_entry(cm.get(), tag, value.data.data(), value.count)) { in serializeCameraMetadataMap()
77 value.count); in serializeCameraMetadataMap()
86 value.count, expectedDataSize, value.data.size()); in serializeCameraMetadataMap()
149 std::vector<char> value; in prettyPrintCameraMetadata() local
156 value.resize(s + 4); in prettyPrintCameraMetadata()
157 s += snprintf(&value[s], value.size() - s, "%s%u", in prettyPrintCameraMetadata()
[all …]
/device/google/cuttlefish/guest/hals/identity/libeic/
DEicOpsImpl.cc118 memcpy(buf, bytes.value().data(), numBytes); in eicOpsRandom()
157 memcpy(encryptedData, cppEncryptedData.value().data(), in eicOpsEncryptAes128Gcm()
158 cppEncryptedData.value().size()); in eicOpsEncryptAes128Gcm()
198 if (decryptedDataVec.value().size() != encryptedDataSize - 28) { in eicOpsDecryptAes128Gcm()
200 decryptedDataVec.value().size(), encryptedDataSize - 28); in eicOpsDecryptAes128Gcm()
204 if (decryptedDataVec.value().size() > 0) { in eicOpsDecryptAes128Gcm()
205 memcpy(data, decryptedDataVec.value().data(), in eicOpsDecryptAes128Gcm()
206 decryptedDataVec.value().size()); in eicOpsDecryptAes128Gcm()
221 keyPair.value()); in eicOpsCreateEcKey()
226 if (privKey.value().size() != EIC_P256_PRIV_KEY_SIZE) { in eicOpsCreateEcKey()
[all …]
/device/google/contexthub/util/common/
DJSONObject.h54 bool getInt32(int32_t *value) const;
55 bool getFloat(float *value) const;
56 bool getString(AString *value) const;
57 bool getBoolean(bool *value) const;
58 bool getObject(sp<JSONObject> *value) const;
59 bool getArray(sp<JSONArray> *value) const;
61 void setInt32(int32_t value);
62 void setFloat(float value);
63 void setString(const AString &value);
64 void setBoolean(bool value);
[all …]
DJSONObject.cpp392 bool JSONValue::getInt32(int32_t *value) const { in getInt32()
397 *value = mValue.mInt32; in getInt32()
401 bool JSONValue::getFloat(float *value) const { in getFloat()
405 *value = mValue.mInt32; in getFloat()
411 *value = mValue.mFloat; in getFloat()
422 bool JSONValue::getString(AString *value) const { in getString()
427 *value = *mValue.mString; in getString()
431 bool JSONValue::getBoolean(bool *value) const { in getBoolean()
436 *value = mValue.mBoolean; in getBoolean()
440 bool JSONValue::getObject(sp<JSONObject> *value) const { in getObject()
[all …]
/device/google/felix/vibrator/common/
Dutils.h43 static const bool value = decltype(test<T>(0))::value;
47 using Enable_If_Iterable = std::enable_if_t<Is_Iterable<T>::value == B>;
56 inline std::ostream &operator<<(std::ostream &stream, const int8_t value) {
57 return stream << +value;
60 inline std::ostream &operator<<(std::ostream &stream, const uint8_t value) {
61 return stream << +value;
65 inline auto toUnderlying(const T value) { in toUnderlying() argument
66 return static_cast<std::underlying_type_t<T>>(value); in toUnderlying()
70 inline Enable_If_Iterable<T, true> unpack(std::istream &stream, T *value) { in unpack() argument
71 for (auto &entry : *value) { in unpack()
[all …]
DHardwareBase.h49 Record(const char *func, const T &value, const std::ios *stream) in Record() argument
50 : mFunc(func), mValue(value), mStream(stream) {} in Record()
72 bool get(T *value, std::istream *stream);
74 bool set(const T &value, std::ostream *stream);
76 bool poll(const T &value, std::istream *stream, const int32_t timeout = -1);
78 void record(const char *func, const T &value, const std::ios *stream);
97 bool HwApiBase::get(T *value, std::istream *stream) { in get() argument
102 *stream >> *value; in get()
107 HWAPI_RECORD(*value, stream); in get()
112 bool HwApiBase::set(const T &value, std::ostream *stream) { in set() argument
[all …]

12345678910>>...20