/hardware/qcom/camera/msm8998/QCamera2/stack/common/ |
D | cam_semaphore.h | 53 static inline void cam_sem_init(cam_semaphore_t *s, int n) in cam_sem_init() argument 55 pthread_mutex_init(&(s->mutex), NULL); in cam_sem_init() 56 PTHREAD_COND_INIT(&(s->cond)); in cam_sem_init() 57 s->val = n; in cam_sem_init() 60 static inline void cam_sem_post(cam_semaphore_t *s) in cam_sem_post() argument 62 pthread_mutex_lock(&(s->mutex)); in cam_sem_post() 63 s->val++; in cam_sem_post() 64 pthread_cond_signal(&(s->cond)); in cam_sem_post() 65 pthread_mutex_unlock(&(s->mutex)); in cam_sem_post() 68 static inline int cam_sem_wait(cam_semaphore_t *s) in cam_sem_wait() argument [all …]
|
/hardware/interfaces/tests/foo/1.0/default/lib/ |
D | FooHelper.cpp | 6 return to_string(M.s); in to_string() 10 return to_string(M.s); in to_string() 13 std::string to_string(const hidl_string &s) { in to_string() argument 14 return std::string("'") + s.c_str() + "'"; in to_string() 18 std::string s; in QuuxToString() local 20 s = "Quux(first='"; in QuuxToString() 21 s += val.first.c_str(); in QuuxToString() 22 s += "', last='"; in QuuxToString() 23 s += val.last.c_str(); in QuuxToString() 24 s += "')"; in QuuxToString() [all …]
|
/hardware/qcom/display/msm8960/liboverlay/ |
D | mdpWrapper.h | 83 void dump(const char* const s, const msmfb_overlay_data& ov); 84 void dump(const char* const s, const msmfb_data& ov); 85 void dump(const char* const s, const mdp_overlay& ov); 86 void dump(const char* const s, const msmfb_overlay_3d& ov); 87 void dump(const char* const s, const uint32_t u[], uint32_t cnt); 88 void dump(const char* const s, const msmfb_img& ov); 89 void dump(const char* const s, const mdp_rect& ov); 92 void dump(const char* const s, const msm_rotator_img_info& rot); 93 void dump(const char* const s, const msm_rotator_data_info& rot); 96 void dump(const char* const s, const fb_fix_screeninfo& finfo); [all …]
|
/hardware/qcom/display/msm8226/liboverlay/ |
D | mdpWrapper.h | 103 void dump(const char* const s, const msmfb_overlay_data& ov); 104 void dump(const char* const s, const msmfb_data& ov); 105 void dump(const char* const s, const mdp_overlay& ov); 106 void dump(const char* const s, const msmfb_overlay_3d& ov); 107 void dump(const char* const s, const uint32_t u[], uint32_t cnt); 108 void dump(const char* const s, const msmfb_img& ov); 109 void dump(const char* const s, const mdp_rect& ov); 112 void dump(const char* const s, const msm_rotator_img_info& rot); 113 void dump(const char* const s, const msm_rotator_data_info& rot); 116 void dump(const char* const s, const fb_fix_screeninfo& finfo); [all …]
|
/hardware/google/av/codec2/hidl/1.0/utils/ |
D | types.cpp | 62 void copyVector(DstVector* d, const SrcVector& s) { in copyVector() argument 65 static_assert(sizeof(Common) == sizeof(decltype(s[0])), in copyVector() 67 d->resize(s.size()); in copyVector() 69 reinterpret_cast<const Common*>(&s[0]), in copyVector() 70 reinterpret_cast<const Common*>(&s[0] + s.size()), in copyVector() 75 void objcpy(ParamField *d, const C2ParamField &s) { in objcpy() argument 76 d->index = static_cast<ParamIndex>(_C2ParamInspector::GetIndex(s)); in objcpy() 77 d->fieldId.offset = static_cast<uint32_t>(_C2ParamInspector::GetOffset(s)); in objcpy() 78 d->fieldId.size = static_cast<uint32_t>(_C2ParamInspector::GetSize(s)); in objcpy() 86 C2ParamFieldBuilder(const ParamField& s) : C2ParamField( in C2ParamFieldBuilder() [all …]
|
/hardware/qcom/display/msm8084/liboverlay/ |
D | mdpWrapper.h | 106 void dump(const char* const s, const msmfb_overlay_data& ov); 107 void dump(const char* const s, const msmfb_data& ov); 108 void dump(const char* const s, const mdp_overlay& ov); 109 void dump(const char* const s, const msmfb_overlay_3d& ov); 110 void dump(const char* const s, const uint32_t u[], uint32_t cnt); 111 void dump(const char* const s, const msmfb_img& ov); 112 void dump(const char* const s, const mdp_rect& ov); 115 void dump(const char* const s, const msm_rotator_img_info& rot); 116 void dump(const char* const s, const msm_rotator_data_info& rot); 119 void dump(const char* const s, const fb_fix_screeninfo& finfo); [all …]
|
/hardware/libhardware/modules/camera/3_0/ |
D | Stream.cpp | 35 Stream::Stream(int id, camera3_stream_t *s) in Stream() argument 38 mStream(s), in Stream() 39 mType(s->stream_type), in Stream() 40 mWidth(s->width), in Stream() 41 mHeight(s->height), in Stream() 42 mFormat(s->format), in Stream() 152 bool Stream::isValidReuseStream(int id, camera3_stream_t *s) in isValidReuseStream() argument 159 if (s != mStream) { in isValidReuseStream() 161 __func__, mId, s, mStream); in isValidReuseStream() 164 if (s->stream_type != mType) { in isValidReuseStream() [all …]
|
/hardware/qcom/display/msm8994/liboverlay/ |
D | mdpWrapper.h | 106 void dump(const char* const s, const msmfb_overlay_data& ov); 107 void dump(const char* const s, const msmfb_data& ov); 108 void dump(const char* const s, const mdp_overlay& ov); 109 void dump(const char* const s, const uint32_t u[], uint32_t cnt); 110 void dump(const char* const s, const msmfb_img& ov); 111 void dump(const char* const s, const mdp_rect& ov); 114 void dump(const char* const s, const msm_rotator_img_info& rot); 115 void dump(const char* const s, const msm_rotator_data_info& rot); 118 void dump(const char* const s, const fb_fix_screeninfo& finfo); 119 void dump(const char* const s, const fb_var_screeninfo& vinfo); [all …]
|
/hardware/libhardware/modules/usbcamera/ |
D | Stream.cpp | 36 Stream::Stream(int id, camera3_stream_t *s) in Stream() argument 39 mStream(s){ in Stream() 129 bool Stream::isValidReuseStream(int id, camera3_stream_t *s) { in isValidReuseStream() argument 135 if (s != mStream) { in isValidReuseStream() 137 __func__, mId, s, mStream); in isValidReuseStream() 140 if (s->stream_type != mStream->stream_type) { in isValidReuseStream() 142 "expect %s(%d)", __func__, mId, typeToString(s->stream_type), in isValidReuseStream() 143 s->stream_type, typeToString(mStream->stream_type), mStream->stream_type); in isValidReuseStream() 146 if (s->format != mStream->format) { in isValidReuseStream() 148 "expect %s(%d)", __func__, mId, formatToString(s->format), in isValidReuseStream() [all …]
|
/hardware/qcom/wlan/qcwcn/wifi_hal/wifi_hal_ctrl/ |
D | wifi_hal_ctrl.c | 63 ctrl->s = socket(PF_UNIX, SOCK_DGRAM, 0); in wifihal_ctrl_open2() 64 if (ctrl->s < 0) { in wifihal_ctrl_open2() 77 close(ctrl->s); in wifihal_ctrl_open2() 91 if (bind(ctrl->s, (struct sockaddr *) &ctrl->local, in wifihal_ctrl_open2() 103 close(ctrl->s); in wifihal_ctrl_open2() 117 close(ctrl->s); in wifihal_ctrl_open2() 136 close(ctrl->s); in wifihal_ctrl_open2() 140 if (connect(ctrl->s, (struct sockaddr *) &ctrl->dest, in wifihal_ctrl_open2() 142 close(ctrl->s); in wifihal_ctrl_open2() 151 flags = fcntl(ctrl->s, F_GETFL); in wifihal_ctrl_open2() [all …]
|
/hardware/interfaces/identity/support/tests/ |
D | cppbor_test.cpp | 40 stringstream s; in hexDump() local 42 s << setfill('0') << setw(2) << hex << (static_cast<unsigned>(c) & 0xff); in hexDump() 44 return s.str(); in hexDump() 71 EXPECT_EQ("\x00"s, Uint(0u).toString()); in TEST() 72 EXPECT_EQ("\x01"s, Uint(1u).toString()); in TEST() 73 EXPECT_EQ("\x0a"s, Uint(10u).toString()); in TEST() 74 EXPECT_EQ("\x17"s, Uint(23u).toString()); in TEST() 75 EXPECT_EQ("\x18\x18"s, Uint(24u).toString()); in TEST() 76 EXPECT_EQ("\x18\x19"s, Uint(25u).toString()); in TEST() 77 EXPECT_EQ("\x18\x64"s, Uint(100u).toString()); in TEST() [all …]
|
/hardware/interfaces/sensors/1.0/vts/functional/ |
D | VtsHalSensorsV1_0TargetTest.cpp | 154 const auto& s = list[i]; in TEST_P() local 158 << s.sensorHandle << std::dec << " type=" << static_cast<int>(s.type) in TEST_P() 159 << " name=" << s.name); in TEST_P() 162 EXPECT_FALSE(s.typeAsString.empty()); in TEST_P() 165 EXPECT_NO_FATAL_FAILURE(assertTypeMatchStringType(s.type, s.typeAsString)); in TEST_P() 168 EXPECT_FALSE(s.name.empty()); in TEST_P() 169 EXPECT_FALSE(s.vendor.empty()); in TEST_P() 172 EXPECT_LE(0, s.power); in TEST_P() 173 EXPECT_LT(0, s.maxRange); in TEST_P() 176 EXPECT_FALSE(s.type == SensorType::ADDITIONAL_INFO || s.type == SensorType::META_DATA); in TEST_P() [all …]
|
/hardware/interfaces/weaver/1.0/vts/functional/ |
D | VtsHalWeaverV1_0TargetTest.cpp | 56 auto ret = weaver->getConfig([&](WeaverStatus s, WeaverConfig c) { in TEST_P() argument 58 status = s; in TEST_P() 79 auto ret = weaver->getConfig([&](WeaverStatus s, WeaverConfig c) { in TEST_P() argument 81 status = s; in TEST_P() 89 ret = weaver->getConfig([&](WeaverStatus s, WeaverConfig c) { in TEST_P() argument 91 status = s; in TEST_P() 107 const auto configRet = weaver->getConfig([&](WeaverStatus s, WeaverConfig c) { in TEST_P() argument 108 status = s; in TEST_P() 134 const auto readRet = weaver->read(slotId, KEY, [&](WeaverReadStatus s, WeaverReadResponse r) { in TEST_P() argument 136 status = s; in TEST_P() [all …]
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/proto/ |
D | ethernet.h | 159 #define eacopy(s, d) \ argument 161 ((uint16 *)(d))[0] = ((const uint16 *)(s))[0]; \ 162 ((uint16 *)(d))[1] = ((const uint16 *)(s))[1]; \ 163 ((uint16 *)(d))[2] = ((const uint16 *)(s))[2]; \ 166 #define ether_copy(s, d) eacopy(s, d) argument 169 #define ether_rcopy(s, d) \ argument 171 ((uint16 *)(d))[2] = ((uint16 *)(s))[2]; \ 172 ((uint16 *)(d))[1] = ((uint16 *)(s))[1]; \ 173 ((uint16 *)(d))[0] = ((uint16 *)(s))[0]; \ 200 #define ETHER_MOVE_HDR(d, s) \ argument [all …]
|
/hardware/st/nfc/1.0/include/ |
D | halcore.h | 50 #define LOG(s) \ argument 54 __android_log_print(ANDROID_LOG_DEBUG, "NfcHalCore", s); \ 57 #define LOGE(s) \ argument 60 __android_log_print(ANDROID_LOG_ERROR, "NfcHalCore", s); \ 63 #define LOGV(s, ...) \ argument 67 __android_log_print(ANDROID_LOG_DEBUG, "NfcHalCore", s, __VA_ARGS__); \ 70 #define LOGVE(s, ...) \ argument 73 __android_log_print(ANDROID_LOG_ERROR, "NfcHalCore", s, __VA_ARGS__); \
|
/hardware/qcom/sm8150/gps/android/2.0/ |
D | GnssDebug.cpp | 145 V1_0::IGnssDebug::SatelliteData s = { }; in getDebugData() local 149 memset(&s, 0, sizeof(s)); in getDebugData() 150 s.svid = reports.mSatelliteInfo[i].svid; in getDebugData() 152 reports.mSatelliteInfo[i].constellation, s.constellation); in getDebugData() 154 reports.mSatelliteInfo[i].mEphemerisType, s.ephemerisType); in getDebugData() 156 reports.mSatelliteInfo[i].mEphemerisSource, s.ephemerisSource); in getDebugData() 158 reports.mSatelliteInfo[i].mEphemerisHealth, s.ephemerisHealth); in getDebugData() 160 s.ephemerisAgeSeconds = in getDebugData() 162 s.serverPredictionIsAvailable = in getDebugData() 164 s.serverPredictionAgeSeconds = in getDebugData() [all …]
|
/hardware/interfaces/memtrack/1.0/vts/functional/ |
D | VtsHalMemtrackV1_0TargetTest.cpp | 68 bool validStatus(MemtrackStatus s) { in validStatus() argument 72 return std::find(statusVec.begin(), statusVec.end(), s) != statusVec.end(); in validStatus() 75 auto generate_cb(MemtrackStatus *s, hidl_vec<MemtrackRecord> *v) { in generate_cb() argument 77 *s = status; in generate_cb() 85 MemtrackStatus s; in TEST_P() local 87 auto cb = generate_cb(&s, &v); in TEST_P() 93 ASSERT_TRUE(validStatus(s)); in TEST_P() 100 MemtrackStatus s; in TEST_P() local 102 auto cb = generate_cb(&s, &v); in TEST_P() 105 ASSERT_TRUE(validStatus(s)); in TEST_P() [all …]
|
/hardware/qcom/gps/msm8998/android/ |
D | GnssDebug.cpp | 108 SatelliteData s = { }; in getDebugData() local 112 memset(&s, 0, sizeof(s)); in getDebugData() 113 s.svid = reports.mSatelliteInfo[i].svid; in getDebugData() 115 reports.mSatelliteInfo[i].constellation, s.constellation); in getDebugData() 117 reports.mSatelliteInfo[i].mEphemerisType, s.ephemerisType); in getDebugData() 119 reports.mSatelliteInfo[i].mEphemerisSource, s.ephemerisSource); in getDebugData() 121 reports.mSatelliteInfo[i].mEphemerisHealth, s.ephemerisHealth); in getDebugData() 123 s.ephemerisAgeSeconds = in getDebugData() 125 s.serverPredictionIsAvailable = in getDebugData() 127 s.serverPredictionAgeSeconds = in getDebugData() [all …]
|
/hardware/qcom/gps/msm8909w_3100/android/ |
D | GnssDebug.cpp | 108 SatelliteData s = { }; in getDebugData() local 112 memset(&s, 0, sizeof(s)); in getDebugData() 113 s.svid = reports.mSatelliteInfo[i].svid; in getDebugData() 115 reports.mSatelliteInfo[i].constellation, s.constellation); in getDebugData() 117 reports.mSatelliteInfo[i].mEphemerisType, s.ephemerisType); in getDebugData() 119 reports.mSatelliteInfo[i].mEphemerisSource, s.ephemerisSource); in getDebugData() 121 reports.mSatelliteInfo[i].mEphemerisHealth, s.ephemerisHealth); in getDebugData() 123 s.ephemerisAgeSeconds = in getDebugData() 125 s.serverPredictionIsAvailable = in getDebugData() 127 s.serverPredictionAgeSeconds = in getDebugData() [all …]
|
/hardware/qcom/sdm845/gps/msm8998/android/ |
D | GnssDebug.cpp | 108 SatelliteData s = { }; in getDebugData() local 112 memset(&s, 0, sizeof(s)); in getDebugData() 113 s.svid = reports.mSatelliteInfo[i].svid; in getDebugData() 115 reports.mSatelliteInfo[i].constellation, s.constellation); in getDebugData() 117 reports.mSatelliteInfo[i].mEphemerisType, s.ephemerisType); in getDebugData() 119 reports.mSatelliteInfo[i].mEphemerisSource, s.ephemerisSource); in getDebugData() 121 reports.mSatelliteInfo[i].mEphemerisHealth, s.ephemerisHealth); in getDebugData() 123 s.ephemerisAgeSeconds = in getDebugData() 125 s.serverPredictionIsAvailable = in getDebugData() 127 s.serverPredictionAgeSeconds = in getDebugData() [all …]
|
/hardware/qcom/sm8150/gps/gnss/ |
D | XtraSystemStatusObserver.cpp | 127 string s = ss.str(); in updateLockStatus() local 128 return ( LocIpc::send(*mSender, (const uint8_t*)s.data(), s.size()) ); in updateLockStatus() 159 string s = ss.str(); in updateConnections() local 160 return ( LocIpc::send(*mSender, (const uint8_t*)s.data(), s.size()) ); in updateConnections() 173 string s = ss.str(); in updateTac() local 174 return ( LocIpc::send(*mSender, (const uint8_t*)s.data(), s.size()) ); in updateTac() 187 string s = ss.str(); in updateMccMnc() local 188 return ( LocIpc::send(*mSender, (const uint8_t*)s.data(), s.size()) ); in updateMccMnc() 201 string s = ss.str(); in updateXtraThrottle() local 202 return ( LocIpc::send(*mSender, (const uint8_t*)s.data(), s.size()) ); in updateXtraThrottle() [all …]
|
/hardware/st/secure_element2/secure_element/1.0/esehal/src/ |
D | checksum.c | 30 lrc8(const void *s, size_t n) in lrc8() argument 32 const uint8_t *p = s; in lrc8() 42 crc_ccitt(uint16_t crc, const void *s, size_t n) in crc_ccitt() argument 87 const uint8_t *p = s; in crc_ccitt() 89 if (s) in crc_ccitt()
|
/hardware/interfaces/power/stats/1.0/vts/functional/ |
D | VtsHalPowerStatsV1_0TargetTest.cpp | 341 Status s; in TEST_P() local 342 auto cb = [&rails, &s](hidl_vec<RailInfo> rail_subsys, Status status) { in TEST_P() 344 s = status; in TEST_P() 348 if (s == Status::SUCCESS) { in TEST_P() 356 auto cb = [&rails, &s](hidl_vec<RailInfo> rail_subsys, Status status) { in TEST_P() 358 s = status; in TEST_P() 362 ASSERT_EQ(s, Status::SUCCESS); in TEST_P() 380 } else if (s == Status::FILESYSTEM_ERROR) { in TEST_P() 383 } else if (s == Status::NOT_SUPPORTED) { in TEST_P() 386 } else if (s == Status::INVALID_INPUT) { in TEST_P() [all …]
|
/hardware/qcom/sdm845/gps/sdm845/android/ |
D | GnssDebug.cpp | 138 SatelliteData s = { }; in getDebugData() local 142 memset(&s, 0, sizeof(s)); in getDebugData() 143 s.svid = reports.mSatelliteInfo[i].svid; in getDebugData() 145 reports.mSatelliteInfo[i].constellation, s.constellation); in getDebugData() 147 reports.mSatelliteInfo[i].mEphemerisType, s.ephemerisType); in getDebugData() 149 reports.mSatelliteInfo[i].mEphemerisSource, s.ephemerisSource); in getDebugData() 151 reports.mSatelliteInfo[i].mEphemerisHealth, s.ephemerisHealth); in getDebugData() 153 s.ephemerisAgeSeconds = in getDebugData() 155 s.serverPredictionIsAvailable = in getDebugData() 157 s.serverPredictionAgeSeconds = in getDebugData() [all …]
|
/hardware/qcom/sm8150/gps/android/1.0/ |
D | GnssDebug.cpp | 138 SatelliteData s = { }; in getDebugData() local 142 memset(&s, 0, sizeof(s)); in getDebugData() 143 s.svid = reports.mSatelliteInfo[i].svid; in getDebugData() 145 reports.mSatelliteInfo[i].constellation, s.constellation); in getDebugData() 147 reports.mSatelliteInfo[i].mEphemerisType, s.ephemerisType); in getDebugData() 149 reports.mSatelliteInfo[i].mEphemerisSource, s.ephemerisSource); in getDebugData() 151 reports.mSatelliteInfo[i].mEphemerisHealth, s.ephemerisHealth); in getDebugData() 153 s.ephemerisAgeSeconds = in getDebugData() 155 s.serverPredictionIsAvailable = in getDebugData() 157 s.serverPredictionAgeSeconds = in getDebugData() [all …]
|