We have to compute
$$g(x):=\int_{-\infty}^\infty f(x-t)\ f(t)\ dt=\int_{-1}^0 f(x-t)\ (1+t)\ dt + \int_0^1 f(x-t)\ (1-t)\ dt$$
for given $x\in{\mathbb R}$. Because of the nonanalytic way the function $f$ is defined this is a tedious matter. It's pretty obvious that $g(-x)=g(x)$, and that $g(x)=0$ when $x>2$.
Let an $x\in{\mathbb R}$ be fixed. Then
$$f(x-t)=\cases{ 0&$(t<x-1)$\cr
1-x+t\quad &$(x-1\leq t\leq x)$\cr
1+x-t&$(x\leq t\leq x+1)$\cr
0&$(t>x+1)$\cr}\quad.$$
We distinguish the cases (i): $\ 0< x< 1$, and (ii): $\ 1< x<2$. (The cases $x\in\{0,1,2\}$ will follow by continuity of $g$.)
In case (i) we have $-1<x-1<0<x<1$ and therefore
$$g(x)=\int_{x-1}^0 (1-x+t)(1+t)\ dt +\int_0^x (1-x+t)(1-t)\ dt +\int_x^1 (1+x-t)(1-t)\ dt\ ,$$
which Mathematica computes to
$$g(x)={2\over3}-x^2+{x^3\over2}\ .$$
In case (ii) we have $0<x-1<1<x$. Therefore the integral $\int_{-1}^0\ldots$ vanishes, and we are left with
$$g(x)=\int_{x-1}^1 (1-x+t)(1-t)\ dt={4\over3}-2x+x^2-{x^3\over6}\ .$$