Is it possible to parse the currently used ids out of formula_editor_keyboardview.xml? Maybe with a SourceTest that uses a Regular Expression instead of an AndroidTest? That would be flexible related to refactorings.