Searched refs:ChannelImpressions (Results 1 – 5 of 5) sorted by relevance
19 import static android.ext.services.notification.ChannelImpressions.DEFAULT_DISMISS_TO_VIEW_RATIO_LI…20 import static android.ext.services.notification.ChannelImpressions.DEFAULT_STREAK_LIMIT;33 ChannelImpressions ci = new ChannelImpressions(); in testNoResultNoBlock()39 ChannelImpressions ci = new ChannelImpressions(); in testNoStreakNoBlock()51 ChannelImpressions ci = new ChannelImpressions(); in testNoStreakNoBlock_breakStreak()66 ChannelImpressions ci = new ChannelImpressions(); in testStreakBlock()78 ChannelImpressions ci = new ChannelImpressions(); in testRatio_NoBlockEvenWithStreak()91 ChannelImpressions ci = new ChannelImpressions(); in testAppend()95 ChannelImpressions ci2 = new ChannelImpressions(); in testAppend()116 ChannelImpressions ci = new ChannelImpressions(); in testUpdateThresholds_streakLimitsCorrectlyApplied()[all …]
160 for (int i = 0; i < ChannelImpressions.DEFAULT_STREAK_LIMIT; i++) { in almostBlockChannel()371 ChannelImpressions c1 = mAssistant.getImpressions(key1); in testReadXml()376 ChannelImpressions c1a = mAssistant.getImpressions(key1a); in testReadXml()381 ChannelImpressions c2 = mAssistant.getImpressions(key2); in testReadXml()390 ChannelImpressions ci1 = new ChannelImpressions(); in testRoundTripXml()392 ChannelImpressions ci2 = new ChannelImpressions(); in testRoundTripXml()397 ChannelImpressions ci3 = new ChannelImpressions(); in testRoundTripXml()429 ChannelImpressions ci = new ChannelImpressions(); in testSettingsProviderUpdate()
31 public final class ChannelImpressions implements Parcelable { class50 public ChannelImpressions() { in ChannelImpressions() method in ChannelImpressions55 protected ChannelImpressions(Parcel in) { in ChannelImpressions() method in ChannelImpressions95 public void append(ChannelImpressions additionalImpressions) { in append()136 public static final Creator<ChannelImpressions> CREATOR = new Creator<ChannelImpressions>() {138 public ChannelImpressions createFromParcel(Parcel in) {139 return new ChannelImpressions(in);143 public ChannelImpressions[] newArray(int size) {144 return new ChannelImpressions[size];153 ChannelImpressions that = (ChannelImpressions) o; in equals()
96 private final ArrayMap<String, ChannelImpressions> mkeyToImpressions = new ArrayMap<>();171 ChannelImpressions ci = createChannelImpressionsWithThresholds(); in readXml()207 for (Map.Entry<String, ChannelImpressions> entry in writeXml()298 ChannelImpressions ci = mkeyToImpressions.getOrDefault(key,326 ChannelImpressions ci = mkeyToImpressions.getOrDefault(key, in onNotificationRemoved()486 public ChannelImpressions getImpressions(String key) { in getImpressions()493 public void insertImpressions(String key, ChannelImpressions ci) { in insertImpressions()499 private ChannelImpressions createChannelImpressionsWithThresholds() { in createChannelImpressionsWithThresholds()500 ChannelImpressions impressions = new ChannelImpressions(); in createChannelImpressionsWithThresholds()508 for (ChannelImpressions channelImpressions: mkeyToImpressions.values()) { in updateThresholds()
155 ChannelImpressions.DEFAULT_DISMISS_TO_VIEW_RATIO_LIMIT); in update()160 ChannelImpressions.DEFAULT_STREAK_LIMIT); in update()