Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 44) sorted by relevance

12

/system/chre/util/tests/
Dpriority_queue_test.cc43 PriorityQueue<int> q; in TEST() local
44 EXPECT_TRUE(q.empty()); in TEST()
45 EXPECT_EQ(0, q.size()); in TEST()
46 EXPECT_EQ(0, q.capacity()); in TEST()
50 PriorityQueue<int> q; in TEST() local
52 EXPECT_TRUE(q.push(0)); in TEST()
53 EXPECT_TRUE(q.push(2)); in TEST()
54 EXPECT_TRUE(q.push(3)); in TEST()
55 EXPECT_TRUE(q.push(1)); in TEST()
56 q.pop(); in TEST()
[all …]
Darray_queue_test.cc39 ArrayQueue<int, 4> q; in TEST() local
40 EXPECT_TRUE(q.empty()); in TEST()
41 EXPECT_EQ(0, q.size()); in TEST()
45 ArrayQueue<int, 3> q; in TEST() local
46 EXPECT_TRUE(q.push(1)); in TEST()
47 EXPECT_TRUE(q.push(2)); in TEST()
48 q.pop(); in TEST()
49 EXPECT_TRUE(q.push(3)); in TEST()
53 ArrayQueue<int, 3> q; in TEST() local
54 EXPECT_TRUE(q.push(0)); in TEST()
[all …]
/system/bt/stack/smp/
Dp_256_ecc_pp.cc34 static void p_256_init_point(Point* q) { memset(q, 0, sizeof(Point)); } in p_256_init_point() argument
36 static void p_256_copy_point(Point* q, Point* p) { in p_256_copy_point() argument
37 memcpy(q, p, sizeof(Point)); in p_256_copy_point()
41 static void ECC_Double(Point* q, Point* p, uint32_t keyLength) { in ECC_Double() argument
53 multiprecision_init(q->z, keyLength); in ECC_Double()
60 x3 = q->x; in ECC_Double()
61 y3 = q->y; in ECC_Double()
62 z3 = q->z; in ECC_Double()
90 static void ECC_Add(Point* r, Point* p, Point* q, uint32_t keyLength) { in ECC_Add() argument
106 x2 = q->x; in ECC_Add()
[all …]
Dp_256_ecc_pp.h61 void ECC_PointMult_Bin_NAF(Point* q, Point* p, uint32_t* n, uint32_t keyLength);
63 #define ECC_PointMult(q, p, n, keyLength) \ argument
64 ECC_PointMult_Bin_NAF(q, p, n, keyLength)
/system/core/libsysutils/src/
DFrameworkListener.cpp103 char *q = tmp; in dispatchCommand() local
114 if (q >= qlimit) in dispatchCommand()
116 *q++ = '\\'; in dispatchCommand()
124 if (q >= qlimit) in dispatchCommand()
126 *q++ = '"'; in dispatchCommand()
128 if (q >= qlimit) in dispatchCommand()
130 *q++ = '\\'; in dispatchCommand()
149 if (q >= qlimit) in dispatchCommand()
151 *q = *p++; in dispatchCommand()
152 if (!quote && *q == ' ') { in dispatchCommand()
[all …]
/system/core/libpixelflinger/
Dfixed.cpp60 int32_t gglRecipQ(GGLfixed x, int q) in gglRecipQ() argument
64 shift += 16-q; in gglRecipQ()
184 uint32_t q = 0; in gglDivQ() local
195 q <<= 8; in gglDivQ()
196 if (n>=0) q |= 128; in gglDivQ()
199 if (n>=0) q |= 64; in gglDivQ()
202 if (n>=0) q |= 32; in gglDivQ()
205 if (n>=0) q |= 16; in gglDivQ()
208 if (n>=0) q |= 8; in gglDivQ()
211 if (n>=0) q |= 4; in gglDivQ()
[all …]
/system/extras/ksmutils/
Dlookup3.c870 uint8_t q[] = "This is the time for all good men to come to the aid of their country..."; in driver3() local
882 hashword((const uint32_t *)q, (sizeof(q)-1)/4, 13), in driver3()
883 hashword((const uint32_t *)q, (sizeof(q)-5)/4, 13), in driver3()
884 hashword((const uint32_t *)q, (sizeof(q)-9)/4, 13)); in driver3()
885 p = q; in driver3()
887 hashlittle(p, sizeof(q)-1, 13), hashlittle(p, sizeof(q)-2, 13), in driver3()
888 hashlittle(p, sizeof(q)-3, 13), hashlittle(p, sizeof(q)-4, 13), in driver3()
889 hashlittle(p, sizeof(q)-5, 13), hashlittle(p, sizeof(q)-6, 13), in driver3()
890 hashlittle(p, sizeof(q)-7, 13), hashlittle(p, sizeof(q)-8, 13), in driver3()
891 hashlittle(p, sizeof(q)-9, 13), hashlittle(p, sizeof(q)-10, 13), in driver3()
[all …]
/system/netd/server/dns/
DDnsTlsSocket.cpp345 Query q; in loop() local
359 if (!q.query.empty()) { in loop()
382 int res = read(mIpcOutFd.get(), &q, sizeof(q)); in loop()
389 } else if (res != sizeof(q)) { in loop()
390 ALOGE("Struct size mismatch: %d != %zu", res, sizeof(q)); in loop()
395 if (!sendQuery(q)) { in loop()
398 q = Query(); // Reset q to empty in loop()
431 const Query q = { .id = id, .query = query }; in query() local
435 int written = write(mIpcInFd.get(), &q, sizeof(q)); in query()
436 return written == sizeof(q); in query()
[all …]
DDnsTlsQueryMap.cpp40 Query q = { .newId = static_cast<uint16_t>(newId), .query = query }; in recordQuery() local
43 std::tie(it, inserted) = mQueries.emplace(newId, q); in recordQuery()
48 return std::make_unique<QueryFuture>(q, it->second.result.get_future()); in recordQuery()
106 for (auto& q : mQueries) { in getAll() local
107 queries.push_back(q.second.query); in getAll()
119 for (auto& q : mQueries) { in clear() local
120 expire(&q.second); in clear()
DDnsTlsTransport.cpp58 bool DnsTlsTransport::sendQuery(const DnsTlsQueryMap::Query q) { in sendQuery() argument
60 bool sent = mSocket->query(q.newId, netdutils::drop(q.query, 2)); in sendQuery()
62 mQueries.markTried(q.newId); in sendQuery()
74 for(auto& q : queries) { in doConnect() local
75 if (!sendQuery(q)) { in doConnect()
DDnsTlsTransport.h88 bool sendQuery(const DnsTlsQueryMap::Query q) REQUIRES(mLock);
DDnsTlsSocket.h103 bool sendQuery(const Query& q) REQUIRES(mLock);
/system/extras/simpleperf/
Dutils_test.cpp21 static bool ModulesMatch(const char* p, const char* q) { in ModulesMatch() argument
22 if (p == nullptr && q == nullptr) { in ModulesMatch()
25 if (p != nullptr && q != nullptr) { in ModulesMatch()
26 return strcmp(p, q) == 0; in ModulesMatch()
Devent_selection_set.cpp693 …std::priority_queue<RecordBufferHead*, std::vector<RecordBufferHead*>, decltype(comparator)> q(com… in ReadMmapEventData() local
699 q.push(&h); in ReadMmapEventData()
701 while (!q.empty()) { in ReadMmapEventData()
702 RecordBufferHead* h = q.top(); in ReadMmapEventData()
703 q.pop(); in ReadMmapEventData()
711 q.push(h); in ReadMmapEventData()
/system/libhidl/base/
DTaskRunner.cpp52 std::thread{[q = mQueue] { in push()
56 while (!!(nextTask = q->wait_pop())) { in push()
/system/libhidl/base/include/hidl/
DMQDescriptor.h262 std::string toString(const MQDescriptor<T, flavor> &q) { in toString() argument
271 + toString(q.grantors().size()) + " grantor(s), " in toString()
272 + "size = " + toString(q.getSize()) in toString()
273 + ", .handle = " + toString(q.handle()) in toString()
274 + ", .quantum = " + toString(q.getQuantum()) + "}"; in toString()
/system/core/libcutils/
Dsched_policy.cpp384 char *q; in set_sched_policy() local
388 for (q = p; *q != ')'; q++); in set_sched_policy()
390 strncpy(thread_name, p, (q-p)); in set_sched_policy()
/system/chre/external/kiss_fft/
Dkissfft.hh263 int u,k,q1,q; in kf_bfly_generic() local
281 for (q=1;q<p;++q ) { in kf_bfly_generic()
284 C_MUL(t,scratchbuf[q] , twiddles[twidx] ); in kf_bfly_generic()
Dkiss_fft.c206 int u,k,q1,q; in kf_bfly_generic() local
225 for (q=1;q<p;++q ) { in kf_bfly_generic()
228 C_MUL(t,scratch[q] , twiddles[twidx] ); in kf_bfly_generic()
/system/core/libutils/
DUnicode.cpp255 char16_t *q = dst; in strcpy16() local
260 *q++ = ch = *p++; in strcpy16()
277 char16_t *q = dst; in strncpy16() local
283 *q++ = ch = *p++; in strncpy16()
288 *q = 0; in strncpy16()
/system/netd/server/
DCommandListener.cpp781 for (int q = 3; argc >= 4; q++, argc--) { in runCommand() local
782 rc = gCtls->bandwidthCtrl.setInterfaceSharedQuota(argv[q], atoll(argv[2])); in runCommand()
785 asprintf(&msg, "bandwidth setquotas %s %s failed", argv[2], argv[q]); in runCommand()
803 for (int q = 2; argc >= 3; q++, argc--) { in runCommand() local
804 rc = gCtls->bandwidthCtrl.removeInterfaceSharedQuota(argv[q]); in runCommand()
807 asprintf(&msg, "bandwidth removequotas %s failed", argv[q]); in runCommand()
/system/core/logcat/
Dlogcat.cpp1231 const char* q = strpbrk(p, " \t\n\r"); in __logcat() local
1232 if (!q) q = p + strlen(p); in __logcat()
1233 forceFilters = std::string(p, q); in __logcat()
1250 q = strpbrk(p, " \t\n\r"); in __logcat()
1251 int len = q ? q - p : strlen(p); in __logcat()
/system/ca-certificates/files/
D559f7c71.011 BggqhkjOPQQDAwNpADBmAjEAj6jcnboMBBf6Fek9LykBl7+BFjNAk2z8+e2AcG+q
D27af790d.013 BgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBVfNVdRVfslsq0DafwBo/q+EVXVMAoG
/system/tools/hidl/c2hal/test/
Dtest.h265 short q; member

12