// this API works on place where compat path is bind-mounted
if (!is_compat_bind_mount()) {
+ //LCOV_EXCL_START System Error
_E("No compat bind mount");
return -1;
+ //LCOV_EXCL_STOP
}
str = tzplatform_getenv(TZ_USER_CONTENT);
r = snprintf(compat, len, "%s%s", COMPAT_DIR, origin + str_len);
if (r < 0) {
+ //LCOV_EXCL_START System Error
_E("Failed to create new path");
return -1;
+ //LCOV_EXCL_STOP
}
return 0;
// this API works on place where compat path is bind-mounted
if (!is_compat_bind_mount()) {
+ //LCOV_EXCL_START System Error
_E("no compat bind mount");
return -1;
+ //LCOV_EXCL_STOP
}
compat_len = strlen(COMPAT_DIR);
r = snprintf(origin, len, "%s%s", tzplatform_getenv(TZ_USER_CONTENT), compat + compat_len);
if (r < 0) {
+ //LCOV_EXCL_START System Error
_E("failed to create new path");
return -1;
+ //LCOV_EXCL_STOP
}
return 0;
"GetMmcPrimary",
NULL);
if (!result) {
+ //LCOV_EXCL_START System Error
_E("Failed to get primary sdcard partition"); //LCOV_EXCL_LINE
return STORAGE_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
+ //LCOV_EXCL_STOP
}
g_variant_get(result, "(issssssisibii)",
*path = strdup(info.mount_point);
if (*path == NULL)
- return STORAGE_ERROR_OUT_OF_MEMORY;
+ return STORAGE_ERROR_OUT_OF_MEMORY; //LCOV_EXCL_LINE System Error
*storage_id = info.storage_id;
ext_dev = calloc(1, sizeof(storage_ext_device));
if (!ext_dev) {
-//LCOV_EXCL_START System Error
+ //LCOV_EXCL_START System Error
_E("calloc failed");
return STORAGE_ERROR_OUT_OF_MEMORY;
-//LCOV_EXCL_STOP
+ //LCOV_EXCL_STOP
}
ret = storage_ext_get_device_info(storage_id, ext_dev);