Home
last modified time | relevance | path

Searched refs:notification (Results 1 – 25 of 377) sorted by relevance

12345678910>>...16

/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java17 package android.service.notification;
42 private final Notification notification; field in StatusBarNotification
50 int initialPid, int score, Notification notification, UserHandle user) { in StatusBarNotification() argument
51 this(pkg, opPkg, id, tag, uid, initialPid, score, notification, user, in StatusBarNotification()
57 int initialPid, Notification notification, UserHandle user, String overrideGroupKey, in StatusBarNotification() argument
60 if (notification == null) throw new NullPointerException(); in StatusBarNotification()
68 this.notification = notification; in StatusBarNotification()
77 int initialPid, int score, Notification notification, UserHandle user, in StatusBarNotification() argument
80 if (notification == null) throw new NullPointerException(); in StatusBarNotification()
88 this.notification = notification; in StatusBarNotification()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java16 package com.android.server.notification;
18 import static android.service.notification.NotificationListenerService.Ranking.IMPORTANCE_MIN;
19 import static android.service.notification.NotificationListenerService.Ranking.IMPORTANCE_UNSPECIFI…
20 import static android.service.notification.NotificationListenerService.Ranking.IMPORTANCE_DEFAULT;
21 import static android.service.notification.NotificationListenerService.Ranking.IMPORTANCE_HIGH;
22 import static android.service.notification.NotificationListenerService.Ranking.IMPORTANCE_LOW;
23 import static android.service.notification.NotificationListenerService.Ranking.IMPORTANCE_MAX;
33 import android.service.notification.NotificationListenerService;
34 import android.service.notification.StatusBarNotification;
193 final Notification notification = sbn.getNotification(); in dump() local
[all …]
DNotificationIntrusivenessExtractor.java17 package com.android.server.notification;
21 import android.service.notification.NotificationListenerService;
48 final Notification notification = record.getNotification(); in process() local
49 if ((notification.defaults & Notification.DEFAULT_VIBRATE) != 0 || in process()
50 notification.vibrate != null || in process()
51 (notification.defaults & Notification.DEFAULT_SOUND) != 0 || in process()
52 notification.sound != null || in process()
53 notification.fullScreenIntent != null) { in process()
DNotificationUsageStats.java17 package com.android.server.notification;
19 import static android.service.notification.NotificationListenerService.Ranking.IMPORTANCE_HIGH;
36 import com.android.server.notification.NotificationManagerService.DumpFilter;
130 public synchronized void registerPostedByApp(NotificationRecord notification) { in registerPostedByApp() argument
132 notification.stats.posttimeElapsedMs = now; in registerPostedByApp()
134 AggregatedStats[] aggregatedStatsArray = getAggregatedStatsLocked(notification); in registerPostedByApp()
138 stats.countApiUse(notification); in registerPostedByApp()
142 mSQLiteLog.logPosted(notification); in registerPostedByApp()
149 public synchronized void registerUpdatedByApp(NotificationRecord notification, in registerUpdatedByApp() argument
151 notification.stats.updateFrom(old.stats); in registerUpdatedByApp()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DHybridNotificationView.java17 package com.android.systemui.statusbar.notification;
81 … public boolean transformTo(TransformState ownState, TransformableView notification, in onFinishInflate()
84 TransformState otherState = notification.getCurrentState( in onFinishInflate()
96 TransformableView notification, float transformationAmount) { in onFinishInflate()
98 TransformState otherState = notification.getCurrentState( in onFinishInflate()
139 public void transformTo(TransformableView notification, Runnable endRunnable) { in transformTo() argument
140 mTransformationHelper.transformTo(notification, endRunnable); in transformTo()
144 public void transformTo(TransformableView notification, float transformationAmount) { in transformTo() argument
145 mTransformationHelper.transformTo(notification, transformationAmount); in transformTo()
149 public void transformFrom(TransformableView notification) { in transformFrom() argument
[all …]
DNotificationBigPictureTemplateViewWrapper.java17 package com.android.systemui.statusbar.notification;
23 import android.service.notification.StatusBarNotification;
39 public void notifyContentUpdated(StatusBarNotification notification) { in notifyContentUpdated() argument
40 super.notifyContentUpdated(notification); in notifyContentUpdated()
41 updateImageTag(notification); in notifyContentUpdated()
44 private void updateImageTag(StatusBarNotification notification) { in updateImageTag() argument
45 final Bundle extras = notification.getNotification().extras; in updateImageTag()
DHybridGroupManager.java17 package com.android.systemui.statusbar.notification;
80 Notification notification) { in bindFromNotification() argument
84 CharSequence titleText = resolveTitle(notification); in bindFromNotification()
85 CharSequence contentText = resolveText(notification); in bindFromNotification()
90 private CharSequence resolveText(Notification notification) { in resolveText() argument
91 CharSequence contentText = notification.extras.getCharSequence(Notification.EXTRA_TEXT); in resolveText()
93 contentText = notification.extras.getCharSequence(Notification.EXTRA_BIG_TEXT); in resolveText()
98 private CharSequence resolveTitle(Notification notification) { in resolveTitle() argument
99 CharSequence titleText = notification.extras.getCharSequence(Notification.EXTRA_TITLE); in resolveTitle()
101 titleText = notification.extras.getCharSequence(Notification.EXTRA_TITLE_BIG); in resolveTitle()
DNotificationMediaTemplateViewWrapper.java17 package com.android.systemui.statusbar.notification;
20 import android.service.notification.StatusBarNotification;
38 private void resolveViews(StatusBarNotification notification) { in resolveViews() argument
43 public void notifyContentUpdated(StatusBarNotification notification) { in notifyContentUpdated() argument
46 resolveViews(notification); in notifyContentUpdated()
47 super.notifyContentUpdated(notification); in notifyContentUpdated()
DNotificationBigTextTemplateViewWrapper.java17 package com.android.systemui.statusbar.notification;
20 import android.service.notification.StatusBarNotification;
39 private void resolveViews(StatusBarNotification notification) { in resolveViews() argument
44 public void notifyContentUpdated(StatusBarNotification notification) { in notifyContentUpdated() argument
47 resolveViews(notification); in notifyContentUpdated()
48 super.notifyContentUpdated(notification); in notifyContentUpdated()
DNotificationTemplateViewWrapper.java17 package com.android.systemui.statusbar.notification;
22 import android.service.notification.StatusBarNotification;
55 TransformableView notification, final float transformationAmount) { in NotificationTemplateViewWrapper()
56 if (!(notification instanceof HybridNotificationView)) { in NotificationTemplateViewWrapper()
59 TransformState otherState = notification.getCurrentState( in NotificationTemplateViewWrapper()
81 TransformableView notification, float transformationAmount) { in NotificationTemplateViewWrapper()
82 if (!(notification instanceof HybridNotificationView)) { in NotificationTemplateViewWrapper()
85 TransformState otherState = notification.getCurrentState( in NotificationTemplateViewWrapper()
117 private void resolveTemplateViews(StatusBarNotification notification) { in resolveTemplateViews() argument
120 notification.getNotification().getLargeIcon()); in resolveTemplateViews()
[all …]
DNotificationHeaderViewWrapper.java17 package com.android.systemui.statusbar.notification;
29 import android.service.notification.StatusBarNotification;
92 public void notifyContentUpdated(StatusBarNotification notification) { in notifyContentUpdated() argument
93 super.notifyContentUpdated(notification); in notifyContentUpdated()
297 public void transformTo(TransformableView notification, Runnable endRunnable) { in transformTo() argument
298 mTransformationHelper.transformTo(notification, endRunnable); in transformTo()
302 public void transformTo(TransformableView notification, float transformationAmount) { in transformTo() argument
303 mTransformationHelper.transformTo(notification, transformationAmount); in transformTo()
307 public void transformFrom(TransformableView notification) { in transformFrom() argument
308 mTransformationHelper.transformFrom(notification); in transformFrom()
[all …]
/frameworks/base/docs/html/training/wearables/notifications/
Dpages.jd19 add one or more pages to the notification on the wearable. The additional pages
20 appear immediately to the right of the main notification card.
26 <p>To create a notification with multiple pages:</p>
28 <li>Create the main notification (the first page) with
30 in the way you'd like the notification to appear on a handset.</li>
33 <li>Apply the pages to the main notification with the
40 <p>For example, here's some code that adds a second page to a notification:</p>
43 // Create builder for the main notification
56 // Create second page notification
62 // Extend the notification builder with the second page
[all …]
Dstacks.jd23 notifications into a single summary notification. For example, if your app creates notifications
24 for received messages, you should not show more than one notification
25 on a handheld device&mdash;when more than one is message is received, use a single notification
28 <p>However, a summary notification is less useful on an Android wearable because users
32 card, which users can expand to view the details from each notification separately. The new
34 possible while allowing you to still provide only one summary notification on the handheld device.<…
39 for each notification you want in the stack and specify a
46 // Build the notification, setting the group appropriately
54 // Issue the notification
60 <p>Later on, when you create another notification, specify
[all …]
Dcreating.jd55 support library</a> allows you to create notifications using the latest notification features
59 <p>To create a notification with the support library, you create an instance of
60 {@link android.support.v4.app.NotificationCompat.Builder} and issue the notification by
66 // Build intent for notification content
83 // Build the notification and issues it with notification manager.
87 <p>When this notification appears on a handheld device, the user can invoke the
90 setContentIntent()} method by touching the notification. When this
91 notification appears on an Android wearable, the user can swipe the notification to the left to
105 <p>For example, the following code shows the same type of notification from above, but adds an
127 additional button attached to the notification. On a wearable, the action appears as
[all …]
/frameworks/base/docs/html/training/notify-user/
Dmanaging.jd40 When you need to issue a notification multiple times for the same type of event, you
41 should avoid making a completely new notification. Instead, you should consider updating a
42 previous notification, either by changing some of its values or by adding to it, or both.
50 To set up a notification so it can be updated, issue it with a notification ID by
52 NotificationManager.notify(ID, notification)}. To update this notification once you've issued
58 The following snippet demonstrates a notification that is updated to reflect the
59 number of events that have occurred. It stacks the notification, showing a summary:
64 // Sets an ID for the notification, so it can be updated
75 // Because the ID remains unchanged, the existing notification is
90 The user dismisses the notification either individually or by using "Clear All" (if
[all …]
Dbuild-notification.jd43 <p>This lesson explains how to create and issue a notification.</p>
51 provide the best notification support for a wide range of platforms. </p>
55 <p>When creating a notification, specify the UI content and actions with a
79 .setContentTitle(&quot;My notification&quot;)
87 notification. An action takes users directly from the notification to an
89 event that caused the notification or do further work. Inside a notification, the action itself is
96 android.app.Activity} from a notification, you must preserve the user's expected
97 navigation experience. In the snippet below, clicking the notification opens a
98 new activity that effectively extends the behavior of the notification. In this
105 // Because clicking the notification opens a new ("special") activity, there's
[all …]
Dexpanded.jd40 <p>Notifications in the notification drawer appear in two main visual styles,
41 normal view and big view. The big view of a notification only appears when the
42 notification is expanded. This happens when the notification is at the top of
43 the drawer, or the user clicks the notification. </p>
57 <strong>Figure 1.</strong> Normal view notification.
65 <strong>Figure 2.</strong> Big view notification.
73 <li>The ability to snooze or dismiss the notification.</li>
78 when the user clicks the notification. Keep this in mind as you design your notifications&mdash;fir…
80 this is how many users will interact with the notification.</p>
85 to construct and issue the notification.</p>
[all …]
Dindex.jd46 …A notification is a user interface element that you display outside your app's normal UI to indica…
47 …that an event has occurred. Users can choose to view the notification while using other apps and r…
55 implement the most common notification designs.
61 <strong><a href="build-notification.html">Building a Notification</a></strong>
64 Learn how to create a notification
66 required features, and issue the notification.
73 navigation for an {@link android.app.Activity} started from a notification.
89 Learn how to create a big view within an expanded notification, while still maintaining
99 Learn how to display the progress of an operation in a notification, both for
/frameworks/base/docs/html/wear/preview/features/
Dnotifications.jd44 <p><b>Figure 1.</b> Comparison of the same notification in Android Wear 1.x and 2.0.</p>
48 <li><strong>Updated touch targets of a notification</strong>:
50 is set or if the notification is
52 …e, then tapping the notification opens an <a href="{@docRoot}wear/preview/features/notifications.h…
53 If the notification is generated locally by a Wear app and if a
55 is set, tapping the notification fires the
62 notification needs to support both light (Wear 1.x) and dark (Wear 2.0)
75 <li><strong>Updated horizontal swipe gesture on a notification</strong>:
76 To dismiss a notification in Wear 2.0, the user swipes horizontally in either
77 direction. So if your notification instructs the user to swipe left or right,
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DViewTransformationHelper.java29 import com.android.systemui.statusbar.notification.TransformState;
67 public void transformTo(final TransformableView notification, final Runnable endRunnable) { in transformTo() argument
75 transformTo(notification, animation.getAnimatedFraction()); in transformTo()
104 public void transformTo(TransformableView notification, float transformationAmount) { in transformTo() argument
110 ownState, notification, transformationAmount)) { in transformTo()
114 TransformState otherState = notification.getCurrentState(viewType); in transformTo()
119 ownState.disappear(transformationAmount, notification); in transformTo()
127 public void transformFrom(final TransformableView notification) { in transformFrom() argument
135 transformFrom(notification, animation.getAnimatedFraction()); in transformFrom()
161 public void transformFrom(TransformableView notification, float transformationAmount) { in transformFrom() argument
[all …]
DNotificationOverflowIconsView.java57 public void addNotification(NotificationData.Entry notification) { in addNotification() argument
59 notification.notification.getNotification()); in addNotification()
62 v.set(notification.icon.getStatusBarIcon()); in addNotification()
63 applyColor(notification.notification.getNotification(), v); in addNotification()
67 private void applyColor(Notification notification, StatusBarIconView view) { in applyColor() argument
DTransformableView.java19 import com.android.systemui.statusbar.notification.TransformState;
45 void transformTo(TransformableView notification, Runnable endRunnable); in transformTo() argument
53 void transformTo(TransformableView notification, float transformationAmount); in transformTo() argument
60 void transformFrom(TransformableView notification); in transformFrom() argument
68 void transformFrom(TransformableView notification, float transformationAmount); in transformFrom() argument
/frameworks/base/docs/html/guide/topics/ui/notifiers/
Dnotifications.jd13 <li><a href="#Required">Required notification contents</a></li>
14 <li><a href="#Optional">Optional notification contents and settings</a></li>
17 <li><a href="#SimpleNotification">Creating a simple notification</a></li>
18 <li><a href="#ApplyStyle">Applying an expanded layout to a notification</a></li>
79 A notification is a message you can display to the user outside of your application's
80 normal UI. When you tell the system to issue a notification, it first appears as an icon in the
81 <strong>notification area</strong>. To see the details of the notification, the user opens the
82 <strong>notification drawer</strong>. Both the notification area and the notification drawer
90 <strong>Figure 1.</strong> Notifications in the notification area.
95 <strong>Figure 2.</strong> Notifications in the notification drawer.
[all …]
/frameworks/base/docs/html/design/patterns/
Dnotifications_k.jd18 <p itemprop="description">The notification system allows your app to keep the
24 <h2>Anatomy of a notification</h2>
31 <li>the sending application's notification icon or the sender's photo</li>
32 <li>a notification title and message</li>
41 Base layout of a notification
61 the notification. With actions, users can handle the most common tasks for a
62 particular notification from within the notification shade without having to
65 notification triaging experience.</p>
66 <p>Be judicious with how many actions you include with a notification. The
80 <li>duplicative of the default action of the notification (such as "Read"
[all …]
/frameworks/base/core/java/android/app/
DINotificationManager.aidl28 import android.service.notification.Adjustment;
29 import android.service.notification.Condition;
30 import android.service.notification.IConditionListener;
31 import android.service.notification.IConditionProvider;
32 import android.service.notification.INotificationListener;
33 import android.service.notification.StatusBarNotification;
35 import android.service.notification.ZenModeConfig;
45 in Notification notification, inout int[] idReceived, int userId); in enqueueNotificationWithTag() argument

12345678910>>...16