ANeuralNetworksDevice_getName

Function ANeuralNetworksDevice_getName 

Source
pub unsafe extern "C" fn ANeuralNetworksDevice_getName(
    device: *const ANeuralNetworksDevice,
    name: *mut *const c_char,
) -> c_int
Expand description

Get the name of the specified device.

@param device The representation of the specified device. @param name The returned name of the specified device. The name will be in UTF-8 and will be null-terminated. It will be recognizable as a known device name rather than a cryptic string. For devices with feature level reported by {@link ANeuralNetworksDevice_getFeatureLevel} that is 29 and above, the format of the name is {VENDOR}-{DEVICE}. For devices with feature level 28 or lower, the format of the name is undefined. The name will remain valid for the duration of the application.

@return ANEURALNETWORKS_NO_ERROR if successful.

Available since API level 29.