Home
last modified time | relevance | path

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

/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAdjustmentExtractorTest.java30 import android.service.notification.Adjustment;
50 signals.putString(Adjustment.KEY_GROUP_KEY, GroupHelper.AUTOGROUP_KEY); in testExtractsAdjustment()
53 signals.putParcelableArrayList(Adjustment.KEY_SNOOZE_CRITERIA, snoozeCriteria); in testExtractsAdjustment()
56 signals.putStringArrayList(Adjustment.KEY_PEOPLE, people); in testExtractsAdjustment()
57 Adjustment adjustment = new Adjustment("pkg", r.getKey(), signals, "", 0); in testExtractsAdjustment()
80 pSignals.putStringArrayList(Adjustment.KEY_PEOPLE, people); in testExtractsAdjustments()
81 Adjustment pAdjustment = new Adjustment("pkg", r.getKey(), pSignals, "", 0); in testExtractsAdjustments()
87 sSignals.putParcelableArrayList(Adjustment.KEY_SNOOZE_CRITERIA, snoozeCriteria); in testExtractsAdjustments()
88 Adjustment sAdjustment = new Adjustment("pkg", r.getKey(), sSignals, "", 0); in testExtractsAdjustments()
92 gSignals.putString(Adjustment.KEY_GROUP_KEY, GroupHelper.AUTOGROUP_KEY); in testExtractsAdjustments()
[all …]
DNotificationRecordTest.java58 import android.service.notification.Adjustment;
536 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment()
537 record.addAdjustment(new Adjustment(pkg, record.getKey(), signals, null, sbn.getUserId())); in testUserSentiment()
565 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment_appImportanceBlocksNegativeSentimentUpdate()
566 record.addAdjustment(new Adjustment(pkg, record.getKey(), signals, null, sbn.getUserId())); in testUserSentiment_appImportanceBlocksNegativeSentimentUpdate()
583 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment_userLocked()
584 record.addAdjustment(new Adjustment(pkg, record.getKey(), signals, null, sbn.getUserId())); in testUserSentiment_userLocked()
/frameworks/base/core/java/android/service/notification/
DAdjustment.java31 public final class Adjustment implements Parcelable { class
76 public Adjustment(String pkg, String key, Bundle signals, CharSequence explanation, int user) { in Adjustment() method in Adjustment
84 protected Adjustment(Parcel in) { in Adjustment() method in Adjustment
104 public static final Creator<Adjustment> CREATOR = new Creator<Adjustment>() {
106 public Adjustment createFromParcel(Parcel in) {
107 return new Adjustment(in);
111 public Adjustment[] newArray(int size) {
112 return new Adjustment[size];
DNotificationAssistantService.java87 abstract public Adjustment onNotificationEnqueued(StatusBarNotification sbn); in onNotificationEnqueued()
124 public final void adjustNotification(Adjustment adjustment) { in adjustNotification()
141 public final void adjustNotifications(List<Adjustment> adjustments) { in adjustNotifications()
221 Adjustment adjustment = onNotificationEnqueued(sbn); in handleMessage()
DAdjustment.aidl19 parcelable Adjustment;
/frameworks/base/packages/ExtServices/tests/src/android/ext/services/notification/
DAssistantTest.java40 import android.service.notification.Adjustment;
183 ArgumentCaptor<Adjustment> captor = ArgumentCaptor.forClass(Adjustment.class); in testTriggerAdjustment()
187 captor.getValue().getSignals().getInt(Adjustment.KEY_USER_SENTIMENT)); in testTriggerAdjustment()
218 ArgumentCaptor<Adjustment> captor = ArgumentCaptor.forClass(Adjustment.class); in testGroupChildCanTriggerAdjustment()
222 captor.getValue().getSignals().getInt(Adjustment.KEY_USER_SENTIMENT)); in testGroupChildCanTriggerAdjustment()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java55 import android.service.notification.Adjustment;
158 private final List<Adjustment> mAdjustments;
589 public void addAdjustment(Adjustment adjustment) { in addAdjustment()
597 for (Adjustment adjustment: mAdjustments) { in applyAdjustments()
599 if (signals.containsKey(Adjustment.KEY_PEOPLE)) { in applyAdjustments()
601 adjustment.getSignals().getStringArrayList(Adjustment.KEY_PEOPLE); in applyAdjustments()
604 if (signals.containsKey(Adjustment.KEY_SNOOZE_CRITERIA)) { in applyAdjustments()
607 Adjustment.KEY_SNOOZE_CRITERIA); in applyAdjustments()
610 if (signals.containsKey(Adjustment.KEY_GROUP_KEY)) { in applyAdjustments()
612 adjustment.getSignals().getString(Adjustment.KEY_GROUP_KEY); in applyAdjustments()
[all …]
/frameworks/base/core/java/android/app/
DINotificationManager.aidl31 import android.service.notification.Adjustment;
127 …void applyEnqueuedAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment… in applyEnqueuedAdjustmentFromAssistant()
128 void applyAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment); in applyAdjustmentFromAssistant()
129 …void applyAdjustmentsFromAssistant(in INotificationListener token, in List<Adjustment> adjustments… in applyAdjustmentsFromAssistant()
/frameworks/base/packages/ExtServices/src/android/ext/services/notification/
DAssistant.java34 import android.service.notification.Adjustment;
188 public Adjustment onNotificationEnqueued(StatusBarNotification sbn) { in onNotificationEnqueued()
291 private Adjustment createNegativeAdjustment(String packageName, String key, int user) { in createNegativeAdjustment()
294 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in createNegativeAdjustment()
295 return new Adjustment(packageName, key, signals, in createNegativeAdjustment()
/frameworks/base/api/
Dtest-current.txt840 public final class Adjustment implements android.os.Parcelable {
841 …ctor public Adjustment(java.lang.String, java.lang.String, android.os.Bundle, java.lang.CharSequen…
842 ctor protected Adjustment(android.os.Parcel);
850 …field public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> C…
862 method public final void adjustNotification(android.service.notification.Adjustment);
863 …hod public final void adjustNotifications(java.util.List<android.service.notification.Adjustment>);
865 …method public abstract android.service.notification.Adjustment onNotificationEnqueued(android.serv…
Dsystem-current.txt4544 public final class Adjustment implements android.os.Parcelable {
4545 …ctor public Adjustment(java.lang.String, java.lang.String, android.os.Bundle, java.lang.CharSequen…
4546 ctor protected Adjustment(android.os.Parcel);
4554 …field public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> C…
4584 method public final void adjustNotification(android.service.notification.Adjustment);
4585 …hod public final void adjustNotifications(java.util.List<android.service.notification.Adjustment>);
4587 …method public abstract android.service.notification.Adjustment onNotificationEnqueued(android.serv…
/frameworks/base/config/
Dhiddenapi-public-dex.txt39991 Landroid/service/notification/Adjustment;
39992 Landroid/service/notification/Adjustment;-><init>(Landroid/os/Parcel;)V
39993 Landroid/service/notification/Adjustment;-><init>(Ljava/lang/String;Ljava/lang/String;Landroid/os/B…
39994 Landroid/service/notification/Adjustment;->CREATOR:Landroid/os/Parcelable$Creator;
39995 Landroid/service/notification/Adjustment;->describeContents()I
39996 Landroid/service/notification/Adjustment;->getExplanation()Ljava/lang/CharSequence;
39997 Landroid/service/notification/Adjustment;->getKey()Ljava/lang/String;
39998 Landroid/service/notification/Adjustment;->getPackage()Ljava/lang/String;
39999 Landroid/service/notification/Adjustment;->getSignals()Landroid/os/Bundle;
40000 Landroid/service/notification/Adjustment;->getUser()I
[all …]
Dboot-image-profile.txt5079 HPLandroid/service/notification/Adjustment$1;-><init>()V
5080 …Landroid/service/notification/Adjustment$1;->createFromParcel(Landroid/os/Parcel;)Landroid/service…
5081 HPLandroid/service/notification/Adjustment$1;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Obje…
5082 HPLandroid/service/notification/Adjustment;-><init>(Landroid/os/Parcel;)V
14493 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
14495 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
29590 …eued(Landroid/service/notification/StatusBarNotification;)Landroid/service/notification/Adjustment;
57756 Landroid/service/notification/Adjustment$1;
57757 Landroid/service/notification/Adjustment;