Home
last modified time | relevance | path

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

12345678

/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 …]
/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/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/util/
DHandlerMessageQueueTest.java41 HandlerMessageQueue q = new HandlerMessageQueue(); in testSingleHandler_SingleRunnable() local
45 assertFalse(q.isNotEmpty()); in testSingleHandler_SingleRunnable()
47 q.add(h1, 100, r1); in testSingleHandler_SingleRunnable()
49 assertTrue(q.isNotEmpty()); in testSingleHandler_SingleRunnable()
50 assertNull(q.extractFirst(0)); in testSingleHandler_SingleRunnable()
51 assertEquals(q.extractFirst(100), r1); in testSingleHandler_SingleRunnable()
52 assertFalse(q.isNotEmpty()); in testSingleHandler_SingleRunnable()
53 assertNull(q.extractFirst(100)); in testSingleHandler_SingleRunnable()
58 HandlerMessageQueue q = new HandlerMessageQueue(); in testSingleHandler_MultipleRunnables() local
64 q.add(h1, 100, r1); in testSingleHandler_MultipleRunnables()
[all …]
/frameworks/libs/binary_translation/runtime_primitives/
Dsignal_queue_test.cc29 SignalQueue q; in TEST() local
32 EXPECT_EQ(nullptr, q.DequeueSignalUnsafe()); in TEST()
34 p = q.AllocSignal(); in TEST()
37 q.EnqueueSignal(p); in TEST()
39 p = q.DequeueSignalUnsafe(); in TEST()
43 q.FreeSignal(p); in TEST()
45 EXPECT_EQ(nullptr, q.DequeueSignalUnsafe()); in TEST()
49 SignalQueue q; in TEST() local
52 p = q.AllocSignal(); in TEST()
55 q.EnqueueSignal(p); in TEST()
[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/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/
DMessageQueue_host.java41 MessageQueue_host q = sInstances.get(id); in getInstance() local
42 if (q == null) { in getInstance()
45 q.validate(); in getInstance()
46 return q; in getInstance()
51 final MessageQueue_host q = new MessageQueue_host(); in nativeInit() local
52 sInstances.put(id, q); in nativeInit()
62 var q = getInstance(ptr); in nativePollOnce() local
63 synchronized (q.mPoller) { in nativePollOnce()
64 q.mPolling = true; in nativePollOnce()
66 if (q.mPendingWake) { in nativePollOnce()
[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 …]
/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
68 q = savedInstanceState.getParcelable("q") ?: q in onCreate()
89 outState.putParcelable("q", q) in onSaveInstanceState()
97 q.resetUserMarks() in newPuzzle()
135 if (q.check()) { in checkVictory()
153 Log.v(TAG, "loading " + resName + " at " + q.width + "x" + q.height) in loadPuzzle()
158 q.load(this, icon!!) in loadPuzzle()
160 if (q.isBlank()) { in loadPuzzle()
169 grid.columnCount = q.width + 1 in loadPuzzle()
170 grid.rowCount = q.height + 1 in loadPuzzle()
[all …]
/frameworks/libs/systemui/toruslib/torus-math/src/main/java/com/google/android/torus/math/
DRotationQuaternion.kt168 operator fun times(q: RotationQuaternion): RotationQuaternion { in times()
170 w * q.w - x * q.x - y * q.y - z * q.z, in times()
171 w * q.x + x * q.w + y * q.z - z * q.y, in times()
172 w * q.y - x * q.z + y * q.w + z * q.x, in times()
173 w * q.z + x * q.y - y * q.x + z * q.w in times()
/frameworks/av/media/module/libmediaformatshaper/
DCodecProperties.cpp108 char *q; in setTuningValue() local
109 int32_t iValue = strtol(p, &q, 0); in setTuningValue()
110 if (q != p) { in setTuningValue()
121 char *q; in setTuningValue() local
122 double bpp = strtod(p, &q); in setTuningValue()
123 if (q != p) { in setTuningValue()
135 char *q; in setTuningValue() local
136 int32_t iValue = strtol(p, &q, 0); in setTuningValue()
137 if (q != p) { in setTuningValue()
144 char *q; in setTuningValue() local
[all …]
DCodecSeeding.cpp132 preloadTuning_t *q = &p->features[j]; in addMediaDefaults() local
133 if (q->key == nullptr) { in addMediaDefaults()
136 if (q->overrideable != overrideable) { in addMediaDefaults()
139 setTuningValue(q->key, q->value); in addMediaDefaults()
/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()
114 sp<SensorEventQueue> q = mgr.createEventQueue(); in main() local
115 printf("queue=%p\n", q.get()); in main()
123 q->enableSensor(accelerometer); in main()
125 q->setEventRate(accelerometer, ms2ns(10)); in main()
128 loop->addFd(q->getFd(), 0, ALOOPER_EVENT_INPUT, receiver, q.get()); in main()
/frameworks/base/core/res/geoid_map_assets/
Dexpiration-distance-disk-tile-9.textpb2q\226e\263\331\374\362\361\255\243\363\217\276\370\323\253\'\357\334\371\350\267\333\242\370\340\3…
Dexpiration-distance-disk-tile-5.textpb2q\341B\022\004\020\222\242cC\310\321\aA\2716\305\332\020l\216\316K$L\31041:\216\375\200\323\245A\0…
/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/module/codecs/amrwb/dec/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/mockingservicestests/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;�…
/frameworks/av/media/libmediaplayerservice/fuzzer/corpus/
D40a46cd4f323d9d5d8508188f21f94ddae5bfae615 …cԝ�vP,�T�����1T8,����2��Q ,��`��"֛;�T7]ʵ�yA�,�V���쟡2��W�����R��)�F�q�Ø+_��#G0w���0,�T���…
17 …�a�Q)"P,�T�����1T8,������A,��a(כ�\wK����@i��,�V������2��G��!%��1q ���F�hˋ;N��9B0}��…
18 ���!q �U�F�l��1N��yS0l� ���,�T�����1T�<���������  ��`Ƶ �3@��Oϴj�aո,�V������2��O��aŀ���`���…
21 ဈ,�V������2��O�����\�Ap �a(F�q�t��G0��0�p,�T�����1T:$����`���@#e+@ � ћ#���œa�,�V���쿡2B�…
24 …�� 2��QP"�8"��3��#"h3�G����`I,�V������0BG�����9 e��b&P��� X|�Y� j�q�Ő,�T�����1T:$����0…
35 …G�_���d ���0 %�`�]y���:o���V q��=Np,�T�����1T9,��������-(�ඡ�ܞ3�Оᖷ��)��,�T������6�W��0E���…
39 �\�YF������,�T�����1T9,�����0�q/���R�(ћ#T�k��T�!��,�V������2B�_��0��� �B� � B�y�"��fx�[2u…
/frameworks/av/media/module/codecs/amrwb/enc/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()

12345678