Home
last modified time | relevance | path

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

123456

/frameworks/native/libs/math/include/math/
DTQuatHelpers.h58 QUATERNION<T>& q = static_cast<QUATERNION<T>&>(*this); variable
59 q = q * r;
60 return q;
93 constexpr QUATERNION<T> PURE operator *(const QUATERNION<T>& q, const QUATERNION<RT>& r) {
100 q.w*r.w - q.x*r.x - q.y*r.y - q.z*r.z,
101 q.w*r.x + q.x*r.w + q.y*r.z - q.z*r.y,
102 q.w*r.y - q.x*r.z + q.y*r.w + q.z*r.x,
103 q.w*r.z + q.x*r.y - q.y*r.x + q.z*r.w);
108 constexpr TVec3<T> PURE operator *(const QUATERNION<T>& q, const TVec3<RT>& v) {
112 return imaginary(q * QUATERNION<T>(v, 0) * inverse(q));
[all …]
Dmat3.h243 explicit CONSTEXPR TMat33(const TQuaternion<U>& q);
341 CONSTEXPR TMat33<T>::TMat33(const TQuaternion<U>& q) { in TMat33() argument
342 const U n = q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w; in TMat33()
344 const U x = s*q.x; in TMat33()
345 const U y = s*q.y; in TMat33()
346 const U z = s*q.z; in TMat33()
347 const U xx = x*q.x; in TMat33()
348 const U xy = x*q.y; in TMat33()
349 const U xz = x*q.z; in TMat33()
350 const U xw = x*q.w; in TMat33()
[all …]
Dmat4.h247 explicit CONSTEXPR TMat44(const TQuaternion<U>& q);
394 CONSTEXPR TMat44<T>::TMat44(const TQuaternion<U>& q) { in TMat44() argument
395 const U n = q.x*q.x + q.y*q.y + q.z*q.z + q.w*q.w; in TMat44()
397 const U x = s*q.x; in TMat44()
398 const U y = s*q.y; in TMat44()
399 const U z = s*q.z; in TMat44()
400 const U xx = x*q.x; in TMat44()
401 const U xy = x*q.y; in TMat44()
402 const U xz = x*q.z; in TMat44()
403 const U xw = x*q.w; in TMat44()
[all …]
/frameworks/rs/driver/runtime/
Drs_quaternion.c12 rsQuaternionAdd(rs_quaternion* q, const rs_quaternion* rhs) { in rsQuaternionAdd() argument
13 q->w += rhs->w; in rsQuaternionAdd()
14 q->x += rhs->x; in rsQuaternionAdd()
15 q->y += rhs->y; in rsQuaternionAdd()
16 q->z += rhs->z; in rsQuaternionAdd()
20 rsQuaternionConjugate(rs_quaternion* q) { in rsQuaternionConjugate() argument
21 q->x = -q->x; in rsQuaternionConjugate()
22 q->y = -q->y; in rsQuaternionConjugate()
23 q->z = -q->z; in rsQuaternionConjugate()
32 rsQuaternionGetMatrixUnit(rs_matrix4x4* m, const rs_quaternion* q) { in rsQuaternionGetMatrixUnit() argument
[all …]
/frameworks/rs/script_api/
Drs_quaternion.spec26 arg: rs_quaternion* q, "Destination quaternion to add to."
30 Adds two quaternions, i.e. <code>*q += *rhs;</code>
32 q->w += rhs->w;
33 q->x += rhs->x;
34 q->y += rhs->y;
35 q->z += rhs->z;
42 arg: rs_quaternion* q, "Quaternion to modify."
47 q->x = -q->x;
48 q->y = -q->y;
49 q->z = -q->z;
[all …]
/frameworks/rs/script_api/include/
Drs_quaternion.rsh31 * Adds two quaternions, i.e. *q += *rhs;
34 * q: Destination quaternion to add to.
39 rsQuaternionAdd(rs_quaternion* q, const rs_quaternion* rhs) {
40 q->w += rhs->w;
41 q->x += rhs->x;
42 q->y += rhs->y;
43 q->z += rhs->z;
53 * q: Quaternion to modify.
57 rsQuaternionConjugate(rs_quaternion* q) {
58 q->x = -q->x;
[all …]
/frameworks/native/services/sensorservice/
Dquat.h30 mat<TYPE, 3, 3> quatToMatrix(const vec<TYPE, 4>& q) { in quatToMatrix() argument
32 TYPE q0(q.w); in quatToMatrix()
33 TYPE q1(q.x); in quatToMatrix()
34 TYPE q2(q.y); in quatToMatrix()
35 TYPE q3(q.z); in quatToMatrix()
67 vec<TYPE, 4> q; in matrixToQuat() local
71 q.x = sqrtf( clamp( Hx - My - Az + 1) * 0.25f ); in matrixToQuat()
72 q.y = sqrtf( clamp(-Hx + My - Az + 1) * 0.25f ); in matrixToQuat()
73 q.z = sqrtf( clamp(-Hx - My + Az + 1) * 0.25f ); in matrixToQuat()
74 q.w = sqrtf( clamp( Hx + My + Az + 1) * 0.25f ); in matrixToQuat()
[all …]
DFusion.cpp218 void Fusion::initFusion(const vec4_t& q, float dT) in initFusion() argument
221 x0 = q; in initFusion()
305 const vec4_t q = matrixToQuat(R); in checkInitComplete() local
307 initFusion(q, mGyroRate); in checkInitComplete()
416 mat34_t Fusion::getF(const vec4_t& q) { in getF() argument
423 F[0].x = q.w; F[1].x =-q.z; F[2].x = q.y; in getF()
424 F[0].y = q.z; F[1].y = q.w; F[2].y =-q.x; in getF()
425 F[0].z =-q.y; F[1].z = q.x; F[2].z = q.w; in getF()
426 F[0].w =-q.x; F[1].w =-q.y; F[2].w =-q.z; in getF()
431 const vec4_t q = x0; in predict() local
[all …]
DRotationVectorSensor.cpp51 const vec4_t q(mSensorFusion.getAttitude(mMode)); in process() local
53 outEvent->data[0] = q.x; in process()
54 outEvent->data[1] = q.y; in process()
55 outEvent->data[2] = q.z; in process()
56 outEvent->data[3] = q.w; in process()
/frameworks/base/core/jni/android/opengl/
Dpoly_clip.cpp41 #define CLIP_AND_SWAP(elem, sign, k, p, q, r) { \ argument
42 poly_clip_to_halfspace(p, q, &v->elem-(float *)v, sign, (sign)*(k)); \
43 if ((q)->n==0) {p1->n = 0; return POLY_CLIP_OUT;} \
44 SWAP(p, q, r); \
59 void poly_clip_to_halfspace(Poly* p, Poly* q, int index, float sign, float k) in poly_clip_to_halfspace() argument
67 q->n = 0; in poly_clip_to_halfspace()
81 wp = (float *)&q->vert[q->n].sx; in poly_clip_to_halfspace()
85 q->n++; in poly_clip_to_halfspace()
88 q->vert[q->n++] = *v; in poly_clip_to_halfspace()
111 Poly p2, *p, *q, *r; in poly_clip_to_frustum() local
[all …]
/frameworks/base/tools/aapt/
DAaptUtil.cpp27 const char* q; in split() local
30 q = strchr(p, sep); in split()
31 if (q == NULL) { in split()
36 parts.add(String8(p, q-p)); in split()
37 p = q + 1; in split()
45 const char* q; in splitAndLowerCase() local
48 q = strchr(p, sep); in splitAndLowerCase()
49 if (q == NULL) { in splitAndLowerCase()
56 String8 val(p, q-p); in splitAndLowerCase()
59 p = q + 1; in splitAndLowerCase()
/frameworks/base/packages/EasterEgg/src/com/android/egg/quares/
DQuaresActivity.kt44 private var q: Quare = Quare(16, 16, 1) variable in com.android.egg.quares.QuaresActivity
67 q = savedInstanceState.getParcelable("q") ?: q in onCreate()
88 outState.putParcelable("q", q) in onSaveInstanceState()
96 q.resetUserMarks() in newPuzzle()
134 if (q.check()) { in checkVictory()
152 Log.v(TAG, "loading " + resName + " at " + q.width + "x" + q.height) in loadPuzzle()
157 q.load(this, icon!!) in loadPuzzle()
159 if (q.isBlank()) { in loadPuzzle()
168 grid.columnCount = q.width + 1 in loadPuzzle()
169 grid.rowCount = q.height + 1 in loadPuzzle()
[all …]
/frameworks/ml/nn/common/
DUtilsTest.cpp162 int32_t q; in TEST() local
164 EXPECT_FALSE(QuantizeMultiplierSmallerThanOneExp(value, &q, &s)); in TEST()
176 int32_t q; in TEST() local
178 EXPECT_TRUE(QuantizeMultiplierSmallerThanOneExp(value, &q, &s)); in TEST()
179 EXPECT_EQ(q, goldenQuantized); in TEST()
193 int32_t q; in TEST() local
195 EXPECT_FALSE(QuantizeMultiplierGreaterThanOne(value, &q, &s)); in TEST()
201 int32_t q; in TEST() local
203 EXPECT_TRUE(QuantizeMultiplierGreaterThanOne(value, &q, &s)); in TEST()
204 EXPECT_EQ(q, goldenQuantized); in TEST()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/
DShortcutQueryWrapperTest.java68 ShortcutQueryWrapper q = ShortcutQueryWrapper.CREATOR.createFromParcel(p); in testWriteAndReadFromParcel() local
69 assertEquals("Changed since doesn't match!", CHANGED_SINCE, q.getChangedSince()); in testWriteAndReadFromParcel()
70 assertEquals("Package name doesn't match!", PACKAGE_NAME, q.getPackage()); in testWriteAndReadFromParcel()
71 assertEquals("Shortcut ids doesn't match", SHORTCUT_IDS, q.getShortcutIds()); in testWriteAndReadFromParcel()
72 assertEquals("Locus ids doesn't match", LOCUS_IDS, q.getLocusIds()); in testWriteAndReadFromParcel()
73 assertEquals("Component name doesn't match", COMPONENT_NAME, q.getActivity()); in testWriteAndReadFromParcel()
74 assertEquals("Query flag doesn't match", QUERY_FLAG, q.getQueryFlags()); in testWriteAndReadFromParcel()
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp32 sp<SensorEventQueue> q((SensorEventQueue*)data); in receiver() local
38 while ((n = q->read(buffer, 8)) > 0) { in receiver()
103 sp<SensorEventQueue> q = mgr.createEventQueue(); in main() local
104 printf("queue=%p\n", q.get()); in main()
112 q->enableSensor(accelerometer); in main()
114 q->setEventRate(accelerometer, ms2ns(10)); in main()
117 loop->addFd(q->getFd(), 0, ALOOPER_EVENT_INPUT, receiver, q.get()); in main()
/frameworks/base/media/jni/
Dandroid_media_MediaProfiles.cpp186 camcorder_quality q = static_cast<camcorder_quality>(quality); in android_media_MediaProfiles_native_get_camcorder_profile() local
187 int duration = sProfiles->getCamcorderProfileParamByName("duration", id, q); in android_media_MediaProfiles_native_get_camcorder_profile()
188 int fileFormat = sProfiles->getCamcorderProfileParamByName("file.format", id, q); in android_media_MediaProfiles_native_get_camcorder_profile()
189 int videoCodec = sProfiles->getCamcorderProfileParamByName("vid.codec", id, q); in android_media_MediaProfiles_native_get_camcorder_profile()
190 int videoBitRate = sProfiles->getCamcorderProfileParamByName("vid.bps", id, q); in android_media_MediaProfiles_native_get_camcorder_profile()
191 int videoFrameRate = sProfiles->getCamcorderProfileParamByName("vid.fps", id, q); in android_media_MediaProfiles_native_get_camcorder_profile()
192 int videoFrameWidth = sProfiles->getCamcorderProfileParamByName("vid.width", id, q); in android_media_MediaProfiles_native_get_camcorder_profile()
193 int videoFrameHeight = sProfiles->getCamcorderProfileParamByName("vid.height", id, q); in android_media_MediaProfiles_native_get_camcorder_profile()
194 int audioCodec = sProfiles->getCamcorderProfileParamByName("aud.codec", id, q); in android_media_MediaProfiles_native_get_camcorder_profile()
195 int audioBitRate = sProfiles->getCamcorderProfileParamByName("aud.bps", id, q); in android_media_MediaProfiles_native_get_camcorder_profile()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwb/src/
Disp_az.cpp146 int16 q, q_sug; in Isp_Az() local
240 q = 4 - normalize_amr_wb(tmax); /* adaptive scaling enabled */ in Isp_Az()
244 q = 0; /* adaptive scaling disabled */ in Isp_Az()
248 if (q > 0) in Isp_Az()
250 q_sug = 12 + q; in Isp_Az()
267 a[0] >>= q; in Isp_Az()
272 q = 0; in Isp_Az()
285 a[m] = shr_rnd(isp[m - 1], (3 + q)); /* from Q15 to Q12 */ in Isp_Az()
/frameworks/base/services/tests/servicestests/res/raw/
Dbackup_telephony_with_password12 …�?{�v5"�ہ2�U"���W��wSbG!�����eUq1<L^��:���fdq�ހ�W6����/�^E�D��f�n�~q�[�d�;�Рk;N�|B%p)�J…
13 ?��8�������V��:Ey��x.�`�^n�LVZ����uV΂������|��q�T)���J��'O��MFa��������A���vI�>O�a�…
14q�ҿTs�|y��M������X����8\�δ��>���E�g,n�".g�N��1 �,/�� d<x�ED$����$v���7�K��4�۵��)u�������[�…
19 �r/s=��pڐ|�$�AR���N!�^��T�Bm�H?q� v����,�x�n�Fu
21 …j�Zݶ���ft-O�����^��ػ�Љ\%�3*S�*�5 ߀��n�[�-�>b�*��?}8�Tq�~'��݄`��*�ղ���!Bh�����&o�q�i����|�Mb7�
24 …m��3;,�I���?/�i�s��X��i�3Y��U?�k�g��x�0��k��}E⣛,�� F���R)̌1?��m>gof�X�q��`�bNzo��ç|+]�p{q…
26 …��"N�]���{%���� �?"�g�;�S��ڟѧ -�Yy��I�55ң�z�s�-0�s �Џ�ԃX��s��E����XO~8�qʝ���K4����7՟�ch �Y�…
28 ���q�"��.S
33 …M!� �P�8�`�$�}���q����H3"�4{Փ8�]�M:*?���|�ʂu�^���� ��qg5���Dř��B��1���^8M�1�T��+�{'�4…
37 QY�!�c!��x���[�� �Ң�wB��dZ5K20lL�?0���h4��Cmb-�q��k�5@+r��W�/��F(C�y�p� ��Lm~d����&�%h��b�1;�…
Dbackup_telephony_no_password15 …��A8�@>/�h �E���8�`��GC`��-0!`x��84����,�������C �(�oJ�q����!��[k��B�X�?…
17 ? �/L��`������W�!�(�/�1���?_��=�X��A�@>�a|N#q�;��'$��������{��y��`8|�����C��ߔǻ…
23 …�h���x�C�nU����������� �NaRO�oMޖ�d���'?��Nx�sD��/3�ө�$����p��q�6L�?���Ұ�lv��S�q�B�U�=��ئ���…
26 A��mTL� i��g�Ug��Yt 'r57���W�.0�?���q�Dp��:P,x-���"2�����c�_M�bU��l�3��oP!�ws;�B�_�A,��…
32 …��h���XG�#}J����LSiz�h�W��[���m�uo�Ȩ藫o���-��-X"pم��,�2���<h��M��|���y��X�q�=�1*+ޢ�Ƙ~
33 $Ҝq2��0������/� >�0߭=���t;��}��1i4�d�Hʨ��?t���7�̔�pZ��������۳�ԀcVU�V���Z�'��q���L�S/J�W�%'…
35q�yϒ� +ZV���g߂�>ۛP�� i� 2��p!pAΖ/���*7�)f�*�Dk��[�oƚ��-u:�}�P�����sܥLĮ{vL�����<���_�����…
44 …��n��7��w�"�*y�͍ qμ͚\p��"�2�l ����+Z�~�%��\�y>TL$c[~�t��((���sO&�O�1���[6����~Y��ȼ��tQ�…
49 =�N1iNT��{���Dt�F8313~�ШP�~���q���w?P`��Z��R�7��z�\=DW�T���$^>n�3=�R�r@)��'-��d�@��c…
65 …��5_<�!���=���gV�r�j|8C�Y}�I�����s���5vNӡ�j=���d�֏0T�;�ò>�4�Hzv��R�qЩx�D�2�1?\QV`����Sk…
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Disp_az.c50 Word16 q, q_sug; in Isp_Az() local
130 q = 4 - norm_l(tmax); /* adaptive scaling enabled */ in Isp_Az()
132 q = 0; /* adaptive scaling disabled */ in Isp_Az()
134 if (q > 0) in Isp_Az()
136 q_sug = (12 + q); in Isp_Az()
147 a[0] = shr(a[0], q); in Isp_Az()
152 q = 0; in Isp_Az()
162 a[m] = vo_shr_r(isp[m - 1], (3 + q)); /* from Q15 to Q12 */ in Isp_Az()
/frameworks/base/tests/LegacyRestoreTest/
Djbmr2-encrypted-settings-abcd.ab13 …SW:�e��˄��?��6�ɡ����� �m� $\<.y������F������0�m�c� o�ba��]�N2q+-*�g��XWe����~�����…
14 …1z� � XG��E�K�AO"��8-���LX����-r�0=Fn�<���DNsaꭥ\6�s�#L�d`�w�qw����a�t�q��+hu3r�}��ML…
15 …~LG�?�X��"j �O�Z�|�fQx�=r�`-�����kNߊ%'3<ӥ���0T���`Ϗxh`��q�(�:��;.B�K�+�췊q�Y����ha��…
18 ����$CK1)v�b���0t>y�S��re#�����-s��q]�����րa���@u%��\�>��o_J^�I����%4FR�G�YcƧ��[�h�2�…
/frameworks/base/media/tests/contents/media_api/music/
Dtest_amr_ietf.amr2 …��<H��fy�����������������������<�&�fy������������Md������@<�[�PB ��^��q�`M���R�['���E`|X�<…
12 D�sG�vE0ɰ<x�q��y���{���{�����]'Ӽ��@�<r)����g�
19 0$)�C��C�88���>�yң` .б!�� <vI�����|q���v���0�����4�< 3\�A��
20 1�s��<)���U0X����<�,OG���+4uxkw�**�m>�;.��e��<�>d��B��z�����D�v��gW����Q���<�Uと�7qNu&�{��…
21 ؠ<���W%�g-KLo�}�G�@J��bҗ�Z�<[›�'����?��K���B�j˞|���!�`<4���k��3�::�۩m�O�$�q��`+� <Y���"��…
54 …=�q��z�v�e��*iZ��D}��c���r�K`<zXA�5�a��J�ڢ����C��0*h��j@<"/q�ץ�w��[���W�ڼ�U�qԖ?�<F{t��y�…
66 !�q��7ٵ4
67 …��⽺���%c���`<,�i���O��2�$r(*r���אAXm�P<0��)홄��d�-���.��!�}Wd���� <޹h�q^��Y/7�����޴H�����3�
69 …�撋�@�kH��A�kr�6(� E�� <BN��������M��AA.�����L%_���<�X�8��U�&מ�l�+C_x[�q:^�@ٲ�<44WE(�� U��"Pz…
85 H�B�<J{W�Բ��?�mN7�Sh��N������v�<O&q�c��3�-�e�VӶ�q�u�ͶO�y��<T�g��H!��+��b�_��9fFD����(p<…
[all …]
/frameworks/opt/net/wifi/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()
/frameworks/base/core/java/android/view/
DViewRootImpl.java5301 public final void deliver(QueuedInputEvent q) { in deliver() argument
5302 if ((q.mFlags & QueuedInputEvent.FLAG_FINISHED) != 0) { in deliver()
5303 forward(q); in deliver()
5304 } else if (shouldDropInputEvent(q)) { in deliver()
5305 finish(q, false); in deliver()
5307 traceEvent(q, Trace.TRACE_TAG_VIEW); in deliver()
5310 result = onProcess(q); in deliver()
5314 apply(q, result); in deliver()
5321 protected void finish(QueuedInputEvent q, boolean handled) { in finish() argument
5322 q.mFlags |= QueuedInputEvent.FLAG_FINISHED; in finish()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DReferenceTestUtils.java32 ReferenceQueue<Object> q = new ReferenceQueue<>(); in createCollectionWaiter() local
33 Reference<?> ref = new WeakReference<>(o, q); in createCollectionWaiter()
40 if (q.remove(5_000) == ref) { in createCollectionWaiter()

123456