Remove usages of used deprecated methods in core-ui.

Bug: 30074170
Change-Id: I5e8627efd645a5229649c1c932f93fce438a5acc
7 files changed