Home
last modified time | relevance | path

Searched refs:query (Results 1 – 25 of 52) sorted by relevance

123

/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/
Devent_query_wrapper_builder.h54 BaseEventQueryWrapper(std::shared_ptr<EventStore::SysEventQuery> query) : query(query) {} in BaseEventQueryWrapper() argument
61 void SetSysEventQuery(std::shared_ptr<EventStore::SysEventQuery> query);
87 std::shared_ptr<EventStore::SysEventQuery> query = nullptr; variable
97 TimeStampEventQueryWrapper(std::shared_ptr<EventStore::SysEventQuery> query) in TimeStampEventQueryWrapper() argument
98 : BaseEventQueryWrapper(query) {} in TimeStampEventQueryWrapper()
108 SeqEventQueryWrapper(std::shared_ptr<EventStore::SysEventQuery> query) in SeqEventQueryWrapper() argument
109 : BaseEventQueryWrapper(query) {} in SeqEventQueryWrapper()
131 std::shared_ptr<EventStore::SysEventQuery> query);
/base/hiviewdfx/hiview/plugins/faultlogger/service/
Dfaultlog_database.cpp110 auto query = EventStore::SysEventDao::BuildQuery(domain, faultNames); in CreateQueries() local
111 query->And(lowerCaseCond); in CreateQueries()
112 query->Select(QUERY_ITEMS).Order("time_", false); in CreateQueries()
113 queries.push_back(query); in CreateQueries()
122 … auto query = EventStore::SysEventDao::BuildQuery(HiSysEvent::Domain::RELIABILITY, faultNames); in CreateQueries() local
123 query->And(upperCaseCond); in CreateQueries()
124 query->Select(QUERY_ITEMS).Order("time_", false); in CreateQueries()
125 queries.push_back(query); in CreateQueries()
143 for (auto query : queries) { in GetFaultInfoList() local
145 query->And("MODULE", EventStore::Op::EQ, module); in GetFaultInfoList()
[all …]
/base/theme/screenlock_mgr/
DREADME.md4 …hree-party APP with the ability to request unlockScreen, query the screenlock status, and query wh…
26 function isScreenLocked(callback: AsyncCallback<boolean>): void; query the screenlock status,callba…
27 function isScreenLocked(): Promise<boolean>; void; query the screenlock status,Promise mode
29 function isSecureMode(callback: AsyncCallback<boolean>): void; query whether to set screenlock pass…
30 function isSecureMode(): Promise<boolean>; query whether to set screenlock password (gesture, digit…
39 // query the screenlock status asynchronously with a Promise
48 // query the screenlock status asynchronously with a callback
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/include/
Dmock_single_kv_store.h52 Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override;
70 …Status GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const ov…
87 Status GetCount(const DataQuery &query, int &result) const override;
284 …rtual Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query,
296 …tus SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
305 …s UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
/base/notification/distributed_notification_service/services/test/moduletest/mock/include/
Dmock_single_kv_store.h52 virtual Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override;
70 …Status GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const ov…
87 virtual Status GetCount(const DataQuery &query, int &result) const override;
285 …rtual Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query,
297 …tus SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
306 …s UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
Dmock_single_kv_store.h52 virtual Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override;
70 virtual Status GetResultSet(const DataQuery &query,
88 virtual Status GetCount(const DataQuery &query, int &result) const override;
286 …rtual Status Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query,
298 …tus SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
307 …s UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
Dmock_single_kv_store.cpp26 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() argument
37 const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() argument
47 Status MockSingleKvStore::GetCount(const DataQuery &query, int &result) const in GetCount() argument
156 const DataQuery &query, std::shared_ptr<KvStoreSyncCallback> syncCallback) in Sync() argument
161 …ingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
166 …gleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/declaration/
D@ohos.faultLogger.d.ts88 function query(faultType: FaultType, callback: AsyncCallback<Array<FaultLogInfo>>) : void;
98 function query(faultType: FaultType) : Promise<Array<FaultLogInfo>>;
/base/hiviewdfx/hiview/base/event_store/utility/reader/include/
Dsys_event_doc_reader.h31 int Read(const DocQuery& query, EntryQueue& entries, int& num) override;
39 int ReadPages(const DocQuery& query, EntryQueue& entries, int& num);
47 void TryToAddEntry(uint8_t* content, uint32_t contentSize, const DocQuery& query,
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_screen_status_manager_branch_test/
Dmock_single_kv_store.cpp40 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() argument
51 const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() argument
61 Status MockSingleKvStore::GetCount(const DataQuery &query, int &result) const in GetCount() argument
170 const DataQuery &query, std::shared_ptr<KvStoreSyncCallback> syncCallback) in Sync() argument
175 …ingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
180 …gleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dmock_single_kv_store.cpp26 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() argument
36 Status MockSingleKvStore::GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &r… in GetResultSet() argument
46 Status MockSingleKvStore::GetCount(const DataQuery &query, int &result) const in GetCount() argument
154 …ngleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query, in Sync() argument
160 …ingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
165 …gleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/
Dmock_single_kv_store.cpp41 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() argument
52 const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() argument
62 Status MockSingleKvStore::GetCount(const DataQuery &query, int &result) const in GetCount() argument
177 const DataQuery &query, std::shared_ptr<KvStoreSyncCallback> syncCallback) in Sync() argument
182 …ingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
187 …gleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_preferences_database_test/
Dmock_single_kv_store.cpp35 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() argument
46 const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() argument
56 Status MockSingleKvStore::GetCount(const DataQuery &query, int &result) const in GetCount() argument
168 const DataQuery &query, std::shared_ptr<KvStoreSyncCallback> syncCallback) in Sync() argument
173 …ingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
178 …gleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
/base/notification/distributed_notification_service/services/test/moduletest/mock/
Dmock_single_kv_store.cpp26 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() argument
36 Status MockSingleKvStore::GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &r… in GetResultSet() argument
46 Status MockSingleKvStore::GetCount(const DataQuery &query, int &result) const in GetCount() argument
155 …ngleKvStore::Sync(const std::vector<std::string> &deviceIds, SyncMode mode, const DataQuery &query, in Sync() argument
161 …ingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
166 …gleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Devent_query_wrapper_builder.cpp196 …auto resultSet = query->Execute(queryLimit, { false, isFirstPartialQuery }, GetCallingProcessInfo(… in Query()
266 query->And(extraCond); in BuildCondition()
339 query = nullptr; in NeedStartNextQuery()
345 if (query != nullptr) { in BuildQuery()
356 query = EventStore::SysEventDao::BuildQuery(queryRule.domain, queryRule.eventList, in BuildQuery()
358 query->Where(whereCond); in BuildQuery()
370 if (query == nullptr) { in Order()
373 query->Order(EventStore::EventCol::TS, true); in Order()
378 if (query != nullptr) { in BuildQuery()
387 query = EventStore::SysEventDao::BuildQuery(queryRule.domain, queryRule.eventList, in BuildQuery()
[all …]
/base/hiviewdfx/hiview/plugins/faultlogger/interfaces/js/test/unittest/
DExampleJsunit.test.js98 let ret = faultlogger.query("faultloggertestsummary02");
119 let ret = faultlogger.query(faultlogger.FaultType.JS_CRASH, "faultloggertestsummary03");
140 let ret = faultlogger.query();
161 let ret = faultlogger.query("aaa", "bbb", "ccc");
195 let ret = await faultlogger.query(faultlogger.FaultType.CPP_CRASH);
261 faultlogger.query(faultlogger.FaultType.APP_FREEZE, queryFaultLogCallback);
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/include/
Dmock_single_kv_store.h51 virtual Status GetEntries(const DataQuery &query, std::vector<Entry> &entries) const override;
69 …Status GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &resultSet) const ov…
86 virtual Status GetCount(const DataQuery &query, int &result) const override;
285 const DataQuery &query, std::shared_ptr<KvStoreSyncCallback> syncCallback) override;
296 …tus SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
305 …s UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) override;
/base/hiviewdfx/hilog/test/unittest/common/
Dhilogtool_test.cpp168 std::string query = "param get hilog.loggable.global"; variable
170 EXPECT_EQ(GetCmdResultFromPopen(query), level + " \n");
194 std::string query = "param get hilog.loggable.domain." + Uint2HexStr(domain); variable
196 EXPECT_EQ(GetCmdResultFromPopen(query), level + " \n");
219 std::string query = "param get hilog.loggable.tag." + tag; variable
221 EXPECT_EQ(GetCmdResultFromPopen(query), level + " \n");
292 std::string query = "param get persist.sys.hilog.kmsg.on"; variable
294 EXPECT_EQ(GetCmdResultFromPopen(query), "true \n");
299 EXPECT_EQ(GetCmdResultFromPopen(query), "false \n");
321 std::string query = "param get hilog.private.on"; variable
[all …]
/base/request/request/test/unittest/js_test/requestSystemQueryTest/entry/src/main/ets/test/
DRequestSystemQuery.test.ets155 * @tc.desc: Test query task for tid is empty
161 await request.agent.query("");
170 * @tc.desc: Test query task for tid is number
176 await request.agent.query(123);
185 * @tc.desc: Test query task for tid is "123"
190 request.agent.query("123", (err, info) => {
198 * @tc.desc: Test query task for tid is "123"
203 await request.agent.query("123").then((info) => {
214 * @tc.desc: Test query task
220 await request.agent.query();
[all …]
/base/hiviewdfx/hiview/base/event_store/utility/reader/
Dsys_event_doc_reader.cpp103 int SysEventDocReader::Read(const DocQuery& query, EntryQueue& entries, int& num) in Read() argument
129 TryToAddEntry(content, contentSize, query, entries, num); in Read()
132 return ReadPages(query, entries, num); in Read()
146 int SysEventDocReader::ReadPages(const DocQuery& query, EntryQueue& entries, int& num) in ReadPages() argument
162 TryToAddEntry(content, contentSize, query, entries, num); in ReadPages()
342 void SysEventDocReader::TryToAddEntry(uint8_t* content, uint32_t contentSize, const DocQuery& query, in TryToAddEntry() argument
346 if (!query.IsContainInnerConds(content)) { in TryToAddEntry()
364 if (!query.IsContainExtraConds(decodedEvent)) { in TryToAddEntry()
/base/hiviewdfx/hisysevent/test/unittest/common/napi/
Dnapi_hisysevent.test.js239 hiSysEvent.query({
289 hiSysEvent.query({
338 hiSysEvent.query({
602 hiSysEvent.query({
631 hiSysEvent.query({
710 hiSysEvent.query({
761 hiSysEvent.query({
812 hiSysEvent.query({
863 hiSysEvent.query({
896 hiSysEvent.query({
/base/request/request/test/unittest/js_test/requestPermissonTest/
DPermission.test.js138 agent.query(context, '123', (err) => {
155 agent.query(context, '123').then((err) => {
171 agent.query(context, ['123'], (err) => {
/base/hiviewdfx/hiview/base/event_store/store/include/
Dsys_event_database.h39 int Query(SysEventQuery& query, EntryQueue& entries);
58 int QueryByFiles(SysEventQuery& query, EntryQueue& entries, FileQueue& queryFiles);
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_single_kv_store.cpp117 Status MockSingleKvStore::GetEntries(const DataQuery &query, std::vector<Entry> &entries) const in GetEntries() argument
127 Status MockSingleKvStore::GetResultSet(const DataQuery &query, std::shared_ptr<KvStoreResultSet> &r… in GetResultSet() argument
137 Status MockSingleKvStore::GetCount(const DataQuery &query, int &result) const in GetCount() argument
264 const DataQuery &query, std::shared_ptr<KvStoreSyncCallback> syncCallback) in Sync() argument
269 …ingleKvStore::SubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in SubscribeWithQuery() argument
274 …gleKvStore::UnsubscribeWithQuery(const std::vector<std::string> &deviceIds, const DataQuery &query) in UnsubscribeWithQuery() argument
/base/hiviewdfx/hisysevent/interfaces/rust/innerkits/src/
Dlib.rs93 pub fn query(query_arg: &QueryArg, query_rules: &[QueryRule], querier: &Querier) -> i32 { in query() function
94 sys_event_manager::query(query_arg, query_rules, querier) in query()

123