Home
last modified time | relevance | path

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

12345678910>>...12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowNotificationBuilderTest.java30 Notification notification = builder.setContentTitle("Hello").build(); in build_setsContentTitleOnNotification() local
31 assertThat(shadowOf(notification).getContentTitle().toString()).isEqualTo("Hello"); in build_setsContentTitleOnNotification()
36 Notification notification = builder.build(); in build_whenSetOngoingNotSet_leavesSetOngoingAsFalse() local
37 assertThat(shadowOf(notification).isOngoing()).isFalse(); in build_whenSetOngoingNotSet_leavesSetOngoingAsFalse()
42 Notification notification = builder.setOngoing(true).build(); in build_whenSetOngoing_setsOngoingToTrue() local
43 assertThat(shadowOf(notification).isOngoing()).isTrue(); in build_whenSetOngoing_setsOngoingToTrue()
49 Notification notification = builder.setWhen(100).setShowWhen(true).build(); in build_whenShowWhenNotSet_setsShowWhenOnNotificationToTrue() local
51 assertThat(shadowOf(notification).isWhenShown()).isTrue(); in build_whenShowWhenNotSet_setsShowWhenOnNotificationToTrue()
57 Notification notification = builder.setShowWhen(false).build(); in build_setShowWhenOnNotification() local
59 assertThat(shadowOf(notification).isWhenShown()).isFalse(); in build_setShowWhenOnNotification()
[all …]
DShadowNotificationTest.java19 Notification notification = new Notification(); in setLatestEventInfo__shouldCaptureContentIntent() local
20 notification.setLatestEventInfo(application, "title", "content", pendingIntent); in setLatestEventInfo__shouldCaptureContentIntent()
21 assertThat(notification.contentIntent).isSameAs(pendingIntent); in setLatestEventInfo__shouldCaptureContentIntent()
/external/guava/guava-tests/test/com/google/common/cache/
DNullCacheTest.java51 RemovalNotification<Object, Object> notification = listener.remove(); in testGet() local
52 assertSame(key, notification.getKey()); in testGet()
53 assertSame(computed, notification.getValue()); in testGet()
54 assertSame(RemovalCause.SIZE, notification.getCause()); in testGet()
68 RemovalNotification<Object, Object> notification = listener.remove(); in testGet_expireAfterWrite() local
69 assertSame(key, notification.getKey()); in testGet_expireAfterWrite()
70 assertSame(computed, notification.getValue()); in testGet_expireAfterWrite()
71 assertSame(RemovalCause.SIZE, notification.getCause()); in testGet_expireAfterWrite()
85 RemovalNotification<Object, Object> notification = listener.remove(); in testGet_expireAfterAccess() local
86 assertSame(key, notification.getKey()); in testGet_expireAfterAccess()
[all …]
DTestingRemovalListeners.java61 public void onRemoval(RemovalNotification<K, V> notification) { in onRemoval() argument
62 add(notification); in onRemoval()
75 public void onRemoval(RemovalNotification<K, V> notification) { in onRemoval() argument
77 lastNotification = notification; in onRemoval()
102 public void onRemoval(RemovalNotification<K, V> notification) {} in onRemoval() argument
DCacheBuilderTest.java430 RemovalNotification<String, String> notification = listener.remove(); in testRemovalNotification_clear() local
431 assertEquals("a", notification.getKey()); in testRemovalNotification_clear()
432 assertEquals("a", notification.getValue()); in testRemovalNotification_clear()
502 for (RemovalNotification<String, String> notification : listener) { in testRemovalNotification_clear_basher()
503 removalNotifications.put(notification.getKey(), notification.getValue()); in testRemovalNotification_clear_basher()
505 notification.getKey(), notification.getValue()); in testRemovalNotification_clear_basher()
586 for (RemovalNotification<String, String> notification : removalListener) { in testRemovalNotification_get_basher()
587 assertEquals("Invalid removal notification", notification.getKey(), notification.getValue()); in testRemovalNotification_get_basher()
/external/autotest/client/site_tests/security_ptraceRestrictions/src/
Dthread-prctl.c48 int notification[2]; variable
79 close(notification[0]); in tracer_main()
80 close(notification[1]); in tracer_main()
127 close(notification[1]); in tracee_main()
128 saw = read(notification[0], buf, 1024); in tracee_main()
160 saw = read(notification[0], buf, 1024); in tracee_main()
216 if (pipe(notification)<0) { in main()
254 close(notification[0]); in main()
256 write(notification[1], buf, strlen(buf)); in main()
264 write(notification[1], "stop", 4); in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigaction/
D10-1.c23 int notification; variable
30 notification = info->si_code; in handler()
32 switch (notification) { in handler()
48 while (notification != val) { in wait_for_notification()
84 notification = 0; in main()
95 notification = 0; in main()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_notify/
D2-1.c46 struct sigevent notification; in main() local
58 notification.sigev_notify = SIGEV_SIGNAL; in main()
59 notification.sigev_signo = SIGUSR1; in main()
60 if (mq_notify(mqdes, &notification) != 0) { in main()
73 if (mq_notify(mqdes, &notification) != -1) { in main()
D9-1.c45 struct sigevent notification; in main() local
57 notification.sigev_notify = SIGEV_SIGNAL; in main()
58 notification.sigev_signo = SIGUSR1; in main()
59 if (mq_notify(mqdes, &notification) != 0) { in main()
72 if (mq_notify(mqdes, &notification) == -1) { in main()
D4-1.c54 struct sigevent notification; in main() local
66 notification.sigev_notify = SIGEV_SIGNAL; in main()
67 notification.sigev_signo = SIGUSR1; in main()
71 if (mq_notify(mqdes, &notification) != 0) { in main()
86 if (mq_notify(mqdes, &notification) != 0) { in main()
D8-1.c37 struct sigevent notification; in main() local
41 notification.sigev_notify = SIGEV_SIGNAL; in main()
42 notification.sigev_signo = SIGUSR1; in main()
44 if (mq_notify(mqdes, &notification) == -1) { in main()
D1-1.c57 struct sigevent notification; in main() local
69 notification.sigev_notify = SIGEV_SIGNAL; in main()
70 notification.sigev_signo = SIGUSR1; in main()
74 if (mq_notify(mqdes, &notification) != 0) { in main()
D3-1.c57 struct sigevent notification; in main() local
67 notification.sigev_notify = SIGEV_SIGNAL; in main()
68 notification.sigev_signo = SIGUSR1; in main()
72 if (mq_notify(mqdes, &notification) != 0) { in main()
D5-1.c66 struct sigevent notification; in main() local
97 notification.sigev_notify = SIGEV_SIGNAL; in main()
98 notification.sigev_signo = SIGUSR1; in main()
102 if (mq_notify(mqdes, &notification) != 0) { in main()
/external/webrtc/webrtc/modules/utility/source/
Dfile_player_impl.cc208 uint32_t notification, in StartPlayingFile() argument
245 if (_fileModule.StartPlayingAudioFile(fileName, notification, loop, in StartPlayingFile()
257 if (_fileModule.StartPlayingAudioFile(fileName, notification, loop, in StartPlayingFile()
267 if (_fileModule.StartPlayingAudioFile(fileName, notification, loop, in StartPlayingFile()
289 uint32_t notification, in StartPlayingFile() argument
325 if (_fileModule.StartPlayingAudioStream(sourceStream, notification, in StartPlayingFile()
337 if (_fileModule.StartPlayingAudioStream(sourceStream, notification, in StartPlayingFile()
346 if (_fileModule.StartPlayingAudioStream(sourceStream, notification, in StartPlayingFile()
/external/guava/guava-tests/test/com/google/common/collect/
DMapMakerTest.java93 RemovalNotification<String, String> notification = listener.remove(); in testRemovalNotification_clear() local
94 assertEquals("a", notification.getKey()); in testRemovalNotification_clear()
95 assertEquals("a", notification.getValue()); in testRemovalNotification_clear()
164 for (RemovalNotification<String, String> notification : listener) { in testRemovalNotification_clear_basher()
165 removalNotifications.put(notification.getKey(), notification.getValue()); in testRemovalNotification_clear_basher()
167 notification.getKey(), notification.getValue()); in testRemovalNotification_clear_basher()
/external/sl4a/Utils/src/com/googlecode/android_scripting/
DForegroundService.java58 private void startForegroundCompat(Notification notification) { in startForegroundCompat() argument
62 mStartForegroundArgs[1] = notification; in startForegroundCompat()
73 if (notification != null) { in startForegroundCompat()
74 getNotificationManager().notify(mNotificationId, notification); in startForegroundCompat()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowService.java49 protected final void startForeground(int id, Notification notification) { in startForeground() argument
52 lastForegroundNotification = notification; in startForeground()
53 notification.flags |= Notification.FLAG_FOREGROUND_SERVICE; in startForeground()
55 nm.notify(id, notification); in startForeground()
/external/wpa_supplicant_8/src/eap_server/
Deap_server_aka.c43 u16 notification; member
597 wpa_printf(MSG_DEBUG, " AT_NOTIFICATION (%d)", data->notification); in eap_aka_build_notification()
598 eap_sim_msg_add(msg, EAP_SIM_AT_NOTIFICATION, data->notification, in eap_aka_build_notification()
724 data->notification = EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH; in eap_aka_determine_identity()
775 data->notification = EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH; in eap_aka_determine_identity()
820 data->notification = EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH; in eap_aka_fullauth()
866 data->notification = EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH; in eap_aka_process_identity()
878 data->notification = EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH; in eap_aka_process_identity()
885 data->notification = EAP_SIM_GENERAL_FAILURE_BEFORE_AUTH; in eap_aka_process_identity()
930 data->notification = in eap_aka_process_challenge()
[all …]
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DAudioTestService.java81 Notification notification; in runAsForegroundService() local
83 notification = builder.build(); in runAsForegroundService()
85 notification = builder.getNotification(); in runAsForegroundService()
88 startForeground(NOTIFICATION_ID, notification); in runAsForegroundService()
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/
DTerminalView.java59 private Toast notification = null; field in TerminalView
223 if (notification != null) { in notifyUser()
229 notification.setText(message); in notifyUser()
230 notification.show(); in notifyUser()
232 notification = Toast.makeText(context, message, Toast.LENGTH_SHORT); in notifyUser()
233 notification.show(); in notifyUser()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/
DFailureListener.java6 import org.junit.runner.notification.Failure;
7 import org.junit.runner.notification.RunListener;
8 import org.junit.runner.notification.RunNotifier;
/external/sl4a/ScriptingLayerForAndroid/src/com/googlecode/android_scripting/activity/
DServiceUtils.java50 Notification notification) { in setForeground() argument
57 startForeground.invoke(service, new Object[] { notificationId, notification }); in setForeground()
75 manager.notify(notificationId, notification); in setForeground()
/external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/
DTestingRemovalListeners.java52 public void onRemoval(RemovalNotification<K, V> notification) { in onRemoval() argument
54 lastNotification = notification; in onRemoval()
79 public void onRemoval(RemovalNotification<K, V> notification) {} in onRemoval() argument
/external/mockito/src/main/java/org/mockito/runners/
DVerboseMockitoJUnitRunner.java13 import org.junit.runner.notification.Failure;
14 import org.junit.runner.notification.RunListener;
15 import org.junit.runner.notification.RunNotifier;

12345678910>>...12