Home | History | Annotate | Download | only in globaltime

Lines Matching defs:doffset

126         long doffset = (long) (mCity.getOffset() *
129 if (doffset < 0) {
130 doffset = -doffset;
136 while (doffset > 12L * MILLISECONDS_PER_HOUR) {
137 doffset -= 12L * MILLISECONDS_PER_HOUR;
139 if (doffset > 6L * MILLISECONDS_PER_HOUR) {
140 doffset = 12L * MILLISECONDS_PER_HOUR - doffset;
144 // Interpolate doffset towards 0
145 doffset = (long)((1.0f - lerp)*doffset);
148 long dh = doffset / (MILLISECONDS_PER_HOUR);
149 doffset -= dh * MILLISECONDS_PER_HOUR;
150 long dm = doffset / MILLISECONDS_PER_MINUTE;
151 doffset = sign * (60 * dh + dm) * MILLISECONDS_PER_MINUTE;
153 return doffset;
213 long doffset = lerp < 1.0f ? getOffset(lerp) : 0L;
217 cal.setTimeInMillis(mTime - doffset);