Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 693) sorted by relevance

12345678910>>...28

/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/
DTriStateTest.cpp30 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 …]
DTestHidSensorSpec.h835 #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/
DUtils.h22 #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/qcom/msm8998/json-c/
Dlinkhash.c158 #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 …]
Djson_util.h18 #define json_min(a,b) ((a) < (b) ? (a) : (b)) argument
22 #define json_max(a,b) ((a) > (b) ? (a) : (b)) argument
/hardware/qcom/display/sdm845/sdm/libs/utils/
Dutils.cpp41 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/
Dutils.cpp41 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/1.1/utils/
DUtils.cpp32 auto a = static_cast<ProgramType>(ia); in isCompatibleProgramType() local
35 if (a == b) return true; in isCompatibleProgramType()
36 if (a == ProgramType::AM && b == ProgramType::AM_HD) return true; in isCompatibleProgramType()
37 if (a == ProgramType::AM_HD && b == ProgramType::AM) return true; in isCompatibleProgramType()
38 if (a == ProgramType::FM && b == ProgramType::FM_HD) return true; in isCompatibleProgramType()
39 if (a == ProgramType::FM_HD && b == ProgramType::FM) return true; in isCompatibleProgramType()
43 static bool bothHaveId(const ProgramSelector& a, const ProgramSelector& b, in bothHaveId() argument
45 return hasId(a, type) && hasId(b, type); in bothHaveId()
48 static bool anyHaveId(const ProgramSelector& a, const ProgramSelector& b, in anyHaveId() argument
50 return hasId(a, type) || hasId(b, type); in anyHaveId()
[all …]
/hardware/intel/common/libmix/mix_vbp/viddec_fw/fw/codecs/h264/parser/
Dh264parse_math.c23 unsigned long ldiv_mod_u(register unsigned long a, register unsigned long b, unsigned long * mod) in ldiv_mod_u() argument
35 if (a < b) in ldiv_mod_u()
37 *mod = a; in ldiv_mod_u()
49 if (div <= a) in ldiv_mod_u()
52 a -= div; in ldiv_mod_u()
57 *mod = a; in ldiv_mod_u()
62 unsigned ldiv_u(register unsigned a, register unsigned b) in ldiv_u() argument
72 if (div < a) in ldiv_u()
75 a -= div; in ldiv_u()
/hardware/interfaces/biometrics/fingerprint/2.1/
DIBiometricsFingerprint.hal6 * 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/
Dbcmip.h69 #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/intel/img/psb_video/src/
Dpnw_rotate.h60 #define VAROTATION2HAL(a) a argument
61 #define HAL2VAROTATION(a) a argument
62 #define psb_android_is_extvideo_mode(a) 0 argument
63 #define psb_android_surfaceflinger_rotate(a, b) argument
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/
DHidReport.cpp161 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/qcom/camera/msm8998/QCamera2/util/
DQCameraCommon.h39 #define ALIGN(a, b) (((a) + (b)) & ~(b)) argument
40 #define MAX(a, b) ((a) > (b) ? (a) : (b)) argument
/hardware/libhardware/include/hardware/
Dkeymaster_defs.h541 #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()
547 switch (keymaster_tag_get_type(a->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()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/HAL3/
DQCamera3HALHeader.h42 #define MAX(a, b) ((a) > (b) ? (a) : (b)) argument
43 #define MIN(a, b) ((a) < (b) ? (a) : (b)) argument
/hardware/interfaces/audio/effect/2.0/
DIPresetReverbEffect.hal6 * 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
/hardware/interfaces/drm/1.0/
DIDrmPlugin.hal6 * You may obtain a copy of the License at
23 * IDrmPlugin is used to interact with a specific drm plugin that was
25 * obtaining drm keys that may be used by a codec to decrypt protected
31 * Open a new session with the DrmPlugin object. A session ID is returned
35 * provisioning before it can open a session, ERROR_DRM_RESOURCE_BUSY if
36 * there are insufficent resources available to open a session,
38 * the call or ERROR_DRM_INVALID_STATE if the HAL is in a state where a
45 * Close a session on the DrmPlugin object
51 * if the HAL is in a state where the session cannot be closed.
56 * A key request/response exchange occurs between the app and a License
[all …]
DICryptoPlugin.hal6 * You may obtain a copy of the License at
25 * load crypto keys for a codec to decrypt protected video content.
29 * Check if the specified mime-type requires a secure decoder
33 * @return secureRequired must be true only if a secure decoder is required
40 * Notify a plugin of the currently configured resolution
48 * Associate a mediadrm session with this crypto session
60 * Set a shared memory base for subsequent decrypt operations. The buffer
61 * base is a hidl_memory which maps shared memory in the HAL module.
80 * @param secure a flag to indicate if a secure decoder is being used. This
82 * a secure decoder.
[all …]
/hardware/interfaces/cas/1.0/
DIMediaCasService.hal6 * You may obtain a copy of the License at
23 * IMediaCasService is the main entry point for interacting with a vendor's
25 * opens cas sessions which are used to obtain keys for a descrambler session,
37 * Query if a certain CA system is supported on this device.
45 * Construct a new instance of a CasPlugin given a CA_system_id.
54 * Query if the descrambling scheme for a CA system is supported on this device.
62 * Construct a new instance of a DescramblerPlugin given a CA_system_id.
DICas.hal6 * You may obtain a copy of the License at
29 * Provide the CA private data from a CA_descriptor in the conditional
30 * access table to a CasPlugin.
32 * @param pvtData a byte array containing the private data, the format of
39 * Open a session to descramble one or more streams scrambled by the
48 * Close a session.
56 * Provide the CA private data from a CA_descriptor in the program map
57 * table to a session.
60 * @param pvtData a byte array containing the private data, the format of
71 * @param ecm a byte array containing the ecm data.
[all …]
/hardware/interfaces/tests/pointer/1.0/default/
DPointer.h35 Return<void> foo2(const IPointer::Sam& s, const IPointer::Ada& a) override { in foo2()
36 PUSH_ERROR_IF(!(&s == a.s_ptr)); in foo2()
39 …Return<void> foo3(const IPointer::Sam& s, const IPointer::Ada& a, const IPointer::Bob& b) override… in foo3()
40 PUSH_ERROR_IF(!(&a == b.a_ptr && a.s_ptr == b.s_ptr && a.s_ptr == &s)); in foo3()
47 Return<void> foo5(const IPointer::Ada& a, const IPointer::Bob& b) override { in foo5()
48 PUSH_ERROR_IF(!(a.s_ptr == b.s_ptr && b.a_ptr == &a)); in foo5()
61 PUSH_ERROR_IF(&c.a != c.b_ptr->a_ptr); in foo8()
62 PUSH_ERROR_IF(c.a.s_ptr != c.b_ptr->s_ptr); in foo8()
63 PUSH_ERROR_IF(c.a.s_ptr->data != 500); in foo8()
168 IPointer::Ada *a; member
[all …]
/hardware/interfaces/usb/1.0/
Dtypes.hal6 * You may obtain a copy of the License at
45 * The port can either be a "host" or a "device" for data.
52 * The port can either be a "source" or "sink" for power.
58 * USB ports can be a pure DFP port which can only act
59 * as a host. A UFP port which can only act as a device.
60 * Or a dual role ports which can either can as a host or
61 * a device. This property is used to mention them.
69 * Indicates that the port does not have a data role.
76 * Indicates that the port is acting as a host for data.
81 * Indicated that the port is acting as a device for data.
[all …]
/hardware/interfaces/contexthub/1.0/
DIContexthub.hal6 * You may obtain a copy of the License at
22 * The Context Hub HAL provides an interface to a separate low-power processing
24 * Native applications that run within a context hub are known as nanoapps, and
37 * Register a callback for the HAL implementation to send asynchronous
38 * messages to the service from a context hub. There can be a maximum of
39 * one callback registered with the HAL. A call to this function when a
53 * Send a message to a hub
66 * Loads a nanoApp. After loading, the nanoApp's init method must be called.
70 * Loading a nanoapp must not take more than 30 seconds.
74 * implementation must initially place nanoApps in the disabled state upon a
[all …]
/hardware/interfaces/broadcastradio/1.0/
DITuner.hal6 * You may obtain a copy of the License at
27 * configuration is applied or a failure occurs or after a time out.
46 * Shall be called only when a valid configuration has been applied.
48 * ITunerCallback.tuneComplete() MUST be called once locked on a station
49 * or after a time out or full band scan if no station found.
50 * The status should indicate if a valid station is tuned or not.
62 * Must be called when a valid configuration has been applied.
64 * ITunerCallback.tuneComplete() MUST be called once locked on a station
65 * or after a time out or full band scan if no station found.
66 * The status should indicate if a valid station is tuned or not.
[all …]

12345678910>>...28