Home
last modified time | relevance | path

Searched refs:Adjustment (Results 1 – 17 of 17) 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;
23 import static android.service.notification.Adjustment.KEY_NOT_CONVERSATION;
63 import android.service.notification.Adjustment;
513 record.addAdjustment(new Adjustment(PKG_O, KEY_IMPORTANCE, signals, "", uid)); in testLogMakerImportanceAsst()
590 record.addAdjustment(new Adjustment(PKG_O, KEY_IMPORTANCE, signals, "", uid)); in testLogMakerImportanceMulti()
663 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment()
664 record.addAdjustment(new Adjustment(mPkg, record.getKey(), signals, null, sbn.getUserId())); in testUserSentiment()
692 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment_appImportanceBlocksNegativeSentimentUpdate()
693 record.addAdjustment(new Adjustment(mPkg, record.getKey(), signals, null, sbn.getUserId())); in testUserSentiment_appImportanceBlocksNegativeSentimentUpdate()
710 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment_userLocked()
[all …]
DNotificationManagerServiceTest.java53 import static android.service.notification.Adjustment.KEY_IMPORTANCE;
54 import static android.service.notification.Adjustment.KEY_USER_SENTIMENT;
136 import android.service.notification.Adjustment;
1176 Adjustment adjustment = new Adjustment( in testBlockedNotifications_blockedByAssistant()
3632 signals.putInt(Adjustment.KEY_USER_SENTIMENT, in testApplyAdjustmentMultiUser()
3634 Adjustment adjustment = new Adjustment( in testApplyAdjustmentMultiUser()
3653 Adjustment adjustment = new Adjustment( in testAssistantBlockingTriggersCancel()
3674 signals.putInt(Adjustment.KEY_USER_SENTIMENT, in testApplyEnqueuedAdjustmentFromAssistant_singleUser()
3676 Adjustment adjustment = new Adjustment( in testApplyEnqueuedAdjustmentFromAssistant_singleUser()
3694 Adjustment adjustment = new Adjustment( in testApplyEnqueuedAdjustmentFromAssistant_importance()
[all …]
/frameworks/base/core/java/android/service/notification/
DAdjustment.java46 public final class Adjustment implements Parcelable { class
152 public Adjustment(String pkg, String key, Bundle signals, CharSequence explanation, int user) { in Adjustment() method in Adjustment
170 public Adjustment(@NonNull String pkg, @NonNull String key, @NonNull Bundle signals, in Adjustment() method in Adjustment
184 protected Adjustment(Parcel in) { in Adjustment() method in Adjustment
205 …blic static final @android.annotation.NonNull Creator<Adjustment> CREATOR = new Creator<Adjustment
207 public Adjustment createFromParcel(Parcel in) {
208 return new Adjustment(in);
212 public Adjustment[] newArray(int size) {
213 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()
262 public final void adjustNotification(@NonNull Adjustment adjustment) { in adjustNotification()
280 public final void adjustNotifications(@NonNull List<Adjustment> adjustments) { in adjustNotifications()
283 for (Adjustment adjustment : adjustments) { in adjustNotifications()
432 private void setAdjustmentIssuer(@Nullable Adjustment adjustment) { in setAdjustmentIssuer()
463 Adjustment adjustment = onNotificationEnqueued(sbn, channel); in handleMessage()
DAdjustment.aidl19 parcelable Adjustment;
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java50 import android.service.notification.Adjustment;
177 private final List<Adjustment> mAdjustments;
614 for (Adjustment adjustment : mAdjustments) { in hasAdjustment()
623 public void addAdjustment(Adjustment adjustment) { in addAdjustment()
632 for (Adjustment adjustment: mAdjustments) { in applyAdjustments()
634 if (signals.containsKey(Adjustment.KEY_PEOPLE)) { in applyAdjustments()
636 adjustment.getSignals().getStringArrayList(Adjustment.KEY_PEOPLE); in applyAdjustments()
639 if (signals.containsKey(Adjustment.KEY_SNOOZE_CRITERIA)) { in applyAdjustments()
642 Adjustment.KEY_SNOOZE_CRITERIA); in applyAdjustments()
645 if (signals.containsKey(Adjustment.KEY_GROUP_KEY)) { in applyAdjustments()
[all …]
DNotificationManagerService.java198 import android.service.notification.Adjustment;
355 Adjustment.KEY_CONTEXTUAL_ACTIONS,
356 Adjustment.KEY_TEXT_REPLIES};
2160 mAssistants.allowAdjustmentType(Adjustment.KEY_IMPORTANCE); in registerDeviceConfigChange()
4824 Adjustment adjustment) {
4857 Adjustment adjustment) {
4858 List<Adjustment> adjustments = new ArrayList<>();
4865 List<Adjustment> adjustments) {
4872 for (Adjustment adjustment : adjustments) {
4879 if (adjustment.getSignals().containsKey(Adjustment.KEY_IMPORTANCE)
[all …]
/frameworks/base/core/java/android/app/
DINotificationManager.aidl33 import android.service.notification.Adjustment;
167 …void applyEnqueuedAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment… in applyEnqueuedAdjustmentFromAssistant()
168 void applyAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment); in applyAdjustmentFromAssistant()
169 …void applyAdjustmentsFromAssistant(in INotificationListener token, in List<Adjustment> adjustments… in applyAdjustmentsFromAssistant()
DNotificationManager.java46 import android.service.notification.Adjustment;
1377 public @NonNull @Adjustment.Keys List<String> getAllowedAssistantAdjustments() { in getAllowedAssistantAdjustments()
/frameworks/base/api/
Dtest-lint-baseline.txt470 IntentName: android.service.notification.Adjustment#KEY_CONTEXTUAL_ACTIONS:
1448 MissingNullability: android.service.notification.Adjustment#Adjustment(String, String, android.os.B…
1450 MissingNullability: android.service.notification.Adjustment#Adjustment(String, String, android.os.B…
1452 MissingNullability: android.service.notification.Adjustment#Adjustment(String, String, android.os.B…
1454 MissingNullability: android.service.notification.Adjustment#Adjustment(String, String, android.os.B…
1456 MissingNullability: android.service.notification.Adjustment#writeToParcel(android.os.Parcel, int) p…
Dtest-current.txt3658 public final class Adjustment implements android.os.Parcelable {
3659 ctor public Adjustment(String, String, android.os.Bundle, CharSequence, int);
3660 …ctor public Adjustment(@NonNull String, @NonNull String, @NonNull android.os.Bundle, @NonNull Char…
3669 …public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> CREATOR;
3684 method public final void adjustNotification(@NonNull android.service.notification.Adjustment);
3685 …c final void adjustNotifications(@NonNull java.util.List<android.service.notification.Adjustment>);
3690 …method @Nullable public abstract android.service.notification.Adjustment onNotificationEnqueued(@N…
3691 …method @Nullable public android.service.notification.Adjustment onNotificationEnqueued(@NonNull an…
Dsystem-current.txt9853 public final class Adjustment implements android.os.Parcelable {
9854 ctor public Adjustment(String, String, android.os.Bundle, CharSequence, int);
9855 …ctor public Adjustment(@NonNull String, @NonNull String, @NonNull android.os.Bundle, @NonNull Char…
9856 ctor protected Adjustment(android.os.Parcel);
9865 …public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> CREATOR;
9878 method public final void adjustNotification(@NonNull android.service.notification.Adjustment);
9879 …c final void adjustNotifications(@NonNull java.util.List<android.service.notification.Adjustment>);
9884 …method @Nullable public abstract android.service.notification.Adjustment onNotificationEnqueued(@N…
9885 …method @Nullable public android.service.notification.Adjustment onNotificationEnqueued(@NonNull an…
/frameworks/base/non-updatable-api/
Dsystem-current.txt8735 public final class Adjustment implements android.os.Parcelable {
8736 ctor public Adjustment(String, String, android.os.Bundle, CharSequence, int);
8737 …ctor public Adjustment(@NonNull String, @NonNull String, @NonNull android.os.Bundle, @NonNull Char…
8738 ctor protected Adjustment(android.os.Parcel);
8747 …public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> CREATOR;
8760 method public final void adjustNotification(@NonNull android.service.notification.Adjustment);
8761 …c final void adjustNotifications(@NonNull java.util.List<android.service.notification.Adjustment>);
8766 …method @Nullable public abstract android.service.notification.Adjustment onNotificationEnqueued(@N…
8767 …method @Nullable public android.service.notification.Adjustment onNotificationEnqueued(@NonNull an…
/frameworks/base/config/
Dpreloaded-classes5566 android.service.notification.Adjustment$1
5567 android.service.notification.Adjustment
Dboot-image-profile.txt17635 …Landroid/service/notification/Adjustment$1;->createFromParcel(Landroid/os/Parcel;)Landroid/service…
17636 HPLandroid/service/notification/Adjustment$1;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Obje…
17637 HPLandroid/service/notification/Adjustment;-><init>(Landroid/os/Parcel;)V
17638 HSPLandroid/service/notification/Adjustment;-><init>(Ljava/lang/String;Ljava/lang/String;Landroid/o…
45797 Landroid/service/notification/Adjustment$1;
45798 Landroid/service/notification/Adjustment;
/frameworks/base/services/
Dart-profile21273 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
21275 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
21655 …ice;Lcom/android/server/notification/NotificationRecord;Landroid/service/notification/Adjustment;)V
21683 …ent(Lcom/android/server/notification/NotificationRecord;Landroid/service/notification/Adjustment;)V
21856 …/server/notification/NotificationRecord;->addAdjustment(Landroid/service/notification/Adjustment;)V