/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/ |
D | TriStateTest.cpp | 30 tri_uint32_t a; in TEST() local 31 EXPECT_FALSE(a.isSet()); in TEST() 33 a += 1; in TEST() 34 EXPECT_FALSE(a.isSet()); in TEST() 36 a -= 1; in TEST() 37 EXPECT_FALSE(a.isSet()); in TEST() 39 a *= 1; in TEST() 40 EXPECT_FALSE(a.isSet()); in TEST() 42 a /= 1; in TEST() 43 EXPECT_FALSE(a.isSet()); in TEST() [all …]
|
D | TestHidSensorSpec.h | 835 #define HID_USAGE_PAGE(a) 0x05,a argument 836 #define HID_USAGE(a) 0x09,a argument 837 #define HID_USAGE16(a,b) 0x0A,a,b argument 838 #define HID_USAGE_SENSOR_DATA(a,b) a|b //This or-s the mod into usage argument 839 #define HID_COLLECTION(a) 0xA1,a argument 840 #define HID_REPORT_ID(a) 0x85,a argument 841 #define HID_REPORT_SIZE(a) 0x75,a argument 842 #define HID_REPORT_COUNT(a) 0x95,a argument 843 #define HID_USAGE_MIN_8(a) 0x19,a argument 844 #define HID_USAGE_MIN_16(a,b) 0x1A,a,b argument [all …]
|
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | Utils.h | 22 #define REF_BASE(a) ::android::RefBase argument 23 #define SP(a) sp<a> argument 24 #define WP(a) wp<a> argument 26 #define PROMOTE(a) (a).promote() argument 29 #define REF_BASE(a) std::enable_shared_from_this<a> argument 30 #define SP(a) std::shared_ptr<a> argument 31 #define WP(a) std::weak_ptr<a> argument 33 #define PROMOTE(a) (a).lock() argument
|
/hardware/interfaces/media/bufferpool/1.0/ |
D | README.md | 4 Without a buffer pool, a process calls a synchronous method of the other 5 process and waits until the call finishes transferring a buffer. This adds 6 unwanted latency due to context switching. With help from a buffer pool, a 9 Passing an interface and a handle adds extra latency also. To mitigate the 11 rogue clients, FMQ is used to communicate between a buffer pool and a client 12 process. FMQ is used to send buffer ownership change status from a client 13 process to a buffer pool. Except FMQ, a buffer pool does not use any shared 18 FMQ is used to send buffer ownership status changes to a buffer pool from a 19 buffer pool client. A buffer pool synchronizes FMQ messages when there is a 24 FMQ messages are sent when a buffer is acquired or released. Also, FMQ messages [all …]
|
D | IAccessor.hal | 6 * You may obtain a copy of the License at 27 * Registers a new client and creates IConnection to the buffer pool for 32 * FMQ is used to send buffer ownership status changes to a buffer pool 33 * from a buffer pool client. A buffer pool synchronizes FMQ messages when 34 * there is a hidl request from the clients. Every client has its own 38 * FMQ messages are sent when a buffer is acquired or released. Also, FMQ 39 * messages are sent when a buffer is transferred from a client to another 40 * client. FMQ has its own ID from a buffer pool. A client is specified 43 * To transfer a buffer, a sender must send an FMQ message. The message 44 * must include a receiver's ID and a transaction ID. A receiver must send [all …]
|
/hardware/interfaces/media/bufferpool/2.0/ |
D | README.md | 4 Without a buffer pool, a process calls a synchronous method of the other 5 process and waits until the call finishes transferring a buffer. This adds 6 unwanted latency due to context switching. With help from a buffer pool, a 9 Passing an interface and a handle adds extra latency also. To mitigate the 11 rogue clients, FMQ is used to communicate between a buffer pool and a client 12 process. FMQ is used to send buffer ownership change status from a client 13 process to a buffer pool. Except FMQ, a buffer pool does not use any shared 18 FMQ is used to send buffer ownership status changes to a buffer pool from a 19 buffer pool client. A buffer pool synchronizes FMQ messages when there is a 24 FMQ messages are sent when a buffer is acquired or released. Also, FMQ messages [all …]
|
D | IAccessor.hal | 6 * You may obtain a copy of the License at 28 * Registers a new client and creates IConnection to the buffer pool for 33 * FMQ is used to send buffer ownership status changes to a buffer pool 34 * from a buffer pool client. A buffer pool synchronizes FMQ messages when 35 * there is a hidl request from the clients. Every client has its own 39 * FMQ messages are sent when a buffer is acquired or released. Also, FMQ 40 * messages are sent when a buffer is transferred from a client to another 41 * client. FMQ has its own ID from a buffer pool. A client is specified 44 * To transfer a buffer, a sender must send an FMQ message. The message 45 * must include a receiver's ID and a transaction ID. A receiver must send [all …]
|
/hardware/qcom/msm8998/json-c/ |
D | linkhash.c | 158 #define mix(a,b,c) \ argument 160 a -= c; a ^= rot(c, 4); c += b; \ 161 b -= a; b ^= rot(a, 6); a += c; \ 162 c -= b; c ^= rot(b, 8); b += a; \ 163 a -= c; a ^= rot(c,16); c += b; \ 164 b -= a; b ^= rot(a,19); a += c; \ 165 c -= b; c ^= rot(b, 4); b += a; \ 193 #define final(a,b,c) \ argument 196 a ^= c; a -= rot(c,11); \ 197 b ^= a; b -= rot(a,25); \ [all …]
|
D | json_util.h | 18 #define json_min(a,b) ((a) < (b) ? (a) : (b)) argument 22 #define json_max(a,b) ((a) > (b) ? (a) : (b)) argument
|
/hardware/qcom/sdm845/display/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() 48 b = fmodf(a, b); in gcd() 49 a = tmp; in gcd() 52 return a; in gcd() 55 float lcm(float a, float b) { in lcm() argument 56 return (a * b) / gcd(a, b); in lcm()
|
/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() 48 b = fmodf(a, b); in gcd() 49 a = tmp; in gcd() 52 return a; in gcd() 55 float lcm(float a, float b) { in lcm() argument 56 return (a * b) / gcd(a, b); in lcm()
|
/hardware/qcom/display/msm8909/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() 48 b = fmodf(a, b); in gcd() 49 a = tmp; in gcd() 52 return a; in gcd() 55 float lcm(float a, float b) { in lcm() argument 56 return (a * b) / gcd(a, b); in lcm()
|
/hardware/qcom/display/msm8909w_3100/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() 48 b = fmodf(a, b); in gcd() 49 a = tmp; in gcd() 52 return a; in gcd() 55 float lcm(float a, float b) { in lcm() argument 56 return (a * b) / gcd(a, b); in lcm()
|
/hardware/interfaces/broadcastradio/common/utils1x/ |
D | Utils.cpp | 35 auto a = static_cast<ProgramType>(ia); in isCompatibleProgramType() local 38 if (a == b) return true; in isCompatibleProgramType() 39 if (a == ProgramType::AM && b == ProgramType::AM_HD) return true; in isCompatibleProgramType() 40 if (a == ProgramType::AM_HD && b == ProgramType::AM) return true; in isCompatibleProgramType() 41 if (a == ProgramType::FM && b == ProgramType::FM_HD) return true; in isCompatibleProgramType() 42 if (a == ProgramType::FM_HD && b == ProgramType::FM) return true; in isCompatibleProgramType() 46 static bool bothHaveId(const ProgramSelector& a, const ProgramSelector& b, in bothHaveId() argument 48 return hasId(a, type) && hasId(b, type); in bothHaveId() 51 static bool anyHaveId(const ProgramSelector& a, const ProgramSelector& b, in anyHaveId() argument 53 return hasId(a, type) || hasId(b, type); in anyHaveId() [all …]
|
/hardware/interfaces/audio/common/all-versions/util/include/common/all-versions/ |
D | VersionMacro.h | 33 #define CONCAT_3(a, b, c) a##b##c argument 34 #define EXPAND_CONCAT_3(a, b, c) CONCAT_3(a, b, c) argument 38 #define CONCAT_4(a, b, c, d) a##b##c##d argument 39 #define EXPAND_CONCAT_4(a, b, c, d) CONCAT_4(a, b, c, d) argument
|
/hardware/interfaces/input/common/1.0/ |
D | types.hal | 6 * You may obtain a copy of the License at 21 * Constants that identify each individual axis of a motion event. 25 * Axis constant: X axis of a motion event. 27 * - For a touch screen, reports the absolute X screen position of the center of 29 * - For a touch pad, reports the absolute X surface position of the center of the touch 31 * - For a mouse, reports the absolute X screen position of the mouse pointer. 33 * - For a trackball, reports the relative horizontal displacement of the trackball. 34 * The value is normalized to a range from -1.0 (left) to 1.0 (right). 35 * - For a joystick, reports the absolute X position of the joystick. 36 * The value is normalized to a range from -1.0 (left) to 1.0 (right). [all …]
|
/hardware/interfaces/biometrics/fingerprint/2.1/ |
D | IBiometricsFingerprint.hal | 6 * You may obtain a copy of the License at 24 * Registers a user function that must receive notifications from the HAL 28 * @return deviceId is a unique handle for this fingerprint device 37 * Generates a unique token to upper layers to indicate the start of 39 * a pin/password cleared time window where enrollment is allowed. 40 * Pre-enroll only generates a challenge, a full hardwareAuthToken is 41 * generated by trustzone after verifying a pin/password/swipe. This is to 42 * ensure adding a new fingerprint template was preceded by some kind of 45 * @return 0 if function failed, a uint64_t of challenge otherwise. 52 * Switches the HAL state machine to collect and store a new fingerprint [all …]
|
/hardware/broadcom/wlan/bcmdhd/dhdutil/include/proto/ |
D | bcmip.h | 69 #define IPV4_ADDR_NULL(a) ((((uint8 *)(a))[0] | ((uint8 *)(a))[1] | \ argument 70 ((uint8 *)(a))[2] | ((uint8 *)(a))[3]) == 0) 72 #define IPV4_ADDR_BCAST(a) ((((uint8 *)(a))[0] & ((uint8 *)(a))[1] & \ argument 73 ((uint8 *)(a))[2] & ((uint8 *)(a))[3]) == 0xff) 202 #define IPV4_ISMULTI(a) (((a) & 0xf0000000) == 0xe0000000) argument
|
/hardware/google/av/codec2/include/ |
D | C2.h | 181 …inline constexpr etype operator|(etype a, etype b) { return (etype)(std::underlying_type<etype>::t… 182 … &operator|=(etype &a, etype b) { a = (etype)(std::underlying_type<etype>::type(a) | std::underlyi… 183 …inline constexpr etype operator&(etype a, etype b) { return (etype)(std::underlying_type<etype>::t… 184 … &operator&=(etype &a, etype b) { a = (etype)(std::underlying_type<etype>::type(a) & std::underlyi… 185 …inline constexpr etype operator^(etype a, etype b) { return (etype)(std::underlying_type<etype>::t… 186 … &operator^=(etype &a, etype b) { a = (etype)(std::underlying_type<etype>::type(a) ^ std::underlyi… 187 …inline constexpr etype operator~(etype a) { return (etype)(~std::underlying_type<etype>::type(a));… 385 inline constexpr c2_cntr_t<T> operator+(const U &a, const c2_cntr_t<T> &b) { 386 return b + a; 390 inline constexpr c2_cntr_t<T> operator-(const U &a, const c2_cntr_t<T> &b) { [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/util/ |
D | QCameraCommon.h | 39 #define ALIGN(a, b) (((a) + (b)) & ~(b)) argument 40 #define MAX(a, b) ((a) > (b) ? (a) : (b)) argument
|
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/ |
D | HidReport.cpp | 161 int64_t a = mLogicalMin; in getLogicalRange() local 164 if (a > b) { in getLogicalRange() 166 a = a & ((static_cast<int64_t>(1) << getSize()) - 1); in getLogicalRange() 168 if (a > b) { in getLogicalRange() 173 return {a, b}; in getLogicalRange() 182 int64_t a = mPhysicalMin.get(0); in getPhysicalRange() local 185 if (a > b) { in getPhysicalRange() 186 a = a & ((static_cast<int64_t>(1) << getSize()) - 1); in getPhysicalRange() 188 if (a > b) { in getPhysicalRange() 192 return {a, b}; in getPhysicalRange()
|
/hardware/libhardware/include/hardware/ |
D | keymaster_defs.h | 550 #define KEYMASTER_SIMPLE_COMPARE(a, b) (a < b) ? -1 : ((a > b) ? 1 : 0) argument 551 inline int keymaster_param_compare(const keymaster_key_param_t* a, const keymaster_key_param_t* b) { in keymaster_param_compare() argument 552 int retval = KEYMASTER_SIMPLE_COMPARE((uint32_t)a->tag, (uint32_t)b->tag); in keymaster_param_compare() 556 switch (keymaster_tag_get_type(a->tag)) { in keymaster_param_compare() 562 return KEYMASTER_SIMPLE_COMPARE(a->enumerated, b->enumerated); in keymaster_param_compare() 565 return KEYMASTER_SIMPLE_COMPARE(a->integer, b->integer); in keymaster_param_compare() 568 return KEYMASTER_SIMPLE_COMPARE(a->long_integer, b->long_integer); in keymaster_param_compare() 570 return KEYMASTER_SIMPLE_COMPARE(a->date_time, b->date_time); in keymaster_param_compare() 574 if (a->blob.data_length != 0 && b->blob.data_length == 0) in keymaster_param_compare() 576 if (a->blob.data_length == 0 && b->blob.data_length == 0) in keymaster_param_compare() [all …]
|
/hardware/qcom/camera/msm8998/QCamera2/HAL3/ |
D | QCamera3HALHeader.h | 42 #define MAX(a, b) ((a) > (b) ? (a) : (b)) argument 43 #define MIN(a, b) ((a) < (b) ? (a) : (b)) argument
|
/hardware/interfaces/graphics/bufferqueue/2.0/ |
D | types.hal | 6 * You may obtain a copy of the License at 20 * Possible return values from a function call. 44 * @note This status value is different from a transaction failure, which 57 * The buffer queue is operating in a non-blocking mode, but the call cannot 62 * The call fails because of a reason not listed above. 68 * Special values for a slot index. 72 * Invalid/unspecified slot index. This may be returned from a function that 73 * returns a slot index if the call is unsuccessful. 80 * An "empty" fence can be an empty handle (containing no fds and no ints) or a 83 * A valid fence is an empty fence or a native handle with exactly one fd and no [all …]
|
/hardware/interfaces/audio/effect/5.0/ |
D | IPresetReverbEffect.hal | 6 * You may obtain a copy of the License at 25 SMALLROOM, // a small room less than five meters in length 26 MEDIUMROOM, // a medium room with a length of ten meters or less 27 LARGEROOM, // a large-sized room suitable for live performances 28 MEDIUMHALL, // a medium-sized hall 29 LARGEHALL, // a large-sized hall suitable for a full orchestra
|