/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() 42 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches(); in testTldPattern() 43 assertFalse("Matched invalid TLD!", t); in testTldPattern() 45 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").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 | 60 static inline bool java2time(JNIEnv* env, Time* t, jobject o) in java2time() argument 62 t->t.tm_sec = env->GetIntField(o, g_secField); in java2time() 63 t->t.tm_min = env->GetIntField(o, g_minField); in java2time() 64 t->t.tm_hour = env->GetIntField(o, g_hourField); in java2time() 65 t->t.tm_mday = env->GetIntField(o, g_mdayField); in java2time() 66 t->t.tm_mon = env->GetIntField(o, g_monField); in java2time() 67 t->t.tm_year = (env->GetIntField(o, g_yearField))-1900; in java2time() 68 t->t.tm_wday = env->GetIntField(o, g_wdayField); in java2time() 69 t->t.tm_yday = env->GetIntField(o, g_ydayField); in java2time() 70 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/base/libs/rs/java/Film/src/com/android/film/ |
D | FilmStripMesh.java | 35 float t; field in FilmStripMesh.Vertex 45 t = 0; in Vertex() 65 t = _t; in st() 211 Vertex t = new Vertex(); in init() local 212 t.nxyz(1, 0, 0); in init() 221 t.x = -vtx[ct*2] / 100.f; in init() 222 t.z = vtx[ct*2+1] / 100.f; in init() 223 t.s = runningS; in init() 224 t.nx = (vtx[ct*2+3] - vtx[ct*2 +1]); in init() 225 t.ny = (vtx[ct*2+2] - vtx[ct*2 ]); in init() [all …]
|
/frameworks/base/services/audioflinger/ |
D | AudioMixer.cpp | 52 track_t* t = mState.tracks; in AudioMixer() local 54 t->needs = 0; in AudioMixer() 55 t->volume[0] = UNITY_GAIN; in AudioMixer() 56 t->volume[1] = UNITY_GAIN; in AudioMixer() 57 t->volumeInc[0] = 0; in AudioMixer() 58 t->volumeInc[1] = 0; in AudioMixer() 59 t->auxLevel = 0; in AudioMixer() 60 t->auxInc = 0; in AudioMixer() 61 t->channelCount = 2; in AudioMixer() 62 t->enabled = 0; in AudioMixer() [all …]
|
/frameworks/base/core/java/android/net/ |
D | WebAddress.java | 79 String t; in WebAddress() local 81 t = m.group(MATCH_GROUP_SCHEME); in WebAddress() 82 if (t != null) mScheme = t.toLowerCase(); in WebAddress() 83 t = m.group(MATCH_GROUP_AUTHORITY); in WebAddress() 84 if (t != null) mAuthInfo = t; in WebAddress() 85 t = m.group(MATCH_GROUP_HOST); in WebAddress() 86 if (t != null) mHost = t; in WebAddress() 87 t = m.group(MATCH_GROUP_PORT); in WebAddress() 88 if (t != null && t.length() > 0) { in WebAddress() 91 mPort = Integer.parseInt(t); in WebAddress() [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/services/surfaceflinger/ |
D | TextureManager.cpp | 184 const Region& dirty, const GGLSurface& t) in loadTexture() argument 213 int unpack = __builtin_ctz(t.stride * bytesPerPixel(t.format)); in loadTexture() 226 texture->potWidth = 1 << (31 - clz(t.width)); in loadTexture() 227 texture->potHeight = 1 << (31 - clz(t.height)); in loadTexture() 228 if (texture->potWidth < t.width) texture->potWidth <<= 1; in loadTexture() 229 if (texture->potHeight < t.height) texture->potHeight <<= 1; in loadTexture() 230 texture->wScale = float(t.width) / texture->potWidth; in loadTexture() 231 texture->hScale = float(t.height) / texture->potHeight; in loadTexture() 233 texture->potWidth = t.width; in loadTexture() 234 texture->potHeight = t.height; in loadTexture() [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()
|
/frameworks/base/libs/rs/ |
D | rsNoise.cpp | 44 static inline float noise_sCurve(float t) in noise_sCurve() argument 46 return t * t * (3.0f - 2.0f * t); in noise_sCurve() 102 float rx0, rx1, sx, t, u, v; in SC_noisef() local 109 t = x + N; in SC_noisef() 110 bx0 = ((int)t) & BM; in SC_noisef() 112 rx0 = t - (int)t; in SC_noisef() 126 float rx0, rx1, ry0, ry1, sx, sy, a, b, t, u, v; in SC_noisef2() local 135 t = x + N; in SC_noisef2() 136 bx0 = ((int)t) & BM; in SC_noisef2() 138 rx0 = t - (int)t; in SC_noisef2() [all …]
|
/frameworks/base/libs/utils/ |
D | Timers.cpp | 43 struct timespec t; in systemTime() local 44 t.tv_sec = t.tv_nsec = 0; in systemTime() 45 clock_gettime(clocks[clock], &t); in systemTime() 46 return nsecs_t(t.tv_sec)*1000000000LL + t.tv_nsec; in systemTime() 49 struct timeval t; in systemTime() 50 t.tv_sec = t.tv_usec = 0; in systemTime() 51 gettimeofday(&t, NULL); in systemTime() 52 return nsecs_t(t.tv_sec)*1000000000LL + nsecs_t(t.tv_usec)*1000LL; in systemTime()
|
/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 …]
|
/frameworks/base/telephony/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/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/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/base/graphics/java/android/renderscript/ |
D | SimpleMesh.java | 69 Type t; field in SimpleMesh.Builder.Entry 88 public int addVertexType(Type t) throws IllegalStateException { in addVertexType() argument 95 mVertexTypes[mVertexTypeCount].t = t; in addVertexType() 113 public void setIndexType(Type t) { in setIndexType() argument 114 mIndexType.t = t; in setIndexType() 120 mIndexType.t = null; in setIndexType() 141 if (b.mIndexType.t != null) { in internalCreate() 142 indexID = b.mIndexType.t.mID; in internalCreate() 144 b.mIndexType.t = b.newType(b.mIndexType.e, b.mIndexType.size); in internalCreate() 145 indexID = b.mIndexType.t.mID; in internalCreate() [all …]
|
D | Type.java | 115 Type t = b.create(); in createFromClass() local 143 rs.nTypeSetupFields(t, arTypes, arBits, fields); in createFromClass() 145 t.mJavaClass = c; in createFromClass() 146 return t; in createFromClass() 150 Type t = createFromClass(rs, c, size); in createFromClass() local 151 t.setName(scriptName); in createFromClass() 152 return t; in createFromClass() 203 Type t = internalCreate(mRS, this); in create() local 204 t.mElement = mElement; in create() 208 t.mDimX = mEntries[ct].mValue; in create() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | Objects.java | 30 public static <T> T nonNull(T t) { in nonNull() argument 31 if (t == null) { in nonNull() 34 return t; in nonNull() 43 public static <T> T nonNull(T t, String message) { in nonNull() argument 44 if (t == null) { in nonNull() 47 return t; in nonNull()
|
/frameworks/base/media/libmedia/ |
D | Visualizer.cpp | 57 sp<CaptureThread> t = mCaptureThread; in setEnabled() local 58 if (t != 0) { in setEnabled() 60 if (t->exitPending()) { in setEnabled() 61 if (t->requestExitAndWait() == WOULD_BLOCK) { in setEnabled() 67 t->mLock.lock(); in setEnabled() 73 if (t != 0) { in setEnabled() 75 t->run("AudioTrackThread"); in setEnabled() 77 t->requestExit(); in setEnabled() 82 if (t != 0) { in setEnabled() 83 t->mLock.unlock(); in setEnabled() [all …]
|
/frameworks/base/test-runner/src/android/test/ |
D | BundlePrinter.java | 47 public void addError(Test test, Throwable t) { in addError() argument 48 mResults.putString(getComboName(test), BaseTestRunner.getFilteredTrace(t)); in addError() 50 super.addError(test, t); in addError() 54 public void addFailure(Test test, AssertionFailedError t) { in addFailure() argument 55 mResults.putString(getComboName(test), BaseTestRunner.getFilteredTrace(t)); in addFailure() 57 super.addFailure(test, t); in addFailure()
|