/frameworks/base/core/tests/coretests/src/android/util/ |
D | PatternsTest.java | 29 boolean t; in testTldPattern() 31 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches(); in testTldPattern() 32 assertTrue("Missed valid TLD", t); in testTldPattern() 35 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches(); in testTldPattern() 36 assertTrue("Missed valid TLD", t); in testTldPattern() 39 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches(); in testTldPattern() 40 assertTrue("Missed valid TLD", t); in testTldPattern() 43 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches(); in testTldPattern() 44 assertTrue("Missed valid TLD", t); in testTldPattern() 46 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches(); in testTldPattern() [all …]
|
/frameworks/base/core/jni/ |
D | Time.cpp | 8 dump(const Time& t) in dump() argument 11 long tm_gmtoff = t.t.tm_gmtoff; in dump() 16 t.t.tm_year+1900, t.t.tm_mon+1, t.t.tm_mday, in dump() 17 t.t.tm_hour, t.t.tm_min, t.t.tm_sec, in dump() 18 t.t.tm_isdst, tm_gmtoff, t.t.tm_wday, t.t.tm_yday); in dump() 23 t.tm_sec = 0; in Time() 24 t.tm_min = 0; in Time() 25 t.tm_hour = 0; in Time() 26 t.tm_mday = 0; in Time() 27 t.tm_mon = 0; in Time() [all …]
|
D | android_text_format_Time.cpp | 61 static inline bool java2time(JNIEnv* env, Time* t, jobject o) in java2time() argument 63 t->t.tm_sec = env->GetIntField(o, g_secField); in java2time() 64 t->t.tm_min = env->GetIntField(o, g_minField); in java2time() 65 t->t.tm_hour = env->GetIntField(o, g_hourField); in java2time() 66 t->t.tm_mday = env->GetIntField(o, g_mdayField); in java2time() 67 t->t.tm_mon = env->GetIntField(o, g_monField); in java2time() 68 t->t.tm_year = (env->GetIntField(o, g_yearField))-1900; in java2time() 69 t->t.tm_wday = env->GetIntField(o, g_wdayField); in java2time() 70 t->t.tm_yday = env->GetIntField(o, g_ydayField); in java2time() 71 t->t.tm_isdst = env->GetIntField(o, g_isdstField); in java2time() [all …]
|
D | TimeUtils.h | 41 struct tm t; variable 72 this->t.tm_sec = sec; in set() 73 this->t.tm_min = min; in set() 74 this->t.tm_hour = hour; in set() 75 this->t.tm_mday = mday; in set() 76 this->t.tm_mon = mon; in set() 77 this->t.tm_year = year; in set() 78 this->t.tm_isdst = isdst; in set() 80 this->t.tm_gmtoff = 0; in set() 82 this->t.tm_wday = 0; in set() [all …]
|
/frameworks/base/tests/backup/ |
D | backup_helper_test.cpp | 51 Test* t; in main() local 54 t = TESTS; in main() 55 while (t->name) { in main() 56 t->run = true; in main() 57 t++; in main() 60 t = TESTS; in main() 61 while (t->name) { in main() 63 if (0 == strcmp(t->name, argv[i])) { in main() 64 t->run = true; in main() 67 t++; in main() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeTest.java | 31 Time t = new Time(Time.TIMEZONE_UTC); in testNormalize0() local 32 t.parse("20060432T010203"); in testNormalize0() 33 t.normalize(false /* use isDst */); in testNormalize0() 271 Time t = new Time(Time.TIMEZONE_UTC); in testSwitchTimezone0() local 272 t.parse("20061005T120000"); in testSwitchTimezone0() 273 t.switchTimezone("America/Los_Angeles"); in testSwitchTimezone0() 279 Time t = new Time(Time.TIMEZONE_UTC); in testCtor0() local 280 assertEquals(Time.TIMEZONE_UTC, t.timezone); in testCtor0() 285 Time t = new Time(Time.TIMEZONE_UTC); in testGetActualMaximum0() local 286 int r = t.getActualMaximum(Time.SECOND); in testGetActualMaximum0() [all …]
|
/frameworks/av/services/audioflinger/ |
D | AudioMixer.cpp | 122 track_t* t = mState.tracks; in AudioMixer() local 125 t->localTimeFreq = lc.getLocalFreq(); in AudioMixer() 126 t->resampler = NULL; in AudioMixer() 127 t->downmixerBufferProvider = NULL; in AudioMixer() 128 t++; in AudioMixer() 156 track_t* t = mState.tracks; in ~AudioMixer() local 158 delete t->resampler; in ~AudioMixer() 159 delete t->downmixerBufferProvider; in ~AudioMixer() 160 t++; in ~AudioMixer() 174 track_t* t = &mState.tracks[n]; in getTrackName() local [all …]
|
/frameworks/base/voip/java/com/android/server/sip/ |
D | SipSessionListenerProxy.java | 52 } catch (Throwable t) { in onCalling() 53 handle(t, "onCalling()"); in onCalling() 66 } catch (Throwable t) { in onRinging() 67 handle(t, "onRinging()"); in onRinging() 79 } catch (Throwable t) { in onRingingBack() 80 handle(t, "onRingingBack()"); in onRingingBack() 93 } catch (Throwable t) { in onCallEstablished() 94 handle(t, "onCallEstablished()"); in onCallEstablished() 106 } catch (Throwable t) { in onCallEnded() 107 handle(t, "onCallEnded()"); in onCallEnded() [all …]
|
/frameworks/base/tests/TileBenchmark/src/com/test/tilebenchmark/ |
D | PlaybackView.java | 54 public TileDrawable(TileData t, int colorId) { in TileDrawable() argument 55 this.tile = t; in TileDrawable() 60 label = (int) (t.left / TILE_SCALE) + ", " in TileDrawable() 61 + (int) (t.top / TILE_SCALE); in TileDrawable() 63 setBounds(t.left, t.top, in TileDrawable() 64 t.right, t.bottom); in TileDrawable() 66 setBounds((int) (t.left * t.scale), in TileDrawable() 67 (int) (t.top * t.scale), in TileDrawable() 68 (int) (t.right * t.scale), in TileDrawable() 69 (int) (t.bottom * t.scale)); in TileDrawable() [all …]
|
/frameworks/base/core/java/android/net/ |
D | WebAddress.java | 77 String t; in WebAddress() local 79 t = m.group(MATCH_GROUP_SCHEME); in WebAddress() 80 if (t != null) mScheme = t.toLowerCase(); in WebAddress() 81 t = m.group(MATCH_GROUP_AUTHORITY); in WebAddress() 82 if (t != null) mAuthInfo = t; in WebAddress() 83 t = m.group(MATCH_GROUP_HOST); in WebAddress() 84 if (t != null) mHost = t; in WebAddress() 85 t = m.group(MATCH_GROUP_PORT); in WebAddress() 86 if (t != null && t.length() > 0) { in WebAddress() 89 mPort = Integer.parseInt(t); in WebAddress() [all …]
|
/frameworks/compile/libbcc/runtime/lib/ |
D | clzsi2.c | 25 si_int t = ((x & 0xFFFF0000) == 0) << 4; /* if (x is small) t = 16 else 0 */ in __clzsi2() local 26 x >>= 16 - t; /* x = [0 - 0xFFFF] */ in __clzsi2() 27 su_int r = t; /* r = [0, 16] */ in __clzsi2() 29 t = ((x & 0xFF00) == 0) << 3; in __clzsi2() 30 x >>= 8 - t; /* x = [0 - 0xFF] */ in __clzsi2() 31 r += t; /* r = [0, 8, 16, 24] */ in __clzsi2() 33 t = ((x & 0xF0) == 0) << 2; in __clzsi2() 34 x >>= 4 - t; /* x = [0 - 0xF] */ in __clzsi2() 35 r += t; /* r = [0, 4, 8, 12, 16, 20, 24, 28] */ in __clzsi2() 37 t = ((x & 0xC) == 0) << 1; in __clzsi2() [all …]
|
D | ctzsi2.c | 25 si_int t = ((x & 0x0000FFFF) == 0) << 4; /* if (x has no small bits) t = 16 else 0 */ in __ctzsi2() local 26 x >>= t; /* x = [0 - 0xFFFF] + higher garbage bits */ in __ctzsi2() 27 su_int r = t; /* r = [0, 16] */ in __ctzsi2() 29 t = ((x & 0x00FF) == 0) << 3; in __ctzsi2() 30 x >>= t; /* x = [0 - 0xFF] + higher garbage bits */ in __ctzsi2() 31 r += t; /* r = [0, 8, 16, 24] */ in __ctzsi2() 33 t = ((x & 0x0F) == 0) << 2; in __ctzsi2() 34 x >>= t; /* x = [0 - 0xF] + higher garbage bits */ in __ctzsi2() 35 r += t; /* r = [0, 4, 8, 12, 16, 20, 24, 28] */ in __ctzsi2() 37 t = ((x & 0x3) == 0) << 1; in __ctzsi2() [all …]
|
/frameworks/base/core/java/android/view/animation/ |
D | BounceInterpolator.java | 34 private static float bounce(float t) { in bounce() argument 35 return t * t * 8.0f; in bounce() 38 public float getInterpolation(float t) { in getInterpolation() argument 45 t *= 1.1226f; in getInterpolation() 46 if (t < 0.3535f) return bounce(t); in getInterpolation() 47 else if (t < 0.7408f) return bounce(t - 0.54719f) + 0.7f; in getInterpolation() 48 else if (t < 0.9644f) return bounce(t - 0.8526f) + 0.9f; in getInterpolation() 49 else return bounce(t - 1.0435f) + 0.95f; in getInterpolation()
|
D | AnticipateOvershootInterpolator.java | 67 private static float a(float t, float s) { in a() argument 68 return t * t * ((s + 1) * t - s); in a() 71 private static float o(float t, float s) { in o() argument 72 return t * t * ((s + 1) * t + s); in o() 75 public float getInterpolation(float t) { in getInterpolation() argument 80 if (t < 0.5f) return 0.5f * a(t * 2.0f, mTension); in getInterpolation() 81 else return 0.5f * (o(t * 2.0f - 2.0f, mTension) + 2.0f); in getInterpolation()
|
D | Transformation.java | 98 public void set(Transformation t) { in set() argument 99 mAlpha = t.getAlpha(); in set() 100 mMatrix.set(t.getMatrix()); in set() 101 mTransformationType = t.getTransformationType(); in set() 109 public void compose(Transformation t) { in compose() argument 110 mAlpha *= t.getAlpha(); in compose() 111 mMatrix.preConcat(t.getMatrix()); in compose() 119 public void postCompose(Transformation t) { in postCompose() argument 120 mAlpha *= t.getAlpha(); in postCompose() 121 mMatrix.postConcat(t.getMatrix()); in postCompose()
|
/frameworks/base/core/java/android/widget/ |
D | DateTimeView.java | 95 Time t = new Time(); in setTime() local 96 t.set(time); in setTime() 97 t.second = 0; in setTime() 98 mTimeMillis = t.toMillis(false); in setTime() 99 mTime = new Date(t.year-1900, t.month, t.monthDay, t.hour, t.minute, 0); in setTime() 113 Time t = new Time(); in update() local 114 t.set(mTimeMillis); in update() 115 t.second = 0; in update() 117 t.hour -= 12; in update() 118 long twelveHoursBefore = t.toMillis(false); in update() [all …]
|
D | RemoteViewsService.java | 144 Thread t = Thread.currentThread(); in onDataSetChanged() 145 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in onDataSetChanged() 156 Thread t = Thread.currentThread(); in getCount() 157 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getCount() 169 Thread t = Thread.currentThread(); in getViewAt() 170 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getViewAt() 179 Thread t = Thread.currentThread(); in getLoadingView() 180 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getLoadingView() 189 Thread t = Thread.currentThread(); in getViewTypeCount() 190 Thread.getDefaultUncaughtExceptionHandler().uncaughtException(t, ex); in getViewTypeCount() [all …]
|
/frameworks/native/libs/utils/ |
D | Timers.cpp | 45 struct timespec t; in systemTime() local 46 t.tv_sec = t.tv_nsec = 0; in systemTime() 47 clock_gettime(clocks[clock], &t); in systemTime() 48 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime() 51 struct timeval t; in systemTime() 52 t.tv_sec = t.tv_usec = 0; in systemTime() 53 gettimeofday(&t, NULL); in systemTime() 54 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | Call.java | 134 long t; in getEarliestConnection() local 136 t = c.getCreateTime(); in getEarliestConnection() 138 if (t < time) { in getEarliestConnection() 140 time = t; in getEarliestConnection() 160 long t; in getEarliestCreateTime() local 162 t = c.getCreateTime(); in getEarliestCreateTime() 164 time = t < time ? t : time; in getEarliestCreateTime() 181 long t; 183 t = c.getConnectTime(); 185 time = t < time ? t : time; [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | VelocityTest.java | 50 long t = System.currentTimeMillis(); in testClear() local 52 drag(vt, 100, 200, 100, 200, 10, t, 300); in testClear() 65 long t = System.currentTimeMillis(); in testDragAcceleration() local 67 drag(vt, 100, 200, 100, 200, 15, t, 400, new AccelerateInterpolator()); in testDragAcceleration() 76 long t = System.currentTimeMillis(); in testDragDeceleration() local 78 drag(vt, 100, 200, 100, 200, 15, t, 400, new DecelerateInterpolator()); in testDragDeceleration() 87 long t = System.currentTimeMillis(); in testDragLinearHorizontal() local 90 drag(vt, 100, 200, 200, 200, 15, t, 400); in testDragLinearHorizontal() 99 long t = System.currentTimeMillis(); in testDragLinearVertical() local 102 drag(vt, 200, 200, 100, 200, 15, t, 400); in testDragLinearVertical() [all …]
|
/frameworks/native/opengl/tests/finish/ |
D | finish.cpp | 77 long long now, t; in main() local 92 t = systemTime(); in main() 93 printf("memcpy() time = %llu us\n", (t-now)/1000); in main() 110 t = systemTime(); in main() 111 printf("glFinish() time = %llu us\n", (t-now)/1000); in main() 124 t = systemTime(); in main() 125 printf("glFinish() time = %llu us\n", (t-now)/1000); in main() 139 t = systemTime(); in main() 140 printf("glFinish() time = %llu us\n", (t-now)/1000); in main() 154 t = systemTime(); in main() [all …]
|
/frameworks/native/libs/utils/tests/ |
D | ZipFileRO_test.cpp | 38 struct tm t; in TEST_F() local 43 ZipFileRO::zipTimeToTimespec(when, &t); in TEST_F() 45 EXPECT_EQ(2011, t.tm_year + 1900) in TEST_F() 48 EXPECT_EQ(6, t.tm_mon) in TEST_F() 51 EXPECT_EQ(29, t.tm_mday) in TEST_F() 54 EXPECT_EQ(14, t.tm_hour) in TEST_F() 57 EXPECT_EQ(40, t.tm_min) in TEST_F() 60 EXPECT_EQ(40, t.tm_sec) in TEST_F()
|
/frameworks/base/tests/RenderScriptTests/ComputePerf/src/com/example/android/rs/computeperf/ |
D | mandelbrot.rs | 27 float2 t = 0; 28 float2 t2 = t * t; 32 t.y = 2 * t.x * t.y + p.y; 33 t.x = xtemp; 35 t2 = t * t;
|
/frameworks/base/core/java/android/util/ |
D | Spline.java | 93 float t = 3f / h; in createMonotoneCubicSpline() local 94 m[i] = t * a * d[i]; in createMonotoneCubicSpline() 95 m[i + 1] = t * b * d[i]; in createMonotoneCubicSpline() 134 float t = (x - mX[i]) / h; in interpolate() local 135 return (mY[i] * (1 + 2 * t) + h * mM[i] * t) * (1 - t) * (1 - t) in interpolate() 136 + (mY[i + 1] * (3 - 2 * t) + h * mM[i + 1] * (t - 1)) * t * t; in interpolate()
|
/frameworks/base/tests/RenderScriptTests/ImageProcessing2/src/com/android/rs/image/ |
D | mandelbrot.rs | 31 float2 t = 0; 32 float2 t2 = t * t; 36 t.y = 2 * t.x * t.y + p.y; 37 t.x = xtemp; 39 t2 = t * t;
|