Home
last modified time | relevance | path

Searched refs:Notification (Results 1 – 25 of 147) sorted by relevance

123456

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowNotificationBuilderTest.java9 import android.app.Notification;
23 …private final Notification.Builder builder = new Notification.Builder(RuntimeEnvironment.applicati…
27 Notification notification = builder.setContentTitle("Hello").build(); in build_setsContentTitleOnNotification()
33 Notification notification = builder.build(); in build_whenSetOngoingNotSet_leavesSetOngoingAsFalse()
39 Notification notification = builder.setOngoing(true).build(); in build_whenSetOngoing_setsOngoingToTrue()
46 Notification notification = builder.setWhen(100).setShowWhen(true).build(); in build_whenShowWhenNotSet_setsShowWhenOnNotificationToTrue()
54 Notification notification = builder.setShowWhen(false).build(); in build_setShowWhenOnNotification()
61 Notification notification = builder.setContentText("Hello Text").build(); in build_setsContentTextOnNotification()
68 Notification notification = builder.setTicker("My ticker").build(); in build_setsTickerOnNotification()
76 Notification notification = builder.build(); in build_setsContentInfoOnNotification()
[all …]
DShadowServiceTest.java6 import android.app.Notification;
26 private Notification.Builder notBuilder;
35 notBuilder = new Notification.Builder(service) in setup()
66 Notification n = notBuilder.build(); in startForeground()
71 assertThat(n.flags & Notification.FLAG_FOREGROUND_SERVICE).isNotZero(); in startForeground()
94 Notification n = notBuilder.build(); in stopForegroundDoesntRemoveNotificationUnlessAsked()
106 Notification n = notBuilder.build(); in onDestroyRemovesNotification()
DShadowAccessibilityEventTest.java6 import android.app.Notification;
39 final Notification notification = new Notification(); in shouldRecordParcelables()
42 assertThat(anotherEvent.getParcelableData() instanceof Notification).isEqualTo(true); in shouldRecordParcelables()
DShadowNotificationTest.java6 import android.app.Notification;
19 Notification notification = new Notification(); in setLatestEventInfo__shouldCaptureContentIntent()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNotification.java7 import android.app.Notification;
23 @Implements(Notification.class)
27 Notification realNotification;
31 ? realNotification.extras.getString(Notification.EXTRA_TITLE) in getContentTitle()
37 ? realNotification.extras.getString(Notification.EXTRA_TEXT) in getContentText()
43 return realNotification.extras.getCharSequence(Notification.EXTRA_INFO_TEXT); in getContentInfo()
50 …return ((realNotification.flags & Notification.FLAG_ONGOING_EVENT) == Notification.FLAG_ONGOING_EV… in isOngoing()
55 return realNotification.extras.getCharSequence(Notification.EXTRA_BIG_TEXT); in getBigText()
63 return realNotification.extras.getCharSequence(Notification.EXTRA_TITLE_BIG); in getBigContentTitle()
71 return realNotification.extras.getCharSequence(Notification.EXTRA_SUMMARY_TEXT); in getBigContentText()
[all …]
DShadowService.java3 import android.app.Notification;
18 private Notification lastForegroundNotification;
39 public final void startForeground(int id, Notification notification) { in startForeground()
43 notification.flags |= Notification.FLAG_FOREGROUND_SERVICE; in startForeground()
67 public Notification getLastForegroundNotification() { in getLastForegroundNotification()
DShadowNotificationManager.java6 import android.app.Notification;
24 private Map<Key, Notification> notifications = new HashMap<>();
31 public void notify(int id, Notification notification) { in notify()
36 public void notify(String tag, int id, Notification notification) { in notify()
72 for (Map.Entry<Key, Notification> entry : notifications.entrySet()) { in getActiveNotifications()
190 public Notification getNotification(int id) { in getNotification()
194 public Notification getNotification(String tag, int id) { in getNotification()
198 public List<Notification> getAllNotifications() { in getAllNotifications()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowNotificationManager.java3 import android.app.Notification;
17 private Map<Integer, Notification> notifications = new HashMap<Integer, Notification>();
21 public void notify(int id, Notification notification) in notify()
27 public void notify(String tag, int id, Notification notification) { in notify()
61 public Notification getNotification(int id) { in getNotification()
65 public Notification getNotification(String tag) { in getNotification()
70 public List<Notification> getAllNotifications() { in getAllNotifications()
71 return new ArrayList<Notification>(notifications.values()); in getAllNotifications()
DShadowNotification.java3 import android.app.Notification;
11 @Implements(Notification.class)
14 public Notification getRealNotification() { in getRealNotification()
19 Notification realNotification;
DShadowService.java4 import android.app.Notification;
20 private Notification lastForegroundNotification;
58 public final void startForeground(int id, Notification notification) { in startForeground()
68 public Notification getLastForegroundNotification() { in getLastForegroundNotification()
/external/tensorflow/tensorflow/cc/training/
Dcoordinator_test.cc32 void WaitForStopThread(Coordinator* coord, Notification* about_to_wait, in WaitForStopThread()
33 Notification* done) { in WaitForStopThread()
43 Notification about_to_wait; in TEST()
44 Notification done; in TEST()
71 Notification* start = nullptr) { in StartCounting()
77 Notification* start) { in StartSettingStatus()
99 void CountThread(std::atomic<int>* counter, int until, Notification* start) { in CountThread()
108 Notification* start) { in SetStatusThread()
146 Notification start; in TEST()
178 Notification start; in TEST()
/external/tensorflow/tensorflow/core/platform/default/
Dnotification.h29 class Notification {
31 Notification() : notified_(0) {} in Notification() function
32 ~Notification() { in ~Notification()
60 friend bool WaitForNotificationWithTimeout(Notification* n,
80 inline bool WaitForNotificationWithTimeout(Notification* n, in WaitForNotificationWithTimeout()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dlocal_master.cc27 const int64 default_timeout_in_ms, Notification* n) { in WaitForNotification()
56 Notification n; in CreateSession()
70 Notification n; in ExtendSession()
84 Notification n; in PartialRunSetup()
98 Notification n; in RunStep()
121 Notification n; in CloseSession()
135 Notification n; in ListDevices()
149 Notification n; in Reset()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/service/
DTriggerService.java20 import android.app.Notification;
121 protected Notification createNotification() { in createNotification()
124 Notification.Builder builder = new Notification.Builder(this, CHANNEL_ID); in createNotification()
131 Notification notification = builder.build(); in createNotification()
132 notification.flags = Notification.FLAG_NO_CLEAR | Notification.FLAG_ONGOING_EVENT; in createNotification()
DScriptingLayerService.java19 import android.app.Notification;
67 private Notification mNotification;
118 protected Notification createNotification() { in createNotification()
124 Notification.Builder builder = new Notification.Builder(this, CHANNEL_ID); in createNotification()
132 mNotification.flags = Notification.FLAG_NO_CLEAR | Notification.FLAG_ONGOING_EVENT; in createNotification()
148 Notification.Builder builder = new Notification.Builder(this, CHANNEL_ID); in updateNotification()
/external/tensorflow/tensorflow/core/kernels/batching_util/
Dshared_batch_scheduler_test.cc57 test_util::FakeClockEnv* env, Notification* start, Notification* stop) { in CreateFakeClockAdvancerThread()
192 Notification start_teardown, stop_teardown; in TEST()
197 Notification first_batch_processed, second_batch_processed, in TEST()
258 Notification first_batch_processed, second_batch_processed; in TEST()
296 Notification start_teardown, stop_teardown; in TEST()
301 Notification first_batch_processed, second_batch_processed; in TEST()
341 Notification start_teardown, stop_teardown; in TEST()
346 Notification queue_0_first_batch_scheduled, queue_0_first_batch_proceed, in TEST()
360 Notification queue_1_first_batch_scheduled, queue_1_first_batch_proceed; in TEST()
412 Notification processing, proceed; in TEST()
[all …]
/external/deqp/android/package/src/com/drawelements/deqp/execserver/
DExecService.java27 import android.app.Notification;
28 import android.app.Notification.Builder;
86 Notification.Builder builder = new Notification.Builder(this); in onStartCommand()
87 Notification notification = builder.setContentIntent(pm) in onStartCommand()
/external/tensorflow/tensorflow/core/lib/core/
Dnotification_test.cc31 Notification start; in TEST()
32 Notification proceed; in TEST()
61 Notification n; in TEST()
82 Notification n; in TEST()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DAudioTestService.java19 import android.app.Notification;
61 Notification.Builder builder = new Notification.Builder(this) in runAsForegroundService()
64 Notification notification; in runAsForegroundService()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DNotificationManagerTest.java3 import android.app.Notification;
19 private Notification notification1 = new Notification();
20 private Notification notification2 = new Notification();
DNotificationTest.java4 import android.app.Notification;
19 Notification notification = new Notification(); in setLatestEventInfo__shouldCaptureContentIntent()
/external/sl4a/Utils/src/com/googlecode/android_scripting/
DForegroundService.java19 import android.app.Notification;
27 new Class[] { int.class, Notification.class };
42 protected abstract Notification createNotification(); in createNotification()
58 private void startForegroundCompat(Notification notification) { in startForegroundCompat()
/external/perfetto/test/cts/producer/src/android/perfetto/producer/
DProducerService.java19 import android.app.Notification;
29 Notification.Builder builder = new Notification.Builder(this, "service"); in onCreate()
DProducerIsolatedService.java19 import android.app.Notification;
29 Notification.Builder builder = new Notification.Builder(this, "isolated_service"); in onCreate()
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DServiceUtils.java19 import android.app.Notification;
50 Notification notification) { in setForeground()
51 final Class<?>[] startForegroundSignature = new Class[] { int.class, Notification.class }; in setForeground()

123456