Home
last modified time | relevance | path

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

/packages/apps/Calendar/src/com/android/calendar/
DDuration.java35 public int sign; // 1 or -1 field in Duration
44 sign = 1; in Duration()
53 sign = 1; in parse()
70 sign = -1; in parse()
131 cal.add(Calendar.DAY_OF_MONTH, sign*weeks*7); in addTo()
132 cal.add(Calendar.DAY_OF_MONTH, sign*days); in addTo()
133 cal.add(Calendar.HOUR, sign*hours); in addTo()
134 cal.add(Calendar.MINUTE, sign*minutes); in addTo()
135 cal.add(Calendar.SECOND, sign*seconds); in addTo()
143 long factor = 1000 * sign; in getMillis()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DDuration.java33 public int sign; // 1 or -1 field in Duration
42 sign = 1; in Duration()
51 sign = 1; in parse()
68 sign = -1; in parse()
129 cal.add(Calendar.DAY_OF_MONTH, sign*weeks*7); in addTo()
130 cal.add(Calendar.DAY_OF_MONTH, sign*days); in addTo()
131 cal.add(Calendar.HOUR, sign*hours); in addTo()
132 cal.add(Calendar.MINUTE, sign*minutes); in addTo()
133 cal.add(Calendar.SECOND, sign*seconds); in addTo()
141 long factor = 1000 * sign; in getMillis()
DCalendarInstancesHelper.java233 duration.sign = 1; in performInstanceExpansion()
304 duration.sign = 1; in performInstanceExpansion()
314 duration.sign = 1; in performInstanceExpansion()
/packages/apps/Exchange/src/com/android/exchange/utility/
DDuration.java26 public int sign; // 1 or -1 field in Duration
34 sign = 1; in Duration()
42 sign = 1; in parse()
59 sign = -1; in parse()
111 cal.add(Calendar.DAY_OF_MONTH, sign*weeks*7); in addTo()
112 cal.add(Calendar.DAY_OF_MONTH, sign*days); in addTo()
113 cal.add(Calendar.HOUR, sign*hours); in addTo()
114 cal.add(Calendar.MINUTE, sign*minutes); in addTo()
115 cal.add(Calendar.SECOND, sign*seconds); in addTo()
123 long factor = 1000 * sign; in getMillis()
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
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()
/packages/apps/Mms/src/com/android/mms/dom/smil/
DTimeImpl.java85 int sign = 1; in TimeImpl() local
90 sign = -1; in TimeImpl()
92 mResolvedOffset = sign*parseClockValue(timeValue)/1000.0; in TimeImpl()
/packages/providers/CalendarProvider/
Dmaketests.py59 sign = -1
61 sign = 1
62 hour = int(m.group(4)) + (sign * int(m.group(8)))
/packages/inputmethods/PinyinIME/jni/share/
Dutf16char.cpp67 int sign = 1; in utf16_atoi() local
71 sign = -1; in utf16_atoi()
81 return value*sign; in utf16_atoi()
/packages/inputmethods/LatinIME/tools/makedict/src/com/android/inputmethod/latin/
DBinaryDictInputOutput.java825 final int sign = 0 == (bigramFlags & FLAG_ATTRIBUTE_OFFSET_NEGATIVE) ? 1 : -1; in readCharGroup() local
829 bigramAddress += sign * source.readUnsignedByte(); in readCharGroup()
833 bigramAddress += sign * source.readUnsignedShort(); in readCharGroup()
839 bigramAddress += sign * offset; in readCharGroup()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/
DRecognitionView.java332 int sign = ( (i & 01) == 0) ? -1 : 1; in showWave() local
333 final float y = Math.min(yMax, avabs * h * scale) * sign; in showWave()