Home
last modified time | relevance | path

Searched refs:notify (Results 1 – 25 of 209) sorted by relevance

123456789

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DOpenNetworkNotifierTest.java176 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_hasOpenNetworks_notificationDisplayed()
186 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed()
199 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed()
214 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared()
233 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared()
253 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared()
273 verify(mWifiNotificationManager).notify(anyInt(), any()); in clearPendingNotification_clearsNotificationIfOneIsShowing()
300 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in screenOff_notificationNotShowing_handleScanResults_notificationNotDisplayed()
315 verify(mWifiNotificationManager).notify(anyInt(), any()); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
330 verify(mWifiNotificationManager, times(2)).notify(anyInt(), any()); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
[all …]
DWifiNotificationManagerTest.java74 mWifiNotificationManager.notify(TEST_MESSAGE_ID, mNotification); in testNotify()
75 verify(mNotificationManager, never()).notify(anyString(), anyInt(), any()); in testNotify()
79 mWifiNotificationManager.notify(TEST_MESSAGE_ID, mNotification); in testNotify()
80 verify(mNotificationManager).notify(eq(NOTIFICATION_TAG), eq(TEST_MESSAGE_ID), any()); in testNotify()
98 mWifiNotificationManager.notify(TEST_MESSAGE_ID, mNotification); in testUserSwitchNotificationSendCorrect()
99 verify(mNotificationManager).notify(eq(NOTIFICATION_TAG), eq(TEST_MESSAGE_ID), any()); in testUserSwitchNotificationSendCorrect()
100 verify(mNotificationManagerForAnotherUser, never()).notify(anyString(), anyInt(), any()); in testUserSwitchNotificationSendCorrect()
112 mWifiNotificationManager.notify(TEST_MESSAGE_ID, mNotification); in testUserSwitchNotificationSendCorrect()
113 verify(mNotificationManagerForAnotherUser).notify(eq(NOTIFICATION_TAG), eq(TEST_MESSAGE_ID), in testUserSwitchNotificationSendCorrect()
115 verify(mNotificationManager, never()).notify(anyString(), anyInt(), any()); in testUserSwitchNotificationSendCorrect()
DWakeupOnboardingTest.java87 verify(mWifiNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in showsNotificationIfNotOnboarded()
99 .notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in doesNotShowNotificationIfAlreadyOnboarded()
112 inOrder.verify(mWifiNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), in doesNotShowNotificationIfAlreadyShowing()
234 inOrder.verify(mWifiNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), in doesNotShowMultipleNotificationsWithin24Hours()
255 .notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in showsNotificationsOutsideOf24Hours()
/packages/modules/NeuralNetworks/driver/sample/
DSampleDriverUtils.h31 void notify(const sp<V1_0::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status,
34 void notify(const sp<V1_2::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status,
37 void notify(const sp<V1_3::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status,
40 void notify(const sp<V1_0::IExecutionCallback>& callback, const V1_3::ErrorStatus& status,
43 void notify(const sp<V1_2::IExecutionCallback>& callback, const V1_3::ErrorStatus& status,
46 void notify(const sp<V1_3::IExecutionCallback>& callback, const V1_3::ErrorStatus& status,
66 notify(callback, V1_3::ErrorStatus::INVALID_ARGUMENT, nullptr);
70 notify(callback, V1_3::ErrorStatus::INVALID_ARGUMENT, nullptr);
75 notify(callback, V1_3::ErrorStatus::MISSED_DEADLINE_PERSISTENT, nullptr);
84 notify(callback, V1_3::ErrorStatus::INVALID_ARGUMENT, nullptr);
[all …]
DSampleDriverUtils.cpp27 void notify(const sp<V1_0::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
29 const auto ret = callback->notify(convertToV1_0(status), preparedModel); in notify()
35 void notify(const sp<V1_2::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
44 void notify(const sp<V1_3::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
53 void notify(const sp<V1_0::IExecutionCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
55 const auto ret = callback->notify(convertToV1_0(status)); in notify()
61 void notify(const sp<V1_2::IExecutionCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
69 void notify(const sp<V1_3::IExecutionCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
/packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/
DStatusNotification.java25 void notify(String status); in notify() method
28 notify("No OBD2 dongle paired. Go to Settings."); in notifyNoDongle()
32 notify("Paired to " + deviceAddress + ". Ready to capture data."); in notifyPaired()
36 notify("Unable to connect."); in notifyConnectionFailed()
40 notify("Connected to " + deviceAddress + ". Starting data capture."); in notifyConnected()
46 notify("Successfully captured data at " + now.format(dateTimeFormatter)); in notifyDataCapture()
52 notify("Exception occurred.\n" + stringWriter.toString()); in notifyException()
56 notify("Lost connection to remote end. Will try to reconnect."); in notifyDisconnected()
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverUtils.cpp38 void notify(const std::shared_ptr<aidl_hal::IPreparedModelCallback>& callback, in notify() function
41 const auto ret = callback->notify(status, preparedModel); in notify()
77 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
89 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
96 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
102 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
107 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
113 notify(callback, aidl_hal::ErrorStatus::MISSED_DEADLINE_PERSISTENT, nullptr); in prepareModelBase()
124 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
127 notify(callback, aidl_hal::ErrorStatus::NONE, preparedModel); in prepareModelBase()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java133 mManager.notify(mCurrentNotificationId++, notification); in initCarCategoriesButton()
149 mManager.notify(mCurrentNotificationId++, notification); in initCarCategoriesButton()
162 mManager.notify(mCurrentNotificationId++, notification); in initCarCategoriesButton()
194 v -> mManager.notify(mCurrentNotificationId++, notification1) in initImportanceHighBotton()
205 mManager.notify(mCurrentNotificationId++, notification); in initImportanceDefaultButton()
217 mManager.notify(mCurrentNotificationId++, notification); in initImportanceLowButton()
229 mManager.notify(mCurrentNotificationId++, notification); in initImportanceMinButton()
243 mManager.notify(mCurrentNotificationId++, notification); in initOngoingButton()
312 mManager.notify(id, notification.build()); in initMessagingStyleButtonForDiffPerson()
353 mManager.notify(12345, updateNotification.build()); in initMessagingStyleButtonForSamePerson()
[all …]
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/automatic/
DNotificationControllerTest.java72 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testShouldShowNotificationFirstTime()
84 verify(mNotificationManager, times(i)).notify(anyInt(), any(Notification.class)); in testNotificationNotShownIfShownTooManyTimes()
104 verify(mNotificationManager, times(i + 1)).notify(anyInt(), any(Notification.class)); in testNotificationNotShownIfDismissedTooManyTimes()
122 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testDismissNotificationDelay()
137 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testDismissNotificationDelay()
144 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testNoThanksNotificationDelay()
159 verify(mNotificationManager).notify(anyInt(), any(Notification.class)); in testNoThanksNotificationDelay()
179 verify(mNotificationManager).notify(anyInt(), captor.capture()); in testNotificationIsLocalOnly()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DNotificationHelper.java67 final Notification.Builder notify = new Notification.Builder(mContext) in showResumeNotification() local
78 notificationManager.notify(ENCRYPTION_NOTIFICATION_ID, notify.build()); in showResumeNotification()
89 final Notification.Builder notify = new Notification.Builder(mContext, CHANNEL_ID) in showPrivacyReminderNotification() local
101 notificationManager.notify(PRIVACY_REMINDER_NOTIFICATION_ID, notify.build()); in showPrivacyReminderNotification()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java199 .notify(eq(tag), eq(PRIVATE_DNS_BROKEN.eventId), any()); in verifyTitleByNetwork()
249 verify(mNotificationManager, times(1)).notify(eq(tag), eq(eventId), any()); in testNotificationsShownAndCleared()
262 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testNoInternetNotificationsNotShownForCellular()
268 verify(mNotificationManager, times(1)).notify(eq(tag), eq(eventId), any()); in testNoInternetNotificationsNotShownForCellular()
279 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testNotificationsNotShownIfNoInternetCapability()
285 verify(mNotificationManager, times(1)).notify(eq(TEST_NOTIF_TAG), eq(type.eventId), in assertNotification()
344 verify(mNotificationManager, times(1)).notify(eq(tag), eq(SIGN_IN.eventId), any()); in testDuplicatedNotificationsSignInThenNoInternet()
350 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testDuplicatedNotificationsSignInThenNoInternet()
366 verify(mNotificationManager, times(1)).notify(eq(tag), eq(NO_INTERNET.eventId), any()); in testClearNotificationByType()
375 verify(mNotificationManager, times(1)).notify(eq(tag), eq(SIGN_IN.eventId), any()); in testClearNotificationByType()
[all …]
/packages/services/Telephony/testapps/TelephonyRegistryTestApp/src/com/android/phone/testapps/telephonyregistry/
DTelephonyRegistryTestApp.java66 notify("onCellLocationChanged", location);
71 notify("onCellInfoChanged", cellInfo);
76 notify("onSrvccStateChanged", srvccState);
81 notify("onServiceStateChanged", state);
84 private void notify(String method, Object data) {
91 notificationManager.notify(0, notification);
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackNotifierTest.kt199 verify(mNm, never()).notify(any(), anyInt(), any()) in testNoNotification()
203 verify(mNm).notify(eq(TEST_NETWORK_TAG), mNoteIdCaptor.capture(), mNoteCaptor.capture()) in verifyConnectedNotification()
232 verify(mNm, never()).notify(any(), anyInt(), any()) in testConnectedNotification_NoSsid()
299 verify(mNm).notify(eq(TEST_NETWORK_TAG), mNoteIdCaptor.capture(), mNoteCaptor.capture()) in testVenueInfoNotification()
317 verify(mNm, never()).notify(any(), anyInt(), any()) in testVenueInfoNotification_VenueInfoDisabled()
328 verify(mNm, never()).notify(eq(TEST_NETWORK_TAG), anyInt(), any()) in testNonDefaultVenueInfoNotification()
339 verify(mNm, never()).notify(eq(TEST_NETWORK_TAG), anyInt(), any()) in testEmptyCaptivePortalDataVenueInfoNotification()
350 verify(mNm, never()).notify(eq(TEST_NETWORK_TAG), anyInt(), any()) in testUnvalidatedNetworkVenueInfoNotification()
368 verify(mNm).notify(eq(TEST_NETWORK_TAG), mNoteIdCaptor.capture(), mNoteCaptor.capture()) in testConnectedVenueInfoWithFriendlyNameNotification()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DIncomingCallNotifierTest.java98 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testSingleCall()
110 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testIncomingDuringOngoingCall()
126 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testIncomingDuringOngoingCall2()
142 verify(mNotificationManager).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testCallRemoved()
164 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testDontShowDuringHandover1()
183 verify(mNotificationManager, never()).notify(eq(IncomingCallNotifier.NOTIFICATION_TAG), in testDontShowDuringHandover2()
/packages/modules/adb/daemon/
Dusb.cpp207 uint64_t notify = 1; in Write() local
208 ssize_t rc = adb_write(worker_event_fd_.get(), &notify, sizeof(notify)); in Write()
223 uint64_t notify = 1; in Stop() local
224 ssize_t rc = adb_write(worker_event_fd_.get(), &notify, sizeof(notify)); in Stop()
228 CHECK_EQ(static_cast<size_t>(rc), sizeof(notify)); in Stop()
230 rc = adb_write(monitor_event_fd_.get(), &notify, sizeof(notify)); in Stop()
235 CHECK_EQ(static_cast<size_t>(rc), sizeof(notify)); in Stop()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java311 boolean notify = true; in insert()
343 notify = false; in insert()
347 notify = false; in insert()
351 notify = false; in insert()
355 notify = false; in insert()
599 if (notify) { in insert()
633 boolean notify = false; in delete()
641 notify = true; in delete()
650 notify = true; in delete()
695 if ((deletedRows > 0) && notify) { in delete()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/
DIngestService.java159 mNotificationManager.notify(R.id.ingest_notification_scanning, in setClientActivity()
234 mNotificationManager.notify(R.id.ingest_notification_importing, in onImportProgress()
251 mNotificationManager.notify(R.id.ingest_notification_importing, in onImportFinish()
268 mNotificationManager.notify(R.id.ingest_notification_scanning, in onObjectIndexed()
289 mNotificationManager.notify(R.id.ingest_notification_scanning, in onIndexingFinished()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestNotificationManager.java39 void notify(String tag, int id, Notification notification) { in notify() method in TestNotificationManager
59 notify(null, (Integer) args[0], (Notification) args[1]); in invoke()
62 notify((String) args[0], (Integer) args[1], (Notification) args[2]); in invoke()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DFileOperationService.java384 notificationManager.notify( in onStart()
450 notificationManager.notify(NOTIFICATION_ID_PROGRESS, notification); in updateForegroundState()
470 notificationManager.notify( in cleanUpNotification()
478 notificationManager.notify( in cleanUpNotification()
537 notificationManager.notify( in run()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DDraftMessageData.java253 private void setMessageText(final String messageText, final boolean notify) { in setMessageText() argument
256 if (notify) { in setMessageText()
261 private void setMessageSubject(final String subject, final boolean notify) { in setMessageSubject() argument
263 if (notify) { in setMessageSubject()
436 public void setSelfId(final String selfId, final boolean notify) { in setSelfId() argument
440 if (notify) { in setSelfId()
/packages/apps/Dialer/java/com/android/dialer/notification/
DDialerNotificationManager.java41 public static void notify(@NonNull Context context, int id, @NonNull Notification notification) { in notify() method in DialerNotificationManager
47 public static void notify( in notify() method in DialerNotificationManager
57 getNotificationManager(context).notify(tag, id, notification); in notify()
/packages/services/Car/cpp/evs/manager/1.1/
DHalCamera.cpp429 Return<void> HalCamera::notify(const EvsEventDesc& event) { in notify() function in android::automotive::evs::V1_1::implementation::HalCamera
444 if (!vCam->notify(event)) { in notify()
481 if (!prevPrimary->notify(event)) { in forceMaster()
501 auto cbResult = this->notify(event); in unsetMaster()
527 auto cbResult = this->notify(event); in setParameter()
/packages/modules/NeuralNetworks/shim_and_sl/
DShimDevice.cpp540 callback->notify(ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModel()
545 callback->notify(ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModel()
555 callback->notify(ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModel()
575 callback->notify(ErrorStatus::MISSED_DEADLINE_TRANSIENT, nullptr); in prepareModel()
596 callback->notify(ErrorStatus::NONE, preparedModel); in prepareModel()
611 const auto ret = callback->notify(ErrorStatus::GENERAL_FAILURE, nullptr); in prepareModelFromCache()
/packages/apps/Gallery/src/com/android/camera/
DImageGetter.java139 ImageGetter.this.notify();
257 notify();
282 notify();
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmNotifications.kt169 nm.notify(id, notification) in showLowPriorityNotification()
224 nm.notify(id, notification) in showHighPriorityNotification()
324 nm.notify(ALARM_GROUP_NOTIFICATION_ID, summary) in updateUpcomingAlarmGroupNotification()
375 nm.notify(ALARM_GROUP_MISSED_NOTIFICATION_ID, summary) in updateMissedAlarmGroupNotification()
429 nm.notify(id, notification) in showSnoozeNotification()
489 nm.notify(id, notification) in showMissedNotification()

123456789