WifiConfigManagerNew: Change the config merge logic

Modify the merging logic from using |TextUtils.isEmpty()| to determine
if the field has a value to be merged or not to a simple null check. The
older check would prevent apps from resetting some fields later
if needed.

While there,
1. Add a unit test for |WifiEnterpriseConfig| object updates.
2. Add null checks for all publicly exposed fields in |WifiConfiguration|.

PS: |WifiEnterpriseConfig| copy constructor already merges the
provided configuration by checking if the value is set or not. So, we
don't need to add any special merging logic in WifiConfigManagerNew.

BUG: 29641570
Change-Id: Ic98147a9c07d2d3a878f103a9b2ea4988f96924f
TEST: Unit tests
3 files changed
tree: 40d7860777908e92cb2cb7329955d5d286d0ddc5
  1. libwifi_hal/
  2. libwifi_system/
  3. service/
  4. tests/