Home
last modified time | relevance | path

Searched refs:Adjustment (Results 1 – 18 of 18) 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;
59 import android.service.notification.Adjustment;
491 record.addAdjustment(new Adjustment(PKG_O, KEY_IMPORTANCE, signals, "", uid)); in testLogMakerImportanceAsst()
568 record.addAdjustment(new Adjustment(PKG_O, KEY_IMPORTANCE, signals, "", uid)); in testLogMakerImportanceMulti()
641 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment()
642 record.addAdjustment(new Adjustment(pkg, record.getKey(), signals, null, sbn.getUserId())); in testUserSentiment()
670 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment_appImportanceBlocksNegativeSentimentUpdate()
671 record.addAdjustment(new Adjustment(pkg, record.getKey(), signals, null, sbn.getUserId())); in testUserSentiment_appImportanceBlocksNegativeSentimentUpdate()
688 signals.putInt(Adjustment.KEY_USER_SENTIMENT, USER_SENTIMENT_NEGATIVE); in testUserSentiment_userLocked()
689 record.addAdjustment(new Adjustment(pkg, record.getKey(), signals, null, sbn.getUserId())); in testUserSentiment_userLocked()
[all …]
DNotificationManagerServiceTest.java47 import static android.service.notification.Adjustment.KEY_IMPORTANCE;
48 import static android.service.notification.Adjustment.KEY_USER_SENTIMENT;
120 import android.service.notification.Adjustment;
941 Adjustment adjustment = new Adjustment( in testBlockedNotifications_blockedByAssistant()
2971 signals.putInt(Adjustment.KEY_USER_SENTIMENT, in testApplyAdjustmentMultiUser()
2973 Adjustment adjustment = new Adjustment( in testApplyAdjustmentMultiUser()
2992 Adjustment adjustment = new Adjustment( in testAssistantBlockingTriggersCancel()
3013 signals.putInt(Adjustment.KEY_USER_SENTIMENT, in testApplyEnqueuedAdjustmentFromAssistant_singleUser()
3015 Adjustment adjustment = new Adjustment( in testApplyEnqueuedAdjustmentFromAssistant_singleUser()
3033 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.java49 import android.service.notification.Adjustment;
173 private final List<Adjustment> mAdjustments;
600 for (Adjustment adjustment : mAdjustments) { in hasAdjustment()
609 public void addAdjustment(Adjustment adjustment) { in addAdjustment()
618 for (Adjustment adjustment: mAdjustments) { in applyAdjustments()
620 if (signals.containsKey(Adjustment.KEY_PEOPLE)) { in applyAdjustments()
622 adjustment.getSignals().getStringArrayList(Adjustment.KEY_PEOPLE); in applyAdjustments()
625 if (signals.containsKey(Adjustment.KEY_SNOOZE_CRITERIA)) { in applyAdjustments()
628 Adjustment.KEY_SNOOZE_CRITERIA); in applyAdjustments()
631 if (signals.containsKey(Adjustment.KEY_GROUP_KEY)) { in applyAdjustments()
[all …]
DNotificationManagerService.java180 import android.service.notification.Adjustment;
324 Adjustment.KEY_CONTEXTUAL_ACTIONS,
325 Adjustment.KEY_TEXT_REPLIES};
1899 mAssistants.allowAdjustmentType(Adjustment.KEY_IMPORTANCE); in registerDeviceConfigChange()
4038 Adjustment adjustment) {
4071 Adjustment adjustment) {
4072 List<Adjustment> adjustments = new ArrayList<>();
4079 List<Adjustment> adjustments) {
4086 for (Adjustment adjustment : adjustments) {
4093 if (adjustment.getSignals().containsKey(Adjustment.KEY_IMPORTANCE)
[all …]
/frameworks/base/core/java/android/app/
DINotificationManager.aidl31 import android.service.notification.Adjustment;
151 …void applyEnqueuedAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment… in applyEnqueuedAdjustmentFromAssistant()
152 void applyAdjustmentFromAssistant(in INotificationListener token, in Adjustment adjustment); in applyAdjustmentFromAssistant()
153 …void applyAdjustmentsFromAssistant(in INotificationListener token, in List<Adjustment> adjustments… in applyAdjustmentsFromAssistant()
DNotificationManager.java45 import android.service.notification.Adjustment;
1228 public @NonNull @Adjustment.Keys List<String> getAllowedAssistantAdjustments() { in getAllowedAssistantAdjustments()
/frameworks/base/api/
Dtest-lint-baseline.txt456 IntentName: android.service.notification.Adjustment#KEY_CONTEXTUAL_ACTIONS:
1438 MissingNullability: android.service.notification.Adjustment#Adjustment(String, String, android.os.B…
1440 MissingNullability: android.service.notification.Adjustment#Adjustment(String, String, android.os.B…
1442 MissingNullability: android.service.notification.Adjustment#Adjustment(String, String, android.os.B…
1444 MissingNullability: android.service.notification.Adjustment#Adjustment(String, String, android.os.B…
1446 MissingNullability: android.service.notification.Adjustment#writeToParcel(android.os.Parcel, int) p…
Dtest-current.txt2922 public final class Adjustment implements android.os.Parcelable {
2923 ctor public Adjustment(String, String, android.os.Bundle, CharSequence, int);
2924 …ctor public Adjustment(@NonNull String, @NonNull String, @NonNull android.os.Bundle, @NonNull Char…
2933 …public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> CREATOR;
2947 method public final void adjustNotification(@NonNull android.service.notification.Adjustment);
2948 …c final void adjustNotifications(@NonNull java.util.List<android.service.notification.Adjustment>);
2953 …method @Nullable public abstract android.service.notification.Adjustment onNotificationEnqueued(@N…
2954 …method @Nullable public android.service.notification.Adjustment onNotificationEnqueued(@NonNull an…
Dsystem-current.txt7369 public final class Adjustment implements android.os.Parcelable {
7370 ctor public Adjustment(String, String, android.os.Bundle, CharSequence, int);
7371 …ctor public Adjustment(@NonNull String, @NonNull String, @NonNull android.os.Bundle, @NonNull Char…
7372 ctor protected Adjustment(android.os.Parcel);
7381 …public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> CREATOR;
7392 method public final void adjustNotification(@NonNull android.service.notification.Adjustment);
7393 …c final void adjustNotifications(@NonNull java.util.List<android.service.notification.Adjustment>);
7398 …method @Nullable public abstract android.service.notification.Adjustment onNotificationEnqueued(@N…
7399 …method @Nullable public android.service.notification.Adjustment onNotificationEnqueued(@NonNull an…
/frameworks/base/non-updatable-api/
Dsystem-current.txt7267 public final class Adjustment implements android.os.Parcelable {
7268 ctor public Adjustment(String, String, android.os.Bundle, CharSequence, int);
7269 …ctor public Adjustment(@NonNull String, @NonNull String, @NonNull android.os.Bundle, @NonNull Char…
7270 ctor protected Adjustment(android.os.Parcel);
7279 …public static final android.os.Parcelable.Creator<android.service.notification.Adjustment> CREATOR;
7290 method public final void adjustNotification(@NonNull android.service.notification.Adjustment);
7291 …c final void adjustNotifications(@NonNull java.util.List<android.service.notification.Adjustment>);
7296 …method @Nullable public abstract android.service.notification.Adjustment onNotificationEnqueued(@N…
7297 …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
35732 Landroid/service/notification/Adjustment$1;
35733 Landroid/service/notification/Adjustment;
Dhiddenapi-greylist-max-o.txt6414 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
6416 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
6611 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
6613 …ant(Landroid/service/notification/INotificationListener;Landroid/service/notification/Adjustment;)V
63445 Landroid/service/notification/Adjustment;->KEY_GROUP_KEY:Ljava/lang/String;
63446 Landroid/service/notification/Adjustment;->mExplanation:Ljava/lang/CharSequence;
63447 Landroid/service/notification/Adjustment;->mKey:Ljava/lang/String;
63448 Landroid/service/notification/Adjustment;->mPackage:Ljava/lang/String;
63449 Landroid/service/notification/Adjustment;->mSignals:Landroid/os/Bundle;
63450 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