Home
last modified time | relevance | path

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

1234

/packages/modules/Bluetooth/system/gd/common/
Dmulti_priority_queue_test.cc27 common::MultiPriorityQueue<int, 2> q; in TEST() local
28 ASSERT_TRUE(q.empty()); in TEST()
29 q.push(0); in TEST()
30 q.push(1, 0); in TEST()
31 q.push(2); in TEST()
32 ASSERT_EQ(q.size(), 3ul); in TEST()
34 ASSERT_EQ(q.front(), i); in TEST()
35 q.pop(); in TEST()
37 ASSERT_TRUE(q.empty()); in TEST()
41 common::MultiPriorityQueue<int, 2> q; in TEST() local
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_rotation.h38 inline void db_QuaternionToRotation(double R[9],const double q[4]) in db_QuaternionToRotation()
42 q0q0=q[0]*q[0]; in db_QuaternionToRotation()
43 q0qx=q[0]*q[1]; in db_QuaternionToRotation()
44 q0qy=q[0]*q[2]; in db_QuaternionToRotation()
45 q0qz=q[0]*q[3]; in db_QuaternionToRotation()
46 qxqx=q[1]*q[1]; in db_QuaternionToRotation()
47 qxqy=q[1]*q[2]; in db_QuaternionToRotation()
48 qxqz=q[1]*q[3]; in db_QuaternionToRotation()
49 qyqy=q[2]*q[2]; in db_QuaternionToRotation()
50 qyqz=q[2]*q[3]; in db_QuaternionToRotation()
[all …]
Ddb_utilities_poly.cpp30 double bp,bp2,cp,dp,q,r,srq; in db_SolveCubic() local
48 q=(bp2-3.0*cp)/9.0; in db_SolveCubic()
50 r2_min_q3=r*r-q*q*q; in db_SolveCubic()
55 srq=sqrt(q); in db_SolveCubic()
56 theta=acos(db_maxd(-1.0,db_mind(1.0,r/(q*srq)))); in db_SolveCubic()
77 if(A!=0.0) roots[0]=A+q/A-bp_through3; in db_SolveCubic()
85 si_r_srq=db_sign(r)*sqrt(q); in db_SolveCubic()
Ddb_framestitching.cpp30 double N[16],q[4],lambda[4],lambda_max; in db_RotationFromMOuterProductSum() local
67 db_EigenVector4x4(q,lambda_max,N); in db_RotationFromMOuterProductSum()
70 db_QuaternionToRotation(R,q); in db_RotationFromMOuterProductSum()
75 db_Multiply4x4_4x1(y,N,q); in db_RotationFromMOuterProductSum()
76 *score=db_ScalarProduct4(q,y); in db_RotationFromMOuterProductSum()
/packages/modules/Bluetooth/system/stack/smp/
Dp_256_ecc_pp.cc35 static void p_256_init_point(Point* q) { memset(q, 0, sizeof(Point)); } in p_256_init_point() argument
37 static void p_256_copy_point(Point* q, Point* p) { in p_256_copy_point() argument
38 memcpy(q, p, sizeof(Point)); in p_256_copy_point()
42 static void ECC_Double(Point* q, Point* p) { in ECC_Double() argument
54 multiprecision_init(q->z); in ECC_Double()
61 x3 = q->x; in ECC_Double()
62 y3 = q->y; in ECC_Double()
63 z3 = q->z; in ECC_Double()
91 static void ECC_Add(Point* r, Point* p, Point* q) { in ECC_Add() argument
107 x2 = q->x; in ECC_Add()
[all …]
Dp_256_ecc_pp.h61 void ECC_PointMult_Bin_NAF(Point* q, Point* p, uint32_t* n);
63 #define ECC_PointMult(q, p, n) ECC_PointMult_Bin_NAF(q, p, n) argument
/packages/modules/Bluetooth/system/gd/security/ecc/
Dp_256_ecc_pp.cc38 static void p_256_init_point(Point* q) { in p_256_init_point() argument
39 memset(q, 0, sizeof(Point)); in p_256_init_point()
42 static void p_256_copy_point(Point* q, const Point* p) { in p_256_copy_point() argument
43 memcpy(q, p, sizeof(Point)); in p_256_copy_point()
47 static void ECC_Double(Point* q, const Point* p) { in ECC_Double() argument
59 multiprecision_init(q->z); in ECC_Double()
66 x3 = q->x; in ECC_Double()
67 y3 = q->y; in ECC_Double()
68 z3 = q->z; in ECC_Double()
96 static void ECC_Add(Point* r, Point* p, const Point* q) { in ECC_Add() argument
[all …]
Dp_256_ecc_pp.h70 void ECC_PointMult_Bin_NAF(Point* q, const Point* p, uint32_t* n);
72 #define ECC_PointMult(q, p, n) ECC_PointMult_Bin_NAF(q, p, n) argument
/packages/modules/Bluetooth/system/test/fake/
Dfake_osi.cc262 [](fixed_queue_t* q, fixed_queue_free_cb cb) { in FakeOsi() argument
263 if (q) { in FakeOsi()
266 q->list_, in FakeOsi()
273 test::mock::osi_list::list_clear(q->list_); in FakeOsi()
277 [](fixed_queue_t* q, fixed_queue_free_cb free_cb) { in FakeOsi() argument
278 if (q) { in FakeOsi()
279 test::mock::osi_fixed_queue::fixed_queue_flush(q, free_cb); in FakeOsi()
280 delete q->list_; in FakeOsi()
281 delete q; in FakeOsi()
284 test::mock::osi_fixed_queue::fixed_queue_enqueue.body = [](fixed_queue_t* q, in FakeOsi()
[all …]
/packages/modules/adb/
Dadb_utils_test.cpp91 const std::string q = R"('\'')"; local
92 EXPECT_EQ(wrap(q), escape_arg("'"));
93 EXPECT_EQ(wrap(q + q), escape_arg("''"));
94 EXPECT_EQ(wrap(q + "abc" + q), escape_arg("'abc'"));
95 EXPECT_EQ(wrap(q + "abc"), escape_arg("'abc"));
96 EXPECT_EQ(wrap("abc" + q), escape_arg("abc'"));
97 EXPECT_EQ(wrap("abc" + q + "def"), escape_arg("abc'def"));
98 EXPECT_EQ(wrap("a" + q + "b" + q + "c"), escape_arg("a'b'c"));
99 EXPECT_EQ(wrap("a" + q + "bcde" + q + "f"), escape_arg("a'bcde'f"));
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/math/
DMatrix.java171 public void makeRotation(Quaternion q) { in makeRotation() argument
174 float tx = 2 * q.x; in makeRotation()
175 float ty = 2 * q.y; in makeRotation()
176 float tz = 2 * q.z; in makeRotation()
178 float mdsqx = 1 - tx * q.x; in makeRotation()
179 float dqxy = ty * q.x; in makeRotation()
180 float dsqy = ty * q.y; in makeRotation()
181 float dqyz = tz * q.y; in makeRotation()
182 float dsqz = tz * q.z; in makeRotation()
183 float dqxz = tx * q.z; in makeRotation()
[all …]
/packages/apps/DocumentsUI/tests/res/raw/
Dimages_tar9 d�q�s����7���w@>��/��.�&�����Zxe�O�?�&�T7�������%�Ą�&� G�
13 …,�b�>�*�W��F���(�x�]^��k^C#�~���N_���a���h�7��\�3F'F�$� �qld�V��}q�X�!�q��ޡXP?v��b~!�`\�…
17 g!d���+ߏ �������h�̌�f��Q����z+�Ȫk O�q����:$B�_�;��䶢���o�s�e}�J�)��h)ΞD[�&Z�/��gY�MN…
23 4���gFHS�$/iՙ'��?PЈ50�z�qЗ�Z7�b�M��iodHc�n�����)�oh�ho�jO���lW���$��zQ`�l���ךI��*��Q
39 ���㉌�������E�xj��V�� &CT�B�J�z�(Z4)�u'�q(nNq¬�`[�
40 …�D��mX��E��1��)�F��9ZU�_���'���~��m�*Gc�c�$i�H�s���Ua�z�ׅ�C���y�dң�4��q����X������R���Lf�~…
44 �-�֠}���g�˅���l�@��q-N�'`z�0�,�vw�)FCY�?�g�i��@2uR�H0�t],�d����ߡӆ�#%��3�W��W�&d�Z\+����
52 ��$�*eX�a~�e�$��M�/헰^�#�j� ]1�'Ǩ� ��kC�Uf IZ�D�g�t/�c �Z4���g�3]�q~�e}yĻͣ���Bs� �o�2�>���-�…
59 ���sqCe�Bn�!������k:��Ɋܷ)$���=s �����/R�QC]q�[�>K�*� �����_Ԗ-(����*q�=`̻-�N��O��4…
61 �o��S��Kh����3I����jw�c`�m�}�A15�L£*�q���[zK�3�E����# �U��H*�����
[all …]
/packages/modules/NeuralNetworks/common/
DUtilsTest.cpp255 int32_t q; in TEST() local
257 EXPECT_FALSE(QuantizeMultiplierSmallerThanOneExp(value, &q, &s)); in TEST()
269 int32_t q; in TEST() local
271 EXPECT_TRUE(QuantizeMultiplierSmallerThanOneExp(value, &q, &s)); in TEST()
272 EXPECT_EQ(q, goldenQuantized); in TEST()
286 int32_t q; in TEST() local
288 EXPECT_FALSE(QuantizeMultiplierGreaterThanOne(value, &q, &s)); in TEST()
294 int32_t q; in TEST() local
296 EXPECT_TRUE(QuantizeMultiplierGreaterThanOne(value, &q, &s)); in TEST()
297 EXPECT_EQ(q, goldenQuantized); in TEST()
[all …]
/packages/modules/Bluetooth/system/audio/asrc/
Dasrc_tables.py32 q = KERNEL_Q variable
35 w = signal.kaiser(2 * a * q + 1, beta)
36 k = np.sinc(np.linspace(-a, a, 2 * a * q + 1)) * w
38 h = k[:-1].reshape((2 * a, q)).T
85 for q in range(len(h) - 1):
90 print(layout.format(*h32[q]))
98 for q in range(len(h) - 1):
102 print(layout.format(*d32[q]))
/packages/modules/Bluetooth/system/blueberry/utils/
Dbt_audio_utils.py106 def measure_thdn(signal, sample_rate, q, frequency=None): argument
129 b, a = scipy_signal.iirnotch(wo, q)
139 q=1.0, argument
194 q=q,
213 q: float = 1.0,
234 q=q,
/packages/modules/DnsResolver/
DDnsTlsQueryMap.cpp50 Query q = {.newId = static_cast<uint16_t>(newId), .query = std::move(tmp)}; in recordQuery() local
52 const auto [it, inserted] = mQueries.try_emplace(newId, q); in recordQuery()
57 return std::make_unique<QueryFuture>(q, it->second.result.get_future()); in recordQuery()
116 for (auto& q : mQueries) { in getAll() local
117 queries.push_back(q.second.query); in getAll()
129 for (auto& q : mQueries) { in clear() local
130 expire(&q.second); in clear()
DDnsTlsTransport.cpp176 bool DnsTlsTransport::sendQuery(const DnsTlsQueryMap::Query& q) { in sendQuery() argument
178 const bool sent = mSocket->query(q.newId, netdutils::drop(netdutils::makeSlice(q.query), 2)); in sendQuery()
180 mQueries.markTried(q.newId); in sendQuery()
198 for(auto& q : queries) { in doConnect() local
199 if (!sendQuery(q)) { in doConnect()
Dgetaddrinfo.cpp1387 res_target q = {}; in dns_getaddrinfo() local
1395 q.name = name; in dns_getaddrinfo()
1396 q.qclass = C_IN; in dns_getaddrinfo()
1404 q.qtype = T_AAAA; in dns_getaddrinfo()
1406 q.next = &q2; in dns_getaddrinfo()
1412 q.qtype = T_A; in dns_getaddrinfo()
1419 q.name = name; in dns_getaddrinfo()
1420 q.qclass = C_IN; in dns_getaddrinfo()
1421 q.qtype = T_A; in dns_getaddrinfo()
1424 q.name = name; in dns_getaddrinfo()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/util/
DIntHistogramTest.java271 double q = mHistogram.quantileFunction(0.2, 0, 50); in testEmptyQuantile() local
272 assertEquals(q, 10.0, 0.01); in testEmptyQuantile()
282 double q; in testQuantileUniformDistribution() local
285 q = mHistogram.quantileFunction(i / 111.0, 0, 111); in testQuantileUniformDistribution()
286 assertEquals(diagnose, i, q, 0.01); in testQuantileUniformDistribution()
289 q = mHistogram.quantileFunction(.8, 0, 42); in testQuantileUniformDistribution()
290 assertEquals(42.0, q, 0.01); in testQuantileUniformDistribution()
/packages/modules/Bluetooth/system/test/headless/scan/
Dscan.cc61 remote_device_properties_params_t* q = in start_scan() local
63 for (const auto& p2 : q->properties()) { in start_scan()
69 device_found_params_t* q = in start_scan() local
71 for (const auto& p2 : q->properties()) { in start_scan()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DMatrixFit.java61 double[][] q = new double[from.length][mDimension]; in fit() local
64 q[i][j] = from[i][j]; in fit()
79 for (int i = 0; i < q.length; i++) { in fit()
82 qt = q[i][k]; in fit()
91 for (int qi = 0; qi < q.length; qi++) { in fit()
94 qt[i] = q[qi][i]; in fit()
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestDnsServer.kt72 val q = DnsQueryPacket(packet.data) in setAnswer() constant
73 handleDnsQuery(q, packet.socketAddress) in setAnswer()
77 private fun handleDnsQuery(q: DnsQueryPacket, src: SocketAddress) { in handleDnsQuery()
78 val queryRecords = q.queryRecords in handleDnsQuery()
92 val bytes = q.getAnswerPacket(answerRecords).bytes in handleDnsQuery()
/packages/modules/Connectivity/tests/unit/java/android/net/ipmemorystore/
DParcelableTests.java136 final Parcel q = Parcel.obtain(); in parcelingRoundTrip() local
137 q.unmarshall(marshalledData, 0, marshalledData.length); in parcelingRoundTrip()
138 q.setDataPosition(0); in parcelingRoundTrip()
142 final T unmarshalled = (T) creator.createFromParcel(q); in parcelingRoundTrip()
143 q.recycle(); in parcelingRoundTrip()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java304 float q = (float) (elapsedTime) / duration; in computeScrollOffset() local
307 q = Scroller.viscousFluid(q); in computeScrollOffset()
309 q = mInterpolator.getInterpolation(q); in computeScrollOffset()
312 mScrollerX.updateScroll(q); in computeScrollOffset()
313 mScrollerY.updateScroll(q); in computeScrollOffset()
652 void updateScroll(float q) { in updateScroll() argument
653 mCurrentPosition = mStart + Math.round(q * (mFinal - mStart)); in updateScroll()
/packages/apps/Gallery2/jni_jpegstream/src/
Djpegstream.cpp62 int32_t q = static_cast<int32_t>(quality); in OutputStream_setup() local
64 q = (q > 100) ? 100 : ((q < 1) ? 1 : q); in OutputStream_setup()
69 int32_t errorFlag = w_ptr->setup(env, out, w, h, fmt, q); in OutputStream_setup()

1234