Home
last modified time | relevance | path

Searched refs:sorting (Results 1 – 25 of 53) sorted by relevance

123

/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_sorting.cpp30 key_ = sorting.key_; in NotificationSorting()
31 ranking_ = sorting.ranking_; in NotificationSorting()
32 importance_ = sorting.importance_; in NotificationSorting()
33 isDisplayBadge_ = sorting.isDisplayBadge_; in NotificationSorting()
35 visiblenessOverride_ = sorting.visiblenessOverride_; in NotificationSorting()
36 groupKeyOverride_ = sorting.groupKeyOverride_; in NotificationSorting()
37 slot_ = sorting.slot_; in NotificationSorting()
149 if (sorting && !sorting->ReadFromParcel(parcel)) { in Unmarshalling()
151 delete sorting; in Unmarshalling()
152 sorting = nullptr; in Unmarshalling()
[all …]
H A Dnotification_sorting_map.cpp44 …ationSortingMap::GetNotificationSorting(const std::string &key, NotificationSorting &sorting) const in GetNotificationSorting()
48 sorting = item.second; in GetNotificationSorting()
73 for (auto &sorting : sortings_) { in Marshalling() local
74 if (!parcel.WriteParcelable(&sorting.second)) { in Marshalling()
97 NotificationSorting *sorting = parcel.ReadParcelable<NotificationSorting>(); in Unmarshalling() local
98 if (sorting != nullptr) { in Unmarshalling()
99 sortings.push_back(*sorting); in Unmarshalling()
101 delete sorting; in Unmarshalling()
102 sorting = nullptr; in Unmarshalling()
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_sorting_map_test.cpp46 NotificationSorting sorting; variable
101 NotificationSorting sorting; variable
103 sorting.SetImportance(importance);
104 sorting.SetRanking(ranking);
106 sorting.SetDisplayBadge(isDisplayBadge);
111 sorting.SetKey(std::to_string(i));
112 sortingList.emplace_back(sorting);
167 NotificationSorting sorting; variable
168 sortingList.emplace_back(sorting);
184 NotificationSorting sorting; variable
[all …]
H A Dnotification_sorting_test.cpp43 NotificationSorting sorting; variable
45 auto rrc = std::make_shared<NotificationSorting>(sorting);
57 NotificationSorting sorting; variable
59 auto rrc = std::make_shared<NotificationSorting>(sorting);
73 NotificationSorting sorting; variable
75 sorting.SetSlot(slot);
79 std::make_shared<NotificationSorting>(sorting);
98 NotificationSorting sorting; variable
100 sorting.SetSlot(slot);
101 auto rrc = std::make_shared<NotificationSorting>(sorting);
[all …]
/ohos5.0/docs/en/application-dev/internationalization/
H A Di18n-sorting-local.md54 | | direct | Binary code sorting.| |
56 | | eor | European sorting.| |
57 | | gb2312 | Pinyin sorting, only for Chinese.| |
58 | | phonebk | Phonebook-style sorting.| |
59 | | phonetic | Phonetic sorting.| |
60 | | pinyin | Pinyin sorting.| |
63 | | stroke | Stroke sorting for Chinese.| |
66 | | zhuyin | Zhuyin sorting, only for Chinese.| |
82 // Case-sensitive sorting
89 // Pinyin sorting for Chinese
[all …]
H A Di18n-sorting-overview.md3sorting rules for characters may vary according to languages and cultures. The sorting function al…
5 Currently, sorting can be implemented by [local habits](i18n-sorting-local.md) or [indexes](i18n-so…
H A DReadme-EN.md21 - [Overview of Multilingual Sorting](i18n-sorting-overview.md)
22 - [Sorting by Local Habits](i18n-sorting-local.md)
23 - [Sorting by Indexes](i18n-sorting-index.md)
/ohos5.0/docs/en/application-dev/reference/apis-notification-kit/
H A Djs-apis-inner-notification-notificationSortingMap-sys.md3 The **NotificationSortingMap** module provides APIs for defining the sorting information of active …
19 …ication-notificationSorting-sys.md)\> | Yes| Yes | Array of notification sorting information. …
20 | sortedHashCode | Array<string\> | Yes| Yes | Hash codes for notification sorting.|
H A Djs-apis-inner-notification-notificationSorting-sys.md3 The **NotificationSorting** module provides APIs for defining the sorting information of active not…
H A Djs-apis-inner-notification-notificationSubscriber-sys.md105 Called when notification sorting is updated.
115 …inner-notification-notificationSortingMap-sys.md)) => void | No| Latest notification sorting list.|
531 …s-inner-notification-notificationSortingMap-sys.md) | Yes | No | Notification sorting information.|
/ohos5.0/docs/zh-cn/application-dev/internationalization/
H A DReadme-CN.md21 - [概述](i18n-sorting-overview.md)
22 - [本地习惯排序](i18n-sorting-local.md)
23 - [创建索引](i18n-sorting-index.md)
H A Di18n-sorting-overview.md5 多语言排序分为[按本地习惯排序](i18n-sorting-local.md)和[创建索引](i18n-sorting-index.md)两种方式,具体使用场景和开发步骤请参考以下章节。
/ohos5.0/docs/en/application-dev/reference/apis-arkdata/
H A Doh__predicates_8h.md31 | [OH_OrderType](_r_d_b.md#oh_ordertype) | Enumerates the sorting types.|
39 | [OH_OrderType](_r_d_b.md#oh_ordertype-1) { ASC = 0, DESC = 1 } | Enumerates the sorting types.|
/ohos5.0/docs/en/application-dev/reference/apis-localization-kit/
H A Djs-apis-i18n-sys.md359 Obtains the language sorting array.
370 | options | [SortOptions](#sortoptions10) | No | Language sorting option.|
376 | Array&lt;[LocaleItem](#localeitem10)&gt; | Language list after sorting.|
397 // The language list after sorting is [zh-Hans, en-US, pt, ar].
410 Obtains the country/region sorting array.
421 | options | [SortOptions](#sortoptions10) | No | Country/region sorting option.<br>The default…
427 | Array&lt;[LocaleItem](#localeitem10)&gt; | Country/region list after sorting.|
448 // The country/region list after sorting is [CN, EG, US, PT].
460 Obtains the array of time zone city items after sorting.
546 Represents the language or country/region sorting option.
[all …]
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon.cpp61 NotificationSorting sorting; in SetNotificationSortingMap() local
62 if (sortingMap->GetNotificationSorting(key, sorting)) { in SetNotificationSortingMap()
72 if (!SetNotificationSorting(env, sorting, sortingResult)) { in SetNotificationSortingMap()
96 if (!sorting.GetSlot() || !SetNotificationSlot(env, *sorting.GetSlot(), slotResult)) { in SetNotificationSorting()
103 napi_create_string_utf8(env, sorting.GetKey().c_str(), NAPI_AUTO_LENGTH, &value); in SetNotificationSorting()
107 napi_create_int32(env, sorting.GetRanking(), &value); in SetNotificationSorting()
111 napi_get_boolean(env, sorting.IsDisplayBadge(), &value); in SetNotificationSorting()
115 napi_get_boolean(env, sorting.IsHiddenNotification(), &value); in SetNotificationSorting()
119 napi_create_int32(env, sorting.GetImportance(), &value); in SetNotificationSorting()
123 napi_create_string_utf8(env, sorting.GetGroupKeyOverride().c_str(), NAPI_AUTO_LENGTH, &value); in SetNotificationSorting()
[all …]
/ohos5.0/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_sorting_map.h54 bool GetNotificationSorting(const std::string &key, NotificationSorting &sorting) const;
H A Dnotification_sorting.h38 NotificationSorting(const NotificationSorting &sorting);
/ohos5.0/docs/en/application-dev/arkts-utils/
H A Dnonlinear-container.md10 …ed based on the hash value of the key. The access speed is fast, but the sorting cannot be customi…
11 …rmined based on the hash of the value. Null values can be added, but the sorting cannot be customi…
12 …onships. The key in the storage element is unique. You can customize the sorting method. Generally…
13 …ues. The values in the storage element are unique. You can customize the sorting method, but you a…
52 …ot specify the sorting mode. However, data in TreeSet is stored in an ordered manner, that is, ele…
103 …values. The value in an element is unique and can be sorted based on the sorting function specifie…
/ohos5.0/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_fw_module_test.cpp675 NotificationSorting sorting; variable
683 …eventParser.GetOnConsumedWithSortingMapSor()[i]->GetNotificationSorting(notificationKey, sorting));
684 EXPECT_EQ(sorting.GetKey().c_str(), notificationKey);
731 NotificationSorting sorting; variable
734 …eventParser.GetOnConsumedWithSortingMapSor()[0]->GetNotificationSorting(notificationKey, sorting));
735 EXPECT_EQ(sorting.GetKey().c_str(), notificationKey);
1004 NotificationSorting sorting; variable
1007 …eventParser.GetOnConsumedWithSortingMapSor()[0]->GetNotificationSorting(notificationKey, sorting));
1008 EXPECT_EQ(sorting.GetKey().c_str(), notificationKey);
/ohos5.0/base/update/packaging_tools/
H A DREADME.md25 ├── gigraph_process.py # Stash for re-sorting the ActionList
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-rendering-control-foreach.md30 Invoked when data is moved after sorting with dragging. This API takes effect only when it is used …
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A Ddrawing__rect_8h.md24 …at right, float bottom) | Creates an **OH_Drawing_Rect** object, without sorting the coordinates p…
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-debug-shell-file-ls.md54 **Table 3** Parameters for sorting (by the initial letter by default)
/ohos5.0/docs/en/application-dev/notification/
H A Dnotification-subscription.md41 …p;NotificationSortingMap)&nbsp;=&gt;&nbsp;void | Callback for notification sorting updates. |
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_utils.cpp165 NotificationSorting sorting; in GenerateSortingMap() local
166 sorting.SetRanking(static_cast<uint64_t>(sortingList.size())); in GenerateSortingMap()
167 sorting.SetKey(record->notification->GetKey()); in GenerateSortingMap()
168 sorting.SetSlot(record->slot); in GenerateSortingMap()
169 sortingList.push_back(sorting); in GenerateSortingMap()

123