umi: Update to Android 12 blobs
@@ -29,3 +29,10 @@ android_app_import {
|
|||||||
product_specific: true,
|
product_specific: true,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dex_import {
|
||||||
|
name: "com.android.hotwordenrollment.common.util",
|
||||||
|
owner: "xiaomi",
|
||||||
|
jars: ["proprietary/system_ext/framework/com.android.hotwordenrollment.common.util.jar"],
|
||||||
|
system_ext_specific: true,
|
||||||
|
}
|
||||||
|
|
||||||
|
|||||||
2
proprietary/vendor/bin/init.qcom.sensors.sh
vendored
@@ -31,3 +31,5 @@
|
|||||||
#
|
#
|
||||||
cp /vendor/etc/sensors/scripts/* /data/vendor/sensors/scripts/
|
cp /vendor/etc/sensors/scripts/* /data/vendor/sensors/scripts/
|
||||||
chmod a+rw /data/vendor/sensors/scripts/*
|
chmod a+rw /data/vendor/sensors/scripts/*
|
||||||
|
rm /data/vendor/sensors/diag_log_slpi*
|
||||||
|
rm /data/vendor/sensor_log/sensor*
|
||||||
|
|||||||
BIN
proprietary/vendor/bin/sensors.qti
vendored
BIN
proprietary/vendor/bin/sscrpcd
vendored
BIN
proprietary/vendor/etc/camera/102_SummerDay.png
vendored
Normal file
|
After Width: | Height: | Size: 342 KiB |
BIN
proprietary/vendor/etc/camera/103_Fantasy.png
vendored
Normal file
|
After Width: | Height: | Size: 335 KiB |
BIN
proprietary/vendor/etc/camera/104_Meet.png
vendored
Normal file
|
After Width: | Height: | Size: 330 KiB |
BIN
proprietary/vendor/etc/camera/105_WindSing.png
vendored
Normal file
|
After Width: | Height: | Size: 317 KiB |
BIN
proprietary/vendor/etc/camera/106_Lost.png
vendored
Normal file
|
After Width: | Height: | Size: 348 KiB |
BIN
proprietary/vendor/etc/camera/107_Central.png
vendored
Normal file
|
After Width: | Height: | Size: 336 KiB |
BIN
proprietary/vendor/etc/camera/108_NorthernEurope.png
vendored
Normal file
|
After Width: | Height: | Size: 295 KiB |
BIN
proprietary/vendor/etc/camera/109_Rome.png
vendored
Normal file
|
After Width: | Height: | Size: 194 KiB |
BIN
proprietary/vendor/etc/camera/110_BlackGold.png
vendored
Normal file
|
After Width: | Height: | Size: 289 KiB |
BIN
proprietary/vendor/etc/camera/111_GreenOrange.png
vendored
Normal file
|
After Width: | Height: | Size: 333 KiB |
BIN
proprietary/vendor/etc/camera/112_CyberPunk.png
vendored
Normal file
|
After Width: | Height: | Size: 351 KiB |
BIN
proprietary/vendor/etc/camera/113_BlackIce.png
vendored
Normal file
|
After Width: | Height: | Size: 276 KiB |
@@ -1,6 +1,19 @@
|
|||||||
multiCameraEnable=TRUE
|
multiCameraEnable=TRUE
|
||||||
logInfoMask=0x0
|
logInfoMask=0x0
|
||||||
overrideLogLevels=0x1
|
overrideLogLevels=0x1
|
||||||
|
logConfigMask=0x0
|
||||||
|
logWarningMask=0x0
|
||||||
|
logVerboseMask=0x0
|
||||||
|
logDRQEnable=0x0
|
||||||
|
logMetaEnable=0x0
|
||||||
|
logRequestMapping=0x0
|
||||||
|
systemLogEnable=TRUE
|
||||||
|
logCoreCfgMask=0
|
||||||
|
enableAsciiLogging=FALSE
|
||||||
|
enableTxtLogging=0
|
||||||
|
traceGroupsEnable=0
|
||||||
|
enable3ADebugData=FALSE
|
||||||
|
enableTuningMetadata=FALSE
|
||||||
MPMSizeThresToDisableDelayedUnmap=0
|
MPMSizeThresToDisableDelayedUnmap=0
|
||||||
MPMForceDisableDelayedUnmap=TRUE
|
MPMForceDisableDelayedUnmap=TRUE
|
||||||
pdafHWEnable=TRUE
|
pdafHWEnable=TRUE
|
||||||
|
|||||||
BIN
proprietary/vendor/etc/camera/mibokeh_855_opencl.bin
vendored
BIN
proprietary/vendor/etc/camera/model_back.dlc
vendored
BIN
proprietary/vendor/etc/camera/model_front.dlc
vendored
@@ -127,17 +127,19 @@
|
|||||||
<dxo_nightview_bright_ratio_thresh>0.008</dxo_nightview_bright_ratio_thresh>
|
<dxo_nightview_bright_ratio_thresh>0.008</dxo_nightview_bright_ratio_thresh>
|
||||||
<dxo_nightview_dark_thresh>50</dxo_nightview_dark_thresh>
|
<dxo_nightview_dark_thresh>50</dxo_nightview_dark_thresh>
|
||||||
<dxo_nightview_dark_ratio_thresh>0.3</dxo_nightview_dark_ratio_thresh>
|
<dxo_nightview_dark_ratio_thresh>0.3</dxo_nightview_dark_ratio_thresh>
|
||||||
<dxo_lux_index_thresh>270</dxo_lux_index_thresh>
|
<dxo_lux_index_thresh>310</dxo_lux_index_thresh>
|
||||||
<dxo_middle_low>80</dxo_middle_low>
|
<dxo_middle_low>80</dxo_middle_low>
|
||||||
<dxo_middle_high>200</dxo_middle_high>
|
<dxo_middle_high>200</dxo_middle_high>
|
||||||
<dxo_middle_ratio_thresh>0.5</dxo_middle_ratio_thresh>
|
<dxo_middle_ratio_thresh>0.4</dxo_middle_ratio_thresh>
|
||||||
|
|
||||||
<dxo_lux_index_thresh_face>360.0</dxo_lux_index_thresh_face>
|
<dxo_lux_index_thresh_face>400.0</dxo_lux_index_thresh_face>
|
||||||
<dxo_nightview_light_face>10.0</dxo_nightview_light_face>
|
<dxo_nightview_light_face>10.0</dxo_nightview_light_face>
|
||||||
<dxo_nightview_dark_ratio_thresh_face>0.18</dxo_nightview_dark_ratio_thresh_face>
|
<dxo_nightview_dark_ratio_thresh_face>0.18</dxo_nightview_dark_ratio_thresh_face>
|
||||||
<dxo_nightview_middle_ratio_thresh_face>0.5</dxo_nightview_middle_ratio_thresh_face>
|
<dxo_nightview_middle_ratio_thresh_face>0.5</dxo_nightview_middle_ratio_thresh_face>
|
||||||
<dxo_nightview_bright_ratio_thresh_face>0.008</dxo_nightview_bright_ratio_thresh_face>
|
<dxo_nightview_bright_ratio_thresh_face>0.008</dxo_nightview_bright_ratio_thresh_face>
|
||||||
|
|
||||||
|
<dxo_nightview_extreme_dark_lux>440.0</dxo_nightview_extreme_dark_lux>
|
||||||
|
|
||||||
</dxo_nightview>
|
</dxo_nightview>
|
||||||
|
|
||||||
<hdr_face>
|
<hdr_face>
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ on early-boot
|
|||||||
chmod 0664 /mnt/vendor/persist/sensors/sensors_settings
|
chmod 0664 /mnt/vendor/persist/sensors/sensors_settings
|
||||||
chown system system /sys/kernel/boot_adsp/ssr
|
chown system system /sys/kernel/boot_adsp/ssr
|
||||||
|
|
||||||
on post-fs-data
|
on post-fs-data && property:ro.build.type=userdebug
|
||||||
#sensors log dir
|
#sensors log dir
|
||||||
mkdir /data/vendor/sensors 0777 system system
|
mkdir /data/vendor/sensors 0777 system system
|
||||||
mkdir /data/vendor/sensors/scripts 0777 system system
|
mkdir /data/vendor/sensors/scripts 0777 system system
|
||||||
|
|||||||
@@ -30,11 +30,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
service vendor.sensors.qti /vendor/bin/sensors.qti
|
service vendor.sensors.qti /vendor/bin/sensors.qti
|
||||||
class core
|
class main
|
||||||
user system
|
user system
|
||||||
group system
|
group system
|
||||||
|
disabled
|
||||||
|
oneshot
|
||||||
|
|
||||||
|
on property:debug.sensors.diag_buffer_log=true
|
||||||
|
start vendor.sensors.qti
|
||||||
|
|
||||||
|
on property:debug.sensors.diag_buffer_log=false
|
||||||
|
stop vendor.sensors.qti
|
||||||
|
|
||||||
service vendor-sensor-sh /vendor/bin/init.qcom.sensors.sh
|
service vendor-sensor-sh /vendor/bin/init.qcom.sensors.sh
|
||||||
class late_start
|
class late_start
|
||||||
user root
|
user system
|
||||||
|
group system
|
||||||
oneshot
|
oneshot
|
||||||
|
|||||||
@@ -34,4 +34,4 @@ service vendor.sensors /vendor/bin/sscrpcd sensorspd
|
|||||||
user system
|
user system
|
||||||
group system wakelock
|
group system wakelock
|
||||||
capabilities BLOCK_SUSPEND
|
capabilities BLOCK_SUSPEND
|
||||||
|
shutdown critical
|
||||||
|
|||||||
44
proprietary/vendor/etc/qdcm_calib_data_nt36672e_90Hz_fhd_plus_video_mode_panel_with_DSC.xml
vendored
Normal file
55
proprietary/vendor/etc/sensors/config/sns_dbtap.json
vendored
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
{
|
||||||
|
"config":
|
||||||
|
{
|
||||||
|
"hw_platform": ["MTP", "Dragon", "Surf", "UMI"],
|
||||||
|
"soc_id": ["291", "246", "305", "321", "339", "356"]
|
||||||
|
},
|
||||||
|
"dbtap":{
|
||||||
|
"owner": "sns_dbtap",
|
||||||
|
".times":{
|
||||||
|
"owner": "sns_dbtap",
|
||||||
|
"ALGO_DBP_maxTimeForThree":{
|
||||||
|
"ver": "0", "type": "flt", "data": "400"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
".GroVal":{
|
||||||
|
"owner": "sns_dbtap",
|
||||||
|
"ALGO_DBP_minGro":{
|
||||||
|
"ver": "0", "type": "flt", "data": "0.2"
|
||||||
|
},
|
||||||
|
"ALGO_DBP_minGroPeak_Pos":{
|
||||||
|
"ver": "0", "type": "flt", "data": "-0.04"
|
||||||
|
},
|
||||||
|
"ALGO_DBP_maxGroPeak_Pos":{
|
||||||
|
"ver": "0", "type": "flt", "data": "0.04"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
".AccVal":{
|
||||||
|
"owner": "sns_dbtap",
|
||||||
|
"ALGO_DBP_AccSHOLD":{
|
||||||
|
"ver": "0", "type": "flt", "data": "0.12"
|
||||||
|
},
|
||||||
|
"ALGO_DBP_minAcc":{
|
||||||
|
"ver": "0", "type": "flt", "data": "0.2"
|
||||||
|
},
|
||||||
|
"ALGO_DBP_AccSlope":{
|
||||||
|
"ver": "0", "type": "flt", "data": "0.23"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
".Accxy":{
|
||||||
|
"owner": "sns_dbtap",
|
||||||
|
"ALGO_DBP_maxAccx":{
|
||||||
|
"ver": "0", "type": "flt", "data": "5"
|
||||||
|
},
|
||||||
|
"ALGO_DBP_maxAccy":{
|
||||||
|
"ver": "0", "type": "flt", "data": "3"
|
||||||
|
},
|
||||||
|
"ALGO_DBP_deltaAccx":{
|
||||||
|
"ver": "0", "type": "flt", "data": "6"
|
||||||
|
},
|
||||||
|
"ALGO_DBP_deltaAccy":{
|
||||||
|
"ver": "0", "type": "flt", "data": "5"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
43
proprietary/vendor/etc/sensors/config/sns_oem13.json
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"config":
|
||||||
|
{
|
||||||
|
"hw_platform": ["MTP", "Dragon", "Surf", "UMI"],
|
||||||
|
"soc_id": ["291", "246", "305", "321", "339", "356"]
|
||||||
|
},
|
||||||
|
"sns_oem13":{
|
||||||
|
"owner": "sns_oem13",
|
||||||
|
".rotate_angle":{
|
||||||
|
"owner": "sns_oem13",
|
||||||
|
"OEM13_yawChange_Threshold":{
|
||||||
|
"ver": "0", "type": "flt", "data": "30"
|
||||||
|
},
|
||||||
|
"OEM13_PitchAngle_Change":{
|
||||||
|
"ver": "0", "type": "flt", "data": "30"
|
||||||
|
},
|
||||||
|
"OEM13_ScreenAngle_Threshold":{
|
||||||
|
"ver": "0", "type": "flt", "data": "30"
|
||||||
|
},
|
||||||
|
"OEM13_RollAngle_Threshold":{
|
||||||
|
"ver": "0", "type": "flt", "data": "30"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
".Light":{
|
||||||
|
"owner": "sns_oem13",
|
||||||
|
"OEM13_LightMax":{
|
||||||
|
"ver": "0", "type": "flt", "data": "90"
|
||||||
|
},
|
||||||
|
"OEM13_Light_new":{
|
||||||
|
"ver": "0", "type": "flt", "data": "10"
|
||||||
|
},
|
||||||
|
"OEM13_Light_old":{
|
||||||
|
"ver": "0", "type": "flt", "data": "15"
|
||||||
|
},
|
||||||
|
"OEM13_light_delta":{
|
||||||
|
"ver": "0", "type": "flt", "data": "10"
|
||||||
|
},
|
||||||
|
"OEM13_LightUp":{
|
||||||
|
"ver": "1", "type": "flt", "data": "90"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines message types for the Accel Calibration Sensor.
|
// Defines message types for the Accel Calibration Sensor.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017, 2020 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
@@ -27,6 +27,6 @@ import "sns_cal.proto";
|
|||||||
// - SNS_CAL_MSGID_SNS_CAL_EVENT message ID is used to report calibration
|
// - SNS_CAL_MSGID_SNS_CAL_EVENT message ID is used to report calibration
|
||||||
// parameters to the client of the sensor. The sns_cal_event message as
|
// parameters to the client of the sensor. The sns_cal_event message as
|
||||||
// defined in sns_cal.proto is used to report this data event where the
|
// defined in sns_cal.proto is used to report this data event where the
|
||||||
// units for the bias field in the message are in rad / s
|
// units for the bias field in the message are in m / s ^2
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
// Any new functionality for Ambient Temperature Sensor can be defined in a
|
// Any new functionality for Ambient Temperature Sensor can be defined in a
|
||||||
// device specific API file.
|
// device specific API file.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,9 @@
|
|||||||
|
|
||||||
// @file sns_amd.proto
|
// @file sns_amd.proto
|
||||||
//
|
//
|
||||||
// Defines message types for the Absolute Motion Detector (AMD) Sensor.
|
// Defines message types for the Absolute Motion Detector (AMD) Sensor.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines message types for the the Bring_To_Ear sensor
|
// Defines message types for the the Bring_To_Ear sensor
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines standard message types pertaining to calibration
|
// Defines standard message types pertaining to calibration
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
import "nanopb.proto";
|
import "nanopb.proto";
|
||||||
import "sns_std_type.proto";
|
|
||||||
import "sns_std.proto";
|
import "sns_std.proto";
|
||||||
|
import "sns_std_type.proto";
|
||||||
|
|
||||||
// Message IDs
|
// Message IDs
|
||||||
//
|
//
|
||||||
@@ -80,9 +80,9 @@ message sns_client_request_msg {
|
|||||||
// Whether to send events while the specified processor is in suspend.
|
// Whether to send events while the specified processor is in suspend.
|
||||||
required sns_client_delivery delivery_type = 2 [default = SNS_CLIENT_DELIVERY_WAKEUP];
|
required sns_client_delivery delivery_type = 2 [default = SNS_CLIENT_DELIVERY_WAKEUP];
|
||||||
|
|
||||||
//The client expects that, when the message with an id specified in this list
|
//The client expects that, when the message with an id specified in this list
|
||||||
//is generated, the message should only be delivered to the client if data
|
//is generated, the message should only be delivered to the client if data is already being delivered
|
||||||
//is already being delivered to the processor mentioned above.
|
//to the processor mentioned above.
|
||||||
repeated fixed32 nowakeup_msg_ids = 3;
|
repeated fixed32 nowakeup_msg_ids = 3;
|
||||||
}
|
}
|
||||||
required suspend_config susp_config = 3;
|
required suspend_config susp_config = 3;
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
// Defines message types for the Coarse Motion Classifier (CMC) Sensor.
|
// Defines message types for the Coarse Motion Classifier (CMC) Sensor.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines the API for the Device Orientation sensors
|
// Defines the API for the Device Orientation sensors
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
// Defines standard message types to communicate with the
|
// Defines standard message types to communicate with the
|
||||||
// diag service
|
// diag service
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
124
proprietary/vendor/etc/sensors/proto/sns_direct_channel.proto
vendored
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
// @file sns_direct_channel.proto
|
||||||
|
//
|
||||||
|
// Defines the Sensors Direct Channel interface that can be used by clients to get sensor data via direct channel
|
||||||
|
//
|
||||||
|
// Copyright (c) 2020 Qualcomm Technologies, Inc.
|
||||||
|
// All Rights Reserved.
|
||||||
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
syntax = "proto2";
|
||||||
|
import "nanopb.proto";
|
||||||
|
import "sns_std_type.proto";
|
||||||
|
import "sns_std.proto";
|
||||||
|
|
||||||
|
// To activate a stream on a channel
|
||||||
|
// " get Channel first by sending sns_direct_channel_create_msg -> then send sns_direct_channel_set_ts_offset -> send sns_direct_channel_set_client_req for sns_direct_channel_stream_id"
|
||||||
|
|
||||||
|
// To activate another stream on existing channel
|
||||||
|
// "Send sns_direct_channel_set_client_req on existing Channel for new sns_direct_channel_stream_id"
|
||||||
|
|
||||||
|
// To update the existing request on the channel
|
||||||
|
// "Send updated sns_direct_channel_set_client_req on existing Channel with already added sns_direct_channel_stream_id"
|
||||||
|
|
||||||
|
// To remove existing request on the channel
|
||||||
|
// "Send sns_direct_channel_remove_client_req on existing Channel for any added sns_direct_channel_stream_id"
|
||||||
|
|
||||||
|
// To update time stamp offset on channel.
|
||||||
|
// "Send sns_direct_channel_set_ts_offset on existing Channel with ts_offset"
|
||||||
|
|
||||||
|
|
||||||
|
enum direct_channel_type {
|
||||||
|
option (nanopb_enumopt).long_names = false;
|
||||||
|
|
||||||
|
// Sensor data from multiple streams can be multiplexed in one channel
|
||||||
|
// Samples are compatible to sensors_event_t format defined by Android Spec
|
||||||
|
// ref: SensorsEventFormatOffset( a.k.a sensors_event_t) at hardware/interfaces/sensors/1.0/types.hal
|
||||||
|
DIRECT_CHANNEL_TYPE_STRUCTURED_MUX_CHANNEL = 0;
|
||||||
|
|
||||||
|
// Sensors Data format expected in Raw bytes only.
|
||||||
|
// Sensors data format is not mandated in the API.
|
||||||
|
// This channel type can be used by clients who know how to interpret the sensor data from respective sensor source.
|
||||||
|
DIRECT_CHANNEL_TYPE_GENERIC_CHANNEL = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
// stream id for different direct channel streams
|
||||||
|
message sns_direct_channel_stream_id {
|
||||||
|
// sensor responsible for data
|
||||||
|
required sns_std_suid suid = 1;
|
||||||
|
// if set to true, auto calibrated data is generated
|
||||||
|
// if set to false, factory calibrated data is generated
|
||||||
|
optional bool calibrated = 2 [default = true];
|
||||||
|
// if set to true, resampled data is generated at rate which is at most twice the requested rate
|
||||||
|
// if set to false, data is generated at native rate supported by driver, advertised with attributes - SNS_STD_SENSOR_ATTRID_RATES and SNS_STD_SENSOR_ATTRID_ADDITIONAL_LOW_LATENCY_RATES
|
||||||
|
optional bool resampled = 3 [ default = true];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Direct channel Creation Request Message
|
||||||
|
message sns_direct_channel_create_msg {
|
||||||
|
// ION fd, size to get Virtual address that can be used by Q6
|
||||||
|
message shared_buffer_config {
|
||||||
|
required fixed32 fd = 1;
|
||||||
|
required fixed32 size = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
required shared_buffer_config buffer_config = 1;
|
||||||
|
|
||||||
|
// Each channel can be either DIRECT_CHANNEL_TYPE_STRUCTURED_MUX_CHANNEL or DIRECT_CHANNEL_TYPE_GENERIC_CHANNEL
|
||||||
|
// e.g Android Direct Report Channel for DIRECT_CHANNEL_TYPE_STRUCTURED_MUX_CHANNEL
|
||||||
|
required direct_channel_type channel_type = 2 ;
|
||||||
|
|
||||||
|
// Processor hosting the sensor data client
|
||||||
|
// Default processor is Application Processor
|
||||||
|
optional sns_std_client_processor client_proc = 3 [ default = SNS_STD_CLIENT_PROCESSOR_APSS];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Client request on Direct Channel
|
||||||
|
message sns_direct_channel_set_client_req {
|
||||||
|
// msg id for sns_std_request, see sns_std.proto for more information.
|
||||||
|
required fixed32 msg_id = 1;
|
||||||
|
|
||||||
|
// unique id for each stream on the channel
|
||||||
|
required sns_direct_channel_stream_id stream_id = 2;
|
||||||
|
|
||||||
|
// generic sns_std_request
|
||||||
|
required sns_std_request request = 3;
|
||||||
|
|
||||||
|
// required attributes for DIRECT_CHANNEL_TYPE_STRUCTURED_MUX_CHANNEL
|
||||||
|
message structured_mux_channel_stream_attributes {
|
||||||
|
// Unique handle per sensor, client has to supply for mapping in sensor hub to "sensor_event_t::sensor" variable
|
||||||
|
required fixed32 sensor_handle = 1;
|
||||||
|
// Corresponds to android sensor type, client has to supply for mapping in sensor hub to "sensor_event_t::type" variable
|
||||||
|
required fixed32 sensor_type = 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
optional structured_mux_channel_stream_attributes attributes = 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Direct Channel remove client request message
|
||||||
|
message sns_direct_channel_remove_client_req {
|
||||||
|
required sns_direct_channel_stream_id stream_id = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Clients interested in Client Time Domain Time Stamp has to supply offset value
|
||||||
|
// direct channel in sensor hub adds this value to its own time domain time stamp to generate Client Time Domain Time Stamp
|
||||||
|
message sns_direct_channel_set_ts_offset {
|
||||||
|
required fixed64 ts_offset = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Direct Channel Configuration Message
|
||||||
|
message sns_direct_channel_config_msg {
|
||||||
|
|
||||||
|
oneof channel_config_msg_payload
|
||||||
|
{
|
||||||
|
sns_direct_channel_set_client_req set_client_req = 100;
|
||||||
|
|
||||||
|
sns_direct_channel_remove_client_req remove_client_req = 101;
|
||||||
|
|
||||||
|
sns_direct_channel_set_ts_offset set_ts_offset = 102;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines message types for the DPC(Device Position Classifier) Sensor.
|
// Defines message types for the DPC(Device Position Classifier) Sensor.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017, 2020 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018, 2020 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
49
proprietary/vendor/etc/sensors/proto/sns_eqm.proto
vendored
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
// @file sns_eqm.proto
|
||||||
|
//
|
||||||
|
// Defines standard message types for the eqm
|
||||||
|
//
|
||||||
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
|
// All Rights Reserved.
|
||||||
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
syntax = "proto2";
|
||||||
|
import "nanopb.proto";
|
||||||
|
import "sns_std_sensor.proto";
|
||||||
|
|
||||||
|
enum sns_eqm_msgid
|
||||||
|
{
|
||||||
|
option (nanopb_enumopt).long_names = false;
|
||||||
|
|
||||||
|
SNS_EQM_MSGID_SNS_DATA = 1058;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Configuration Message
|
||||||
|
// Used to either request for a certain configuration of the Sim Sensor or
|
||||||
|
// alter an already existing configuration of the Simulation Sensor
|
||||||
|
// Uses sns_std_sensor_config defined in sns_std_sensor.proto
|
||||||
|
// The message field definitions are as follows:
|
||||||
|
// 1) float sample_rate
|
||||||
|
// containing the required sample rate of the Sim sensor in hertz
|
||||||
|
|
||||||
|
// Data Message
|
||||||
|
// Output data event generated by the eqm sensor.
|
||||||
|
message sns_eqm_data
|
||||||
|
{
|
||||||
|
// todo now upstream 2 data, here should change?
|
||||||
|
required float eqm_state_1 = 1;
|
||||||
|
required float eqm_state_2 = 2;
|
||||||
|
required float eqm_state_3 = 3;
|
||||||
|
required float eqm_state_4 = 4;
|
||||||
|
required float eqm_state_5 = 5;
|
||||||
|
required float eqm_state_6 = 6;
|
||||||
|
required float eqm_state_7 = 7;
|
||||||
|
required float eqm_state_8 = 8;
|
||||||
|
required float eqm_state_9 = 9;
|
||||||
|
required float eqm_state_10 = 10;
|
||||||
|
required float eqm_state_11 = 11;
|
||||||
|
required float eqm_state_12 = 12;
|
||||||
|
required float eqm_state_13 = 13;
|
||||||
|
required float eqm_state_14 = 14;
|
||||||
|
required float eqm_state_15 = 15;
|
||||||
|
required float eqm_state_16 = 16;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines the API for Filtered Magnetic Vector.
|
// Defines the API for Filtered Magnetic Vector.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines Framework internal values.
|
// Defines Framework internal values.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines the API for Game Rotation Vector sensors
|
// Defines the API for Game Rotation Vector sensors
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
// This Sensor is similar to Rotation Vector, but uses a magnetometer instead
|
// This Sensor is similar to Rotation Vector, but uses a magnetometer instead
|
||||||
// of a gyroscope.
|
// of a gyroscope.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines standard message types for the Gravity Sensor
|
// Defines standard message types for the Gravity Sensor
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines message types for the Gyro Calibration Sensor.
|
// Defines message types for the Gyro Calibration Sensor.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines standard message types for the Gyro Rotation Matrix
|
// Defines standard message types for the Gyro Rotation Matrix
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines the API for Heart Beat sensors
|
// Defines the API for Heart Beat sensors
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
// Any new functionality for Magnetometer Sensor can be defined in a
|
// Any new functionality for Magnetometer Sensor can be defined in a
|
||||||
// device specific API file.
|
// device specific API file.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines message types for the Mag Calibration Sensor.
|
// Defines message types for the Mag Calibration Sensor.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines standard message types for the OEM1
|
// Defines standard message types for the OEM1
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
|
|||||||
37
proprietary/vendor/etc/sensors/proto/sns_oem15.proto
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
// @file sns_oem15.proto
|
||||||
|
//
|
||||||
|
// Defines standard message types for the OEM3
|
||||||
|
//
|
||||||
|
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
||||||
|
// All Rights Reserved.
|
||||||
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
syntax = "proto2";
|
||||||
|
import "nanopb.proto";
|
||||||
|
import "sns_std_sensor.proto";
|
||||||
|
|
||||||
|
enum sns_oem15_msgid
|
||||||
|
{
|
||||||
|
option (nanopb_enumopt).long_names = false;
|
||||||
|
|
||||||
|
SNS_OEM15_MSGID_SNS_OEM15_DATA = 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Configuration Message
|
||||||
|
// Used to either request for a certain configuration of the Sim Sensor or
|
||||||
|
// alter an already existing configuration of the Simulation Sensor
|
||||||
|
// Uses sns_std_sensor_config defined in sns_std_sensor.proto
|
||||||
|
// The message field definitions are as follows:
|
||||||
|
// 1) float sample_rate
|
||||||
|
// containing the required sample rate of the Sim sensor in hertz
|
||||||
|
|
||||||
|
// Data Message
|
||||||
|
// Output data event generated by the oem3 sensor.
|
||||||
|
message sns_oem15_data
|
||||||
|
{
|
||||||
|
// oem3 Vector along axis x,y,z in m/s2
|
||||||
|
repeated float oem15 = 1 [(nanopb).max_count = 3];
|
||||||
|
|
||||||
|
// Accuracy of the data
|
||||||
|
required sns_std_sensor_sample_status accuracy = 2;
|
||||||
|
}
|
||||||
@@ -2,13 +2,14 @@
|
|||||||
//
|
//
|
||||||
// Defines the API for Offbody Detection Sensors.
|
// Defines the API for Offbody Detection Sensors.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018,2020 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
import "nanopb.proto";
|
import "nanopb.proto";
|
||||||
import "sns_std_sensor.proto";
|
import "sns_std_sensor.proto";
|
||||||
|
import "sns_physical_sensor_test.proto";
|
||||||
|
|
||||||
// An offbody detect sensor reports every time the device transitions from
|
// An offbody detect sensor reports every time the device transitions from
|
||||||
// off-body to on-body and from on-body to off-body (e.g. a wearable device
|
// off-body to on-body and from on-body to off-body (e.g. a wearable device
|
||||||
|
|||||||
45
proprietary/vendor/etc/sensors/proto/sns_ois_manager.proto
vendored
Normal file
@@ -0,0 +1,45 @@
|
|||||||
|
// @file sns_ois_cal.proto
|
||||||
|
//
|
||||||
|
// Defines the API for ois manager.
|
||||||
|
//
|
||||||
|
// Copyright (c) 2019 AKM, Inc.
|
||||||
|
// All Rights Reserved.
|
||||||
|
// Confidential and Proprietary - AKM, Inc.
|
||||||
|
|
||||||
|
syntax = "proto2";
|
||||||
|
import "nanopb.proto";
|
||||||
|
import "sns_std_sensor.proto";
|
||||||
|
|
||||||
|
// Message IDs for ois manager
|
||||||
|
enum sns_ois_manager_msgid {
|
||||||
|
option (nanopb_enumopt).long_names = false;
|
||||||
|
|
||||||
|
SNS_OIS_MANAGER_MSGID_SNS_SET_OIS_MODE = 525;
|
||||||
|
|
||||||
|
SNS_OIS_MANAGER_MSGID_SNS_OIS_CONFIG = 526;
|
||||||
|
|
||||||
|
SNS_OIS_MANAGER_MSGID_SNS_OIS_MANAGER_EVENT = 1024;
|
||||||
|
}
|
||||||
|
|
||||||
|
message sns_set_ois_mode
|
||||||
|
{
|
||||||
|
required int32 ois_gain_x = 1;
|
||||||
|
required int32 ois_gain_y = 2;
|
||||||
|
required int32 ois_delay_x = 3;
|
||||||
|
required int32 ois_delay_y = 4;
|
||||||
|
required int32 ois_offset_x = 5;
|
||||||
|
required int32 ois_offset_y = 6;
|
||||||
|
required int32 mode = 7;
|
||||||
|
}
|
||||||
|
|
||||||
|
message sns_ois_config
|
||||||
|
{
|
||||||
|
required int32 mode = 1;
|
||||||
|
required int32 posture = 2;
|
||||||
|
required int32 af_fb = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message sns_ois_manager_event
|
||||||
|
{
|
||||||
|
repeated float data = 1;
|
||||||
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines message types for the Pedometer Sensor.
|
// Defines message types for the Pedometer Sensor.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2019 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
@@ -12,8 +12,8 @@ import "sns_std_sensor.proto";
|
|||||||
|
|
||||||
// The Pedometer Sensor detects steps taken by the user
|
// The Pedometer Sensor detects steps taken by the user
|
||||||
//
|
//
|
||||||
// The Pedometer Step event is generated when the user takes a step.
|
// The Pedometer step event includes the latest step count accumulated since
|
||||||
// The event includes the latest step count accumulated since activation.
|
// activation.
|
||||||
// All clients to Pedometer get the same step event.
|
// All clients to Pedometer get the same step event.
|
||||||
// The timestamp of the event indicates the time of the latest detected step.
|
// The timestamp of the event indicates the time of the latest detected step.
|
||||||
|
|
||||||
@@ -29,9 +29,7 @@ enum sns_pedometer_msgid {
|
|||||||
option (nanopb_enumopt).long_names = false;
|
option (nanopb_enumopt).long_names = false;
|
||||||
|
|
||||||
SNS_PEDOMETER_MSGID_SNS_STEP_EVENT = 1028;
|
SNS_PEDOMETER_MSGID_SNS_STEP_EVENT = 1028;
|
||||||
|
|
||||||
//send to client immediatly to inform current step count
|
|
||||||
//msg body same as sns_step_event
|
|
||||||
SNS_PEDOMETER_MSGID_SNS_STEP_EVENT_CONFIG = 775;
|
SNS_PEDOMETER_MSGID_SNS_STEP_EVENT_CONFIG = 775;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -53,5 +51,6 @@ message sns_step_event_config
|
|||||||
//
|
//
|
||||||
// The sns_step_event message is used to publish updated step count
|
// The sns_step_event message is used to publish updated step count
|
||||||
//
|
//
|
||||||
// Pedometer does not publish configuration events.
|
// The sns_step_event_config message is used to publish current step count
|
||||||
|
// to the client
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
// implemented in all physical Sensor drivers. Any new or device-specific
|
// implemented in all physical Sensor drivers. Any new or device-specific
|
||||||
// test type may be defined in the Sensor-specific API.
|
// test type may be defined in the Sensor-specific API.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines the API for Pose Six Degrees of Freedom sensors.
|
// Defines the API for Pose Six Degrees of Freedom sensors.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines the API for PPG Sensors.
|
// Defines the API for PPG Sensors.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018,2020 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
@@ -31,7 +31,10 @@ import "sns_physical_sensor_test.proto";
|
|||||||
// 2. Each stream event contains three output data fields
|
// 2. Each stream event contains three output data fields
|
||||||
// data[0] => PPG ch1
|
// data[0] => PPG ch1
|
||||||
// data[1] => PPG ch2
|
// data[1] => PPG ch2
|
||||||
// data[2] => 128 if touched, 0 otherwise
|
// data[2] => PPG ch3
|
||||||
|
// data[3] => PPG ch4
|
||||||
|
// data[4] => TOUCH_FLAG. 128 if onbody detect, 0 otherwise
|
||||||
|
// data[5] => WEAR_INDEX. 1 if wear loose, 0 otherwise
|
||||||
// 3. Each stream event publishes an accuracy field:
|
// 3. Each stream event publishes an accuracy field:
|
||||||
// SNS_STD_SENSOR_SAMPLE_STATUS_UNRELIABLE to mark invalid samples when hardware is
|
// SNS_STD_SENSOR_SAMPLE_STATUS_UNRELIABLE to mark invalid samples when hardware is
|
||||||
// yet to stabilize after the sensor is configured.
|
// yet to stabilize after the sensor is configured.
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
// Any new functionality for Pressure Sensor can be defined in a
|
// Any new functionality for Pressure Sensor can be defined in a
|
||||||
// device specific API file.
|
// device specific API file.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines the API for Persistent Stationary/Motion Detection Sensors.
|
// Defines the API for Persistent Stationary/Motion Detection Sensors.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
//
|
//
|
||||||
// Defines message types for the Absolute Motion Detector (RMD) Sensor.
|
// Defines message types for the Absolute Motion Detector (RMD) Sensor.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines the API for Rotation Vector sensors.
|
// Defines the API for Rotation Vector sensors.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
// Any new functionality for Sensor Temperature Sensor can be defined in a
|
// Any new functionality for Sensor Temperature Sensor can be defined in a
|
||||||
// device specific API file.
|
// device specific API file.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines the API for Significant Motion Detection Sensors.
|
// Defines the API for Significant Motion Detection Sensors.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
@@ -11,12 +11,11 @@ import "nanopb.proto";
|
|||||||
import "sns_std_sensor.proto";
|
import "sns_std_sensor.proto";
|
||||||
|
|
||||||
// A significant motion sensor reports once if "significant motion"
|
// A significant motion sensor reports once if "significant motion"
|
||||||
// is detected. After reporting, conceptually the algorithm's state is reset,
|
// is detected.
|
||||||
// and detection begins again.
|
|
||||||
//
|
//
|
||||||
// ## Significant Motion sensor attributes:
|
// ## Significant Motion sensor attributes:
|
||||||
// SNS_STD_SENSOR_ATTRID_TYPE is "sig_motion"
|
// SNS_STD_SENSOR_ATTRID_TYPE is "sig_motion"
|
||||||
// SNS_STD_SENSOR_ATTRID_STREAM_TYPE: SNS_STD_SENSOR_STREAM_TYPE_ON_CHANGE
|
// SNS_STD_SENSOR_ATTRID_STREAM_TYPE: SNS_STD_SENSOR_STREAM_TYPE_SINGLE_OUTPUT
|
||||||
//
|
//
|
||||||
// ## Request Message: SNS_STD_SENSOR_MSGID_SNS_STD_ON_CHANGE_CONFIG
|
// ## Request Message: SNS_STD_SENSOR_MSGID_SNS_STD_ON_CHANGE_CONFIG
|
||||||
// No configuration is available for this sensor.
|
// No configuration is available for this sensor.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines standard messages used across multiple Sensor API definitions
|
// Defines standard messages used across multiple Sensor API definitions
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2018,2020 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2020 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
@@ -21,7 +21,7 @@ enum sns_std_msgid {
|
|||||||
// When a sensor receives a flush request it publishes any unpublished
|
// When a sensor receives a flush request it publishes any unpublished
|
||||||
// samples. The sensor always publishes a SNS_STD_MSGID_SNS_STD_FLUSH_EVENT
|
// samples. The sensor always publishes a SNS_STD_MSGID_SNS_STD_FLUSH_EVENT
|
||||||
// event to indicate completion of a flush request.
|
// event to indicate completion of a flush request.
|
||||||
// All Sensors handle this flush request message.
|
// All Sensors handle this flush request message. See special case handling below
|
||||||
// Empty Message
|
// Empty Message
|
||||||
// @event sns_pb_flush_event
|
// @event sns_pb_flush_event
|
||||||
SNS_STD_MSGID_SNS_STD_FLUSH_REQ = 2;
|
SNS_STD_MSGID_SNS_STD_FLUSH_REQ = 2;
|
||||||
@@ -41,6 +41,21 @@ enum sns_std_msgid {
|
|||||||
|
|
||||||
// NOTE: 250-255 Are reserved
|
// NOTE: 250-255 Are reserved
|
||||||
}
|
}
|
||||||
|
// Special case handling for flush request
|
||||||
|
// 1. No prior instance has been created, and a flush request is received, i.e. flush request is sent before an enable req
|
||||||
|
// Unexpected sequence, driver can ignore the flush request, and set_client_request returns NULL
|
||||||
|
// 2. When enable request is sent and while that is still ongoing ( phy cfg event not published yet) and a flush request is received, expected sequence below:
|
||||||
|
// a) sensor driver gets sns_std_sensor_config
|
||||||
|
// b) sensor driver gets sns_std_flush_req
|
||||||
|
// c) sensor driver sends sns_std_sensor_physical_config_event
|
||||||
|
// d) sensor driver sends sns_std_flush_event
|
||||||
|
// 3. When a previous flush request is still ongoing and another flush request comes
|
||||||
|
// a) sensor driver receives sns_std_flush_req
|
||||||
|
// b) sensor driver receives another sns_std_flush_req while first flush request is being handled, but no flush event is sent yet
|
||||||
|
// c) sensor driver can ignore the 2nd flush request
|
||||||
|
// d) sensor driver finishes processing the first flush request and sends sns_std_flush_event
|
||||||
|
// #1 and # 3 applies to algorithm as well.
|
||||||
|
|
||||||
|
|
||||||
// Base message payload, from which all other Request payloads must extend
|
// Base message payload, from which all other Request payloads must extend
|
||||||
// The message will be delivered decoded within the Sensor API
|
// The message will be delivered decoded within the Sensor API
|
||||||
@@ -124,6 +139,7 @@ message sns_std_error_event {
|
|||||||
// SNS_STD_ERROR_INVALID_STATE - Catastrophic error in the Sensor; do not
|
// SNS_STD_ERROR_INVALID_STATE - Catastrophic error in the Sensor; do not
|
||||||
// expect any further data. Client may try sending enable-request again.
|
// expect any further data. Client may try sending enable-request again.
|
||||||
// SNS_STD_ERROR_NOT_SUPPORTED - Sensor received an unsupported request; or a
|
// SNS_STD_ERROR_NOT_SUPPORTED - Sensor received an unsupported request; or a
|
||||||
// supported request at an unexpected time.
|
// supported request at an unexpected time. Client may not expect any
|
||||||
|
// further data and may try sending valid request.
|
||||||
required sns_std_error error = 1;
|
required sns_std_error error = 1;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
// Example: "accel" Sensor can be gated by motion detect event published by
|
// Example: "accel" Sensor can be gated by motion detect event published by
|
||||||
// the "motion_detect" Sensor.
|
// the "motion_detect" Sensor.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
// developers may choose to define Sensor-specific message API for any
|
// developers may choose to define Sensor-specific message API for any
|
||||||
// new/Sensor-specific functionality.
|
// new/Sensor-specific functionality.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2018,2020 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2021 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
@@ -209,13 +209,23 @@ enum sns_std_sensor_attr_id
|
|||||||
// of rates published in attribute SNS_STD_SENSOR_ATTRID_RATES.
|
// of rates published in attribute SNS_STD_SENSOR_ATTRID_RATES.
|
||||||
// This is supported for internal clients only. External clients shall not use this API.
|
// This is supported for internal clients only. External clients shall not use this API.
|
||||||
SNS_STD_SENSOR_ATTRID_ADDITIONAL_LOW_LATENCY_RATES = 25;
|
SNS_STD_SENSOR_ATTRID_ADDITIONAL_LOW_LATENCY_RATES = 25;
|
||||||
|
|
||||||
// OPTIONAL
|
// OPTIONAL
|
||||||
// Boolean
|
// Boolean
|
||||||
// Boolean: True if the sensor supports passive request, False otherwise.
|
// Boolean: True if the sensor supports passive request, False otherwise.
|
||||||
// If this attribute is not supported, then the sensor does not support passive requests.
|
// If this attribute is not supported, then the sensor does not support passive requests.
|
||||||
// Sensors that do not support passive requests, will service all requests as active requests.
|
// Sensors that do not support passive requests, will service all requests as active requests.
|
||||||
SNS_STD_SENSOR_ATTRID_PASSIVE_REQUEST = 26;
|
SNS_STD_SENSOR_ATTRID_PASSIVE_REQUEST = 26;
|
||||||
|
|
||||||
|
// OPTIONAL
|
||||||
|
// float
|
||||||
|
// direct channel supported max sample rate in Hz
|
||||||
|
SNS_STD_SENSOR_ATTRID_DIRECT_CHANNEL_MAX_SAMPLE_RATE = 27;
|
||||||
|
|
||||||
|
// OPTIONAL
|
||||||
|
// float
|
||||||
|
// direct channel supported max report rate in Hz
|
||||||
|
SNS_STD_SENSOR_ATTRID_DIRECT_CHANNEL_MAX_REPORT_RATE = 28;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sensor stream configuration request
|
// Sensor stream configuration request
|
||||||
@@ -309,16 +319,16 @@ message sns_std_sensor_physical_config_event
|
|||||||
// set to true once the clocks have been synchronized.
|
// set to true once the clocks have been synchronized.
|
||||||
optional bool stream_is_synchronous = 7;
|
optional bool stream_is_synchronous = 7;
|
||||||
|
|
||||||
// Sensor has enabled Data Ready Interrupt
|
// Sensor has enabled Data Ready Interrupt (DRI) or In Band Interrupt (IBI)
|
||||||
optional bool dri_enabled = 8;
|
optional bool dri_enabled = 8;
|
||||||
|
|
||||||
// Current DAE water mark setting. 0 if non-DAE sensor.
|
// Current DAE water mark setting. 0 if non-DAE sensor.
|
||||||
optional uint32 DAE_watermark = 9;
|
optional uint32 DAE_watermark = 9;
|
||||||
|
|
||||||
// The sync anchor is only valid for polled or synchronized sensors.
|
// The sync anchor is only valid for synchronized sensors.
|
||||||
|
// If used, "stream_is_synchronous" should eventually be set to true when the clocks are synchronized.
|
||||||
// It is a timestamp of a future (or past) sns_std_sensor_event.
|
// It is a timestamp of a future (or past) sns_std_sensor_event.
|
||||||
// For synchronous sensors: this may be used by clients to determine the
|
// This may be used by clients to determine the synchronized timeline before it is synchronized.
|
||||||
// synchronized timeline before it is synchronized.
|
|
||||||
optional uint64 sync_ts_anchor = 10;
|
optional uint64 sync_ts_anchor = 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines standard data types used across multiple Sensor API definitions
|
// Defines standard data types used across multiple Sensor API definitions
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
syntax = "proto2";
|
syntax = "proto2";
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
// Any new functionality for Thermopile Sensor can be defined in a
|
// Any new functionality for Thermopile Sensor can be defined in a
|
||||||
// device specific API file.
|
// device specific API file.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Defines message types for the Tilt Sensor.
|
// Defines message types for the Tilt Sensor.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2017-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
// Any new functionality for UV Sensor can be defined in a
|
// Any new functionality for UV Sensor can be defined in a
|
||||||
// device specific API file.
|
// device specific API file.
|
||||||
//
|
//
|
||||||
// Copyright (c) 2016-2017 Qualcomm Technologies, Inc.
|
// Copyright (c) 2016-2018 Qualcomm Technologies, Inc.
|
||||||
// All Rights Reserved.
|
// All Rights Reserved.
|
||||||
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
// Confidential and Proprietary - Qualcomm Technologies, Inc.
|
||||||
|
|
||||||
|
|||||||
BIN
proprietary/vendor/etc/sensors/sensor_diag.cfg
vendored
Normal file
BIN
proprietary/vendor/etc/thermal-class0.conf
vendored
BIN
proprietary/vendor/etc/thermal-india-normal.conf
vendored
BIN
proprietary/vendor/etc/thermal-india-per-camera.conf
vendored
Normal file
BIN
proprietary/vendor/etc/thermal-india-per-normal.conf
vendored
Normal file
BIN
proprietary/vendor/etc/thermal-map-india.conf
vendored
BIN
proprietary/vendor/etc/thermal-map.conf
vendored
BIN
proprietary/vendor/etc/thermal-navigation.conf
vendored
BIN
proprietary/vendor/etc/thermal-normal.conf
vendored
BIN
proprietary/vendor/etc/thermal-per-camera.conf
vendored
Normal file
BIN
proprietary/vendor/etc/thermal-per-class0.conf
vendored
Normal file
BIN
proprietary/vendor/etc/thermal-per-navigation.conf
vendored
Normal file
BIN
proprietary/vendor/etc/thermal-per-normal.conf
vendored
Normal file
16
proprietary/vendor/etc/thermald-devices.conf
vendored
@@ -25,6 +25,14 @@ def_target:0
|
|||||||
select_higher:1
|
select_higher:1
|
||||||
]
|
]
|
||||||
|
|
||||||
|
#backlight-clone
|
||||||
|
[
|
||||||
|
name:backlight-clone
|
||||||
|
cooling_name:brightness0-clone
|
||||||
|
def_target:0
|
||||||
|
select_higher:1
|
||||||
|
]
|
||||||
|
|
||||||
#temp_state
|
#temp_state
|
||||||
[
|
[
|
||||||
name:temp_state
|
name:temp_state
|
||||||
@@ -65,3 +73,11 @@ def_target:0
|
|||||||
select_higher:1
|
select_higher:1
|
||||||
]
|
]
|
||||||
|
|
||||||
|
#market_download_limit
|
||||||
|
[
|
||||||
|
name:market_download_limit
|
||||||
|
path:/sys/class/thermal/thermal_message/market_download_limit
|
||||||
|
def_target:0
|
||||||
|
select_higher:1
|
||||||
|
]
|
||||||
|
|
||||||
|
|||||||