/frameworks/base/core/tests/coretests/src/android/text/util/ |
H A D | LinkifyTest.java | 31 TextView tv; 33 tv = new TextView(getContext()); 34 tv.setText("Hey, foo@google.com, call 415-555-1212."); 36 assertFalse(tv.getMovementMethod() instanceof LinkMovementMethod); 37 assertTrue(tv.getUrls().length == 0); 42 TextView tv; 44 tv = new TextView(getContext()); 45 tv.setAutoLinkMask(Linkify.ALL); 46 tv.setText("Hey, foo@google.com, call 415-555-1212."); 48 assertTrue(tv [all...] |
/frameworks/base/core/jni/ |
H A D | android_os_SystemClock.cpp | 75 struct timeval tv; 77 gettimeofday(&tv, NULL); 78 return tv.tv_sec * 1000LL + tv.tv_usec / 1000; 95 struct timeval tv; 97 gettimeofday(&tv, NULL); 98 return tv.tv_sec * 1000000LL + tv.tv_nsec / 1000; 108 struct timeval tv; local 110 gettimeofday(&tv, NUL [all...] |
/frameworks/base/tests/SmokeTestApps/src/com/android/smoketest/triggers/ |
H A D | CrashyApp2.java | 28 TextView tv = new TextView(this); 29 tv.setText("Hello, Other Crashy Android"); 30 setContentView(tv);
|
H A D | CrashyApp.java | 28 TextView tv = new TextView(this); 29 tv.setText("Hello, Crashy Android"); 30 setContentView(tv);
|
H A D | UnresponsiveApp.java | 28 TextView tv = new TextView(this); 29 tv.setText("Hello, Unresponsive Android"); 30 setContentView(tv);
|
/frameworks/av/libvideoeditor/osal/src/ |
H A D | M4OSA_Clock.c | 58 struct timeval tv; local 76 if(gettimeofday(&tv, &tz) == 0) 78 u32_time_lo = (tv.tv_sec & 0xFFFF) * timescale; 79 u32_time_hi = (((tv.tv_sec >> 16) & 0xFFFF) * timescale) + ((u32_time_lo >> 16) & 0xFFFF); 81 u32_time_lo += tv.tv_usec / factor;
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | TextViewTest.java | 30 TextView tv = new TextView(mContext); 35 tv.setText(c, 1, 4); 36 CharSequence oldText = tv.getText(); 38 tv.setText(c, 4, 5); 39 CharSequence newText = tv.getText();
|
/frameworks/base/core/java/android/view/animation/ |
H A D | ScaleAnimation.java | 70 TypedValue tv = a.peekValue( 73 if (tv != null) { 74 if (tv.type == TypedValue.TYPE_FLOAT) { 76 mFromX = tv.getFloat(); 78 mFromXType = tv.type; 79 mFromXData = tv.data; 82 tv = a.peekValue( 85 if (tv != null) { 86 if (tv.type == TypedValue.TYPE_FLOAT) { 88 mToX = tv [all...] |
/frameworks/native/libs/utils/ |
H A D | SystemClock.cpp | 52 struct timeval tv; 64 tv.tv_sec = (time_t) (millis / 1000LL); 65 tv.tv_usec = (suseconds_t) ((millis % 1000LL) * 1000LL); 67 ALOGD("Setting time of day to sec=%d\n", (int) tv.tv_sec); 75 ts.tv_sec = tv.tv_sec; 76 ts.tv_nsec = tv.tv_usec * 1000; 79 ALOGW("Unable to set rtc to %ld: %s\n", tv.tv_sec, strerror(errno)); 84 if (settimeofday(&tv, NULL) != 0) { 86 (int) tv.tv_sec, (int) tv [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
H A D | PlatLogoActivity.java | 65 TextView tv = new TextView(this); 66 if (light != null) tv.setTypeface(light); 67 tv.setTextSize(1.25f*size); 68 tv.setTextColor(0xFFFFFFFF); 69 tv.setShadowLayer(4*metrics.density, 0, 2*metrics.density, 0x66000000); 70 tv.setText("Android " + Build.VERSION.RELEASE); 71 view.addView(tv, lp); 73 tv = new TextView(this); 74 if (normal != null) tv.setTypeface(normal); 75 tv [all...] |
/frameworks/base/media/mca/filterfw/native/core/ |
H A D | time_util.cpp | 31 struct timeval tv; local 33 gettimeofday(&tv, 0); 35 basesec = tv.tv_sec; 37 nowtime = (uint64_t)(tv.tv_sec - basesec) * (uint64_t)1000000 + 38 (uint64_t)tv.tv_usec;
|
/frameworks/base/media/mca/filterpacks/native/base/ |
H A D | time_util.cpp | 29 struct timeval tv; local 31 gettimeofday(&tv, 0); 33 basesec = tv.tv_sec; 35 nowtime = (uint64_t)(tv.tv_sec - basesec) * (uint64_t)1000000 + 36 (uint64_t)tv.tv_usec;
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
H A D | EffectsTest.java | 181 TextView tv = new TextView(mContext); 182 tv.setText("Effect "+ position); 183 addView(tv, new LinearLayout.LayoutParams( 185 tv = new TextView(mContext); 186 tv.setText(" type: "+ effectUuidToString(mDescriptors[position].type)); 187 addView(tv, new LinearLayout.LayoutParams( 189 tv = new TextView(mContext); 190 tv.setText(" uuid: "+ mDescriptors[position].uuid.toString()); 191 addView(tv, new LinearLayout.LayoutParams( 193 tv [all...] |
/frameworks/wilhelm/tests/sandbox/ |
H A D | getch.c | 37 struct timeval tv = { 0L, 0L }; local 41 return select(1, &fds, NULL, NULL, &tv);
|
/frameworks/base/tests/GridLayoutTest/src/com/android/test/layout/ |
H A D | LayoutInsetsTest.java | 33 TextView tv = new TextView(context); 34 tv.setTextSize(32); 35 tv.setText("A"); 36 c = tv;
|
/frameworks/base/media/tests/omxjpegdecoder/ |
H A D | jpeg_decoder_bench.cpp | 46 struct timeval tv; local 47 gettimeofday(&tv, NULL); 49 return tv.tv_usec + (int64_t) tv.tv_sec * 1000000;
|
/frameworks/base/core/jni/android/opengl/ |
H A D | poly_clip.cpp | 66 float t, tu, tv; local 73 for (v= &p->vert[0], i=p->n; i>0; i--, u=v, tu=tv, v++) { 75 /* tv is negative if vertex v is in */ 76 tv = sign*COORD(v, index) - v->sw*k; 77 if ((tu <= 0.0f) ^ (tv <= 0.0f)) { 79 t = tu/(tu-tv); 88 if (tv<=0.0f) /* vertex v is in, copy it to q */
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | RotateDrawable.java | 211 TypedValue tv = a.peekValue(com.android.internal.R.styleable.RotateDrawable_pivotX); 214 if (tv == null) { 218 pivotXRel = tv.type == TypedValue.TYPE_FRACTION; 219 pivotX = pivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); 222 tv = a.peekValue(com.android.internal.R.styleable.RotateDrawable_pivotY); 225 if (tv == null) { 229 pivotYRel = tv.type == TypedValue.TYPE_FRACTION; 230 pivotY = pivotYRel ? tv.getFraction(1.0f, 1.0f) : tv [all...] |
H A D | AnimatedRotateDrawable.java | 228 TypedValue tv = a.peekValue(R.styleable.AnimatedRotateDrawable_pivotX); 229 final boolean pivotXRel = tv.type == TypedValue.TYPE_FRACTION; 230 final float pivotX = pivotXRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat(); 232 tv = a.peekValue(R.styleable.AnimatedRotateDrawable_pivotY); 233 final boolean pivotYRel = tv.type == TypedValue.TYPE_FRACTION; 234 final float pivotY = pivotYRel ? tv.getFraction(1.0f, 1.0f) : tv.getFloat();
|
/frameworks/base/services/java/com/android/server/wm/ |
H A D | DimAnimator.java | 117 TypedValue tv = new TypedValue(); 119 tv, true); 120 if (tv.type == TypedValue.TYPE_FRACTION) { 121 duration = (long)tv.getFraction(duration, duration); 122 } else if (tv.type >= TypedValue.TYPE_FIRST_INT 123 && tv.type <= TypedValue.TYPE_LAST_INT) { 124 duration = tv.data;
|
/frameworks/base/core/tests/coretests/src/android/widget/focus/ |
H A D | ListWithFooterViewAndNewLabels.java | 99 TextView tv = (TextView) inflater.inflate( 102 tv.setText(label); 103 return tv;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | QuickSettings.java | 318 TextView tv = (TextView) view.findViewById(R.id.user_textview); 319 tv.setText(state.label); 342 TextView tv = (TextView) view.findViewById(R.id.brightness_textview); 343 tv.setCompoundDrawablesWithIntrinsicBounds(0, state.iconId, 0, 0); 344 tv.setText(state.label); 384 TextView tv = (TextView) view.findViewById(R.id.settings_tileview); 385 tv.setText(state.label); 407 TextView tv = (TextView) view.findViewById(R.id.wifi_textview); 408 tv.setCompoundDrawablesWithIntrinsicBounds(0, wifiState.iconId, 0, 0); 409 tv [all...] |
/frameworks/base/core/java/android/preference/ |
H A D | PreferenceActivity.java | 790 TypedValue tv = sa.peekValue( 792 if (tv != null && tv.type == TypedValue.TYPE_STRING) { 793 if (tv.resourceId != 0) { 794 header.titleRes = tv.resourceId; 796 header.title = tv.string; 799 tv = sa.peekValue( 801 if (tv != null && tv.type == TypedValue.TYPE_STRING) { 802 if (tv [all...] |
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/ |
H A D | BaseAdapter.java | 158 TextView tv = new TextView(context); 159 tv.setText("Unable to find layout: " + dataBindingItem.getViewReference().getName()); 160 view = tv; 186 TextView tv = (TextView) view; 192 resolvedRef, ViewAttribute.TEXT, tv.getText().toString()); 199 tv.setText((String) value);
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
H A D | RecentApplicationsDialog.java | 305 final TextView tv = mIcons[index]; 306 tv.setText(title); 308 tv.setCompoundDrawables(null, icon, null, null); 312 tv.setTag(tag); 313 tv.setVisibility(View.VISIBLE); 314 tv.setPressed(false); 315 tv.clearFocus();
|