Home
last modified time | relevance | path

Searched refs:slot (Results 1 - 25 of 81) sorted by relevance

1234

/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_innerkits_module_slot_test.cpp82 * @tc.desc : Add notification slot(type is SOCIAL_COMMUNICATION), get notification slot and remove notification
83 * slot.
84 * @tc.expected : Add notification slot success, get notification slot correctly and remove notification slot success.
88 NotificationSlot slot(NotificationConstant::SOCIAL_COMMUNICATION); in HWTEST_F()
89 slot.SetEnableLight(true); in HWTEST_F()
90 slot.SetDescription("description"); in HWTEST_F()
91 slot in HWTEST_F()
[all...]
/base/msdp/device_status/tools/vdev/src/
H A Dvirtual_touchscreen.cpp98 int32_t VirtualTouchScreen::DownButton(int32_t slot, int32_t x, int32_t y) in DownButton() argument
101 if (slot < 0 || slot >= N_SLOTS_AVAILABLE) { in DownButton()
102 FI_HILOGD("Slot out of range, slot:%{public}d", slot); in DownButton()
103 slot = N_SLOTS_AVAILABLE - 1; in DownButton()
105 bool firstTouchDown = std::none_of(slots_.cbegin(), slots_.cend(), [](const auto &slot) { return slot.active; }); in DownButton()
106 if (slots_.size() <= static_cast<size_t>(slot)) { in DownButton()
110 slots_[slot] in DownButton()
125 UpButton(int32_t slot) UpButton() argument
157 Move(int32_t slot, int32_t dx, int32_t dy) Move() argument
198 MoveTo(int32_t slot, int32_t x, int32_t y) MoveTo() argument
[all...]
H A Dvirtual_touchscreen_builder.cpp287 int32_t slot = std::atoi(optarg); in ReadDownAction() local
290 std::cout << "[touchscreen] down: [" << slot << ", (" << x << "," << y << ")]" << std::endl; in ReadDownAction()
291 VirtualTouchScreen::GetDevice()->DownButton(slot, x, y); in ReadDownAction()
307 int32_t slot = std::atoi(optarg); in ReadMoveAction() local
313 std::cout << "[touchscreen] move: [" << slot << ", (" << dx << "," << dy << ")]" << std::endl; in ReadMoveAction()
314 VirtualTouchScreen::GetDevice()->Move(slot, dx, dy); in ReadMoveAction()
329 int32_t slot = std::atoi(optarg); in ReadUpAction() local
330 std::cout << "[touchscreen] release: [" << slot << "]" << std::endl; in ReadUpAction()
331 VirtualTouchScreen::GetDevice()->UpButton(slot); in ReadUpAction()
345 int32_t slot in ReadMoveToAction() local
367 int32_t slot = std::atoi(optarg); ReadDragToAction() local
446 int32_t slot = VirtualTouchScreenBuilder::GetModelValue(model, "slot", DEFAULT_VALUE_MINUS_ONE); HandleDown() local
458 int32_t slot = VirtualTouchScreenBuilder::GetModelValue(model, "slot", DEFAULT_VALUE_MINUS_ONE); HandleMove() local
470 int32_t slot = VirtualTouchScreenBuilder::GetModelValue(model, "slot", DEFAULT_VALUE_MINUS_ONE); HandleUp() local
478 int32_t slot = VirtualTouchScreenBuilder::GetModelValue(model, "slot", DEFAULT_VALUE_MINUS_ONE); HandleMoveTo() local
[all...]
/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_slot_filter.cpp32 if (record->slot != nullptr) { in OnPublish()
33 if (record->slot->CanEnableLight()) { in OnPublish()
35 record->notification->SetLedLightColor(record->slot->GetLedLightColor()); in OnPublish()
40 if (record->slot->CanVibrate()) { in OnPublish()
42 record->notification->SetVibrationStyle(record->slot->GetVibrationStyle()); in OnPublish()
47 auto sound = record->slot->GetSound(); in OnPublish()
50 record->notification->SetSound(record->slot->GetSound()); in OnPublish()
56 record->request->SetVisibleness(record->slot->GetLockScreenVisibleness()); in OnPublish()
59 ANS_LOGE("Non valid slot!"); in OnPublish()
H A Dadvanced_notification_slot_service.cpp79 for (auto slot : slots) { in AddSlots()
82 slot->GetType(), originalSlot); in AddSlots()
87 GenerateSlotReminderMode(slot, bundleOption, true); in AddSlots()
88 addSlots.push_back(slot); in AddSlots()
168 sptr<NotificationSlot> &slot) in GetSlotByBundle()
195 result = NotificationPreferences::GetInstance()->GetNotificationSlot(bundle, slotType, slot); in GetSlotByBundle()
198 if (slot != nullptr) { in GetSlotByBundle()
200 slot->GetAuthorizedStatus(), slot->GetAuthHintCnt()); in GetSlotByBundle()
266 // retain liveview slot befor in RemoveAllSlots()
166 GetSlotByBundle( const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot) GetSlotByBundle() argument
458 sptr<NotificationSlot> slot; AssignValidNotificationSlot() local
531 GenerateSlotReminderMode(const sptr<NotificationSlot> &slot, const sptr<NotificationBundleOption> &bundle, bool isSpecifiedSlot, uint32_t defaultSlotFlags) GenerateSlotReminderMode() argument
574 sptr<NotificationSlot> slot; SetRequestBySlotType() local
620 GetSlotByType( const NotificationConstant::SlotType &slotType, sptr<NotificationSlot> &slot) GetSlotByType() argument
712 AddSlotThenPublishEvent( const sptr<NotificationSlot> &slot, const sptr<NotificationBundleOption> &bundle, bool enabled, bool isForceControl) AddSlotThenPublishEvent() argument
753 sptr<NotificationSlot> slot; SetEnabledForBundleSlotInner() local
[all...]
H A Dpermission_filter.cpp47 sptr<NotificationSlot> slot; in OnPublish() local
50 result = NotificationPreferences::GetInstance()->GetNotificationSlot(record->bundleOption, slotType, slot); in OnPublish()
52 if (slot != nullptr) { in OnPublish()
53 isForceControl = slot->GetForceControl(); in OnPublish()
58 ANS_LOGE("Type[%{public}d] slot does not exist", slotType); in OnPublish()
H A Dnotification_preferences_database.cpp124 * Indicates that disturbe key which slot.
126 const static std::string KEY_SLOT = "slot";
129 * Indicates that disturbe key which slot type.
134 * Indicates that disturbe key which slot id.
139 * Indicates that disturbe key which slot name.
144 * Indicates that disturbe key which slot description.
149 * Indicates that disturbe key which slot level.
154 * Indicates that disturbe key which slot show badge.
159 * Indicates that disturbe key which slot enable light.
164 * Indicates that disturbe key which slot enabl
933 SlotToEntry(const std::string &bundleName, const int32_t &bundleUid, const sptr<NotificationSlot> &slot, std::unordered_map<std::string, std::string> &values) SlotToEntry() argument
950 GenerateSlotEntry(const std::string &bundleKey, const sptr<NotificationSlot> &slot, std::unordered_map<std::string, std::string> &values) const GenerateSlotEntry() argument
1025 sptr<NotificationSlot> slot = nullptr; ParseSlotFromDisturbeDB() local
1071 ParseSlot(const std::string &findString, sptr<NotificationSlot> &slot, const std::pair<std::string, std::string> &entry, const int32_t &userId) ParseSlot() argument
1083 SetSoltProperty(sptr<NotificationSlot> &slot, std::string &typeStr, std::string &valueStr, const std::string &findString, const int32_t &userId) SetSoltProperty() argument
1131 ExecuteDisturbeDB(sptr<NotificationSlot> &slot, std::string &typeStr, std::string &valueStr, const std::string &findString, const int32_t &userId) ExecuteDisturbeDB() argument
1313 ParseSlotDescription(sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotDescription() argument
1320 ParseSlotLevel(sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotLevel() argument
1327 ParseSlotShowBadge(sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotShowBadge() argument
1334 ParseSlotFlags(sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotFlags() argument
1348 ParseSlotEnableLight(sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotEnableLight() argument
1355 ParseSlotEnableVrbration( sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotEnableVrbration() argument
1363 ParseSlotLedLightColor( sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotLedLightColor() argument
1371 ParseSlotLockscreenVisibleness( sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotLockscreenVisibleness() argument
1381 ParseSlotSound(sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotSound() argument
1389 ParseSlotVibrationSytle( sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotVibrationSytle() argument
1398 ParseSlotEnableBypassDnd( sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotEnableBypassDnd() argument
1406 ParseSlotEnabled( sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotEnabled() argument
1414 ParseSlotAuthorizedStatus( sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotAuthorizedStatus() argument
1422 ParseSlotAuthHitnCnt( sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotAuthHitnCnt() argument
1430 ParseSlotReminderMode( sptr<NotificationSlot> &slot, const std::string &value) const ParseSlotReminderMode() argument
[all...]
H A Dnotification_preferences_info.cpp95 void NotificationPreferencesInfo::BundleInfo::SetSlot(const sptr<NotificationSlot> &slot) in SetSlot() argument
97 slots_.insert_or_assign(slot->GetType(), slot); in SetSlot()
101 const NotificationConstant::SlotType &type, sptr<NotificationSlot> &slot) const in GetSlot()
105 slot = iter->second; in GetSlot()
358 for (auto& slot : slots) { in GetAllCLoneBundlesInfo()
360 slotInfo.slotType_ = slot->GetType(); in GetAllCLoneBundlesInfo()
361 slotInfo.enable_ = slot->GetEnable(); in GetAllCLoneBundlesInfo()
362 slotInfo.isForceControl_ = slot->GetForceControl(); in GetAllCLoneBundlesInfo()
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslot_fuzzer/
H A Daddnotificationslot_fuzzer.cpp34 Notification::NotificationSlot slot; in DoSomethingInterestingWithMyAPI() local
35 slot.SetDescription(stringData); in DoSomethingInterestingWithMyAPI()
36 slot.SetEnableLight(*data % ENABLE); in DoSomethingInterestingWithMyAPI()
37 slot.SetEnableVibration(*data % ENABLE); in DoSomethingInterestingWithMyAPI()
38 slot.SetLedLightColor(GetU32Data(data)); in DoSomethingInterestingWithMyAPI()
43 slot.SetLevel(notificatoinLevel); in DoSomethingInterestingWithMyAPI()
48 slot.SetLockscreenVisibleness(visiblenessType); in DoSomethingInterestingWithMyAPI()
52 slot.SetType(slotType); in DoSomethingInterestingWithMyAPI()
54 return Notification::NotificationHelper::AddNotificationSlot(slot) == ERR_OK; in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/addnotificationslots_fuzzer/
H A Daddnotificationslots_fuzzer.cpp30 Notification::NotificationSlot slot; in DoSomethingInterestingWithMyAPI() local
31 slot.SetDescription(stringData); in DoSomethingInterestingWithMyAPI()
32 slot.SetEnableLight(*data % ENABLE); in DoSomethingInterestingWithMyAPI()
33 slot.SetEnableVibration(*data % ENABLE); in DoSomethingInterestingWithMyAPI()
34 slot.SetLedLightColor(GetU32Data(data)); in DoSomethingInterestingWithMyAPI()
39 slot.SetLevel(notificatoinLevel); in DoSomethingInterestingWithMyAPI()
44 slot.SetLockscreenVisibleness(visiblenessType); in DoSomethingInterestingWithMyAPI()
48 slot.SetType(slotType); in DoSomethingInterestingWithMyAPI()
51 slots.emplace_back(slot); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dpermission_filter_test.cpp59 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::OTHER); in HWTEST_F() local
61 slots.push_back(slot); in HWTEST_F()
69 record->slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
85 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::OTHER); in HWTEST_F() local
87 slots.push_back(slot); in HWTEST_F()
97 record->slot = slot; in HWTEST_F()
H A Dadvanced_notification_slot_service_test.cpp86 sptr<NotificationSlot> slot = new NotificationSlot(type); in TestAddSlot() local
87 slot->SetEnable(true); in TestAddSlot()
88 slots.push_back(slot); in TestAddSlot()
104 sptr<NotificationSlot> slot = new NotificationSlot(slotType); in HWTEST_F() local
105 slots.push_back(slot); in HWTEST_F()
184 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::LIVE_VIEW); in HWTEST_F() local
185 slot->SetEnable(true); in HWTEST_F()
186 slots.push_back(slot); in HWTEST_F()
359 sptr<NotificationSlot> slot; in HWTEST_F() local
365 ret = advancedNotificationService_->GetSlotByType(slotType, slot); in HWTEST_F()
396 sptr<NotificationSlot> slot = new NotificationSlot(slotType); HWTEST_F() local
434 sptr<NotificationSlot> slot = nullptr; HWTEST_F() local
451 sptr<NotificationSlot> slot = nullptr; HWTEST_F() local
498 sptr<NotificationSlot> slot = new (std::nothrow) NotificationSlot(NotificationConstant::SlotType::CUSTOMER_SERVICE); HWTEST_F() local
517 sptr<NotificationSlot> slot = new (std::nothrow) NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); HWTEST_F() local
531 sptr<NotificationSlot> slot = new (std::nothrow) NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); HWTEST_F() local
[all...]
H A Dnotification_preferences_test.cpp71 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); in TestAddNotificationSlot() local
73 slots.push_back(slot); in TestAddNotificationSlot()
79 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); in TestAddNotificationSlot() local
80 NotificationPreferences::GetInstance()->CheckSlotForCreateSlot(bundleOption_, slot, info); in TestAddNotificationSlot()
86 * @tc.desc : Add a notification slot into distrube DB , return is ERR_OK.
90 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F() local
92 slots.push_back(slot); in HWTEST_F()
99 * @tc.desc : Add a notification slot into distrube DB when bundleName is null, return is ERR_ANS_INVALID_PARAM.
103 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); in HWTEST_F() local
105 slots.push_back(slot); in HWTEST_F()
130 sptr<NotificationSlot> slot = nullptr; HWTEST_F() local
161 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
289 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
307 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
334 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
349 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
363 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
378 sptr<NotificationSlot> slot; HWTEST_F() local
392 sptr<NotificationSlot> slot; HWTEST_F() local
407 sptr<NotificationSlot> slot; HWTEST_F() local
422 sptr<NotificationSlot> slot; HWTEST_F() local
436 sptr<NotificationSlot> slot; HWTEST_F() local
1142 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
1156 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
1261 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
1277 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
1293 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::CONTENT_INFORMATION); HWTEST_F() local
1322 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
[all...]
/base/startup/init/services/begetctl/
H A Dpartitionslot.cpp56 std::cout << "The number of slots: " << bootSlots << "," << "current slot: " << currentSlot << std::endl; in GetSlot()
72 int slot = atoi(argv[1]); in GetSuffix() local
76 partitionslot->GetSlotSuffix(slot, suffix); in GetSuffix()
77 std::cout << "The slot " << slot << " matches with suffix: " << suffix << std::endl; in GetSuffix()
93 int slot = atoi(argv[1]); in SetActiveSlot() local
97 partitionslot->SetActiveSlot(slot); in SetActiveSlot()
99 std::cout << "Set active slot: " << slot << std::endl; in SetActiveSlot()
115 int slot in SetUnbootSlot() local
[all...]
/base/msdp/device_status/tools/vdev/include/
H A Dvirtual_touchscreen.h32 int32_t DownButton(int32_t slot, int32_t x, int32_t y);
33 int32_t UpButton(int32_t slot);
34 int32_t Move(int32_t slot, int32_t dx, int32_t dy);
35 int32_t MoveTo(int32_t slot, int32_t x, int32_t y);
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslot_fuzzer/
H A Dgetnotificationslot_fuzzer.cpp28 sptr<Notification::NotificationSlot> slot = nullptr; in DoSomethingInterestingWithMyAPI() local
31 slots.emplace_back(slot); in DoSomethingInterestingWithMyAPI()
34 return Notification::NotificationHelper::GetNotificationSlot(slotType, slot) == ERR_OK; in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/include/
H A Dnotification_preferences_database.h183 * @brief Delete slot from disturbe DB.
186 * @param type Indicates to slot type.
259 bool SlotToEntry(const std::string &bundleName, const int32_t &bundleUid, const sptr<NotificationSlot> &slot,
261 void GenerateSlotEntry(const std::string &bundleKey, const sptr<NotificationSlot> &slot,
294 void ParseSlot(const std::string &findString, sptr<NotificationSlot> &slot,
296 void ParseSlotDescription(sptr<NotificationSlot> &slot, const std::string &value) const;
297 void ParseSlotLevel(sptr<NotificationSlot> &slot, const std::string &value) const;
298 void ParseSlotShowBadge(sptr<NotificationSlot> &slot, const std::string &value) const;
299 void ParseSlotEnableLight(sptr<NotificationSlot> &slot, const std::string &value) const;
300 void ParseSlotEnableVrbration(sptr<NotificationSlot> &slot, cons
[all...]
/base/notification/distributed_notification_service/test/fuzztest/getnotificationslotsforbundle_fuzzer/
H A Dgetnotificationslotsforbundle_fuzzer.cpp28 sptr<Notification::NotificationSlot> slot = nullptr; in DoSomethingInterestingWithMyAPI() local
30 slots.emplace_back(slot); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/notificationsorting_fuzzer/
H A Dnotificationsorting_fuzzer.cpp31 sptr<Notification::NotificationSlot> slot = nullptr; in DoSomethingInterestingWithMyAPI() local
32 notificationSorting.SetSlot(slot); in DoSomethingInterestingWithMyAPI()
/base/telephony/cellular_call/services/manager/src/
H A Dcellular_call_service.cpp164 int32_t slot = it.first; in HandlerResetUnRegister() local
170 coreInner.UnRegisterCoreNotify(slot, handler, RadioEvent::RADIO_AVAIL); in HandlerResetUnRegister()
171 coreInner.UnRegisterCoreNotify(slot, handler, RadioEvent::RADIO_NOT_AVAIL); in HandlerResetUnRegister()
172 coreInner.UnRegisterCoreNotify(slot, handler, RadioEvent::RADIO_SIM_RECORDS_LOADED); in HandlerResetUnRegister()
173 coreInner.UnRegisterCoreNotify(slot, handler, RadioEvent::RADIO_SIM_ACCOUNT_LOADED); in HandlerResetUnRegister()
174 coreInner.UnRegisterCoreNotify(slot, handler, RadioEvent::RADIO_CALL_STATUS_INFO); in HandlerResetUnRegister()
175 coreInner.UnRegisterCoreNotify(slot, handler, RadioEvent::RADIO_CALL_USSD_NOTICE); in HandlerResetUnRegister()
176 coreInner.UnRegisterCoreNotify(slot, handler, RadioEvent::RADIO_CALL_SS_NOTICE); in HandlerResetUnRegister()
177 coreInner.UnRegisterCoreNotify(slot, handler, RadioEvent::RADIO_CALL_RINGBACK_VOICE); in HandlerResetUnRegister()
178 coreInner.UnRegisterCoreNotify(slot, handle in HandlerResetUnRegister()
202 int32_t slot = it.first; RegisterCoreServiceHandler() local
243 int32_t slot = DEFAULT_SIM_SLOT_ID; SendEventRegisterHandler() local
[all...]
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_manager_impl.cpp85 NotificationConstant::SlotType slot = NotificationConstant::SlotType::OTHER; in AddSlot() local
86 if (!SlotTypeCJToC(SlotType(type), slot)) { in AddSlot()
89 int code = NotificationHelper::AddSlotByType(slot); in AddSlot()
115 sptr<NotificationSlot> slot = nullptr; in GetSlot() local
116 errCode = ErrorToExternal(NotificationHelper::GetNotificationSlot(slotType, slot)); in GetSlot()
117 if (slot != nullptr && !SetNotificationSlot(*slot, notificationSlot)) { in GetSlot()
153 NotificationConstant::SlotType slot = NotificationConstant::SlotType::OTHER; in RemoveSlot() local
154 if (!SlotTypeCJToC(SlotType(type), slot)) { in RemoveSlot()
157 int code = NotificationHelper::RemoveNotificationSlot(slot); in RemoveSlot()
[all...]
/base/notification/distributed_notification_service/services/test/moduletest/
H A Dans_module_test.cpp173 * @tc.desc : Test publish notifications when slot not found, add it.
187 // add slot in HWTEST_F()
214 * @tc.desc : Test publish notification when slot type is SERVICE_REMINDER.
241 // add slot in HWTEST_F()
270 * @tc.desc : Test publish notification when slot type is CONTENT_INFORMATION.
286 // add slot in HWTEST_F()
312 * @tc.desc : Test publish notification when slot type is OTHER.
339 // add slot in HWTEST_F()
369 * @tc.desc : Test publish notification when slot type is SOCIAL_COMMUNICATION.
385 // add slot in HWTEST_F()
754 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::CONTENT_INFORMATION); HWTEST_F() local
802 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); HWTEST_F() local
847 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::CONTENT_INFORMATION); HWTEST_F() local
891 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::CONTENT_INFORMATION); HWTEST_F() local
945 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::CONTENT_INFORMATION); HWTEST_F() local
990 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); HWTEST_F() local
1032 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::CONTENT_INFORMATION); HWTEST_F() local
1074 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
1116 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::CUSTOM); HWTEST_F() local
1169 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); HWTEST_F() local
1195 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); HWTEST_F() local
1288 sptr<NotificationSlot> slot = new NotificationSlot(); HWTEST_F() local
1904 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); HWTEST_F() local
1965 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
2026 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::CONTENT_INFORMATION); HWTEST_F() local
2087 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); HWTEST_F() local
2149 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); HWTEST_F() local
2276 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); HWTEST_F() local
2395 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::CONTENT_INFORMATION); HWTEST_F() local
2435 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); HWTEST_F() local
2473 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); HWTEST_F() local
2515 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); HWTEST_F() local
2571 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::CONTENT_INFORMATION); HWTEST_F() local
2626 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::OTHER); HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannextwo_fuzzer/
H A Dansmanagerstubannextwo_fuzzer.cpp48 sptr<Notification::NotificationSlot> slot = new Notification::NotificationSlot(); in DoSomethingInterestingWithMyAPI() local
50 slots.emplace_back(slot); in DoSomethingInterestingWithMyAPI()
54 ansManagerStub.GetSlotByType(slotType, slot); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_sorting.cpp40 void NotificationSorting::SetSlot(const sptr<NotificationSlot> &slot) in SetSlot() argument
42 if (slot == nullptr) { in SetSlot()
46 slot_ = slot; in SetSlot()
64 ", slot = " + (slot_ != nullptr ? slot_->Dump() : "nullptr") + in Dump()
106 ANS_LOGE("Can't write slot"); in Marshalling()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon.cpp92 // slot: NotificationSlot in SetNotificationSorting()
100 napi_set_named_property(env, result, "slot", slotResult); in SetNotificationSorting()
133 napi_value Common::SetNotificationSlot(const napi_env &env, const NotificationSlot &slot, napi_value &result) in SetNotificationSlot() argument
140 if (!AnsEnumUtil::SlotTypeCToJS(slot.GetType(), outType)) { in SetNotificationSlot()
149 if (!AnsEnumUtil::SlotLevelCToJS(slot.GetLevel(), outLevel)) { in SetNotificationSlot()
156 napi_create_string_utf8(env, slot.GetDescription().c_str(), NAPI_AUTO_LENGTH, &value); in SetNotificationSlot()
160 napi_get_boolean(env, slot.IsShowBadge(), &value); in SetNotificationSlot()
164 napi_get_boolean(env, slot.IsEnableBypassDnd(), &value); in SetNotificationSlot()
168 int32_t lockScreenVisibleness = static_cast<int32_t>(slot.GetLockScreenVisibleness()); in SetNotificationSlot()
173 napi_get_boolean(env, slot in SetNotificationSlot()
700 GetNotificationSlot(const napi_env &env, const napi_value &value, NotificationSlot &slot) GetNotificationSlot() argument
756 GetNotificationSlotByString(const napi_env &env, const napi_value &value, NotificationSlot &slot) GetNotificationSlotByString() argument
802 GetNotificationSlotByBool(const napi_env &env, const napi_value &value, NotificationSlot &slot) GetNotificationSlotByBool() argument
857 GetNotificationSlotByNumber(const napi_env &env, const napi_value &value, NotificationSlot &slot) GetNotificationSlotByNumber() argument
917 GetNotificationSlotByVibration(const napi_env &env, const napi_value &value, NotificationSlot &slot) GetNotificationSlotByVibration() argument
[all...]

Completed in 20 milliseconds

1234