Home
last modified time | relevance | path

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

1234567891011

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiNotificationManagerTest.java77 mWifiNotificationManager.notify(TEST_MESSAGE_ID, mNotification); in testNotify()
78 verify(mNotificationManager, never()).notify(anyString(), anyInt(), any()); in testNotify()
82 mWifiNotificationManager.notify(TEST_MESSAGE_ID, mNotification); in testNotify()
83 verify(mNotificationManager).notify(eq(NOTIFICATION_TAG), eq(TEST_MESSAGE_ID), any()); in testNotify()
101 mWifiNotificationManager.notify(TEST_MESSAGE_ID, mNotification); in testUserSwitchNotificationSendCorrect()
102 verify(mNotificationManager).notify(eq(NOTIFICATION_TAG), eq(TEST_MESSAGE_ID), any()); in testUserSwitchNotificationSendCorrect()
103 verify(mNotificationManagerForAnotherUser, never()).notify(anyString(), anyInt(), any()); in testUserSwitchNotificationSendCorrect()
115 mWifiNotificationManager.notify(TEST_MESSAGE_ID, mNotification); in testUserSwitchNotificationSendCorrect()
116 verify(mNotificationManagerForAnotherUser).notify(eq(NOTIFICATION_TAG), eq(TEST_MESSAGE_ID), in testUserSwitchNotificationSendCorrect()
118 verify(mNotificationManager, never()).notify(anyString(), anyInt(), any()); in testUserSwitchNotificationSendCorrect()
[all …]
DOpenNetworkNotifierTest.java185 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_hasOpenNetworks_notificationDisplayed()
195 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_emptyList_notificationNotDisplayed()
208 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in handleScanResults_featureDisabled_notificationNotDisplayed()
223 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_emptyList_notificationCleared()
242 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_noRecommendation_notificationCleared()
262 verify(mWifiNotificationManager).notify(anyInt(), any()); in handleScanResults_notificationShown_screenOff_emptyList_notificationCleared()
282 verify(mWifiNotificationManager).notify(anyInt(), any()); in clearPendingNotification_clearsNotificationIfOneIsShowing()
309 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in screenOff_notificationNotShowing_handleScanResults_notificationNotDisplayed()
324 verify(mWifiNotificationManager).notify(anyInt(), any()); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
340 verify(mWifiNotificationManager, times(2)).notify(anyInt(), any()); in screenOff_notificationShowing_handleScanResults_recommendationCanBeUpdated()
[all …]
DWakeupOnboardingTest.java88 verify(mWifiNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in showsNotificationIfNotOnboarded()
100 .notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in doesNotShowNotificationIfAlreadyOnboarded()
113 inOrder.verify(mWifiNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), in doesNotShowNotificationIfAlreadyShowing()
235 inOrder.verify(mWifiNotificationManager).notify(eq(WakeupNotificationFactory.ONBOARD_ID), in doesNotShowMultipleNotificationsWithin24Hours()
256 .notify(eq(WakeupNotificationFactory.ONBOARD_ID), any()); in showsNotificationsOutsideOf24Hours()
DEapFailureNotifierTest.java193 verify(mWifiNotificationManager).notify(eq(EapFailureNotifier.NOTIFICATION_ID), any()); in onEapFailureWithDefinedErrorCodeWithoutNotificationShown()
220 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in onEapFailure_showNotificationFalse_notShown()
244 verify(mWifiNotificationManager).notify(eq(EapFailureNotifier.NOTIFICATION_ID), any()); in onEapFailureWithDefinedErrorCodeWithNotificationShownWithoutSameSsid()
324 verify(mWifiNotificationManager).notify(eq(EapFailureNotifier.NOTIFICATION_ID), any()); in onEapFailureWithUnknownErrorCode()
334 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in onEapFailureWithUnknownErrorCode()
357 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in onEapFailureWithCarrierOverrideForDisableParameters()
401 verify(mWifiNotificationManager).notify(eq(EapFailureNotifier.NOTIFICATION_ID), any()); in testPreTDeviceIgnoreSpecialFailure()
411 verify(mWifiNotificationManager, never()).notify(anyInt(), any()); in testPreTDeviceIgnoreSpecialFailure()
/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_hidl/
DSampleDriverUtils.h38 void notify(const sp<V1_0::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status,
41 void notify(const sp<V1_2::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status,
44 void notify(const sp<V1_3::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status,
47 void notify(const sp<V1_0::IExecutionCallback>& callback, const V1_3::ErrorStatus& status,
50 void notify(const sp<V1_2::IExecutionCallback>& callback, const V1_3::ErrorStatus& status,
53 void notify(const sp<V1_3::IExecutionCallback>& callback, const V1_3::ErrorStatus& status,
73 notify(callback, V1_3::ErrorStatus::INVALID_ARGUMENT, nullptr);
77 notify(callback, V1_3::ErrorStatus::INVALID_ARGUMENT, nullptr);
82 notify(callback, V1_3::ErrorStatus::MISSED_DEADLINE_PERSISTENT, nullptr);
91 notify(callback, V1_3::ErrorStatus::INVALID_ARGUMENT, nullptr);
[all …]
DSampleDriverUtils.cpp46 void notify(const sp<V1_0::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
48 const auto ret = callback->notify(convertToV1_0(status), preparedModel); in notify()
54 void notify(const sp<V1_2::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
63 void notify(const sp<V1_3::IPreparedModelCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
72 void notify(const sp<V1_0::IExecutionCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
74 const auto ret = callback->notify(convertToV1_0(status)); in notify()
80 void notify(const sp<V1_2::IExecutionCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
88 void notify(const sp<V1_3::IExecutionCallback>& callback, const V1_3::ErrorStatus& status, in notify() function
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverAidlUtils.cpp58 void notify(const std::shared_ptr<aidl_hal::IPreparedModelCallback>& callback, in notify() function
61 const auto ret = callback->notify(status, preparedModel); in notify()
97 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
109 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
116 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
122 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
127 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
133 notify(callback, aidl_hal::ErrorStatus::MISSED_DEADLINE_PERSISTENT, nullptr); in prepareModelBase()
144 notify(callback, aidl_hal::ErrorStatus::INVALID_ARGUMENT, nullptr); in prepareModelBase()
147 notify(callback, aidl_hal::ErrorStatus::NONE, preparedModel); in prepareModelBase()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/
DNotificationFragment.java158 mManager.notify(mCurrentNotificationId++, notification); in initCarCategoriesButton()
174 mManager.notify(mCurrentNotificationId++, notification); in initCarCategoriesButton()
187 mManager.notify(mCurrentNotificationId++, notification); in initCarCategoriesButton()
219 v -> mManager.notify(mCurrentNotificationId++, notification1) in initImportanceHighBotton()
230 mManager.notify(mCurrentNotificationId++, notification); in initImportanceDefaultButton()
242 mManager.notify(mCurrentNotificationId++, notification); in initImportanceLowButton()
254 mManager.notify(mCurrentNotificationId++, notification); in initImportanceMinButton()
281 mManager.notify(mCurrentNotificationId++, notification); in initIncomingButton()
307 mManager.notify(mCurrentNotificationId++, notification); in initIncomingButton()
321 mManager.notify(mCurrentNotificationId++, notification); in initOngoingButton()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/
DNotificationHelper.java68 final Notification.Builder notify = new Notification.Builder(mContext) in showResumeNotification() local
79 notificationManager.notify(ENCRYPTION_NOTIFICATION_ID, notify.build()); in showResumeNotification()
91 final Notification.Builder notify = new Notification.Builder(mContext, CHANNEL_ID) in showPrivacyReminderNotification() local
106 notificationManager.notify(PRIVACY_REMINDER_NOTIFICATION_ID, notify.build()); in showPrivacyReminderNotification()
/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/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/services/Car/cpp/evs/manager/aidl/wrappers/src/
DAidlCameraStream.cpp50 ScopedAStatus AidlCameraStream::notify(const EvsEventDesc& event) { in notify() function in aidl::android::automotive::evs::implementation::AidlCameraStream
51 return mImpl->notify(event); in notify()
89 ScopedAStatus AidlCameraStream::ImplV0::notify(const EvsEventDesc& event) { in notify() function in aidl::android::automotive::evs::implementation::AidlCameraStream::ImplV0
133 ScopedAStatus AidlCameraStream::ImplV1::notify(const EvsEventDesc& event) { in notify() function in aidl::android::automotive::evs::implementation::AidlCameraStream::ImplV1
144 if (auto status = mStream->notify(hidlEvent); !status.isOk()) { in notify()
DHidlCameraStream.cpp52 if (!mAidlStream->notify(event).isOk()) { in deliverFrame()
92 Return<void> HidlCameraStream::notify(const hidlevs::V1_1::EvsEventDesc& event) { in notify() function in aidl::android::automotive::evs::implementation::HidlCameraStream
98 if (!mAidlStream->notify(std::move(Utils::makeFromHidl(event))).isOk()) { in notify()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DNetworkNotificationManagerTest.java224 .notify(eq(tag), eq(PRIVATE_DNS_BROKEN.eventId), any()); in verifyTitleByNetwork()
274 verify(mNotificationManager, times(1)).notify(eq(tag), eq(eventId), any()); in testNotificationsShownAndCleared()
287 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testNoInternetNotificationsNotShownForCellular()
293 verify(mNotificationManager, times(1)).notify(eq(tag), eq(eventId), any()); in testNoInternetNotificationsNotShownForCellular()
304 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testNotificationsNotShownIfNoInternetCapability()
310 verify(mNotificationManager, times(1)).notify(eq(TEST_NOTIF_TAG), eq(type.eventId), in assertNotification()
369 verify(mNotificationManager, times(1)).notify(eq(tag), eq(SIGN_IN.eventId), any()); in testDuplicatedNotificationsSignInThenNoInternet()
375 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testDuplicatedNotificationsSignInThenNoInternet()
391 verify(mNotificationManager, times(1)).notify(eq(tag), eq(NO_INTERNET.eventId), any()); in testClearNotificationByType()
400 verify(mNotificationManager, times(1)).notify(eq(tag), eq(SIGN_IN.eventId), any()); in testClearNotificationByType()
[all …]
/packages/services/Car/cpp/evs/manager/aidl/wrappers/include/
DAidlCameraStream.h38 ::ndk::ScopedAStatus notify(const aidlevs::EvsEventDesc& event) override;
56 virtual ::ndk::ScopedAStatus notify(const aidlevs::EvsEventDesc& event) = 0;
74 ::ndk::ScopedAStatus notify(const aidlevs::EvsEventDesc& event) override;
83 ::ndk::ScopedAStatus notify(const aidlevs::EvsEventDesc& event) override;
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/
DNetworkStackNotifierTest.kt201 verify(mNm, never()).notify(any(), anyInt(), any()) in testNoNotification()
205 verify(mNm).notify(eq(TEST_NETWORK_TAG), mNoteIdCaptor.capture(), mNoteCaptor.capture()) in verifyConnectedNotification()
234 verify(mNm, never()).notify(any(), anyInt(), any()) in testConnectedNotification_NoSsid()
301 verify(mNm).notify(eq(TEST_NETWORK_TAG), mNoteIdCaptor.capture(), mNoteCaptor.capture()) in testVenueInfoNotification()
319 verify(mNm, never()).notify(any(), anyInt(), any()) in testVenueInfoNotification_VenueInfoDisabled()
330 verify(mNm, never()).notify(eq(TEST_NETWORK_TAG), anyInt(), any()) in testNonDefaultVenueInfoNotification()
341 verify(mNm, never()).notify(eq(TEST_NETWORK_TAG), anyInt(), any()) in testEmptyCaptivePortalDataVenueInfoNotification()
352 verify(mNm, never()).notify(eq(TEST_NETWORK_TAG), anyInt(), any()) in testUnvalidatedNetworkVenueInfoNotification()
370 verify(mNm).notify(eq(TEST_NETWORK_TAG), mNoteIdCaptor.capture(), mNoteCaptor.capture()) in testConnectedVenueInfoWithFriendlyNameNotification()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mcp/
DMediaControlGattService.java1170 private void setInitialCharacteristicValues(boolean notify) { in setInitialCharacteristicValues() argument
1173 updatePlayerNameChar("", notify); in setInitialCharacteristicValues()
1177 updateObjectID(ObjectIds.PLAYER_ICON_OBJ_ID, -1, notify); in setInitialCharacteristicValues()
1178 updateObjectID(ObjectIds.CURRENT_TRACK_SEGMENT_OBJ_ID, -1, notify); in setInitialCharacteristicValues()
1179 updateObjectID(ObjectIds.CURRENT_TRACK_OBJ_ID, -1, notify); in setInitialCharacteristicValues()
1180 updateObjectID(ObjectIds.NEXT_TRACK_OBJ_ID, -1, notify); in setInitialCharacteristicValues()
1181 updateObjectID(ObjectIds.CURRENT_GROUP_OBJ_ID, -1, notify); in setInitialCharacteristicValues()
1182 updateObjectID(ObjectIds.PARENT_GROUP_OBJ_ID, -1, notify); in setInitialCharacteristicValues()
1183 updateObjectID(ObjectIds.SEARCH_RESULT_OBJ_ID, -1, notify); in setInitialCharacteristicValues()
1184 updateTrackTitleChar("", notify); in setInitialCharacteristicValues()
[all …]
/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/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/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java375 boolean notify = true; in insert()
383 notify = false; in insert()
416 notify = false; in insert()
420 notify = false; in insert()
424 notify = false; in insert()
428 notify = false; in insert()
709 if (notify) { in insert()
744 boolean notify = false; in delete()
752 notify = true; in delete()
761 notify = true; in delete()
[all …]
/packages/services/Telephony/tests/src/com/android/phone/
DNotificationMgrTest.java205 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testUpdateCfi_visible_noActiveSubscription_notificationNeverSent()
292 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testUpdateNetworkSelection_justOutOfService_notificationNeverSent()
333 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testUpdateNetworkSelection_invalidSubscription_notificationNotSent()
346 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testUpdateNetworkSelection_nullCarrierConfig_notificationNotSent()
366 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testUpdateNetworkSelection_userNotAllowedToChooseOperator_notificationNotSent()
387 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testUpdateNetworkSelection_OverrideHideCarrierNetworkSelection_notificationNotSent()
408 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testUpdateNetworkSelection_simPreventManualSelection_notificationNotSent()
434 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testUpdateNetworkSelection_worldMode_userSetLTE_notificationNotSent()
461 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testUpdateNetworkSelection_worldMode_userSetTDSCDMA_notSupported_notifNotSent()
552 verify(mNotificationManager, never()).notify(any(), anyInt(), any()); in testUpdateNetworkSelection_gsmBasicOptionOff_notificationNotSent()
[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/modules/Bluetooth/system/btif/src/
Dbtif_gatt_client.cc148 data.bda = p_data->notify.bda; in btif_gattc_upstreams_evt()
149 memcpy(data.value, p_data->notify.value, p_data->notify.len); in btif_gattc_upstreams_evt()
151 data.handle = p_data->notify.handle; in btif_gattc_upstreams_evt()
152 data.is_notify = p_data->notify.is_notify; in btif_gattc_upstreams_evt()
153 data.len = p_data->notify.len; in btif_gattc_upstreams_evt()
155 HAL_CBACK(bt_gatt_callbacks, client->notify_cb, p_data->notify.conn_id, in btif_gattc_upstreams_evt()
158 if (!p_data->notify.is_notify) in btif_gattc_upstreams_evt()
159 BTA_GATTC_SendIndConfirm(p_data->notify.conn_id, p_data->notify.cid); in btif_gattc_upstreams_evt()
/packages/apps/ManagedProvisioning/studio-dev/StubGenerator/src/main/java/com/android/development/
DProgressBar.java27 lock.notify(); in update()
35 lock.notify(); in finish()

1234567891011