/frameworks/native/services/sensorservice/hidl/ |
D | utils.cpp | 32 SensorInfo dst; in convertSensor() local 35 dst.name = hidl_string{name.string(), name.size()}; in convertSensor() 36 dst.vendor = hidl_string{vendor.string(), vendor.size()}; in convertSensor() 37 dst.version = src.getVersion(); in convertSensor() 38 dst.sensorHandle = src.getHandle(); in convertSensor() 39 dst.type = static_cast<::android::hardware::sensors::V1_0::SensorType>( in convertSensor() 43 dst.maxRange = src.getMaxValue(); in convertSensor() 44 dst.resolution = src.getResolution(); in convertSensor() 45 dst.power = src.getPowerUsage(); in convertSensor() 46 dst.minDelay = src.getMinDelay(); in convertSensor() [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLib/src/com/android/rs/test/ |
D | atomic.rs | 4 static bool testUMax(uint32_t dst, uint32_t src) { 6 uint32_t old = dst; 7 uint32_t expect = (dst > src ? dst : src); 8 uint32_t ret = rsAtomicMax(&dst, src); 10 _RS_ASSERT(dst == expect); 14 static bool testUMin(uint32_t dst, uint32_t src) { 16 uint32_t old = dst; 17 uint32_t expect = (dst < src ? dst : src); 18 uint32_t ret = rsAtomicMin(&dst, src); 20 _RS_ASSERT(dst == expect); [all …]
|
/frameworks/rs/tests/java_api/RsTest/src/com/android/rs/test/ |
D | atomic.rs | 4 static bool testUMax(uint32_t dst, uint32_t src) { 6 uint32_t old = dst; 7 uint32_t expect = (dst > src ? dst : src); 8 uint32_t ret = rsAtomicMax(&dst, src); 10 _RS_ASSERT(dst == expect); 14 static bool testUMin(uint32_t dst, uint32_t src) { 16 uint32_t old = dst; 17 uint32_t expect = (dst < src ? dst : src); 18 uint32_t ret = rsAtomicMin(&dst, src); 20 _RS_ASSERT(dst == expect); [all …]
|
/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | atomic.rs | 4 static bool testUMax(uint32_t dst, uint32_t src) { 6 uint32_t old = dst; 7 uint32_t expect = (dst > src ? dst : src); 8 uint32_t ret = rsAtomicMax(&dst, src); 10 _RS_ASSERT(dst == expect); 14 static bool testUMin(uint32_t dst, uint32_t src) { 16 uint32_t old = dst; 17 uint32_t expect = (dst < src ? dst : src); 18 uint32_t ret = rsAtomicMin(&dst, src); 20 _RS_ASSERT(dst == expect); [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Common/lib/ |
D | VectorArithmetic.h | 33 LVM_INT16 *dst, 37 LVM_INT32 *dst, 41 LVM_INT16 *dst, 54 LVM_INT16 *dst, 67 LVM_INT32 *dst, 73 LVM_INT16 *dst, 84 LVM_INT16 *dst, 88 LVM_INT32 *dst, 93 LVM_INT16 *dst, 98 LVM_INT32 *dst, [all …]
|
/frameworks/av/media/libstagefright/colorconversion/ |
D | ColorConverter.cpp | 101 BitmapParams dst( in convert() local 111 err = convertYUV420PlanarUseLibYUV(src, dst); in convert() 113 err = convertYUV420Planar(src, dst); in convert() 118 err = convertCbYCrY(src, dst); in convert() 122 err = convertQCOMYUV420SemiPlanar(src, dst); in convert() 126 err = convertYUV420SemiPlanar(src, dst); in convert() 130 err = convertTIYUV420PackedSemiPlanar(src, dst); in convert() 144 const BitmapParams &src, const BitmapParams &dst) { in convertCbYCrY() argument 150 && src.cropWidth() == dst.cropWidth() in convertCbYCrY() 151 && src.cropHeight() == dst.cropHeight())) { in convertCbYCrY() [all …]
|
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
D | LVC_Core_MixInSoft_D16C31_SAT.c | 31 LVM_INT16 *dst, in LVC_Core_MixInSoft_D16C31_SAT() argument 58 …Temp = ((LVM_INT32)*dst) + (((LVM_INT32)*(src++) * CurrentShort)>>15); /* Q15 + Q15*Q15>>15 i… in LVC_Core_MixInSoft_D16C31_SAT() 60 *dst++ = 0x7FFF; in LVC_Core_MixInSoft_D16C31_SAT() 62 *dst++ = - 0x8000; in LVC_Core_MixInSoft_D16C31_SAT() 64 *dst++ = (LVM_INT16)Temp; in LVC_Core_MixInSoft_D16C31_SAT() 77 …Temp = ((LVM_INT32)*dst) + (((LVM_INT32)*(src++) * CurrentShort)>>15); /* Q15 + Q15*Q15>>15 i… in LVC_Core_MixInSoft_D16C31_SAT() 79 *dst++ = 0x7FFF; in LVC_Core_MixInSoft_D16C31_SAT() 81 *dst++ = - 0x8000; in LVC_Core_MixInSoft_D16C31_SAT() 83 *dst++ = (LVM_INT16)Temp; in LVC_Core_MixInSoft_D16C31_SAT() 96 …Temp = ((LVM_INT32)*dst) + (((LVM_INT32)*(src++) * CurrentShort)>>15); /* Q15 + Q15*Q15>>15 i… in LVC_Core_MixInSoft_D16C31_SAT() [all …]
|
D | MSTo2i_Sat_16x16.c | 30 LVM_INT16 *dst, in MSTo2i_Sat_16x16() argument 49 *dst = 0x7FFF; in MSTo2i_Sat_16x16() 53 *dst = - 0x8000; in MSTo2i_Sat_16x16() 57 *dst = (LVM_INT16)temp; in MSTo2i_Sat_16x16() 59 dst++; in MSTo2i_Sat_16x16() 65 *dst = 0x7FFF; in MSTo2i_Sat_16x16() 69 *dst = - 0x8000; in MSTo2i_Sat_16x16() 73 *dst = (LVM_INT16)temp; in MSTo2i_Sat_16x16() 75 dst++; in MSTo2i_Sat_16x16()
|
D | Shift_Sat_v16xv16.c | 30 LVM_INT16 *dst, in Shift_Sat_v16xv16() argument 47 *dst = 0x7FFF; in Shift_Sat_v16xv16() 51 *dst = - 0x8000; in Shift_Sat_v16xv16() 55 *dst = (LVM_INT16)temp; in Shift_Sat_v16xv16() 57 dst++; in Shift_Sat_v16xv16() 66 *dst = (LVM_INT16)(*src >> RShift); in Shift_Sat_v16xv16() 67 dst++; in Shift_Sat_v16xv16() 73 if(src!=dst) in Shift_Sat_v16xv16() 75 Copy_16(src,dst,n); in Shift_Sat_v16xv16()
|
D | LVC_MixSoft_1St_D16C31_SAT.c | 39 LVM_INT16 *dst, in LVC_MixSoft_1St_D16C31_SAT() argument 65 Shift_Sat_v16xv16 ((LVM_INT16)pInstance->Shift,src,dst,n); in LVC_MixSoft_1St_D16C31_SAT() 66 LVC_Core_MixSoft_1St_D16C31_WRA( &(ptrInstance->MixerStream[0]), dst, dst, n); in LVC_MixSoft_1St_D16C31_SAT() 69 LVC_Core_MixSoft_1St_D16C31_WRA( &(ptrInstance->MixerStream[0]), src, dst, n); in LVC_MixSoft_1St_D16C31_SAT() 79 LoadConst_16(0, dst, n); in LVC_MixSoft_1St_D16C31_SAT() 81 Shift_Sat_v16xv16 ((LVM_INT16)pInstance->Shift,src,dst,n); in LVC_MixSoft_1St_D16C31_SAT() 83 Mult3s_16x16( dst, (LVM_INT16)(pInstance->Target>>16), dst, n ); in LVC_MixSoft_1St_D16C31_SAT() 87 Mult3s_16x16( src, (LVM_INT16)(pInstance->Target>>16), dst, n ); in LVC_MixSoft_1St_D16C31_SAT() 88 else if(src!=dst) in LVC_MixSoft_1St_D16C31_SAT() 89 Copy_16(src, dst, n); in LVC_MixSoft_1St_D16C31_SAT()
|
D | Core_MixSoft_1St_D32C31_WRA.c | 31 LVM_INT32 *dst, in Core_MixSoft_1St_D32C31_WRA() argument 63 *dst = Temp2; in Core_MixSoft_1St_D32C31_WRA() 64 dst++; in Core_MixSoft_1St_D32C31_WRA() 77 *dst = Temp2; in Core_MixSoft_1St_D32C31_WRA() 78 dst++; in Core_MixSoft_1St_D32C31_WRA() 84 *dst = Temp2; in Core_MixSoft_1St_D32C31_WRA() 85 dst++; in Core_MixSoft_1St_D32C31_WRA() 91 *dst = Temp2; in Core_MixSoft_1St_D32C31_WRA() 92 dst++; in Core_MixSoft_1St_D32C31_WRA() 97 *dst = Temp2; in Core_MixSoft_1St_D32C31_WRA() [all …]
|
D | Copy_16.c | 29 LVM_INT16 *dst, in Copy_16() argument 34 if (src > dst) in Copy_16() 38 *dst = *src; in Copy_16() 39 dst++; in Copy_16() 46 dst += n - 1; in Copy_16() 49 *dst = *src; in Copy_16() 50 dst--; in Copy_16()
|
D | LVC_MixSoft_2St_D16C31_SAT.c | 32 LVM_INT16 *dst, in LVC_MixSoft_2St_D16C31_SAT() argument 44 … LVC_MixSoft_1St_D16C31_SAT( (LVMixer3_1St_st *)(&ptrInstance->MixerStream[1]), src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 47 … LVC_MixSoft_1St_D16C31_SAT( (LVMixer3_1St_st *)(&ptrInstance->MixerStream[0]), src1, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 51 LVC_MixSoft_1St_D16C31_SAT((LVMixer3_1St_st *)(&ptrInstance->MixerStream[0]), src1, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 52 LVC_MixInSoft_D16C31_SAT( (LVMixer3_1St_st *)(&ptrInstance->MixerStream[1]), src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 62 Shift_Sat_v16xv16 ((LVM_INT16)pInstance1->Shift,src1,dst,n); in LVC_MixSoft_2St_D16C31_SAT() 63 …ard_2St_D16C31_SAT( &ptrInstance->MixerStream[0], &ptrInstance->MixerStream[1], dst, src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT() 66 …rd_2St_D16C31_SAT( &ptrInstance->MixerStream[0], &ptrInstance->MixerStream[1], src1, src2, dst, n); in LVC_MixSoft_2St_D16C31_SAT()
|
D | LVC_Core_MixSoft_1St_D16C31_WRA.c | 32 LVM_INT16 *dst, in LVC_Core_MixSoft_1St_D16C31_WRA() argument 58 …*(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); /* Q15*Q15>>15 int… in LVC_Core_MixSoft_1St_D16C31_WRA() 70 …*(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); /* Q15*Q15>>15 int… in LVC_Core_MixSoft_1St_D16C31_WRA() 71 *(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); in LVC_Core_MixSoft_1St_D16C31_WRA() 72 *(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); in LVC_Core_MixSoft_1St_D16C31_WRA() 73 *(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); in LVC_Core_MixSoft_1St_D16C31_WRA() 85 …*(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); /* Q15*Q15>>15 int… in LVC_Core_MixSoft_1St_D16C31_WRA() 96 …*(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); /* Q15*Q15>>15 int… in LVC_Core_MixSoft_1St_D16C31_WRA() 97 *(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); in LVC_Core_MixSoft_1St_D16C31_WRA() 98 *(dst++) = (LVM_INT16)(((LVM_INT32)*(src++) * (LVM_INT32)CurrentShort)>>15); in LVC_Core_MixSoft_1St_D16C31_WRA() [all …]
|
D | Shift_Sat_v32xv32.c | 30 LVM_INT32 *dst, in Shift_Sat_v32xv32() argument 59 *dst = b; in Shift_Sat_v32xv32() 60 dst++; in Shift_Sat_v32xv32() 68 *dst = (*src >> RShift); in Shift_Sat_v32xv32() 69 dst++; in Shift_Sat_v32xv32() 75 if(src!=dst) in Shift_Sat_v32xv32() 77 Copy_16((LVM_INT16 *)src,(LVM_INT16 *)dst,(LVM_INT16)(n<<1)); in Shift_Sat_v32xv32()
|
D | MonoTo2I_32.c | 29 LVM_INT32 *dst, in MonoTo2I_32() argument 34 dst += ((n*2)-1); in MonoTo2I_32() 38 *dst = *src; in MonoTo2I_32() 39 dst--; in MonoTo2I_32() 41 *dst = *src; in MonoTo2I_32() 42 dst--; in MonoTo2I_32()
|
D | MonoTo2I_16.c | 29 LVM_INT16 *dst, in MonoTo2I_16() argument 34 dst += ((n*2)-1); in MonoTo2I_16() 38 *dst = *src; in MonoTo2I_16() 39 dst--; in MonoTo2I_16() 41 *dst = *src; in MonoTo2I_16() 42 dst--; in MonoTo2I_16()
|
D | DelayMix_16x16.c | 31 LVM_INT16 *dst, /* Source/destination */ in DelayMix_16x16() argument 42 … temp = (LVM_INT16)((LVM_UINT32)((LVM_INT32)(*dst) + (LVM_INT32)delay[Offset]) >> 1); in DelayMix_16x16() 43 *dst = temp; in DelayMix_16x16() 44 dst++; in DelayMix_16x16() 52 … temp = (LVM_INT16)((LVM_UINT32)((LVM_INT32)(*dst) - (LVM_INT32)delay[Offset]) >> 1); in DelayMix_16x16() 53 *dst = temp; in DelayMix_16x16() 54 dst++; in DelayMix_16x16()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | BlendComposite.java | 200 public abstract int[] blend(int[] src, int[] dst, int[] result); in blend() argument 207 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor() 209 result[i] = Math.min(255, src[i] + dst[i]); in getBlenderFor() 217 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor() 219 result[i] = Math.min(src[i], dst[i]); in getBlenderFor() 221 result[3] = Math.min(255, src[3] + dst[3]); in getBlenderFor() 228 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor() 230 result[i] = Math.max(src[i], dst[i]); in getBlenderFor() 232 result[3] = Math.min(255, src[3] + dst[3]); in getBlenderFor() 239 public int[] blend(int[] src, int[] dst, int[] result) { in getBlenderFor() [all …]
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | me_utils.cpp | 220 UChar *src, *dst; in PaddingEdge() local 239 dst = src - (pitch << 4); in PaddingEdge() 241 *((ULong*)(dst - 16)) = temp1; in PaddingEdge() 242 *((ULong*)(dst - 12)) = temp1; in PaddingEdge() 243 *((ULong*)(dst - 8)) = temp1; in PaddingEdge() 244 *((ULong*)(dst - 4)) = temp1; in PaddingEdge() 246 M4VENC_MEMCPY(dst, src, width); in PaddingEdge() 248 *((ULong*)(dst += width)) = temp2; in PaddingEdge() 249 *((ULong*)(dst + 4)) = temp2; in PaddingEdge() 250 *((ULong*)(dst + 8)) = temp2; in PaddingEdge() [all …]
|
D | dct.cpp | 40 Short *dst; in BlockDCT_AANwSub() local 50 dst = out + 64 ; in BlockDCT_AANwSub() 51 ColTh = *dst; in BlockDCT_AANwSub() 108 dst[0] = k0; in BlockDCT_AANwSub() 109 dst[4] = k1; /* col. 4 */ in BlockDCT_AANwSub() 127 dst[2] = k2; /* col. 2 */ in BlockDCT_AANwSub() 129 dst[6] = k3; /* col. 6 */ in BlockDCT_AANwSub() 151 dst[5] = k4; /* col. 5 */ in BlockDCT_AANwSub() 153 dst[1] = k5; /* col. 1 */ in BlockDCT_AANwSub() 154 dst[7] = k6; /* col. 7 */ in BlockDCT_AANwSub() [all …]
|
/frameworks/rs/ |
D | rsScriptC_Lib.cpp | 114 static void SetObjectRef(const Context *rsc, const ObjectBase *dst, const ObjectBase *src) { in SetObjectRef() argument 120 if (dst) { in SetObjectRef() 121 CHECK_OBJ(dst); in SetObjectRef() 122 dst->decSysRef(); in SetObjectRef() 127 void rsrClearObject(const Context *rsc, void *dst) { in rsrClearObject() argument 128 ObjectBase **odst = (ObjectBase **)dst; in rsrClearObject() 139 void rsrClearObject(rs_object_base *dst) { in rsrClearObject() argument 141 ALOGE("rsrClearObject %p,%p", dst, dst->p); in rsrClearObject() 143 if (dst->p) { in rsrClearObject() 144 CHECK_OBJ(dst->p); in rsrClearObject() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsics_x86.cpp | 79 extern "C" void rsdIntrinsicConvolve3x3_K(void *dst, const void *y0, in rsdIntrinsicConvolve3x3_K() argument 133 _mm_storel_epi64((__m128i *)dst, o0); in rsdIntrinsicConvolve3x3_K() 138 dst = (char *)dst + 8; in rsdIntrinsicConvolve3x3_K() 142 void rsdIntrinsicColorMatrix4x4_K(void *dst, const void *src, in rsdIntrinsicColorMatrix4x4_K() argument 190 _mm_storeu_si128((__m128i *)dst, o4); in rsdIntrinsicColorMatrix4x4_K() 193 dst = (char *)dst + 16; in rsdIntrinsicColorMatrix4x4_K() 197 void rsdIntrinsicColorMatrix3x3_K(void *dst, const void *src, in rsdIntrinsicColorMatrix3x3_K() argument 244 _mm_storeu_si128((__m128i *)dst, o4); in rsdIntrinsicColorMatrix3x3_K() 247 dst = (char *)dst + 16; in rsdIntrinsicColorMatrix3x3_K() 251 void rsdIntrinsicColorMatrixDot_K(void *dst, const void *src, in rsdIntrinsicColorMatrixDot_K() argument [all …]
|
/frameworks/av/media/libstagefright/rtsp/ |
D | APacketSource.cpp | 298 uint8_t *dst = csd->data(); in MakeAACCodecSpecificData2() local 299 *dst++ = 0x03; in MakeAACCodecSpecificData2() 300 *dst++ = 20 + config->size(); in MakeAACCodecSpecificData2() 301 *dst++ = 0x00; // ES_ID in MakeAACCodecSpecificData2() 302 *dst++ = 0x00; in MakeAACCodecSpecificData2() 303 *dst++ = 0x00; // streamDependenceFlag, URL_Flag, OCRstreamFlag in MakeAACCodecSpecificData2() 304 *dst++ = 0x04; in MakeAACCodecSpecificData2() 305 *dst++ = 15 + config->size(); in MakeAACCodecSpecificData2() 306 *dst++ = objectType; in MakeAACCodecSpecificData2() 307 for (int i = 0; i < 12; ++i) { *dst++ = 0x00; } in MakeAACCodecSpecificData2() [all …]
|
/frameworks/opt/bitmap/src/com/android/bitmap/drawable/ |
D | CircularBitmapDrawable.java | 94 final Rect dst) { in onDrawBitmap() argument 95 onDrawCircularBitmap(getBitmap().bmp, canvas, src, dst, 1f); in onDrawBitmap() local 123 final Rect src, final Rect dst) { in onDrawCircularBitmap() argument 124 onDrawCircularBitmap(bitmap, canvas, src, dst, 1f); in onDrawCircularBitmap() 132 final Rect src, final Rect dst, final float alpha) { in onDrawCircularBitmap() argument 142 float scale = Math.max((float) dst.width() / src.width(), in onDrawCircularBitmap() 143 (float) dst.height() / src.height()); in onDrawCircularBitmap() 146 mMatrix.postTranslate(dst.left, dst.top); in onDrawCircularBitmap() 152 canvas.drawCircle(dst.centerX(), dst.centerY(), dst.width() / 2, in onDrawCircularBitmap() 157 canvas.drawCircle(dst.centerX(), dst.centerY(), in onDrawCircularBitmap() [all …]
|