Searched refs:MockListener (Results 1 – 4 of 4) sorted by relevance
26 import static com.android.cts.verifier.notifications.MockListener.JSON_FLAGS;27 import static com.android.cts.verifier.notifications.MockListener.JSON_ICON;28 import static com.android.cts.verifier.notifications.MockListener.JSON_ID;29 import static com.android.cts.verifier.notifications.MockListener.JSON_LAST_AUDIBLY_ALERTED;30 import static com.android.cts.verifier.notifications.MockListener.JSON_PACKAGE;31 import static com.android.cts.verifier.notifications.MockListener.JSON_REASON;32 import static com.android.cts.verifier.notifications.MockListener.JSON_STATS;33 import static com.android.cts.verifier.notifications.MockListener.JSON_TAG;34 import static com.android.cts.verifier.notifications.MockListener.JSON_WHEN;35 import static com.android.cts.verifier.notifications.MockListener.REASON_LISTENER_CANCEL;[all …]
19 import static com.android.cts.verifier.notifications.MockListener.JSON_AMBIENT;20 import static com.android.cts.verifier.notifications.MockListener.JSON_MATCHES_ZEN_FILTER;21 import static com.android.cts.verifier.notifications.MockListener.JSON_TAG;171 if (MockListener.getInstance() == null in test()172 || !MockListener.getInstance().isConnected) { in test()264 List<JSONObject> result = new ArrayList<>(MockListener.getInstance().getPosted()); in test()304 MockListener.getInstance().resetData(); in tearDown()324 List<JSONObject> result = new ArrayList<>(MockListener.getInstance().getPosted()); in test()363 MockListener.getInstance().resetData(); in tearDown()383 List<JSONObject> result = new ArrayList<>(MockListener.getInstance().getPosted()); in test()[all …]
34 public class MockListener extends NotificationListenerService { class38 new ComponentName("com.android.cts.verifier", MockListener.class.getName());64 private static MockListener sNotificationListenerInstance = null;111 public static MockListener getInstance() { in getInstance()
553 if (MockListener.getInstance() != null && MockListener.getInstance().isConnected) { in test()