Home
last modified time | relevance | path

Searched refs:Adjustment (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAdjustmentExtractorTest.java33 import android.service.notification.Adjustment;
53 signals.putString(Adjustment.KEY_GROUP_KEY, GroupHelper.AUTOGROUP_KEY); in testExtractsAdjustment()
56 signals.putParcelableArrayList(Adjustment.KEY_SNOOZE_CRITERIA, snoozeCriteria); in testExtractsAdjustment()
59 signals.putStringArrayList(Adjustment.KEY_PEOPLE, people); in testExtractsAdjustment()
62 signals.putParcelableArrayList(Adjustment.KEY_CONTEXTUAL_ACTIONS, smartActions); in testExtractsAdjustment()
63 Adjustment adjustment = new Adjustment("pkg", r.getKey(), signals, "", 0); in testExtractsAdjustment()
87 pSignals.putStringArrayList(Adjustment.KEY_PEOPLE, people); in testExtractsAdjustments()
88 Adjustment pAdjustment = new Adjustment("pkg", r.getKey(), pSignals, "", 0); in testExtractsAdjustments()
94 sSignals.putParcelableArrayList(Adjustment.KEY_SNOOZE_CRITERIA, snoozeCriteria); in testExtractsAdjustments()
95 Adjustment sAdjustment = new Adjustment("pkg", r.getKey(), sSignals, "", 0); in testExtractsAdjustments()
[all …]
DNotificationRecordTest.java22 import static android.service.notification.Adjustment.KEY_IMPORTANCE;
58 import android.service.notification.Adjustment;
465 record.addAdjustment(new Adjustment(PKG_O, KEY_IMPORTANCE, signals, "", uid)); in testLogMakerImportanceAsst()
542 record.addAdjustment(new Adjustment(PKG_O, KEY_IMPORTANCE, signals, "", uid)); in testLogMakerImportanceMulti()
615 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment()
616 record.addAdjustment(new Adjustment(pkg, record.getKey(), signals, null, sbn.getUserId())); in testUserSentiment()
644 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment_appImportanceBlocksNegativeSentimentUpdate()
645 record.addAdjustment(new Adjustment(pkg, record.getKey(), signals, null, sbn.getUserId())); in testUserSentiment_appImportanceBlocksNegativeSentimentUpdate()
662 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment_userLocked()
663 record.addAdjustment(new Adjustment(pkg, record.getKey(), signals, null, sbn.getUserId())); in testUserSentiment_userLocked()
[all …]
DNotificationManagerServiceTest.java46 import static android.service.notification.Adjustment.KEY_IMPORTANCE;
47 import static android.service.notification.Adjustment.KEY_USER_SENTIMENT;
119 import android.service.notification.Adjustment;
885 Adjustment adjustment = new Adjustment( in testBlockedNotifications_blockedByAssistant()
2907 signals.putInt(Adjustment.KEY_USER_SENTIMENT, in testApplyAdjustmentMultiUser()
2909 Adjustment adjustment = new Adjustment( in testApplyAdjustmentMultiUser()
2928 Adjustment adjustment = new Adjustment( in testAssistantBlockingTriggersCancel()
2949 signals.putInt(Adjustment.KEY_USER_SENTIMENT, in testApplyEnqueuedAdjustmentFromAssistant_singleUser()
2951 Adjustment adjustment = new Adjustment( in testApplyEnqueuedAdjustmentFromAssistant_singleUser()
2969 Adjustment adjustment = new Adjustment( in testApplyEnqueuedAdjustmentFromAssistant_importance()
[all …]
/frameworks/base/core/java/android/service/notification/
DAdjustment.java46 public final class Adjustment implements Parcelable { class
138 public Adjustment(String pkg, String key, Bundle signals, CharSequence explanation, int user) { in Adjustment() method in Adjustment
156 public Adjustment(@NonNull String pkg, @NonNull String key, @NonNull Bundle signals, in Adjustment() method in Adjustment
170 protected Adjustment(Parcel in) { in Adjustment() method in Adjustment
191 …blic static final @android.annotation.NonNull Creator<Adjustment> CREATOR = new Creator<Adjustment
193 public Adjustment createFromParcel(Parcel in) {
194 return new Adjustment(in);
198 public Adjustment[] newArray(int size) {
199 return new Adjustment[size];
DNotificationAssistantService.java133 abstract public @Nullable Adjustment onNotificationEnqueued(@NonNull StatusBarNotification sbn); in onNotificationEnqueued()
142 public @Nullable Adjustment onNotificationEnqueued(@NonNull StatusBarNotification sbn, in onNotificationEnqueued()
236 public final void adjustNotification(@NonNull Adjustment adjustment) { in adjustNotification()
254 public final void adjustNotifications(@NonNull List<Adjustment> adjustments) { in adjustNotifications()
257 for (Adjustment adjustment : adjustments) { in adjustNotifications()
373 private void setAdjustmentIssuer(@Nullable Adjustment adjustment) { in setAdjustmentIssuer()
401 Adjustment adjustment = onNotificationEnqueued(sbn, channel); in handleMessage()
DAdjustment.aidl19 parcelable Adjustment;
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java52 import android.service.notification.Adjustment;
176 private final List<Adjustment> mAdjustments;
630 for (Adjustment adjustment : mAdjustments) { in hasAdjustment()
639 public void addAdjustment(Adjustment adjustment) { in addAdjustment()
648 for (Adjustment adjustment: mAdjustments) { in applyAdjustments()
650 if (signals.containsKey(Adjustment.KEY_PEOPLE)) { in applyAdjustments()
652 adjustment.getSignals().getStringArrayList(Adjustment.KEY_PEOPLE); in applyAdjustments()
655 if (signals.containsKey(Adjustment.KEY_SNOOZE_CRITERIA)) { in applyAdjustments()
658 Adjustment.KEY_SNOOZE_CRITERIA); in applyAdjustments()
661 if (signals.containsKey(Adjustment.KEY_GROUP_KEY)) { in applyAdjustments()
[all …]
DNotificationManagerService.java178 import android.service.notification.Adjustment;
319 Adjustment.KEY_CONTEXTUAL_ACTIONS,
320 Adjustment.KEY_TEXT_REPLIES};
3961 Adjustment adjustment) {
3994 Adjustment adjustment) {
3995 List<Adjustment> adjustments = new ArrayList<>();
4002 List<Adjustment> adjustments) {
4009 for (Adjustment adjustment : adjustments) {
4016 if (adjustment.getSignals().containsKey(Adjustment.KEY_IMPORTANCE)
4017 && adjustment.getSignals().getInt(Adjustment.KEY_IMPORTANCE)
[all …]
/frameworks/base/core/java/android/app/
DINotificationManager.aidl31 import android.service.notification.Adjustment;
149 …void applyEnqueuedAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment… in applyEnqueuedAdjustmentFromAssistant()
150 void applyAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment); in applyAdjustmentFromAssistant()
151 …void applyAdjustmentsFromAssistant(in INotificationListener token, in List<Adjustment> adjustments… in applyAdjustmentsFromAssistant()
DNotificationManager.java45 import android.service.notification.Adjustment;
1209 public @NonNull @Adjustment.Keys List<String> getAllowedAssistantAdjustments() { in getAllowedAssistantAdjustments()
/frameworks/base/api/
Dtest-current.txt2633 public final class Adjustment implements android.os.Parcelable {
2634 ctor public Adjustment(String, String, android.os.Bundle, CharSequence, int);
2635 …ctor public Adjustment(@NonNull String, @NonNull String, @NonNull android.os.Bundle, @NonNull Char…
2644 …public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> CREATOR;
2658 method public final void adjustNotification(@NonNull android.service.notification.Adjustment);
2659 …c final void adjustNotifications(@NonNull java.util.List<android.service.notification.Adjustment>);
2664 …method @Nullable public abstract android.service.notification.Adjustment onNotificationEnqueued(@N…
2665 …method @Nullable public android.service.notification.Adjustment onNotificationEnqueued(@NonNull an…
Dsystem-current.txt6547 public final class Adjustment implements android.os.Parcelable {
6548 ctor public Adjustment(String, String, android.os.Bundle, CharSequence, int);
6549 …ctor public Adjustment(@NonNull String, @NonNull String, @NonNull android.os.Bundle, @NonNull Char…
6550 ctor protected Adjustment(android.os.Parcel);
6559 …public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> CREATOR;
6570 method public final void adjustNotification(@NonNull android.service.notification.Adjustment);
6571 …c final void adjustNotifications(@NonNull java.util.List<android.service.notification.Adjustment>);
6576 …method @Nullable public abstract android.service.notification.Adjustment onNotificationEnqueued(@N…
6577 …method @Nullable public android.service.notification.Adjustment onNotificationEnqueued(@NonNull an…
/frameworks/base/config/
Dpreloaded-classes3177 android.service.notification.Adjustment$1
3178 android.service.notification.Adjustment
Dboot-image-profile.txt1598 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
13170 HSPLandroid/service/notification/Adjustment$1;-><init>()V
13171 …Landroid/service/notification/Adjustment$1;->createFromParcel(Landroid/os/Parcel;)Landroid/service…
13172 HSPLandroid/service/notification/Adjustment$1;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Obj…
13173 HSPLandroid/service/notification/Adjustment;-><init>(Landroid/os/Parcel;)V
13174 HSPLandroid/service/notification/Adjustment;-><init>(Ljava/lang/String;Ljava/lang/String;Landroid/o…
13175 HSPLandroid/service/notification/Adjustment;->writeToParcel(Landroid/os/Parcel;I)V
13225 …ation/NotificationAssistantService;->adjustNotification(Landroid/service/notification/Adjustment;)V
35733 Landroid/service/notification/Adjustment$1;
35734 Landroid/service/notification/Adjustment;
Dhiddenapi-greylist-max-o.txt6831 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
6833 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
7030 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
7032 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
67968 Landroid/service/notification/Adjustment;->KEY_GROUP_KEY:Ljava/lang/String;
67969 Landroid/service/notification/Adjustment;->mExplanation:Ljava/lang/CharSequence;
67970 Landroid/service/notification/Adjustment;->mKey:Ljava/lang/String;
67971 Landroid/service/notification/Adjustment;->mPackage:Ljava/lang/String;
67972 Landroid/service/notification/Adjustment;->mSignals:Landroid/os/Bundle;
67973 Landroid/service/notification/Adjustment;->mUser:I
/frameworks/base/services/
Dart-profile9353 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
9355 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
9554 …ent(Lcom/android/server/notification/NotificationRecord;Landroid/service/notification/Adjustment;)V
9660 …/server/notification/NotificationRecord;->addAdjustment(Landroid/service/notification/Adjustment;)V