Only send SUSPENSION_CHANGED for changed packages

Additional fix follow up to Ie06df12ff3da6cf209fb3149e6aa80b0e63ce56e.

With the write commit refactor, this was sending unnecessary changed
broadcasts. This fixes it using a real old vs. new equality check,
taking into account both presence and deep object equality. This
restricts the broadcasts to only being sent if the package
SuspendParams metadata has actually changed.

Bug: 245426112

Test: atest SuspendPackagesTest
Test: atest android.suspendapps.cts

Merged-In: Ic4287d2a7b1b8ae0779b234e5ccd8a7a0787f265
Change-Id: Ic4287d2a7b1b8ae0779b234e5ccd8a7a0787f265
1 file changed