/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/ |
D | TriStateTest.cpp | 45 tri_uint32_t b; in TEST() local 46 b = a; in TEST() 47 EXPECT_FALSE(b.isSet()); in TEST() 52 b = a; in TEST() 53 EXPECT_TRUE(b.isSet()); in TEST() 57 EXPECT_TRUE(b.isSet()); in TEST() 59 tri_uint32_t c(b); in TEST() 80 tri_uint32_t b; in TEST() local 81 EXPECT_EQ(static_cast<uint32_t>(100), (++b).get(100)); in TEST() 82 EXPECT_EQ(static_cast<uint32_t>(101), (b++).get(101)); in TEST() [all …]
|
/hardware/qcom/display/msm8998/sdm/libs/utils/ |
D | utils.cpp | 41 float gcd(float a, float b) { in gcd() argument 42 if (a < b) { in gcd() 43 std::swap(a, b); in gcd() 46 while (b != 0) { in gcd() 47 float tmp = b; in gcd() 48 b = fmodf(a, b); in gcd() 55 float lcm(float a, float b) { in lcm() argument 56 return (a * b) / gcd(a, b); in lcm()
|
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/ |
D | HidReport.cpp | 162 int64_t b = mLogicalMax; in getLogicalRange() local 164 if (a > b) { in getLogicalRange() 167 b = b & ((static_cast<int64_t>(1) << getSize()) - 1); in getLogicalRange() 168 if (a > b) { in getLogicalRange() 173 return {a, b}; in getLogicalRange() 183 int64_t b = mPhysicalMax.get(0); in getPhysicalRange() local 185 if (a > b) { in getPhysicalRange() 187 b = b & ((static_cast<int64_t>(1) << getSize()) - 1); in getPhysicalRange() 188 if (a > b) { in getPhysicalRange() 192 return {a, b}; in getPhysicalRange()
|
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/h264/parser/ |
D | h264parse_math.c | 23 unsigned long ldiv_mod_u(register unsigned long a, register unsigned long b, unsigned long * mod) in ldiv_mod_u() argument 25 register unsigned long div = b; in ldiv_mod_u() 35 if (a < b) in ldiv_mod_u() 62 unsigned ldiv_u(register unsigned a, register unsigned b) in ldiv_u() argument 64 register unsigned div = b << 16; in ldiv_u()
|
/hardware/libhardware/include/hardware/ |
D | keymaster_defs.h | 541 #define KEYMASTER_SIMPLE_COMPARE(a, b) (a < b) ? -1 : ((a > b) ? 1 : 0) argument 542 inline int keymaster_param_compare(const keymaster_key_param_t* a, const keymaster_key_param_t* b) { in keymaster_param_compare() argument 543 int retval = KEYMASTER_SIMPLE_COMPARE((uint32_t)a->tag, (uint32_t)b->tag); in keymaster_param_compare() 553 return KEYMASTER_SIMPLE_COMPARE(a->enumerated, b->enumerated); in keymaster_param_compare() 556 return KEYMASTER_SIMPLE_COMPARE(a->integer, b->integer); in keymaster_param_compare() 559 return KEYMASTER_SIMPLE_COMPARE(a->long_integer, b->long_integer); in keymaster_param_compare() 561 return KEYMASTER_SIMPLE_COMPARE(a->date_time, b->date_time); in keymaster_param_compare() 565 if (a->blob.data_length != 0 && b->blob.data_length == 0) in keymaster_param_compare() 567 if (a->blob.data_length == 0 && b->blob.data_length == 0) in keymaster_param_compare() 569 if (a->blob.data_length == 0 && b->blob.data_length > 0) in keymaster_param_compare() [all …]
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc-50001/libloc_api-rpc-stub/src/ |
D | loc_apicb_appinit.c | 34 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 35 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/msm8909/loc_api/libloc_api-rpc-50001/libloc_api-rpc-stub/src/ |
D | loc_apicb_appinit.c | 34 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 35 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-stub/src/ |
D | loc_apicb_appinit.c | 34 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 35 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc-50001/libloc_api-rpc-stub/src/ |
D | loc_apicb_appinit.c | 34 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 35 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/msm8996/loc_api/libloc_api-rpc-50001/libloc_api-rpc-stub/src/ |
D | loc_apicb_appinit.c | 34 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 35 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc/src/ |
D | loc_apicb_appinit.c | 25 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 26 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/loc_api/libloc_api-rpc/src/ |
D | loc_apicb_appinit.c | 25 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 26 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc/src/ |
D | loc_apicb_appinit.c | 25 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 26 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/msm8084/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_apicb_appinit.c | 47 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 48 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_apicb_appinit.c | 47 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 48 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/msm8909/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_apicb_appinit.c | 47 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 48 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/msm8996/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_apicb_appinit.c | 47 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 48 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/gps/msm8994/loc_api/libloc_api-rpc-50001/libloc_api-rpc-glue/src/ |
D | loc_apicb_appinit.c | 47 #define RPC_FUNC_VERSION_BASE(a,b) a ## b argument 48 #define RPC_CB_FUNC_VERS(a,b) RPC_FUNC_VERSION_BASE(a,b) argument
|
/hardware/qcom/display/msm8998/libcopybit/ |
D | copybit.cpp | 99 static inline int min(int a, int b) { in min() argument 100 return (a<b) ? a : b; in min() 104 static inline int max(int a, int b) { in max() argument 105 return (a>b) ? a : b; in max() 109 static inline void MULDIV(uint32_t *a, uint32_t *b, int mul, int div) { in MULDIV() argument 112 *b = (mul * *b) / div; in MULDIV() 123 out->b = min(lhs->b, rhs->b); in intersect() 127 return ((rect->b > rect->t) && (rect->r > rect->l)) ; in validateCopybitRect() 186 e->dst_rect.h = clip.b - clip.t; in set_rects() 192 e->src_rect.w = (clip.b - clip.t); in set_rects() [all …]
|
/hardware/qcom/display/msm8909/libcopybit/ |
D | copybit.cpp | 99 static inline int min(int a, int b) { in min() argument 100 return (a<b) ? a : b; in min() 104 static inline int max(int a, int b) { in max() argument 105 return (a>b) ? a : b; in max() 109 static inline void MULDIV(uint32_t *a, uint32_t *b, int mul, int div) { in MULDIV() argument 112 *b = (mul * *b) / div; in MULDIV() 123 out->b = min(lhs->b, rhs->b); in intersect() 127 return ((rect->b > rect->t) && (rect->r > rect->l)) ; in validateCopybitRect() 181 e->dst_rect.h = clip.b - clip.t; in set_rects() 187 e->src_rect.w = (clip.b - clip.t); in set_rects() [all …]
|
/hardware/qcom/display/msm8996/libcopybit/ |
D | copybit.cpp | 99 static inline int min(int a, int b) { in min() argument 100 return (a<b) ? a : b; in min() 104 static inline int max(int a, int b) { in max() argument 105 return (a>b) ? a : b; in max() 109 static inline void MULDIV(uint32_t *a, uint32_t *b, int mul, int div) { in MULDIV() argument 112 *b = (mul * *b) / div; in MULDIV() 123 out->b = min(lhs->b, rhs->b); in intersect() 127 return ((rect->b > rect->t) && (rect->r > rect->l)) ; in validateCopybitRect() 184 e->dst_rect.h = clip.b - clip.t; in set_rects() 190 e->src_rect.w = (clip.b - clip.t); in set_rects() [all …]
|
/hardware/qcom/display/msm8960/libcopybit/ |
D | copybit.cpp | 95 static inline int min(int a, int b) { in min() argument 96 return (a<b) ? a : b; in min() 100 static inline int max(int a, int b) { in max() argument 101 return (a>b) ? a : b; in max() 105 static inline void MULDIV(uint32_t *a, uint32_t *b, int mul, int div) { in MULDIV() argument 108 *b = (mul * *b) / div; in MULDIV() 119 out->b = min(lhs->b, rhs->b); in intersect() 168 e->dst_rect.h = clip.b - clip.t; in set_rects() 174 e->src_rect.w = (clip.b - clip.t); in set_rects() 176 W = dst->b - dst->t; in set_rects() [all …]
|
/hardware/qcom/display/msm8226/libcopybit/ |
D | copybit.cpp | 97 static inline int min(int a, int b) { in min() argument 98 return (a<b) ? a : b; in min() 102 static inline int max(int a, int b) { in max() argument 103 return (a>b) ? a : b; in max() 107 static inline void MULDIV(uint32_t *a, uint32_t *b, int mul, int div) { in MULDIV() argument 110 *b = (mul * *b) / div; in MULDIV() 121 out->b = min(lhs->b, rhs->b); in intersect() 172 e->dst_rect.h = clip.b - clip.t; in set_rects() 178 e->src_rect.w = (clip.b - clip.t); in set_rects() 180 W = dst->b - dst->t; in set_rects() [all …]
|
/hardware/qcom/display/msm8994/libcopybit/ |
D | copybit.cpp | 98 static inline int min(int a, int b) { in min() argument 99 return (a<b) ? a : b; in min() 103 static inline int max(int a, int b) { in max() argument 104 return (a>b) ? a : b; in max() 108 static inline void MULDIV(uint32_t *a, uint32_t *b, int mul, int div) { in MULDIV() argument 111 *b = (mul * *b) / div; in MULDIV() 122 out->b = min(lhs->b, rhs->b); in intersect() 175 e->dst_rect.h = clip.b - clip.t; in set_rects() 181 e->src_rect.w = (clip.b - clip.t); in set_rects() 183 W = dst->b - dst->t; in set_rects() [all …]
|
/hardware/qcom/display/msm8084/libcopybit/ |
D | copybit.cpp | 97 static inline int min(int a, int b) { in min() argument 98 return (a<b) ? a : b; in min() 102 static inline int max(int a, int b) { in max() argument 103 return (a>b) ? a : b; in max() 107 static inline void MULDIV(uint32_t *a, uint32_t *b, int mul, int div) { in MULDIV() argument 110 *b = (mul * *b) / div; in MULDIV() 121 out->b = min(lhs->b, rhs->b); in intersect() 172 e->dst_rect.h = clip.b - clip.t; in set_rects() 178 e->src_rect.w = (clip.b - clip.t); in set_rects() 180 W = dst->b - dst->t; in set_rects() [all …]
|