Changes to make eth service methods more testable am: a5f724dfdd am: 4f22cf4a85 am: bf585dba90

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/net/ethernet/+/1934759

Change-Id: I1d87ec14a50a4910d2a02eea210ca67cabcb8806