Home
last modified time | relevance | path

Searched refs:orientation (Results 1 – 25 of 76) sorted by relevance

1234

/hardware/invensense/6515/libsensors_iio/software/simple_apps/playback/linux/
Dand_constructor.c116 int32_t orientation; in inv_playback() local
202 r = fread(&orientation, sizeof(orientation), 1, inv_construct.file); in inv_playback()
204 inv_set_gyro_orientation_and_scale(orientation, sensitivity); in inv_playback()
208 r = fread(&orientation, sizeof(orientation), 1, inv_construct.file); in inv_playback()
210 inv_set_accel_orientation_and_scale(orientation, sensitivity); in inv_playback()
214 r = fread(&orientation, sizeof(orientation), 1, inv_construct.file); in inv_playback()
216 inv_set_compass_orientation_and_scale(orientation, sensitivity); in inv_playback()
/hardware/invensense/6515/libsensors_iio/software/core/mllite/
Dml_math_func.c612 void inv_convert_to_body(unsigned short orientation, const long *input, long *output) in inv_convert_to_body() argument
614 output[0] = input[orientation & 0x03] * SIGNSET(orientation & 0x004); in inv_convert_to_body()
615 output[1] = input[(orientation>>3) & 0x03] * SIGNSET(orientation & 0x020); in inv_convert_to_body()
616 output[2] = input[(orientation>>6) & 0x03] * SIGNSET(orientation & 0x100); in inv_convert_to_body()
624 void inv_convert_to_chip(unsigned short orientation, const long *input, long *output) in inv_convert_to_chip() argument
626 output[orientation & 0x03] = input[0] * SIGNSET(orientation & 0x004); in inv_convert_to_chip()
627 output[(orientation>>3) & 0x03] = input[1] * SIGNSET(orientation & 0x020); in inv_convert_to_chip()
628 output[(orientation>>6) & 0x03] = input[2] * SIGNSET(orientation & 0x100); in inv_convert_to_chip()
639 void inv_convert_to_body_with_scale(unsigned short orientation, in inv_convert_to_body_with_scale() argument
643 output[0] = inv_q30_mult(input[orientation & 0x03] * in inv_convert_to_body_with_scale()
[all …]
Ddata_builder.c208 int orientation, long sensitivity) in set_sensor_orientation_and_scale() argument
220 if ((orientation & 3) == 3) { in set_sensor_orientation_and_scale()
223 if ((orientation & 0x18) == 0x18) { in set_sensor_orientation_and_scale()
226 if ((orientation & 0xc0) == 0xc0) { in set_sensor_orientation_and_scale()
230 orientation = 0x88; // Identity in set_sensor_orientation_and_scale()
233 sensor->orientation = orientation; in set_sensor_orientation_and_scale()
245 void inv_set_gyro_orientation_and_scale(int orientation, long sensitivity) in inv_set_gyro_orientation_and_scale() argument
251 fwrite(&orientation, sizeof(orientation), 1, inv_data_builder.file); in inv_set_gyro_orientation_and_scale()
255 set_sensor_orientation_and_scale(&sensors.gyro, orientation, in inv_set_gyro_orientation_and_scale()
642 void inv_set_accel_orientation_and_scale(int orientation, long sensitivity) in inv_set_accel_orientation_and_scale() argument
[all …]
Dml_math_func.h94 void inv_convert_to_body(unsigned short orientation, const long *input, long *output);
95 void inv_convert_to_chip(unsigned short orientation, const long *input, long *output);
96 …void inv_convert_to_body_with_scale(unsigned short orientation, long sensitivity, const long *inpu…
Ddata_builder.h84 int orientation; member
220 void inv_set_gyro_orientation_and_scale(int orientation, long sensitivity);
221 void inv_set_accel_orientation_and_scale(int orientation,
223 void inv_set_compass_orientation_and_scale(int orientation,
/hardware/invensense/65xx/libsensors_iio/software/core/mllite/
Dml_math_func.c612 void inv_convert_to_body(unsigned short orientation, const long *input, long *output) in inv_convert_to_body() argument
614 output[0] = input[orientation & 0x03] * SIGNSET(orientation & 0x004); in inv_convert_to_body()
615 output[1] = input[(orientation>>3) & 0x03] * SIGNSET(orientation & 0x020); in inv_convert_to_body()
616 output[2] = input[(orientation>>6) & 0x03] * SIGNSET(orientation & 0x100); in inv_convert_to_body()
624 void inv_convert_to_chip(unsigned short orientation, const long *input, long *output) in inv_convert_to_chip() argument
626 output[orientation & 0x03] = input[0] * SIGNSET(orientation & 0x004); in inv_convert_to_chip()
627 output[(orientation>>3) & 0x03] = input[1] * SIGNSET(orientation & 0x020); in inv_convert_to_chip()
628 output[(orientation>>6) & 0x03] = input[2] * SIGNSET(orientation & 0x100); in inv_convert_to_chip()
639 void inv_convert_to_body_with_scale(unsigned short orientation, in inv_convert_to_body_with_scale() argument
643 output[0] = inv_q30_mult(input[orientation & 0x03] * in inv_convert_to_body_with_scale()
[all …]
Ddata_builder.c207 int orientation, long sensitivity) in set_sensor_orientation_and_scale() argument
219 if ((orientation & 3) == 3) { in set_sensor_orientation_and_scale()
222 if ((orientation & 0x18) == 0x18) { in set_sensor_orientation_and_scale()
225 if ((orientation & 0xc0) == 0xc0) { in set_sensor_orientation_and_scale()
229 orientation = 0x88; // Identity in set_sensor_orientation_and_scale()
232 sensor->orientation = orientation; in set_sensor_orientation_and_scale()
244 void inv_set_gyro_orientation_and_scale(int orientation, long sensitivity) in inv_set_gyro_orientation_and_scale() argument
250 fwrite(&orientation, sizeof(orientation), 1, inv_data_builder.file); in inv_set_gyro_orientation_and_scale()
254 set_sensor_orientation_and_scale(&sensors.gyro, orientation, in inv_set_gyro_orientation_and_scale()
437 void inv_set_accel_orientation_and_scale(int orientation, long sensitivity) in inv_set_accel_orientation_and_scale() argument
[all …]
Dml_math_func.h94 void inv_convert_to_body(unsigned short orientation, const long *input, long *output);
95 void inv_convert_to_chip(unsigned short orientation, const long *input, long *output);
96 …void inv_convert_to_body_with_scale(unsigned short orientation, long sensitivity, const long *inpu…
Ddata_builder.h82 int orientation; member
217 void inv_set_gyro_orientation_and_scale(int orientation, long sensitivity);
218 void inv_set_accel_orientation_and_scale(int orientation,
220 void inv_set_compass_orientation_and_scale(int orientation,
/hardware/interfaces/configstore/1.1/default/
DSurfaceFlingerConfigs.cpp159 int orientation = 0; in primaryDisplayOrientation() local
162 orientation = PRIMARY_DISPLAY_ORIENTATION; in primaryDisplayOrientation()
165 switch (orientation) { in primaryDisplayOrientation()
184 LOG_ALWAYS_FATAL("Invalid orientation %d", orientation); in primaryDisplayOrientation()
/hardware/interfaces/audio/core/all-versions/default/
DConversions.cpp171 pDst->orientation.x = src.orientation.x; in halToMicrophoneCharacteristics()
172 pDst->orientation.y = src.orientation.y; in halToMicrophoneCharacteristics()
173 pDst->orientation.z = src.orientation.z; in halToMicrophoneCharacteristics()
/hardware/libhardware/modules/camera/3_4/metadata/
Dmetadata_reader_test.cpp99 for (int32_t orientation : valid_orientations_) { in TEST_F() local
101 metadata_.get(), orientation_tag_, orientation), in TEST_F()
105 int actual = orientation + 1; in TEST_F()
107 EXPECT_EQ(actual, orientation); in TEST_F()
113 for (int32_t orientation : valid_orientations_) { in TEST_F() local
115 metadata_.get(), orientation_tag_, orientation + 1), in TEST_F()
122 for (int32_t orientation : valid_orientations_) { in TEST_F() local
124 metadata_.get(), orientation_tag_, orientation - 1), in TEST_F()
/hardware/interfaces/camera/device/3.4/default/
DExternalCameraUtils.cpp280 XMLElement *orientation = deviceCfg->FirstChildElement("Orientation"); in loadFromCfg() local
281 if (orientation == nullptr) { in loadFromCfg()
284 ret.orientation = orientation->IntAttribute("degree", /*Default*/kDefaultOrientation); in loadFromCfg()
290 ret.numVideoBuffers, ret.numStillBuffers, ret.orientation); in loadFromCfg()
337 orientation(kDefaultOrientation) { in ExternalCameraConfig()
/hardware/libhardware/modules/camera/3_4/
Dstatic_properties.h62 int orientation() const { return orientation_; }; in orientation() function
85 int orientation,
Dstatic_properties.cpp146 int orientation = 0; in NewStaticProperties() local
159 metadata_reader->Orientation(&orientation) || in NewStaticProperties()
182 orientation, in NewStaticProperties()
195 int orientation, in StaticProperties() argument
205 orientation_(orientation), in StaticProperties()
/hardware/qcom/display/msm8226/libqservice/
DQServiceUtils.h77 inline android::status_t setExtOrientation(uint32_t orientation) { in setExtOrientation() argument
79 orientation); in setExtOrientation()
/hardware/qcom/display/msm8084/libqservice/
DQServiceUtils.h77 inline android::status_t setExtOrientation(uint32_t orientation) { in setExtOrientation() argument
79 orientation); in setExtOrientation()
/hardware/qcom/display/msm8994/libqservice/
DQServiceUtils.h85 inline android::status_t setExtOrientation(uint32_t orientation) { in setExtOrientation() argument
87 orientation); in setExtOrientation()
/hardware/qcom/audio/hal/
Dplatform_info.c587 microphone.orientation.x = 0.0f; in process_microphone_characteristic()
588 microphone.orientation.y = 0.0f; in process_microphone_characteristic()
589 microphone.orientation.z = 0.0f; in process_microphone_characteristic()
687 float orientation[3]; in process_microphone_characteristic() local
690 orientation[idx++] = atof(token); in process_microphone_characteristic()
701 microphone.orientation.x = orientation[0]; in process_microphone_characteristic()
702 microphone.orientation.y = orientation[1]; in process_microphone_characteristic()
703 microphone.orientation.z = orientation[2]; in process_microphone_characteristic()
/hardware/qcom/display/msm8909w_3100/libqservice/
DQServiceUtils.h73 inline android::status_t setExtOrientation(uint32_t orientation) { in setExtOrientation() argument
75 orientation); in setExtOrientation()
/hardware/qcom/display/msm8998/libqservice/
DQServiceUtils.h73 inline android::status_t setExtOrientation(uint32_t orientation) { in setExtOrientation() argument
75 orientation); in setExtOrientation()
/hardware/qcom/display/msm8909/libqservice/
DQServiceUtils.h73 inline android::status_t setExtOrientation(uint32_t orientation) { in setExtOrientation() argument
75 orientation); in setExtOrientation()
/hardware/qcom/sdm845/display/libqservice/
DQServiceUtils.h73 inline android::status_t setExtOrientation(uint32_t orientation) { in setExtOrientation() argument
75 orientation); in setExtOrientation()
/hardware/qcom/display/msm8996/libqservice/
DQServiceUtils.h73 inline android::status_t setExtOrientation(uint32_t orientation) { in setExtOrientation() argument
75 orientation); in setExtOrientation()
/hardware/qcom/sm8150/display/libqservice/
DQServiceUtils.h73 inline android::status_t setExtOrientation(uint32_t orientation) { in setExtOrientation() argument
75 orientation); in setExtOrientation()

1234