/device/google/coral/vibrator/ |
D | Hardware.h | 40 Record(const char *func, const T &value, const void *stream) in Record() argument 41 : mFunc(func), mValue(value), mStream(stream) {} in Record() 54 bool setF0(uint32_t value) override { return set(value, mF0); } in setF0() argument 55 bool setRedc(uint32_t value) override { return set(value, mRedc); } in setRedc() argument 56 bool setQ(uint32_t value) override { return set(value, mQ); } in setQ() argument 57 bool setActivate(bool value) override { return set(value, mActivate); } in setActivate() argument 58 bool setDuration(uint32_t value) override { return set(value, mDuration); } in setDuration() argument 59 bool getEffectDuration(uint32_t *value) override { return get(value, mEffectDuration); } in getEffectDuration() argument 60 bool setEffectIndex(uint32_t value) override { return set(value, mEffectIndex); } in setEffectIndex() argument 61 bool setEffectQueue(std::string value) override { return set(value, mEffectQueue); } in setEffectQueue() argument [all …]
|
D | Vibrator.h | 38 virtual bool setF0(uint32_t value) = 0; 41 virtual bool setRedc(uint32_t value) = 0; 44 virtual bool setQ(uint32_t value) = 0; 47 virtual bool setActivate(bool value) = 0; 49 virtual bool setDuration(uint32_t value) = 0; 52 virtual bool getEffectDuration(uint32_t *value) = 0; 55 virtual bool setEffectIndex(uint32_t value) = 0; 58 virtual bool setEffectQueue(std::string value) = 0; 64 virtual bool setEffectScale(uint32_t value) = 0; 68 virtual bool setGlobalScale(uint32_t value) = 0; [all …]
|
D | Hardware.cpp | 56 auto value = std::getenv(env); in pathsFromEnv() local 58 if (value == nullptr) { in pathsFromEnv() 62 std::istringstream paths{value}; in pathsFromEnv() 85 static Enable_If_Iterable<T, true> unpack(std::istream &stream, T *value) { in unpack() argument 86 for (auto &entry : *value) { in unpack() 92 static Enable_If_Iterable<T, false> unpack(std::istream &stream, T *value) { in unpack() argument 93 stream >> *value; in unpack() 124 bool HwApi::get(T *value, U &stream) { in get() argument 128 stream >> *value; in get() 133 RECORD(*value, &stream); in get() [all …]
|
/device/linaro/dragonboard/qcom/pd-mapper/ |
D | json.c | 48 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 …]
|
D | assoc.c | 39 static unsigned long assoc_hash(const char *value) in assoc_hash() argument 43 const char *v = value; in assoc_hash() 81 static void _assoc_set(struct assoc *assoc, const char *key, void *value) in _assoc_set() argument 110 assoc->values[hash] = value; in _assoc_set() 118 assoc->values[hash] = value; in _assoc_set() 122 void assoc_set(struct assoc *assoc, const char *key, void *value) in assoc_set() argument 124 _assoc_set(assoc, strdup(key), value); in assoc_set() 127 const char *assoc_next(struct assoc *assoc, void **value, unsigned long *iter) in assoc_next() argument 140 if (value) in assoc_next() 141 *value = assoc->values[it]; in assoc_next()
|
D | assoc.h | 45 void assoc_set(struct assoc *assoc, const char *key, void *value); 46 const char *assoc_next(struct assoc *assoc, void **value, unsigned long *iter); 49 #define assoc_foreach(key, value, assoc, iter) \ argument 50 for ((iter) = 0, (key) = assoc_next((assoc), (value), &(iter)); \ 52 (key) = assoc_next((assoc), (value), &(iter)))
|
/device/google/coral/vibrator/tests/ |
D | mocks.h | 24 MOCK_METHOD1(setF0, bool(uint32_t value)); 25 MOCK_METHOD1(setRedc, bool(uint32_t value)); 26 MOCK_METHOD1(setQ, bool(uint32_t value)); 27 MOCK_METHOD1(setActivate, bool(bool value)); 28 MOCK_METHOD1(setDuration, bool(uint32_t value)); 29 MOCK_METHOD1(getEffectDuration, bool(uint32_t *value)); 30 MOCK_METHOD1(setEffectIndex, bool(uint32_t value)); 31 MOCK_METHOD1(setEffectQueue, bool(std::string value)); 33 MOCK_METHOD1(setEffectScale, bool(uint32_t value)); 34 MOCK_METHOD1(setGlobalScale, bool(uint32_t value)); [all …]
|
D | test-hwapi.cpp | 67 void expectContent(const std::string &name, const T &value) { in expectContent() argument 68 mExpectedContent[name] << value << std::endl; in expectContent() 73 void updateContent(const std::string &name, const T &value) { in updateContent() argument 74 std::ofstream(mFileMap[name]) << value << std::endl; in updateContent() 78 void expectAndUpdateContent(const std::string &name, const T &value) { in expectAndUpdateContent() argument 79 expectContent(name, value); in expectAndUpdateContent() 80 updateContent(name, value); in expectAndUpdateContent() 171 bool value; in TEST_P() local 173 EXPECT_FALSE(func(*mNoApi, &value)); in TEST_P() 201 uint32_t value; in TEST_P() local [all …]
|
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/cmsis/ |
D | core_cmInstr.h | 129 __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/linaro/dragonboard/qcom/qrtr/src/ |
D | hash.c | 17 unsigned int hash_string(const char *value) in hash_string() argument 19 return hash_mem(value, strlen(value)); in hash_string() 22 unsigned int hash_u32(uint32_t value) in hash_u32() argument 24 return value * 2654435761UL; in hash_u32() 27 unsigned int hash_u64(uint64_t value) in hash_u64() argument 29 return hash_u32(value & 0xffffffff) ^ hash_u32(value >> 32); in hash_u64() 32 unsigned int hash_pointer(void *value) in hash_pointer() argument 34 if (sizeof(value) == sizeof(uint64_t)) in hash_pointer() 35 return hash_u64((long)value); in hash_pointer() 36 return hash_u32((long)value); in hash_pointer()
|
D | hash.h | 7 unsigned int hash_string(const char *value); 8 unsigned int hash_u32(uint32_t value); 9 unsigned int hash_u64(uint64_t value); 10 unsigned int hash_pointer(void *value);
|
/device/generic/goldfish-opengl/android-emu/android/base/files/ |
D | Stream.cpp | 23 void Stream::putByte(uint8_t value) { in putByte() argument 24 write(&value, 1U); in putByte() 28 uint8_t value[1] = { 0 }; in getByte() local 29 read(value, 1U); in getByte() 30 return value[0]; in getByte() 33 void Stream::putBe16(uint16_t value) { in putBe16() argument 34 uint8_t b[2] = { (uint8_t)(value >> 8), (uint8_t)value }; in putBe16() 44 void Stream::putBe32(uint32_t value) { in putBe32() argument 46 (uint8_t)(value >> 24), in putBe32() 47 (uint8_t)(value >> 16), in putBe32() [all …]
|
D | Stream.h | 47 void putByte(uint8_t value); 50 void putBe16(uint16_t value); 53 void putBe32(uint32_t value); 56 void putBe64(uint64_t value); 74 void putFloat(float value);
|
/device/google/contexthub/util/common/ |
D | JSONObject.h | 54 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 …]
|
D | JSONObject.cpp | 392 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/cuttlefish/guest/hals/camera/ |
D | CameraConfiguration.cpp | 100 bool ValueToCameraOrientation(const std::string& value, in ValueToCameraOrientation() argument 102 if (value == "back") { in ValueToCameraOrientation() 105 } else if (value == "front") { in ValueToCameraOrientation() 109 ALOGE("%s: Invalid camera orientation: %s.", __FUNCTION__, value.c_str()); in ValueToCameraOrientation() 114 bool ValueToCameraHalVersion(const std::string& value, in ValueToCameraHalVersion() argument 119 temp = strtol(value.c_str(), &endptr, 10); in ValueToCameraHalVersion() 120 if (endptr != value.c_str() + value.size()) { in ValueToCameraHalVersion() 122 __FUNCTION__, value.c_str()); in ValueToCameraHalVersion() 189 bool ConfigureCameras(const Json::Value& value, in ConfigureCameras() argument 191 if (!value.isObject()) { in ConfigureCameras() [all …]
|
D | Exif.cpp | 120 const float value, in createEntry() argument 122 float values[1] = { value }; in createEntry() 149 const char* value) { in createEntry() argument 150 unsigned int length = strlen(value) + 1; in createEntry() 151 const unsigned char* data = reinterpret_cast<const unsigned char*>(value); in createEntry() 160 uint8_t value) { in createEntry() argument 161 return createEntry(exifData, ifd, tag, &value, 1, EXIF_FORMAT_BYTE); in createEntry() 183 int value) { in createEntry() argument 188 exif_set_long(entry->data, byteOrder, value); in createEntry() 198 const char* value = parameters.get(parameterKey); in getCameraParam() local [all …]
|
/device/linaro/poplar/wifi/wifi_hal/ |
D | cpp_bindings.h | 196 int put_u8(int attribute, uint8_t value) { in put_u8() argument 197 return nla_put(mMsg, attribute, sizeof(value), &value); in put_u8() 199 int put_u16(int attribute, uint16_t value) { in put_u16() argument 200 return nla_put(mMsg, attribute, sizeof(value), &value); in put_u16() 202 int put_u32(int attribute, uint32_t value) { in put_u32() argument 203 return nla_put(mMsg, attribute, sizeof(value), &value); in put_u32() 205 int put_u64(int attribute, uint64_t value) { in put_u64() argument 206 return nla_put(mMsg, attribute, sizeof(value), &value); in put_u64() 208 int put_string(int attribute, const char *value) { in put_string() argument 209 return nla_put(mMsg, attribute, strlen(value) + 1, value); in put_string() [all …]
|
/device/google/contexthub/firmware/lib/libm/ |
D | fdlibm.h | 256 double value; member 270 double value; member 285 ew_u.value = (d); \ 295 gh_u.value = (d); \ 304 gl_u.value = (d); \ 315 (d) = iw_u.value; \ 323 sh_u.value = (d); \ 325 (d) = sh_u.value; \ 333 sl_u.value = (d); \ 335 (d) = sl_u.value; \ [all …]
|
/device/generic/opengl-transport/host/libs/virglrenderer/OpenGLESDispatch/ |
D | gles31_only.entries | 36 void glProgramUniform1iv(GLuint program, GLint location, GLsizei count, const GLint *value); 37 void glProgramUniform2iv(GLuint program, GLint location, GLsizei count, const GLint *value); 38 void glProgramUniform3iv(GLuint program, GLint location, GLsizei count, const GLint *value); 39 void glProgramUniform4iv(GLuint program, GLint location, GLsizei count, const GLint *value); 40 void glProgramUniform1uiv(GLuint program, GLint location, GLsizei count, const GLuint *value); 41 void glProgramUniform2uiv(GLuint program, GLint location, GLsizei count, const GLuint *value); 42 void glProgramUniform3uiv(GLuint program, GLint location, GLsizei count, const GLuint *value); 43 void glProgramUniform4uiv(GLuint program, GLint location, GLsizei count, const GLuint *value); 44 void glProgramUniform1fv(GLuint program, GLint location, GLsizei count, const GLfloat *value); 45 void glProgramUniform2fv(GLuint program, GLint location, GLsizei count, const GLfloat *value); [all …]
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | command_parser.cpp | 69 int value = GetNextInt(); in GetNextStrDeciToHex() local 70 if (value == -1) { in GetNextStrDeciToHex() 74 ss << std::hex << std::uppercase << value; in GetNextStrDeciToHex() 105 int value = parse_int(sub, 10); in GetNextInt() local 107 return value; in GetNextInt() 121 int value = parse_int(sub, 16); in GetNextHexInt() local 122 return value; in GetNextHexInt()
|
/device/generic/goldfish-opengl/android-emu/android/base/threads/ |
D | AndroidThreadStore.h | 62 typedef void (Destructor)(void* value); 83 void set(void* value); 85 inline void set(void* value) { in set() argument 86 pthread_setspecific(mKey, value); in set() 90 inline void* swap(void* value) { in swap() argument 92 set(value); in swap()
|
D | AndroidThreadStore.cpp | 123 void setValue(int key, void* value) { in setValue() argument 131 (*array)[key] = value; in setValue() 146 void* value = (*array)[n]; in leaveCurrentThread() local 147 if (!value) { in leaveCurrentThread() 160 destroy, (int)n, value); in leaveCurrentThread() 161 (*destroy)(value); in leaveCurrentThread() 217 void ThreadStoreBase::set(void* value) { in set() argument 218 D("Entering this=%p value=%p\n", this, value); in set() 219 gGlobalState->setValue(mKey, value); in set()
|
/device/linaro/hikey/installer/hikey960/ |
D | mkdtimg | 32 def write32(output, value): argument 33 output.write(chr(value & 255)) ; value=value // 256 34 output.write(chr(value & 255)) ; value=value // 256 35 output.write(chr(value & 255)) ; value=value // 256 36 output.write(chr(value & 255))
|
/device/google/cuttlefish/host/frontend/gcastv2/https/ |
D | HTTPServer.cpp | 181 std::string value; in handleSingleRequest() local 182 if (request.getHeaderField("Connection", &value) && value == "close") { in handleSingleRequest() 255 std::string value; in handleWebSocketRequest() local 256 if (!request.getHeaderField("Connection", &value) in handleWebSocketRequest() 257 || (value != "Upgrade" && value != "keep-alive, Upgrade")) { in handleWebSocketRequest() 261 if (!request.getHeaderField("Upgrade", &value) || value != "websocket") { in handleWebSocketRequest() 265 if (!request.getHeaderField("Sec-WebSocket-Version", &value)) { in handleWebSocketRequest() 270 long version = strtol(value.c_str(), &end, 10); in handleWebSocketRequest() 272 if (end == value.c_str() || *end != '\0' || version < 13) { in handleWebSocketRequest() 276 if (!request.getHeaderField("Sec-WebSocket-Key", &value)) { in handleWebSocketRequest() [all …]
|