/frameworks/base/rs/java/android/renderscript/ |
D | FieldPacker.java | 63 public void align(int v) { in align() argument 64 if ((v <= 0) || ((v & (v - 1)) != 0)) { in align() 65 … throw new RSIllegalArgumentException("argument must be a non-negative non-zero power of 2: " + v); in align() 68 while ((mPos & (v - 1)) != 0) { in align() 74 public void subalign(int v) { in subalign() argument 75 if ((v & (v - 1)) != 0) { in subalign() 76 … throw new RSIllegalArgumentException("argument must be a non-negative non-zero power of 2: " + v); in subalign() 79 while ((mPos & (v - 1)) != 0) { in subalign() 110 public void addI8(byte v) { in addI8() argument 111 mData[mPos++] = v; in addI8() [all …]
|
/frameworks/rs/support/java/src/androidx/renderscript/ |
D | FieldPacker.java | 64 public void align(int v) { in align() argument 65 if ((v <= 0) || ((v & (v - 1)) != 0)) { in align() 66 … throw new RSIllegalArgumentException("argument must be a non-negative non-zero power of 2: " + v); in align() 69 while ((mPos & (v - 1)) != 0) { in align() 75 public void subalign(int v) { in subalign() argument 76 if ((v & (v - 1)) != 0) { in subalign() 77 … throw new RSIllegalArgumentException("argument must be a non-negative non-zero power of 2: " + v); in subalign() 80 while ((mPos & (v - 1)) != 0) { in subalign() 111 public void addI8(byte v) { in addI8() argument 112 mData[mPos++] = v; in addI8() [all …]
|
/frameworks/native/libs/vr/libpdx/ |
D | variant_tests.cpp | 130 Variant<int, bool, float> v; in TEST() local 131 ASSERT_EQ(-1, v.index()); in TEST() 132 ASSERT_FALSE(v.is<int>()); in TEST() 133 ASSERT_FALSE(v.is<bool>()); in TEST() 134 ASSERT_FALSE(v.is<float>()); in TEST() 138 Variant<int, bool, float> v; in TEST() local 139 v = 10; in TEST() 140 ASSERT_EQ(0, v.index()); in TEST() 141 ASSERT_TRUE(v.is<int>()); in TEST() 142 ASSERT_FALSE(v.is<bool>()); in TEST() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | FatVectorTests.cpp | 26 static bool allocationIsInternal(VectorType& v) { in allocationIsInternal() argument 29 return (char*)(&v) <= (char*)(&v[0]) && (char*)(&v + 1) >= (char*)(&v[0] + v.capacity()); in allocationIsInternal() 34 std::vector<int> v; in TEST() local 36 v.push_back(i); in TEST() 37 EXPECT_FALSE(allocationIsInternal(v)); in TEST() 42 FatVector<int, 4> v; in TEST() local 43 EXPECT_EQ(4u, v.capacity()); in TEST() 47 v.push_back(i); in TEST() 48 EXPECT_TRUE(allocationIsInternal(v)); in TEST() 53 v.push_back(i); in TEST() [all …]
|
/frameworks/base/libs/hwui/ |
D | Vector.h | 39 void operator+=(const Vector2& v) { 40 x += v.x; 41 y += v.y; 44 void operator-=(const Vector2& v) { 45 x -= v.x; 46 y -= v.y; 49 void operator+=(const float v) { 50 x += v; 51 y += v; 54 void operator-=(const float v) { [all …]
|
D | Matrix.cpp | 150 void Matrix4::load(const float* v) { in load() argument 151 memcpy(data, v, sizeof(data)); in load() 155 void Matrix4::load(const SkMatrix& v) { in load() argument 158 data[kScaleX] = v[SkMatrix::kMScaleX]; in load() 159 data[kSkewX] = v[SkMatrix::kMSkewX]; in load() 160 data[kTranslateX] = v[SkMatrix::kMTransX]; in load() 162 data[kSkewY] = v[SkMatrix::kMSkewY]; in load() 163 data[kScaleY] = v[SkMatrix::kMScaleY]; in load() 164 data[kTranslateY] = v[SkMatrix::kMTransY]; in load() 166 data[kPerspective0] = v[SkMatrix::kMPersp0]; in load() [all …]
|
/frameworks/rs/script_api/include/ |
D | rs_convert.rsh | 44 convert_float2(float2 v); 47 convert_float3(float3 v); 50 convert_float4(float4 v); 53 convert_float2(char2 v); 56 convert_float3(char3 v); 59 convert_float4(char4 v); 62 convert_float2(uchar2 v); 65 convert_float3(uchar3 v); 68 convert_float4(uchar4 v); 71 convert_float2(short2 v); [all …]
|
/frameworks/rs/driver/runtime/ |
D | rs_cl.c | 13 extern float __attribute__((overloadable)) fmin(float v, float v2); 14 extern float2 __attribute__((overloadable)) fmin(float2 v, float v2); 15 extern float3 __attribute__((overloadable)) fmin(float3 v, float v2); 16 extern float4 __attribute__((overloadable)) fmin(float4 v, float v2); 18 extern float __attribute__((overloadable)) fmax(float v, float v2); 19 extern float2 __attribute__((overloadable)) fmax(float2 v, float v2); 20 extern float3 __attribute__((overloadable)) fmax(float3 v, float v2); 21 extern float4 __attribute__((overloadable)) fmax(float4 v, float v2); 26 extern float2 __attribute__((overloadable)) fnc(float2 v) { \ 28 r.x = fnc(v.x); \ [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | MessagingPropertyAnimator.java | 58 public void onLayoutChange(View v, int left, int top, int right, int bottom, int oldLeft, in onLayoutChange() argument 60 setLayoutTop(v, top); in onLayoutChange() 61 if (isFirstLayout(v)) { in onLayoutChange() 62 setFirstLayout(v, false /* first */); in onLayoutChange() 63 setTop(v, top); in onLayoutChange() 66 startTopAnimation(v, getTop(v), top, MessagingLayout.FAST_OUT_SLOW_IN); in onLayoutChange() 120 public static int getTop(View v) { in getTop() argument 121 Integer tag = (Integer) v.getTag(TAG_TOP); in getTop() 123 return v.getTop(); in getTop() 128 private static void setTop(View v, int value) { in setTop() argument [all …]
|
/frameworks/base/native/graphics/jni/fuzz/ |
D | png_mutator.h | 53 V v(len); in PngMutator() 54 in.read((char *)v.data(), len); in PngMutator() 59 Append(&chunks_[idat_idx].v, v); in PngMutator() 62 chunks_.push_back({type, v}); in PngMutator() 65 auto it = v.begin(); in PngMutator() 66 while (it < v.end() && isprint(*it)) it++; in PngMutator() 67 if (it < v.end() && !*it) it++; in PngMutator() 68 if (it < v.end() && !*it) it++; in PngMutator() 69 v = V(it, v.end()); in PngMutator() 70 auto uncompressed = Uncompress(v); in PngMutator() [all …]
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/loaders/ |
D | LoaderRaw.java | 54 Volume v = new Volume(); in buildRSVolume() local 55 v.mDimx = Integer.parseInt(dim[0]); in buildRSVolume() 56 v.mDimy = Integer.parseInt(dim[1]); in buildRSVolume() 57 v.mDimz = Integer.parseInt(dim[2]); in buildRSVolume() 59 v.mVoxelDim[0] = Float.parseFloat(voxeldim[0]); in buildRSVolume() 60 v.mVoxelDim[1] = Float.parseFloat(voxeldim[1]); in buildRSVolume() 61 v.mVoxelDim[2] = Float.parseFloat(voxeldim[2]); in buildRSVolume() 62 Float min = Math.min(v.mVoxelDim[0], Math.min(v.mVoxelDim[1], v.mVoxelDim[2])); in buildRSVolume() 63 v.mVoxelDim[0] /= min; in buildRSVolume() 64 v.mVoxelDim[1] /= min; in buildRSVolume() [all …]
|
D | Droid.java | 64 Volume v = new Volume(); in buildRSVolume() local 65 v.mDimx = v.mDimy = v.mDimz = SIZE; in buildRSVolume() 66 v.mVoxelDim[0] = v.mVoxelDim[1] = v.mVoxelDim[2] = 1.f; in buildRSVolume() 68 v.addLook(internalLook, internalColor, internalOpacity); in buildRSVolume() 69 v.addLook(tranlLook, tranColor, tranOpacity); in buildRSVolume() 70 v.addLook(simpleLook, simpleColor, simpleOpacity); in buildRSVolume() 73 b.setX(v.mDimx).setY(v.mDimy); in buildRSVolume() 75 b.setZ(v.mDimz); in buildRSVolume() 76 b.setX(v.mDimx).setY(v.mDimy).setZ(v.mDimz); in buildRSVolume() 77 v.mVolumeAllocation = Allocation.createTyped(rs, b.create(), Allocation.USAGE_SCRIPT); in buildRSVolume() [all …]
|
D | Mandelbulb.java | 57 Volume v = new Volume(); in buildRSVolume() local 58 v.mDimx = v.mDimy = v.mDimz = SIZE; in buildRSVolume() 59 v.mVoxelDim[0] = v.mVoxelDim[1] = v.mVoxelDim[2] = 1.f; in buildRSVolume() 61 v.addLook(simpleLook, simpleColor, simpleOpacity); in buildRSVolume() 62 v.addLook(tranlLook, tranColor, tranOpacity); in buildRSVolume() 65 b.setX(v.mDimx).setY(v.mDimy); in buildRSVolume() 67 b.setZ(v.mDimz); in buildRSVolume() 68 b.setX(v.mDimx).setY(v.mDimy).setZ(v.mDimz); in buildRSVolume() 69 v.mVolumeAllocation = Allocation.createTyped(rs, b.create(), Allocation.USAGE_SCRIPT); in buildRSVolume() 71 scriptC_mandelbulb.set_volume(v.mVolumeAllocation); in buildRSVolume() [all …]
|
/frameworks/native/libs/math/include/math/ |
D | quat.h | 116 constexpr TQuaternion(const TVec3<A>& v, B w) : x(v.x), y(v.y), z(v.z), w(w) { } in TQuaternion() argument 120 constexpr explicit TQuaternion(const TVec4<A>& v) : x(v.x), y(v.y), z(v.z), w(v.w) { } in TQuaternion() argument 124 constexpr explicit TQuaternion(const TQuaternion<A>& v) : x(v.x), y(v.y), z(v.z), w(v.w) { } in TQuaternion() argument 147 constexpr inline quat operator"" _i(long double v) { 148 return quat(0, static_cast<float>(v), 0, 0); 150 constexpr inline quat operator"" _j(long double v) { 151 return quat(0, 0, static_cast<float>(v), 0); 153 constexpr inline quat operator"" _k(long double v) { 154 return quat(0, 0, 0, static_cast<float>(v)); 157 constexpr inline quat operator"" _i(unsigned long long v) { // NOLINT [all …]
|
D | TVecHelpers.h | 64 VECTOR<T>& operator +=(const VECTOR<OTHER>& v) { 67 lhs[i] += v[i]; 72 VECTOR<T>& operator -=(const VECTOR<OTHER>& v) { 75 lhs[i] -= v[i]; 85 VECTOR<T>& operator +=(const VECTOR<T>& v) { 88 lhs[i] += v[i]; 92 VECTOR<T>& operator -=(const VECTOR<T>& v) { 95 lhs[i] -= v[i]; 145 VECTOR<T>& operator *=(const VECTOR<OTHER>& v) { 148 lhs[i] *= v[i]; [all …]
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | RDsp.h | 58 static void fillRectangular(T &v) { in fillRectangular() argument 59 const size_t size = v.size(); in fillRectangular() 61 v[i] = 1.0; in fillRectangular() 66 static void fillTriangular(T &v, size_t overlap) { in fillTriangular() argument 67 const size_t size = v.size(); in fillTriangular() 72 v[i] = (2.0 * i + 1) / (2 * overlap); in fillTriangular() 78 v[i] = 1.0; in fillTriangular() 84 v[i] = (2.0 * (size - i) - 1) / (2 * overlap); in fillTriangular() 90 static void fillHamming(T &v, size_t overlap) { in fillHamming() argument 91 const size_t size = v.size(); in fillHamming() [all …]
|
/frameworks/av/media/tests/benchmark/src/native/common/utils/ |
D | Timers.h | 61 static inline nsecs_t s2ns(nsecs_t v) { in s2ns() argument 62 return seconds_to_nanoseconds(v); in s2ns() 64 static inline nsecs_t ms2ns(nsecs_t v) { in ms2ns() argument 65 return milliseconds_to_nanoseconds(v); in ms2ns() 67 static inline nsecs_t us2ns(nsecs_t v) { in us2ns() argument 68 return microseconds_to_nanoseconds(v); in us2ns() 70 static inline nsecs_t ns2s(nsecs_t v) { in ns2s() argument 71 return nanoseconds_to_seconds(v); in ns2s() 73 static inline nsecs_t ns2ms(nsecs_t v) { in ns2ms() argument 74 return nanoseconds_to_milliseconds(v); in ns2ms() [all …]
|
/frameworks/av/media/libaudioprocessing/ |
D | AudioResamplerFirOps.h | 83 int16_t v = left ? static_cast<int16_t>(vRL) : static_cast<int16_t>(vRL>>16); 84 return static_cast<int32_t>((static_cast<int64_t>(in) * v) >> 16); 89 int32_t mulAdd(int16_t in, int16_t v, int32_t a) 95 : [in]"%r"(in), [v]"r"(v), [a]"r"(a) 99 return a + v * in; 104 int32_t mulAdd(int16_t in, int32_t v, int32_t a) 110 : [in]"%r"(in), [v]"r"(v), [a]"r"(a) 114 return a + static_cast<int32_t>((static_cast<int64_t>(v) * in) >> 16); 119 int32_t mulAdd(int32_t in, int32_t v, int32_t a) 125 : [in]"%r"(in), [v]"r"(v), [a]"r"(a) [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 131 public static void scrollToBottom(ActivityInstrumentationTestCase test, ViewGroup v) { in scrollToBottom() argument 132 scrollToBottom(test, test.getActivity(), v); in scrollToBottom() 144 ViewGroup v) { in scrollToBottom() argument 146 ViewStateSnapshot next = new ViewStateSnapshot(v); in scrollToBottom() 150 next = new ViewStateSnapshot(v); in scrollToBottom() 166 public static void scrollToTop(ActivityInstrumentationTestCase test, ViewGroup v) { in scrollToTop() argument 167 scrollToTop(test, test.getActivity(), v); in scrollToTop() 178 public static void scrollToTop(InstrumentationTestCase test, Activity activity, ViewGroup v) { in scrollToTop() argument 180 ViewStateSnapshot next = new ViewStateSnapshot(v); in scrollToTop() 184 next = new ViewStateSnapshot(v); in scrollToTop() [all …]
|
/frameworks/native/cmds/surfacereplayer/replayer/ |
D | Color.h | 38 HSV(double hIn, double sIn, double vIn) : h(hIn), s(sIn), v(vIn) {} in HSV() 42 double v = 0; member 53 v += modulateFactor; in modulate() 55 v -= modulateFactor; in modulate() 58 if(v <= modulateLimit || v >= 1) { in modulate() 68 r = v; in getRGB() 69 g = v; in getRGB() 70 b = v; in getRGB() 78 double x = v * (1.0 - s); in getRGB() 79 double y = v * (1.0 - (s * f)); in getRGB() [all …]
|
/frameworks/base/core/java/android/util/ |
D | DataUnit.java | 36 KILOBYTES { @Override public long toBytes(long v) { return v * 1_000; } }, in toBytes() argument 37 MEGABYTES { @Override public long toBytes(long v) { return v * 1_000_000; } }, in toBytes() argument 38 GIGABYTES { @Override public long toBytes(long v) { return v * 1_000_000_000; } }, in toBytes() argument 39 KIBIBYTES { @Override public long toBytes(long v) { return v * 1_024; } }, in toBytes() argument 40 MEBIBYTES { @Override public long toBytes(long v) { return v * 1_048_576; } }, in toBytes() argument 41 GIBIBYTES { @Override public long toBytes(long v) { return v * 1_073_741_824; } }; in toBytes() argument 43 public long toBytes(long v) { in toBytes() argument
|
/frameworks/base/errorprone/refaster/ |
D | EfficientXml.java | 32 void beforeToString(TypedXmlSerializer out, String n, int v) throws Exception { in beforeToString() argument 33 out.attribute(null, n, Integer.toString(v)); in beforeToString() 37 void beforeValueOf(TypedXmlSerializer out, String n, int v) throws Exception { in beforeValueOf() argument 38 out.attribute(null, n, String.valueOf(v)); in beforeValueOf() 42 void beforeUtils(TypedXmlSerializer out, String n, int v) throws Exception { in beforeUtils() argument 43 XmlUtils.writeIntAttribute(out, n, v); in beforeUtils() 47 void beforeRadix(TypedXmlSerializer out, String n, int v) throws Exception { in beforeRadix() argument 48 out.attribute(null, n, Integer.toString(v, 10)); in beforeRadix() 52 void after(TypedXmlSerializer out, String n, int v) throws Exception { in after() argument 53 out.attributeInt(null, n, v); in after() [all …]
|
/frameworks/native/opengl/tests/lighting1709/src/com/android/lightingtest/ |
D | ClearActivity.java | 108 final float v[] = new float[9]; in onDrawFrame() local 109 ByteBuffer vbb = ByteBuffer.allocateDirect(v.length*4); in onDrawFrame() 130 v[0] = -1; v[1] =-1; v[2] = -10; in onDrawFrame() 131 v[3] = 0; v[4] = 1; v[5] = -10; in onDrawFrame() 132 v[6] = 1; v[7] =-1; v[8] = -10; in onDrawFrame() 134 v[j*3+0] -= pos[i*3+0]; in onDrawFrame() 135 v[j*3+1] -= pos[i*3+1]; in onDrawFrame() 136 v[j*3+2] -= pos[i*3+2]; in onDrawFrame() 138 vb.put(v).position(0); in onDrawFrame() 144 v[0] = -1; v[1] =-1; v[2] = -10; in onDrawFrame() [all …]
|
/frameworks/base/libs/hwui/jni/ |
D | Camera.cpp | 21 Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); in Camera_save() local 22 v->save(); in Camera_save() 27 Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); in Camera_restore() local 28 v->restore(); in Camera_restore() 34 Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); in Camera_translate() local 35 v->translate(dx, dy, dz); in Camera_translate() 40 Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); in Camera_rotateX() local 41 v->rotateX(degrees); in Camera_rotateX() 46 Sk3DView* v = reinterpret_cast<Sk3DView*>(viewHandle); in Camera_rotateY() local 47 v->rotateY(degrees); in Camera_rotateY() [all …]
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
D | VisualizerInstanceMT.java | 42 VisualizerInstanceSync v = new VisualizerInstanceSync(session, uiHandler); in VisualizerInstanceMT() 45 mVisualizer = v; in VisualizerInstanceMT() 60 void run(VisualizerInstance v); in run() argument 64 final VisualizerInstance v = getVisualizer(); in runOperationMt() local 65 if (v == null) return; in runOperationMt() 70 op.run(v); in runOperationMt() 79 runOperationMt(v -> v.enableDataCaptureListener(enable)); in enableDataCaptureListener() 84 final VisualizerInstance v = getVisualizer(); in getEnabled() local 85 return v != null ? v.getEnabled() : false; in getEnabled() 90 runOperationMt(v -> v.release()); in release() [all …]
|