Heat a frying pan. Pour in the olive oil and heat gently.
Add the garlic and onion. Cook over medium-low heat until softened and aromatic.
Pour in the rice.
Cook, stirring, until every grain of rice is coated with oil.
Transfer everything into the rice cooker. Add the salt. Pour in about three cups of water, or whatever amount you customarily use. The amount of water will, of course, depend on how soft you want your rice as well as on the rice variety; some varieties do require more water than others. Turn on the rice cooker and let it do its job.
When the rice is done, fluff with a fork before transferring to a platter.
Garnish with sliced scallions and cilantro.