mirror of
https://gitee.com/openharmony/interface_sdk_c
synced 2024-11-23 06:39:54 +00:00
capi Service exception rectification
Signed-off-by: cff-gite <chenfeifei8@huawei.com>
This commit is contained in:
parent
615b2728c3
commit
46759ec8fe
@ -65,7 +65,7 @@ int32_t OH_Vibrator_PlayVibration(int32_t duration, Vibrator_Attribute attribute
|
||||
* @param vibrateAttribute - Vibration attribute. For details, see {@link Vibrator_Attribute}.
|
||||
* @return Returns <b>0</b> if the operation is successful; returns the following error code otherwise.
|
||||
* {@link PERMISSION_DENIED} Permission verification failed.\n
|
||||
* {@link PARAMETER_ERROR} Parameter check failed. For example, a mandatory parameter is not passed in,
|
||||
* {@link PARAMETER_ERROR} Parameter check failed. For example, the parameter is invalid,
|
||||
* or the parameter type passed in is incorrect.\n
|
||||
* {@link UNSUPPORTED} The API is not supported on the device. The device supports the corresponding SysCap,
|
||||
* but does not support certain APIs in this SysCap.\n
|
||||
|
@ -46,7 +46,7 @@ extern "C" {
|
||||
* For details, see {@link Sensor_Info}.
|
||||
* @param count - Pointer to the number of sensors on the device.
|
||||
* @return Returns <b>SENSOR_SUCCESS</b> if the operation is successful; returns the following error code otherwise.
|
||||
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, a mandatory parameter is not passed in,
|
||||
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, the parameter is invalid,
|
||||
* or the parameter type passed in is incorrect.\n
|
||||
* {@link SENSOR_SERVICE_EXCEPTION} The sensor service is abnormal.\n
|
||||
*
|
||||
@ -69,7 +69,7 @@ Sensor_Result OH_Sensor_GetInfos(Sensor_Info **infos, uint32_t *count);
|
||||
* reporting the sensor data. For details, see {@link Sensor_Subscriber}.
|
||||
* @return Returns <b>SENSOR_SUCCESS</b> if the operation is successful; returns the following error code otherwise.
|
||||
* {@link SENSOR_PERMISSION_DENIED} Permission verification failed.\n
|
||||
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, a mandatory parameter is not passed in,
|
||||
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, the parameter is invalid,
|
||||
* or the parameter type passed in is incorrect.\n
|
||||
* {@link SENSOR_SERVICE_EXCEPTION} The sensor service is abnormal.\n
|
||||
* @permission ohos.permission.ACCELEROMETER or ohos.permission.GYROSCOPE or
|
||||
@ -92,7 +92,7 @@ Sensor_Result OH_Sensor_Subscribe(const Sensor_SubscriptionId *id,
|
||||
* reporting the sensor data. For details, see {@link Sensor_Subscriber}.
|
||||
* @return Returns <b>SENSOR_SUCCESS</b> if the operation is successful; returns the following error code otherwise.
|
||||
* {@link SENSOR_PERMISSION_DENIED} Permission verification failed.\n
|
||||
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, a mandatory parameter is not passed in,
|
||||
* {@link SENSOR_PARAMETER_ERROR} Parameter check failed. For example, the parameter is invalid,
|
||||
* or the parameter type passed in is incorrect.\n
|
||||
* {@link SENSOR_SERVICE_EXCEPTION} The sensor service is abnormal.\n
|
||||
* @permission ohos.permission.ACCELEROMETER or ohos.permission.GYROSCOPE or
|
||||
|
Loading…
Reference in New Issue
Block a user