Home
last modified time | relevance | path

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

123456

/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/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/scriptc/
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/core/res/res/raw/
Dcolor_fade_frag.frag15 vec4 q = rgb.r < p.x ? vec4(p.xyw, rgb.r) : vec4(rgb.r, p.yzx);
17 float v = q.x;
18 float c = v - min(q.w, q.y);
19 float h = abs((q.w - q.y) / (6.0 * c + e) + q.z);
29 vec3 q = 2.0 - p;
31 vec3 rgb = clamp(vec3(p.x - 1.0, q.yz), 0.0, 1.0);
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
DIntegralToString.java143 int q = i / radix; in intToString()
144 buf[--cursor] = DIGITS[radix * q - i]; in intToString()
145 i = q; in intToString()
215 int q = (int) ((0x51EB851FL * i) >>> 37);
216 int r = i - 100*q;
219 i = q;
225 int q = (0xCCCD * i) >>> 19;
226 int r = i - 10*q;
228 i = q;
277 long q = v / radix;
[all …]
/frameworks/native/services/sensorservice/tests/
Dsensorservicetest.cpp31 sp<SensorEventQueue> q((SensorEventQueue*)data); in receiver() local
37 while ((n = q->read(buffer, 8)) > 0) { in receiver()
71 sp<SensorEventQueue> q = mgr.createEventQueue(); in main() local
72 printf("queue=%p\n", q.get()); in main()
80 q->enableSensor(accelerometer); in main()
82 q->setEventRate(accelerometer, ms2ns(10)); in main()
85 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/base/core/java/android/view/
DViewRootImpl.java3843 public final void deliver(QueuedInputEvent q) { in deliver() argument
3844 if ((q.mFlags & QueuedInputEvent.FLAG_FINISHED) != 0) { in deliver()
3845 forward(q); in deliver()
3846 } else if (shouldDropInputEvent(q)) { in deliver()
3847 finish(q, false); in deliver()
3849 apply(q, onProcess(q)); in deliver()
3856 protected void finish(QueuedInputEvent q, boolean handled) { in finish() argument
3857 q.mFlags |= QueuedInputEvent.FLAG_FINISHED; in finish()
3859 q.mFlags |= QueuedInputEvent.FLAG_FINISHED_HANDLED; in finish()
3861 forward(q); in finish()
[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()
Dpvamrwbdecoder_mem_funcs.h63 #define pv_memcmp(p, q, n) memcmp(p, q, n) argument
/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/docs/html/guide/topics/renderscript/reference/
Drs_quaternion.jd103 …d(<a href='rs_value_types.html#android_rs:rs_quaternion'>rs_quaternion</a>* q, const <a href='rs_v…
111 <tr><th>q</th><td>Destination quaternion to add to.</td></tr>
116 <p> Adds two quaternions, i.e. <code>*q += *rhs;</code>
130 …rsQuaternionConjugate(<a href='rs_value_types.html#android_rs:rs_quaternion'>rs_quaternion</a>* q);
138 <tr><th>q</th><td>Quaternion to modify.</td></tr>
183 …trix4x4</a>* m, const <a href='rs_value_types.html#android_rs:rs_quaternion'>rs_quaternion</a>* q);
192 <tr><th>q</th><td>Normalized quaternion.</td></tr>
210 …e(<a href='rs_value_types.html#android_rs:rs_quaternion'>rs_quaternion</a>* q, float rot, float x,…
218 <tr><th>q</th><td>Destination quaternion.</td></tr>
241 …t(<a href='rs_value_types.html#android_rs:rs_quaternion'>rs_quaternion</a>* q, float rot, float x,…
[all …]
/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/base/docs/html-intl/intl/zh-cn/distribute/tools/promote/
Dlinking.jd62 <pre>http://play.google.com/store/search?q=pub:&lt;publisher_name&gt;</pre>
66 <pre>market://search?q=pub:&lt;publisher_name&gt;</pre>
72 …de><a href="http://play.google.com/store/search?q=pub:Google Inc.">http://play.google.com/store/se…
86 <pre>http://play.google.com/store/search?q=&lt;search_query&gt;&amp;c=apps</pre>
90 <pre>market://search?q=&lt;seach_query&gt;&amp;c=apps</pre>
96 …de><a href="http://play.google.com/store/search?q=maps&amp;c=apps">http://play.google.com/store/se…
178 <td><nobr><code>http://play.google.com/store/search?q=pub:&lt;publisher_name&gt;</code></nobr></td>
179 <td><nobr><code>market://search?q=pub:&lt;publisher_name&gt;</code></nobr></td>
183 <td><code>http://play.google.com/store/search?q=&lt;query&gt;</code></td>
184 <td><code>market://search?q=&lt;query&gt;</code></td>
/frameworks/base/core/java/android/text/
DMeasuredText.java193 for (int q = p, i = p + 1, e = p + len;; ++i) { in addStyleRun()
198 paint.getTextRunAdvances(mChars, q, i - q, q, i - q, isRtl, widths, q); in addStyleRun()
200 mBuilder.addMeasuredRun(q, i, widths); in addStyleRun()
203 totalAdvance += mBuilder.addStyleRun(paint, q, i, isRtl); in addStyleRun()
208 q = i; in addStyleRun()
/frameworks/native/opengl/libs/ETC1/
Detc1.cpp190 etc1_byte* q = pOut + 3 * (x + 4 * y); in decode_subblock() local
191 *q++ = clamp(r + delta); in decode_subblock()
192 *q++ = clamp(g + delta); in decode_subblock()
193 *q++ = clamp(b + delta); in decode_subblock()
539 etc1_byte* q = block + (cy * 4) * 3; in etc1_encode_image() local
542 memcpy(q, p, xEnd * 3); in etc1_encode_image()
546 *q++ = convert5To8(pixel >> 11); in etc1_encode_image()
547 *q++ = convert6To8(pixel >> 5); in etc1_encode_image()
548 *q++ = convert5To8(pixel); in etc1_encode_image()
592 const etc1_byte* q = block + (cy * 4) * 3; in etc1_decode_image() local
[all …]
/frameworks/rs/java/tests/Refocus/src/com/android/rs/test/
Dcamera_response_fast.rsh17 // f(q) = ((e^b + 1) * q^a / (e^b * q^a + 1))^c
18 // f^-1(q) = (x^(1/c) / (e^b - e^b * x^(1/c) + 1))^(1/a)
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/
DDownloadManagerBaseTest.java374 Query q = new Query(); in hasDownloadFinished() local
375 q.setFilterById(id); in hasDownloadFinished()
376 q.setFilterByStatus(DownloadManager.STATUS_SUCCESSFUL); in hasDownloadFinished()
377 Cursor cursor = mDownloadManager.query(q); in hasDownloadFinished()
485 DownloadManager.Query q = new DownloadManager.Query(); in getBytesDownloaded() local
486 q.setFilterById(id); in getBytesDownloaded()
487 Cursor response = mDownloadManager.query(q); in getBytesDownloaded()
/frameworks/av/media/libstagefright/codecs/mp3dec/src/
Dmp3_mem_funcs.h69 #define pv_memcmp(p, q, n) memcmp(p, q, n) argument

123456