/ohos5.0/docs/zh-cn/application-dev/reference/apis-sensor-service-kit/ |
H A D | _sensor.md | 31 | [Sensor_Info](#sensor_info) | 定义传感器信息。 | 56 …oyInfos](#oh_sensor_destroyinfos)([Sensor_Info](#sensor_info) **sensors, uint32_t count) | 销毁实例数组并… 120 ### Sensor_Info subsection 123 typedef struct Sensor_Info Sensor_Info 267 Sensor_Info **OH_Sensor_CreateInfos(uint32_t count) 271 用给定的数字创建一个实例数组,请参考 [Sensor_Info](#sensor_info)。 279 | count | 要创建的实例的数量,请参考 [Sensor_Info](#sensor_info)。 | 341 销毁实例数组并回收内存,请参考 [Sensor_Info](#sensor_info)。 349 | sensors | 指向 [Sensor_Info](#sensor_info) 实例数组的双指针。 | 350 | count | 要销毁的 [Sensor_Info](#sensor_info) 实例的数量。 | [all …]
|
H A D | oh_sensor_type_8h.md | 27 | [Sensor_Info](_sensor.md#sensor_info) | 定义传感器信息。 | 48 …_sensor.md#oh_sensor_createinfos)(uint32_t count) | 用给定的数字创建一个实例数组,请参考[Sensor_Info](_sensor.md#sen… 49 …r.md#oh_sensor_destroyinfos)([Sensor_Info](_sensor.md#sensor_info) **sensors, uint32_t count) | 销毁… 50 | [OH_SensorInfo_GetName](_sensor.md#oh_sensorinfo_getname)([Sensor_Info](_sensor.md#sensor_info) *… 51 | [OH_SensorInfo_GetVendorName](_sensor.md#oh_sensorinfo_getvendorname)([Sensor_Info](_sensor.md#se… 52 | [OH_SensorInfo_GetType](_sensor.md#oh_sensorinfo_gettype)([Sensor_Info](_sensor.md#sensor_info) *… 53 | [OH_SensorInfo_GetResolution](_sensor.md#oh_sensorinfo_getresolution) ([Sensor_Info](_sensor.md#s… 54 …inSamplingInterval](_sensor.md#oh_sensorinfo_getminsamplinginterval) ([Sensor_Info](_sensor.md#sen… 55 …axSamplingInterval](_sensor.md#oh_sensorinfo_getmaxsamplinginterval) ([Sensor_Info](_sensor.md#sen…
|
H A D | oh_sensor_8h.md | 24 | [OH_Sensor_GetInfos](_sensor.md#oh_sensor_getinfos)([Sensor_Info](_sensor.md#sensor_info) \*\*inf…
|
/ohos5.0/base/sensors/sensor/interfaces/kits/c/ |
H A D | oh_sensor_type.h | 193 typedef struct Sensor_Info Sensor_Info; typedef 204 Sensor_Info **OH_Sensor_CreateInfos(uint32_t count); 215 int32_t OH_Sensor_DestroyInfos(Sensor_Info **sensors, uint32_t count); 227 int32_t OH_SensorInfo_GetName(Sensor_Info* sensor, char *sensorName, uint32_t *length); 239 int32_t OH_SensorInfo_GetVendorName(Sensor_Info* sensor, char *vendorName, uint32_t *length); 250 int32_t OH_SensorInfo_GetType(Sensor_Info* sensor, Sensor_Type *sensorType); 261 int32_t OH_SensorInfo_GetResolution(Sensor_Info* sensor, float *resolution); 272 int32_t OH_SensorInfo_GetMinSamplingInterval(Sensor_Info* sensor, int64_t *minSamplingInterval); 283 int32_t OH_SensorInfo_GetMaxSamplingInterval(Sensor_Info* sensor, int64_t *maxSamplingInterval);
|
H A D | oh_sensor.h | 55 Sensor_Result OH_Sensor_GetInfos(Sensor_Info **infos, uint32_t *count);
|
/ohos5.0/base/sensors/sensor/frameworks/native/src/ |
H A D | native_sensor.cpp | 31 Sensor_Result OH_Sensor_GetInfos(Sensor_Info **sensors, uint32_t *count) in OH_Sensor_GetInfos() 77 Sensor_Info **OH_Sensor_CreateInfos(uint32_t count) in OH_Sensor_CreateInfos() 79 auto sensors = new Sensor_Info *[count]; in OH_Sensor_CreateInfos() 81 sensors[i] = new Sensor_Info(); in OH_Sensor_CreateInfos() 86 int32_t OH_Sensor_DestroyInfos(Sensor_Info **sensors, uint32_t count) in OH_Sensor_DestroyInfos() 101 int32_t OH_SensorInfo_GetName(Sensor_Info* sensor, char *sensorName, uint32_t *length) in OH_SensorInfo_GetName() 120 int32_t OH_SensorInfo_GetVendorName(Sensor_Info* sensor, char *vendorName, uint32_t *length) in OH_SensorInfo_GetVendorName() 139 int32_t OH_SensorInfo_GetType(Sensor_Info* sensor, Sensor_Type *sensorType) in OH_SensorInfo_GetType() 149 int32_t OH_SensorInfo_GetResolution(Sensor_Info* sensor, float *resolution) in OH_SensorInfo_GetResolution() 159 int32_t OH_SensorInfo_GetMinSamplingInterval(Sensor_Info* sensor, int64_t *minSamplePeriod) in OH_SensorInfo_GetMinSamplingInterval() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/device/sensor/ |
H A D | sensor-guidelines-capi.md | 14 | OH_Sensor_GetInfos(Sensor_Info **infos, uint32_t *count) | 获取设备上所有传感器的信息。 … 17 | OH_Sensor_CreateInfos(uint32_t count) | 用给定的数字创建一个实例数组,请参考[Sensor_Info](..… 18 | OH_Sensor_DestroyInfos(Sensor_Info **sensors, uint32_t count) | 销毁实例数组并回收内存,请参考[Sensor_Info](../.… 19 | OH_SensorInfo_GetName(Sensor_Info *sensor, char *sensorName, uint32_t *length) | 获取传感器名称。 … 20 | OH_SensorInfo_GetVendorName(Sensor_Info* sensor, char *vendorName, uint32_t *length) | 获取传感器的厂商名称… 21 | OH_SensorInfo_GetType(Sensor_Info* sensor, Sensor_Type *sensorType) | 获取传感器类型。 … 22 | OH_SensorInfo_GetResolution(Sensor_Info* sensor, float *resolution) | 获取传感器分辨率。 … 23 | OH_SensorInfo_GetMinSamplingInterval(Sensor_Info* sensor, int64_t *minSamplingInterval) | 获取传感器的最… 24 | OH_SensorInfo_GetMaxSamplingInterval(Sensor_Info* sensor, int64_t *maxSamplingInterval) | 获取传感器的最… 135 Sensor_Info **sensors = OH_Sensor_CreateInfos(count); // 用给定的数字创建一个实例数组。
|
/ohos5.0/docs/en/application-dev/reference/apis-sensor-service-kit/ |
H A D | _sensor.md | 31 | [Sensor_Info](#sensor_info) | Defines a struct for the sensor information. | 56 …nfos](#oh_sensor_destroyinfos)([Sensor_Info](#sensor_info) **sensors, uint32_t count) | Destroys a… 120 ### Sensor_Info subsection 123 typedef struct Sensor_Info Sensor_Info 267 Sensor_Info **OH_Sensor_CreateInfos(uint32_t count) 279 | count | Number of [Sensor_Info](#sensor_info) instances to create.| 337 int32_t OH_Sensor_DestroyInfos(Sensor_Info **sensors, uint32_t count) 350 | count | Number of [Sensor_Info](#sensor_info) instances to destroy.| 426 Sensor_Result OH_Sensor_GetInfos(Sensor_Info **infos, uint32_t *count) 697 int32_t OH_SensorInfo_GetResolution(Sensor_Info* sensor, float *resolution) [all …]
|
H A D | oh_sensor_type_8h.md | 27 | [Sensor_Info](_sensor.md#sensor_info) | Defines a struct for the sensor information. | 48 …ensor.md#oh_sensor_createinfos)(uint32_t count) | Creates an array of [Sensor_Info](_sensor.md#sen… 49 …d#oh_sensor_destroyinfos)([Sensor_Info](_sensor.md#sensor_info) **sensors, uint32_t count) | Destr… 50 | [OH_SensorInfo_GetName](_sensor.md#oh_sensorinfo_getname)([Sensor_Info](_sensor.md#sensor_info) *… 51 | [OH_SensorInfo_GetVendorName](_sensor.md#oh_sensorinfo_getvendorname)([Sensor_Info](_sensor.md#se… 52 | [OH_SensorInfo_GetType](_sensor.md#oh_sensorinfo_gettype)([Sensor_Info](_sensor.md#sensor_info) *… 53 | [OH_SensorInfo_GetResolution](_sensor.md#oh_sensorinfo_getresolution) ([Sensor_Info](_sensor.md#s… 54 …inSamplingInterval](_sensor.md#oh_sensorinfo_getminsamplinginterval) ([Sensor_Info](_sensor.md#sen… 55 …axSamplingInterval](_sensor.md#oh_sensorinfo_getmaxsamplinginterval) ([Sensor_Info](_sensor.md#sen…
|
H A D | oh_sensor_8h.md | 24 | [OH_Sensor_GetInfos](_sensor.md#oh_sensor_getinfos)([Sensor_Info](_sensor.md#sensor_info) \*\*inf…
|
/ohos5.0/base/sensors/sensor/test/unittest/interfaces/kits/ |
H A D | sensor_native_test.cpp | 61 Sensor_Info **sensors = OH_Sensor_CreateInfos(count); in SetUpTestCase() 141 Sensor_Info **sensors = OH_Sensor_CreateInfos(count); 178 Sensor_Info *sensors { nullptr }; 191 auto sensors = new Sensor_Info *[count]; 211 Sensor_Info **sensors = OH_Sensor_CreateInfos(count); 216 auto sensors1 = new Sensor_Info *[count]; 246 Sensor_Info **sensors = OH_Sensor_CreateInfos(count); 270 Sensor_Info **sensors = OH_Sensor_CreateInfos(count); 275 auto sensors1 = new Sensor_Info *[count]; 305 Sensor_Info **sensors = OH_Sensor_CreateInfos(count); [all …]
|
/ohos5.0/docs/en/application-dev/device/sensor/ |
H A D | sensor-guidelines-capi.md | 14 | OH_Sensor_GetInfos(Sensor_Info **infos, uint32_t *count) | Obtains information about all sens… 17 …Creates an array of instances with the given number. For details, see [Sensor_Info](../../referenc… 18 …DestroyInfos(Sensor_Info **sensors, uint32_t count) | Destroys the array of instances and reclaims… 19 | OH_SensorInfo_GetName(Sensor_Info *sensor, char *sensorName, uint32_t *length) | Obtains the sens… 20 | OH_SensorInfo_GetVendorName(Sensor_Info* sensor, char *vendorName, uint32_t *length) | Obtains th… 21 | OH_SensorInfo_GetType(Sensor_Info* sensor, Sensor_Type *sensorType) | Obtains the sensor type. … 22 | OH_SensorInfo_GetResolution(Sensor_Info* sensor, float *resolution) | Obtains the sensor resoluti… 23 | OH_SensorInfo_GetMinSamplingInterval(Sensor_Info* sensor, int64_t *minSamplingInterval) | Obtains… 24 | OH_SensorInfo_GetMaxSamplingInterval(Sensor_Info* sensor, int64_t *maxSamplingInterval) | Obtains… 135 …Sensor_Info **sensors = OH_Sensor_CreateInfos(count); // Create an array of instances with the giv…
|
/ohos5.0/base/sensors/sensor/frameworks/native/include/ |
H A D | native_sensor_impl.h | 22 struct Sensor_Info { struct
|