Home
last modified time | relevance | path

Searched refs:sign (Results 1 – 25 of 131) sorted by relevance

123456

/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dbit_cnt.c500 Word16 sign, signLength; in codeValues() local
533 sign=0; in codeValues()
539 sign = sign << 1; in codeValues()
542 sign|=1; in codeValues()
550 sign = sign << 1; in codeValues()
553 sign|=1; in codeValues()
561 sign = sign << 1; in codeValues()
564 sign|=1; in codeValues()
571 sign = sign << 1; in codeValues()
574 sign|=1; in codeValues()
[all …]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DDuration.java31 public int sign; // 1 or -1 field in Duration
40 sign = 1; in Duration()
49 sign = 1; in parse()
66 sign = -1; in parse()
134 cal.add(Calendar.DAY_OF_MONTH, sign*weeks*7); in addTo()
135 cal.add(Calendar.DAY_OF_MONTH, sign*days); in addTo()
136 cal.add(Calendar.HOUR, sign*hours); in addTo()
137 cal.add(Calendar.MINUTE, sign*minutes); in addTo()
138 cal.add(Calendar.SECOND, sign*seconds); in addTo()
146 long factor = 1000 * sign; in getMillis()
/frameworks/av/media/libstagefright/codecs/amrnb/dec/src/
Dd1035pf.cpp213 Word16 sign, tmp; in dec_10i40_35bits() local
237 sign = 4096; /* +1.0 */ in dec_10i40_35bits()
241 sign = -4096; /* -1.0 */ in dec_10i40_35bits()
244 *(cod + pos1) = sign; in dec_10i40_35bits()
257 sign = negate(sign); in dec_10i40_35bits()
259 *(cod + pos2) += sign; in dec_10i40_35bits()
Dd8_31pf.cpp568 Word16 sign; in dec_8i40_31bits() local
594 sign = POS_CODE; /* +1.0 */ in dec_8i40_31bits()
598 sign = -NEG_CODE; /* -1.0 */ in dec_8i40_31bits()
603 cod[pos1] = sign; /* avoid buffer overflow */ in dec_8i40_31bits()
614 sign = negate(sign); in dec_8i40_31bits()
619 cod[pos2] += sign; /* avoid buffer overflow */ in dec_8i40_31bits()
Dd2_11pf.cpp151 Word16 sign, /* i : signs of 2 pulses. */ in decode_2i40_11bits() argument
203 i = sign & 1; in decode_2i40_11bits()
220 sign >>= 1; in decode_2i40_11bits()
Dd3_14pf.cpp157 Word16 sign, /* i : signs of 3 pulses. */ in decode_3i40_14bits() argument
211 i = sign & 1; in decode_3i40_14bits()
228 sign >>= 1; in decode_3i40_14bits()
Dd2_9pf.cpp177 Word16 sign, /* i : signs of 2 pulses. */ in decode_2i40_9bits() argument
227 i = sign & 0x1; in decode_2i40_9bits()
244 sign >>= 1; in decode_2i40_9bits()
Dd4_17pf.cpp177 Word16 sign, /* i : signs of 4 pulses. */ in decode_4i40_17bits() argument
250 i = sign & 0x1; in decode_4i40_17bits()
267 sign >>= 1; in decode_4i40_17bits()
Dd_plsf_5.cpp313 Word16 sign; in D_plsf_5() local
339 sign = in D_plsf_5()
347 sign, in D_plsf_5()
413 sign = *(indice + 2) & 1; in D_plsf_5()
432 if (sign == 0) in D_plsf_5()
/frameworks/av/media/libeffects/lvm/lib/Common/src/
DLVM_Polynomial.c49 LVM_FLOAT Y,A,XTemp,Temp,sign; in LVM_Polynomial() local
57 sign = Temp; in LVM_Polynomial()
60 Y += ((*pCoefficients) * sign); in LVM_Polynomial()
62 sign *= Temp; in LVM_Polynomial()
90 LVM_INT32 Y,A,XTemp,Temp,sign; in LVM_Polynomial() local
98 sign=Temp; in LVM_Polynomial()
101 Y+=((*pCoefficients)*sign); in LVM_Polynomial()
103 sign*=Temp; in LVM_Polynomial()
/frameworks/base/core/java/android/text/method/
DDigitsKeyListener.java112 public DigitsKeyListener(boolean sign, boolean decimal) { in DigitsKeyListener() argument
113 this(null, sign, decimal); in DigitsKeyListener()
135 private static String stripBidiControls(@NonNull String sign) { in stripBidiControls() argument
140 for (int i = 0; i < sign.length(); i++) { in stripBidiControls()
141 final char c = sign.charAt(i); in stripBidiControls()
155 public DigitsKeyListener(@Nullable Locale locale, boolean sign, boolean decimal) { in DigitsKeyListener() argument
156 mSign = sign; in DigitsKeyListener()
170 if (sign || decimal) { in DigitsKeyListener()
172 if (sign) { in DigitsKeyListener()
241 public static DigitsKeyListener getInstance(boolean sign, boolean decimal) { in getInstance() argument
[all …]
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
DarmVCM4P2_GetVLCBits.c118 OMX_U8 sign = 0; in armVCM4P2_GetVLCBits() local
143 sign = (storeLevel & 0x80); in armVCM4P2_GetVLCBits()
144 if(sign==0x80) in armVCM4P2_GetVLCBits()
147 sign=1; in armVCM4P2_GetVLCBits()
151 armRetDataErrIf( storeLevel == 0 || sign*storeLevel == 128 , OMX_Sts_Err); /* Invalid FLC */ in armVCM4P2_GetVLCBits()
157 sign, in armVCM4P2_GetVLCBits()
206 sign = (OMX_U8) armGetBits(ppBitStream, pBitOffset, 1); in armVCM4P2_GetVLCBits()
243 sign = (OMX_U8) armGetBits(ppBitStream, pBitOffset, 1); in armVCM4P2_GetVLCBits()
259 sign, in armVCM4P2_GetVLCBits()
DarmVCM4P2_FillVLCBuffer.c93 OMX_U32 tempRun = run, sign = 0; in armVCM4P2_FillVLCBuffer() local
130 sign = 1; in armVCM4P2_FillVLCBuffer()
148 armPackBits(ppBitStream, pBitOffset, (OMX_U32)sign, 1); in armVCM4P2_FillVLCBuffer()
152 if (sign) in armVCM4P2_FillVLCBuffer()
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/
Dvlc_decode.cpp872 pTcoef->sign = (code >> (12 - tab->len)) & 1; in VlcDecTCOEFIntra()
886 if (!pTcoef->sign) in VlcDecTCOEFIntra()
919 pTcoef->sign = (code >> (12 - tab->len)) & 1; in VlcDecTCOEFIntra()
971 pTcoef->sign = (code >> (12 - tab->len)) & 1; in VlcDecTCOEFIntra()
1008 pTcoef->sign = 1; in VlcDecTCOEFIntra()
1013 pTcoef->sign = 0; in VlcDecTCOEFIntra()
1054 pTcoef->sign = (code >> (12 - tab->len)) & 1; in VlcDecTCOEFInter()
1067 if (!pTcoef->sign) in VlcDecTCOEFInter()
1097 pTcoef->sign = (code >> (12 - tab->len)) & 1; in VlcDecTCOEFInter()
1144 pTcoef->sign = (code >> (12 - tab->len)) & 1; in VlcDecTCOEFInter()
[all …]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/
Dc4t64fx.c80 Word16 sign[], /* (i) sign vector */
90 Word16 sign[], /* (i) sign vector */
100 Word16 sign[], /* (i) sign vector */
145 Word16 dn2[L_SUBFR], sign[L_SUBFR], vec[L_SUBFR]; in ACELP_4t64_fx() local
291 sign[i] = 32767; /* sign = +1 (Q12) */ in ACELP_4t64_fx()
295 sign[i] = -32768; /* sign = -1 (Q12) */ in ACELP_4t64_fx()
531 psign = sign; in ACELP_4t64_fx()
582 if (sign[ix] < 0) in ACELP_4t64_fx()
586 if (sign[iy] < 0) in ACELP_4t64_fx()
612 if (sign[ix] < 0) in ACELP_4t64_fx()
[all …]
Dc2t64fx.c62 Word16 sign[L_SUBFR], vec[L_SUBFR], dn2[L_SUBFR]; in ACELP_2t64_fx() local
123 sign[i] = 32767; /* sign = +1 (Q12) */ in ACELP_2t64_fx()
127 sign[i] = -32768; /* sign = -1 (Q12) */ in ACELP_2t64_fx()
210 psign = sign; in ACELP_2t64_fx()
271 if (sign[ix] > 0) in ACELP_2t64_fx()
281 if (sign[iy] > 0) in ACELP_2t64_fx()
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV5E/
Dcor_h_vec_opt.s20 @ Word16 sign[], /* (i) sign vector */
28 @r3 ---- sign[]
45 @r3 --- sign[], r4 --- i, r7 --- p0
71 ADD r9, r3, r2, LSL #1 @address of sign[pos]
73 LDRSH r10, [r9], #2 @sign[pos]
74 LDRSH r11, [r9] @sign[pos + 1]
118 ADD r9, r3, r2, LSL #1 @address of sign[pos]
120 LDRSH r10, [r9], #2 @sign[pos]
121 LDRSH r11, [r9] @sign[pos + 1]
/frameworks/av/media/libstagefright/codecs/amrwbenc/src/asm/ARMV7/
Dcor_h_vec_neon.s21 @ Word16 sign[], /* (i) sign vector */
29 @r3 ---- sign[]
45 @r3 --- sign[], r4 --- i, r7 --- p0
72 ADD r9, r3, r2, LSL #1 @address of sign[pos]
74 LDRSH r10, [r9], #2 @sign[pos]
75 LDRSH r11, [r9] @sign[pos + 1]
119 ADD r9, r3, r2, LSL #1 @address of sign[pos]
121 LDRSH r10, [r9], #2 @sign[pos]
122 LDRSH r11, [r9] @sign[pos + 1]
/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)); \
59 void poly_clip_to_halfspace(Poly* p, Poly* q, int index, float sign, float k) in poly_clip_to_halfspace() argument
71 tu = sign*COORD(u, index) - u->sw*k; in poly_clip_to_halfspace()
75 tv = sign*COORD(v, index) - v->sw*k; in poly_clip_to_halfspace()
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/
Dc1035pf.cpp401 Word16 sign[], /* (i) : sign of d[n] */ in build_code() argument
438 if (sign[i] > 0) in build_code()
659 Word16 dn[L_CODE], sign[L_CODE]; in code_10i40_35bits() local
663 set_sign12k2(dn, cn, sign, pos_max, NB_TRACK, ipos, STEP, pOverflow); in code_10i40_35bits()
664 cor_h(h, sign, rr, pOverflow); in code_10i40_35bits()
669 build_code(codvec, sign, cod, h, y, indx, pOverflow); in code_10i40_35bits()
Dset_sign.cpp246 Word16 sign[], /* o : sign of dn[] */ in set_sign() argument
262 sign[i] = 32767; in set_sign()
266 sign[i] = -32767; in set_sign()
489 Word16 sign[], /* o : sign of d[n] */ in set_sign12k2() argument
537 p_sign = &sign[L_CODE-1]; in set_sign12k2()
Dc2_9pf.cpp135 Word16 sign[], /* o : sign of 2 pulses */
311 Word16 * sign, /* o : Signs of 2 pulses */ in code_2i40_9bits() argument
395 sign, in code_2i40_9bits()
992 Word16 sign[], /* o : sign of 2 pulses */ in build_code() argument
1065 *sign = rsign; in build_code()
1186 Word16 sign[], /* o : sign of 2 pulses */ in Test_build_code() argument
1211 sign, in Test_build_code()
/frameworks/layoutlib/bridge/src/com/android/internal/util/
DXmlUtils_Delegate.java42 int sign = 1; in convertValueToInt() local
48 sign = -1; in convertValueToInt()
72 return ((int)Long.parseLong(nm.substring(index), base)) * sign; in convertValueToInt()
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DDurationTest.java27 int sign, int weeks, int days, int hours, in verifyDuration() argument
33 assertEquals("Duration sign is not equal for " + str, sign, duration.sign); in verifyDuration()
/frameworks/opt/net/voip/src/jni/rtp/
DG711Codec.cpp52 int sign = (sample >> 8) & 0x80; in encode() local
62 ulaws[i] = ~(sign | (exponent << 4) | mantissa); in encode()
103 int sign = (sample >> 8) & 0x80; in encode() local
112 alaws[i] = (sign | (exponent << 4) | mantissa) ^ 0xD5; in encode()

123456