Home
last modified time | relevance | path

Searched refs:normalize (Results 1 – 25 of 111) sorted by relevance

12345

/frameworks/rs/tests/java_api/RsNbody/src/com/example/android/rs/nbody_gl/
Dnbody.rscript38 point = normalize(point);
43 v = normalize(v);
49 v = INITAL_VEL * v * rsqrt(r); // - normalize(out);
78 normv.xyz = normalize(v.xyz) * TSIZE * 2.f;
80 right = normalize(cross(normv, up));
81 up = normalize(cross(normv, right));
/frameworks/base/services/incremental/test/
Dpath_test.cpp26 EXPECT_STREQ("", normalize("").c_str()); in TEST()
28 normalize("/data/app/com.snapchat.android-evzhnJDgPOq8VcxwEkSY5g==/base.apk") in TEST()
30 EXPECT_STREQ("/a/b", normalize("/a/c/../b").c_str()); in TEST()
/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeTest.java43 t.normalize(false /* use isDst */); in testNormalize0()
197 local.normalize(false /* use isDst */); in testNormalize1()
199 local.normalize(true /* ignore isDst */); in testNormalize1()
214 local.normalize(false /* use isDst */); in testNormalize1()
237 local.normalize(false /* use isDst */); in testNormalize1()
240 local.normalize(false /* use isDst */); in testNormalize1()
258 local.normalize(false /* use isDst */); in testNormalize1()
547 long millis = time.normalize(true); in disableTestGetJulianDay()
560 millis = time.normalize(true); in disableTestGetJulianDay()
588 long millis = time.normalize(true); in disableTestSetJulianDay()
/frameworks/rs/script_api/include/
Drs_vector_math.rsh209 * See also normalize(), native_normalize().
365 * native_normalize: Approximately normalize a vector
369 * See also normalize(), fast_normalize().
412 * normalize: Normalize a vector
422 normalize(float v);
425 normalize(float2 v);
428 normalize(float3 v);
431 normalize(float4 v);
435 normalize(half v);
440 normalize(half2 v);
[all …]
/frameworks/rs/script_api/
Drs_vector_math.spec168 See also @normalize(), @native_normalize().
256 summary: Approximately normalize a vector
260 See also @normalize(), @fast_normalize().
274 function: normalize
292 function: normalize
/frameworks/native/libs/math/include/math/
Dmat3.h257 ret[0] = normalize(m[0]); in orthogonalize()
258 ret[2] = normalize(cross(ret[0], m[1])); in orthogonalize()
259 ret[1] = normalize(cross(ret[2], ret[0])); in orthogonalize()
412 ret[0] = normalize(m[0]); in orthogonalize()
413 ret[2] = normalize(cross(ret[0], m[1])); in orthogonalize()
414 ret[1] = normalize(cross(ret[2], ret[0])); in orthogonalize()
DTQuatHelpers.h190 constexpr QUATERNION<T> PURE normalize(const QUATERNION<T>& q) { in normalize() function
241 return std::pow(nq, a) * QUATERNION<T>(normalize(q.xyz) * std::sin(theta), std::cos(theta)); in pow()
256 return normalize(s0 * p + ((d < 0) ? (-s1) : (s1)) * q); in slerp()
266 return normalize(lerp(p, q, t)); in nlerp()
/frameworks/base/core/java/android/gesture/
DInstance.java50 private void normalize() { in normalize() method in Instance
78 instance.normalize(); in createInstance()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DTimeTest.java426 assertEquals(1146531723000L, t.normalize());
567 t.normalize();
576 assertEquals(1194159600000L, time.normalize());
582 assertEquals(1173600000000L, time.normalize());
612 assertEquals(1194159600000L, time.normalize());
619 assertEquals(1173600000000L, time.normalize());
718 int julianDay = Time.getJulianDay(time.normalize(), time.getGmtOffset());
724 int day = Time.getJulianDay(time.normalize(), time.getGmtOffset());
744 long millis = time.normalize();
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DPageRangeUtils.java84 ourRanges = normalize(ourRanges); in contains()
85 otherRanges = normalize(otherRanges); in contains()
117 public static PageRange[] normalize(PageRange[] pageRanges) { in normalize() method in PageRangeUtils
317 return PageRangeUtils.normalize(ranges.toArray(new PageRange[ranges.size()])); in parsePageRanges()
/frameworks/base/libs/hwui/
DVector.h77 void normalize() { in normalize() function
85 v.normalize(); in copyNormalized()
/frameworks/compile/mclinker/lib/Core/
DLinker.cpp67 if (!normalize(pModule, pBuilder)) in link()
77 bool Linker::normalize(Module& pModule, IRBuilder& pBuilder) { in normalize() function in mcld::Linker
104 m_pObjLinker->normalize(); in normalize()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DShaderProgram.java157 boolean normalize) { in setAttributeValues() argument
164 normalize)) { in setAttributeValues()
302 boolean normalize); in setShaderAttributeVertexFrame() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/
DCornerPathRenderer.java120 return rotate90Ccw(normalize(new PointF(d1.x + d2.x, d1.y + d2.y))); in normalAt()
131 private PointF normalize(PointF point) { in normalize() method in CornerPathRenderer
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DImageShader.java96 public void set(boolean normalize, int stride, int components, int type, float[] values) { in set() argument
98 mShouldNormalize = normalize; in set()
110 public void set(boolean normalize, int offset, int stride, int components, int type, in set() argument
113 mShouldNormalize = normalize; in set()
406 int stride, int offset, boolean normalize) { in setAttributeValues() argument
408 attr.set(normalize, offset, stride, components, type, vbo); in setAttributeValues()
/frameworks/av/media/codec2/tests/vndk/
DC2BufferTest.cpp166 static_assert(C2Segment(123u, 456u).normalize() == C2Segment(123u, 456u), ""); in StaticSegmentTest()
167 static_assert(C2Segment(123u, ~123u).normalize() == C2Segment(123u, ~123u), ""); in StaticSegmentTest()
168 static_assert(C2Segment(123u, 1 + ~123u).normalize() == C2Segment(123u, 0u), ""); in StaticSegmentTest()
171 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(150u, ~150u)).normalize() == C2Segment(150… in StaticSegmentTest()
172 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(150u, 1 + ~150u)).normalize() != C2Segment… in StaticSegmentTest()
173 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(150u, 1 + ~150u)).normalize() == C2Segment… in StaticSegmentTest()
181 …(C2Segment(123u, 456u).intersect(C2Segment(150u, 1 + ~150u).saturate()).normalize() == C2Segment(1… in StaticSegmentTest()
182 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(0u, 100u).saturate()).normalize() == C2Seg… in StaticSegmentTest()
183 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(1000u, 100u).saturate()).normalize() != C2… in StaticSegmentTest()
184 …static_assert(C2Segment(123u, 456u).intersect(C2Segment(1000u, 100u).saturate()).normalize() == C2… in StaticSegmentTest()
/frameworks/compile/mclinker/include/mcld/
DLinker.h39 bool normalize(Module& pModule, IRBuilder& pBuilder);
/frameworks/base/media/mca/filterfw/native/core/
Dshader_program.h264 bool normalize);
279 bool normalize);
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
DVectorUtil.java52 public static void normalize(double[] a) { in normalize() method in VectorUtil
DMatrix.java36 VectorUtil.normalize(v); in makeRotation()
43 VectorUtil.normalize(v); in makeRotation()
50 VectorUtil.normalize(v); in makeRotation()
/frameworks/native/libs/math/tests/
Dquat_test.cpp229 quatd qn(normalize(q)); in TEST_F()
282 double3 axis_a = normalize(double3(rand_gen(), rand_gen(), rand_gen())); in TEST_F()
286 double3 axis_b = normalize(double3(rand_gen(), rand_gen(), rand_gen())); in TEST_F()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageUtils.java71 return NetworkTemplate.normalize(mobileTemplate, mergedSubscriberIds); in getNormalizedMobileTemplate()
/frameworks/base/core/java/android/text/format/
DTime.java229 public long normalize(boolean ignoreDst) { in normalize() method in Time
665 normalize(false); in parse3339Internal()
909 temp.normalize(true /* ignore isDst */); in getWeekNumber()
1027 millis = normalize(true); in setJulianDay()
/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dlayer_info.rsh18 // A scale factor =1.0f/(1+dilation_radius), which is used to normalize a
/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/
DPoint.java88 public Point normalize() { in normalize() method in Point

12345