Improve performance for NotificationMgr UT cases
Replace the sleep call with movable time eclipse to
accelerate the UT execution.
Bug: 265824062
Test: atest NotificationMgrTest
Change-Id: I794abdb156473019f3cb81985aa7faf23e691f7c
diff --git a/src/com/android/phone/NotificationMgr.java b/src/com/android/phone/NotificationMgr.java
index 27e1606..d2c0e6b 100644
--- a/src/com/android/phone/NotificationMgr.java
+++ b/src/com/android/phone/NotificationMgr.java
@@ -1071,7 +1071,8 @@
mSelectedNetworkOperatorName.remove(subId);
}
- private static long getTimeStamp() {
+ @VisibleForTesting
+ public long getTimeStamp() {
return SystemClock.elapsedRealtime();
}
}