Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 889) sorted by relevance

12345678910>>...36

/frameworks/base/core/tests/coretests/src/android/util/
DPatternsTest.java29 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/
DTime.cpp8 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 …]
Dandroid_text_format_Time.cpp61 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 …]
DTimeUtils.h41 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/
Dbackup_helper_test.cpp51 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/
DTimeTest.java31 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/
DAudioMixer.cpp132 track_t* t = mState.tracks; in AudioMixer() local
134 t->resampler = NULL; in AudioMixer()
135 t->downmixerBufferProvider = NULL; in AudioMixer()
136 t++; in AudioMixer()
164 track_t* t = mState.tracks; in ~AudioMixer() local
166 delete t->resampler; in ~AudioMixer()
167 delete t->downmixerBufferProvider; in ~AudioMixer()
168 t++; in ~AudioMixer()
187 track_t* t = &mState.tracks[n]; in getTrackName() local
188 t->needs = 0; in getTrackName()
[all …]
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipSessionListenerProxy.java54 } catch (Throwable t) { in onCalling()
55 handle(t, "onCalling()"); in onCalling()
70 } catch (Throwable t) { in onRinging()
71 handle(t, "onRinging()"); in onRinging()
85 } catch (Throwable t) { in onRingingBack()
86 handle(t, "onRingingBack()"); in onRingingBack()
101 } catch (Throwable t) { in onCallEstablished()
102 handle(t, "onCallEstablished()"); in onCallEstablished()
116 } catch (Throwable t) { in onCallEnded()
117 handle(t, "onCallEnded()"); in onCallEnded()
[all …]
/frameworks/base/core/java/android/view/animation/
DBounceInterpolator.java34 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()
DAnticipateOvershootInterpolator.java67 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()
DTransformation.java98 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/net/
DWebAddress.java78 String t; in WebAddress() local
80 t = m.group(MATCH_GROUP_SCHEME); in WebAddress()
81 if (t != null) mScheme = t.toLowerCase(Locale.ROOT); in WebAddress()
82 t = m.group(MATCH_GROUP_AUTHORITY); in WebAddress()
83 if (t != null) mAuthInfo = t; in WebAddress()
84 t = m.group(MATCH_GROUP_HOST); in WebAddress()
85 if (t != null) mHost = t; in WebAddress()
86 t = m.group(MATCH_GROUP_PORT); in WebAddress()
87 if (t != null && t.length() > 0) { in WebAddress()
90 mPort = Integer.parseInt(t); in WebAddress()
[all …]
/frameworks/base/core/java/android/widget/
DDateTimeView.java95 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 …]
DRemoteViewsService.java144 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/rs/cpp/
DType.cpp104 Type *t = new Type(id, rs); in create() local
106 t->mElement = e; in create()
107 t->mDimX = dimX; in create()
108 t->mDimY = dimY; in create()
109 t->mDimZ = dimZ; in create()
110 t->mDimMipmaps = false; in create()
111 t->mDimFaces = false; in create()
113 t->calcElementCount(); in create()
115 return t; in create()
205 Type *t = new Type(id, mRS); in create() local
[all …]
/frameworks/base/libs/androidfw/tests/
DZipFileRO_test.cpp38 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/opt/telephony/src/java/com/android/internal/telephony/
DCall.java136 long t; in getEarliestConnection() local
138 t = c.getCreateTime(); in getEarliestConnection()
140 if (t < time) { in getEarliestConnection()
142 time = t; in getEarliestConnection()
162 long t; in getEarliestCreateTime() local
164 t = c.getCreateTime(); in getEarliestCreateTime()
166 time = t < time ? t : time; in getEarliestCreateTime()
183 long t;
185 t = c.getConnectTime();
187 time = t < time ? t : time;
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java50 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/
Dfinish.cpp77 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/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/
Dmandelbrot.rs27 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/rs/java/tests/ImageProcessing/src/com/android/rs/image/
Dmandelbrot.rs30 float2 t = 0;
31 float2 t2 = t * t;
35 t.y = 2 * t.x * t.y + p.y;
36 t.x = xtemp;
38 t2 = t * t;
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
Dmandelbrot.rs30 float2 t = 0;
31 float2 t2 = t * t;
35 t.y = 2 * t.x * t.y + p.y;
36 t.x = xtemp;
38 t2 = t * t;
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
Dmandelbrot.rs30 float2 t = 0;
31 float2 t2 = t * t;
35 t.y = 2 * t.x * t.y + p.y;
36 t.x = xtemp;
38 t2 = t * t;
/frameworks/base/core/java/android/util/
DSpline.java93 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/rs/tests/cppbasic/
Dcompute.cpp24 sp<const Type> t = tb.create(); in main() local
25 printf("Type %p\n", t.get()); in main()
31 sp<Allocation> ain = Allocation::createTyped(rs, t); in main()
32 sp<Allocation> aout = Allocation::createTyped(rs, t); in main()
48 uint32_t *buf = new uint32_t[t->getCount()]; in main()
49 for (uint32_t ct=0; ct < t->getCount(); ct++) { in main()
52 ain->copy1DRangeFrom(0, t->getCount(), buf); in main()
73 sp<const Type> t = tb.create(); in main() local
74 sp<Allocation> kern1_in = Allocation::createTyped(rs, t); in main()
75 sp<Allocation> kern1_out = Allocation::createTyped(rs, t); in main()
[all …]

12345678910>>...36