HomeSort by relevance Sort by last modified time
    Searched refs:notification (Results 126 - 150 of 1309) sorted by null

1 2 3 4 56 7 8 91011>>

  /packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
ShadowAudioHelper.java 21 import com.android.settings.notification.AudioHelper;
  /cts/tests/tests/notificationlegacy/src/android/app/notification/legacy/cts/
MockNotificationListener.java 16 package android.app.notification.legacy.cts;
19 import android.service.notification.NotificationListenerService;
20 import android.service.notification.StatusBarNotification;
27 public static final String PKG = "android.app.notification.legacy.cts";
  /external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/
TestingRemovalListeners.java 52 public void onRemoval(RemovalNotification<K, V> notification) {
54 lastNotification = notification;
79 public void onRemoval(RemovalNotification<K, V> notification) {}
  /external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
ServiceUtils.java 19 import android.app.Notification;
45 * id of the notification to show
46 * @param notification
47 * the notification to show
50 Notification notification) {
51 final Class<?>[] startForegroundSignature = new Class[] { int.class, Notification.class };
57 startForeground.invoke(service, new Object[] { notificationId, notification });
75 manager.notify(notificationId, notification);
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
TestNotificationManager.java 23 import android.app.Notification;
36 private final SparseArray<HashMap<String, Notification>> mNotifications = new SparseArray<>();
44 private void notify(String tag, int id, Notification notification) {
45 if (notification == mForegroundManager.getForegroundNotification()
47 throw new IllegalStateException("Mismatching ID and notification.");
54 mNotifications.get(id).put(tag, notification);
58 final HashMap<String, Notification> idMap = mNotifications.get(id);
60 final Notification notification = idMap.get(tag) local
    [all...]
  /packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/preprovisioning/
ResumeNotificationHelperTest.java 23 import android.app.Notification;
28 import android.service.notification.StatusBarNotification;
72 StatusBarNotification notification = notifications[0]; local
73 assertEquals(notification.getId(), NOTIFICATION_ID);
74 assertEquals(notification.getNotification().getChannel(), CHANNEL_ID);
75 assertEquals(notification.getNotification().extras.getString(Notification.EXTRA_TITLE),
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
MockListener.java 18 import android.app.Notification;
20 import android.service.notification.NotificationListenerService;
21 import android.service.notification.NotificationStats;
22 import android.service.notification.StatusBarNotification;
62 ArrayList<Notification> mPostedNotifications = new ArrayList<Notification>();
140 Log.e(TAG, "failed to pack up notification payload", e);
152 JSONObject notification = new JSONObject(); local
154 notification.put(JSON_TAG, sbn.getTag());
155 notification.put(JSON_ID, sbn.getId())
160 mNotifications.put(sbn.getKey(), notification); local
    [all...]
  /developers/build/prebuilts/gradle/ActiveNotifications/Application/src/main/java/com/example/android/activenotifications/
ActiveNotificationsFragment.java 18 import android.app.Notification;
24 import android.service.notification.StatusBarNotification;
56 // Every notification needs a unique ID otherwise the previous one would be overwritten. This
96 // Create a PendingIntent to be fired upon deletion of a Notification.
104 * Adds a new {@link Notification} with sample data and sends it to the system.
106 * creates a notification summary if more than one notification exists.
110 // Create a Notification and notify the system.
119 final Notification notification = builder.build() local
120 mNotificationManager.notify(getNewNotificationId(), notification); local
144 final Notification notification = builder.build(); local
    [all...]
  /developers/samples/android/notification/ActiveNotifications/Application/src/main/java/com/example/android/activenotifications/
ActiveNotificationsFragment.java 18 import android.app.Notification;
24 import android.service.notification.StatusBarNotification;
56 // Every notification needs a unique ID otherwise the previous one would be overwritten. This
96 // Create a PendingIntent to be fired upon deletion of a Notification.
104 * Adds a new {@link Notification} with sample data and sends it to the system.
106 * creates a notification summary if more than one notification exists.
110 // Create a Notification and notify the system.
119 final Notification notification = builder.build() local
120 mNotificationManager.notify(getNewNotificationId(), notification); local
144 final Notification notification = builder.build(); local
    [all...]
  /development/samples/browseable/ActiveNotifications/src/com.example.android.activenotifications/
ActiveNotificationsFragment.java 18 import android.app.Notification;
24 import android.service.notification.StatusBarNotification;
56 // Every notification needs a unique ID otherwise the previous one would be overwritten. This
96 // Create a PendingIntent to be fired upon deletion of a Notification.
104 * Adds a new {@link Notification} with sample data and sends it to the system.
106 * creates a notification summary if more than one notification exists.
110 // Create a Notification and notify the system.
119 final Notification notification = builder.build() local
120 mNotificationManager.notify(getNewNotificationId(), notification); local
144 final Notification notification = builder.build(); local
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
ConfigureNotificationSettingsTest.java 17 package com.android.settings.notification;
19 import static com.android.settings.notification.ConfigureNotificationSettings.KEY_LOCKSCREEN;
20 import static com.android.settings.notification.ConfigureNotificationSettings
22 import static com.android.settings.notification.ConfigureNotificationSettings
24 import static com.android.settings.notification.ConfigureNotificationSettings.KEY_SWIPE_DOWN;
25 import static com.android.settings.notification.ConfigureNotificationSettings
39 import com.android.settings.notification.ConfigureNotificationSettings.SummaryProvider;
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
NotificationEntryManager.java 22 import android.app.Notification;
36 import android.service.notification.NotificationListenerService;
37 import android.service.notification.NotificationStats;
38 import android.service.notification.StatusBarNotification;
59 import com.android.systemui.statusbar.notification.InflationException;
60 import com.android.systemui.statusbar.notification.NotificationInflater;
61 import com.android.systemui.statusbar.notification.RowInflaterTask;
62 import com.android.systemui.statusbar.notification.VisualStabilityManager;
78 * Notification.*Manager objects.
145 Log.e(TAG, "NotificationClicker called on a view that is not a notification row.")
172 Notification notification = sbn.getNotification(); local
    [all...]
  /cts/hostsidetests/incident/src/com/android/server/cts/
NotificationIncidentTest.java 20 import android.service.notification.ConditionProto;
21 import android.service.notification.ManagedServicesProto;
22 import android.service.notification.NotificationRecordProto;
23 import android.service.notification.NotificationServiceDumpProto;
24 import android.service.notification.NotificationRecordProto.State;
25 import android.service.notification.RankingHelperProto;
26 import android.service.notification.RankingHelperProto.RecordProto;
27 import android.service.notification.ZenMode;
28 import android.service.notification.ZenModeProto;
29 import android.service.notification.ZenRuleProto
    [all...]
  /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
NotificationGroupManager.java 19 import android.app.Notification;
21 import android.service.notification.StatusBarNotification;
83 onEntryRemovedInternal(removed, removed.notification);
91 * @param sbn the notification the entry has, which doesn't need to be the same as it's internal
92 * notification
100 // cancellation of the first notification removes this group.
122 final StatusBarNotification sbn = added.notification;
160 String groupKey = getGroupKey(shadeEntry.notification);
179 // Because notification groups are not delivered as a whole unit, it may happen that a
186 // a scenario we would transfer the heads up to the old child and the wrong notification
    [all...]
  /frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
NotificationTestHelper.java 22 import android.app.Notification;
25 import android.service.notification.StatusBarNotification;
32 import com.android.systemui.statusbar.notification.NotificationInflaterTest;
68 public ExpandableNotificationRow createRow(Notification notification) throws Exception {
69 return generateRow(notification, PKG, UID, false /* isGroupRow */);
85 /** Returns a group notification with 2 child notifications. */
99 * Creates a notification row with the given details.
103 * @param isGroupSummary whether the notification row is a group summary
104 * @param groupKey the group key for the notification group used across notification
    [all...]
NotificationViewHierarchyManagerTest.java 37 import com.android.systemui.statusbar.notification.VisualStabilityManager;
92 // Tests 3 top level notifications becoming a single bundled notification with |entry0| as
106 when(mGroupManager.isChildInGroupWithSummary(entry0.notification)).thenReturn(false);
107 when(mGroupManager.isChildInGroupWithSummary(entry1.notification)).thenReturn(true);
108 when(mGroupManager.isChildInGroupWithSummary(entry2.notification)).thenReturn(true);
109 when(mGroupManager.getGroupSummary(entry1.notification)).thenReturn(entry0.row);
110 when(mGroupManager.getGroupSummary(entry2.notification)).thenReturn(entry0.row);
122 // Tests a bundled notification becoming three top level notifications.
129 // Set up the prior state to look like one top level notification.
135 when(mGroupManager.isChildInGroupWithSummary(entry0.notification)).thenReturn(false)
    [all...]
  /external/junit/src/main/java/junit/framework/
JUnit4TestAdapterCache.java 9 import org.junit.runner.notification.Failure;
10 import org.junit.runner.notification.RunListener;
11 import org.junit.runner.notification.RunNotifier;
  /external/mockito/src/main/java/org/mockito/runners/
ConsoleSpammingMockitoJUnitRunner.java 12 import org.junit.runner.notification.Failure;
13 import org.junit.runner.notification.RunListener;
14 import org.junit.runner.notification.RunNotifier;
VerboseMockitoJUnitRunner.java 13 import org.junit.runner.notification.Failure;
14 import org.junit.runner.notification.RunListener;
15 import org.junit.runner.notification.RunNotifier;
  /frameworks/support/compat/src/main/java/androidx/core/app/
NotificationCompatSideChannelService.java 19 import android.app.Notification;
34 * {@link android.service.notification.NotificationListenerService} within your package.
60 * Handle a side-channeled notification being posted.
62 public abstract void notify(String packageName, int id, String tag, Notification notification);
65 * Handle a side-channelled notification being cancelled.
79 public void notify(String packageName, int id, String tag, Notification notification)
84 NotificationCompatSideChannelService.this.notify(packageName, id, tag, notification);
  /packages/services/Car/tests/InstrumentClusterRendererSample/src/com/android/car/cluster/sample/
MessagingConverter.java 19 import android.app.Notification;
21 import android.service.notification.StatusBarNotification;
29 * Convert a {@link CarExtender} notification into a {@link MessageContactDetails}
35 Notification notification = sbn.getNotification(); local
36 if (notification == null) {
38 Log.d(TAG, "Notification is empty.");
45 Log.d(TAG, "Notification with no messaging component.");
53 Log.w(TAG, "Car message notification with no messages.");
58 Log.w(TAG, "Car message notification with no participant.")
    [all...]
  /prebuilts/jdk/jdk8/darwin-x86/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/
ScanDirAgent.java 51 import javax.management.Notification;
90 private final BlockingQueue<Notification> queue;
103 // Initialize the notification queue
104 queue = new LinkedBlockingQueue<Notification>();
108 public void handleNotification(Notification notification,
111 // Just put the received notification in the queue.
114 LOG.finer("Queuing received notification "+notification);
115 queue.put(notification);
    [all...]
  /prebuilts/jdk/jdk8/linux-x86/sample/jmx/jmx-scandir/src/com/sun/jmx/examples/scandir/
ScanDirAgent.java 51 import javax.management.Notification;
90 private final BlockingQueue<Notification> queue;
103 // Initialize the notification queue
104 queue = new LinkedBlockingQueue<Notification>();
108 public void handleNotification(Notification notification,
111 // Just put the received notification in the queue.
114 LOG.finer("Queuing received notification "+notification);
115 queue.put(notification);
    [all...]
  /frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
NotificationListenerServiceTest.java 17 package com.android.server.notification;
19 import static android.service.notification.NotificationListenerService.Ranking
21 import static android.service.notification.NotificationListenerService.Ranking
23 import static android.service.notification.NotificationListenerService.Ranking
39 import android.service.notification.NotificationListenerService;
40 import android.service.notification.NotificationListenerService.Ranking;
41 import android.service.notification.NotificationRankingUpdate;
42 import android.service.notification.SnoozeCriterion;
43 import android.service.notification.StatusBarNotification;
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
InstallCarrierAppUtils.java 22 import android.app.Notification;
32 import android.service.notification.StatusBarNotification;
48 // TODO(b/72714040) centralize notification IDs
73 Notification.Action goToStoreAction =
74 new Notification.Action.Builder(null, downloadButtonText, goToStore).build();
76 Notification notification = new Notification.Builder(context, local
83 .setVisibility(Notification.VISIBILITY_SECRET) // Should not appear on lock screen
89 notification);
    [all...]

Completed in 663 milliseconds

1 2 3 4 56 7 8 91011>>