Home
last modified time | relevance | path

Searched refs:byte_result_helper (Results 1 – 2 of 2) sorted by relevance

/packages/modules/Uwb/service/uci/jni/src/
Dhelper.rs33 pub(crate) fn byte_result_helper<T>(result: Result<T>, error_msg: &str) -> jbyte { in byte_result_helper() function
84 assert_eq!(byte_result_helper(Ok(10), "Test"), u8::from(StatusCode::UciStatusOk) as i8); in test_byte_result_helper()
86 byte_result_helper::<i8>(Err(Error::BadParameters), "Test"), in test_byte_result_helper()
90 byte_result_helper::<i8>(Err(Error::MaxSessionsExceeded), "Test"), in test_byte_result_helper()
94 byte_result_helper::<i8>(Err(Error::CommandRetry), "Test"), in test_byte_result_helper()
98 byte_result_helper::<i8>(Err(Error::RegulationUwbOff), "Test"), in test_byte_result_helper()
104 byte_result_helper::<i8>(Err(Error::DuplicatedSessionId), "Test"), in test_byte_result_helper()
Duci_jni_android_new.rs18 use crate::helper::{boolean_result_helper, byte_result_helper, option_result_helper};
185 byte_result_helper(native_device_reset(env, obj, chip_id), function_name!()) in Java_com_android_server_uwb_jni_NativeUwbManager_nativeDeviceReset()
203 byte_result_helper( in Java_com_android_server_uwb_jni_NativeUwbManager_nativeSessionInit()
231 byte_result_helper(native_session_deinit(env, obj, session_id, chip_id), function_name!()) in Java_com_android_server_uwb_jni_NativeUwbManager_nativeSessionDeInit()
273 byte_result_helper(native_ranging_start(env, obj, session_id, chip_id), function_name!()) in Java_com_android_server_uwb_jni_NativeUwbManager_nativeRangingStart()
295 byte_result_helper(native_ranging_stop(env, obj, session_id, chip_id), function_name!()) in Java_com_android_server_uwb_jni_NativeUwbManager_nativeRangingStop()
611 byte_result_helper( in Java_com_android_server_uwb_jni_NativeUwbManager_nativeSetHybridSessionControllerConfigurations()
692 byte_result_helper( in Java_com_android_server_uwb_jni_NativeUwbManager_nativeSetHybridSessionControleeConfigurations()
1068 byte_result_helper(native_set_country_code(env, obj, country_code, chip_id), function_name!()) in Java_com_android_server_uwb_jni_NativeUwbManager_nativeSetCountryCode()
1341 byte_result_helper( in Java_com_android_server_uwb_jni_NativeUwbManager_nativeSendData()
[all …]