Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 25 of 121) sorted by relevance

12345

/cts/tests/tests/util/src/android/util/cts/
DTypedValueTest.java45 TypedValue tv = new TypedValue(); in testGetFloat() local
46 tv.data = 99; in testGetFloat()
47 assertEquals(expected, tv.getFloat(), 0.0f); in testGetFloat()
90 TypedValue tv = new TypedValue(); in testGetFraction() local
91 tv.data = 10; in testGetFraction()
92 assertEquals(expected, tv.getFraction(1.1f, 2.1f), 0.0f); in testGetFraction()
132 TypedValue tv = new TypedValue(); in testToString() local
133 tv.assetCookie = 1; in testToString()
134 tv.changingConfigurations = 2; in testToString()
135 tv.data = 3; in testToString()
[all …]
/cts/tests/tests/tv/src/android/media/tv/cts/
DHardwareSessionTest.java17 package android.media.tv.cts;
22 import android.media.tv.TvContract;
23 import android.media.tv.TvInputInfo;
24 import android.media.tv.TvInputManager;
25 import android.media.tv.TvInputService;
26 import android.media.tv.TvView;
27 import android.media.tv.cts.HardwareSessionTest.HardwareProxyTvInputService.CountingSession;
31 import android.tv.cts.R;
DBundledTvInputServiceTest.java17 package android.media.tv.cts;
22 import android.media.tv.TvContract;
23 import android.media.tv.TvInputInfo;
24 import android.media.tv.TvInputManager;
25 import android.media.tv.TvView;
29 import android.tv.cts.R;
DStubTunerTvInputService.java17 package android.media.tv.cts;
25 import android.media.tv.TvContract;
26 import android.media.tv.TvInputInfo;
27 import android.media.tv.TvInputManager;
28 import android.media.tv.TvInputService;
29 import android.media.tv.TvTrackInfo;
DTvViewStubActivity.java17 package android.media.tv.cts;
22 import android.tv.cts.R;
DStubTvInputService.java17 package android.media.tv.cts;
20 import android.media.tv.TvInputService;
DTvInputManagerTest.java17 package android.media.tv.cts;
22 import android.media.tv.TvContentRating;
23 import android.media.tv.TvInputInfo;
24 import android.media.tv.TvInputManager;
25 import android.media.tv.TvInputService;
DTvViewTest.java17 package android.media.tv.cts;
23 import android.media.tv.TvContract;
24 import android.media.tv.TvInputInfo;
25 import android.media.tv.TvInputManager;
26 import android.media.tv.TvTrackInfo;
27 import android.media.tv.TvView;
28 import android.media.tv.TvView.TvInputCallback;
38 import android.tv.cts.R;
DTvInputInfoTest.java17 package android.media.tv.cts;
23 import android.media.tv.TvContract;
24 import android.media.tv.TvInputInfo;
25 import android.media.tv.TvInputManager;
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java262 TextView tv = findTextView(R.id.textview_text); in testAccessText() local
265 tv.setText(expected); in testAccessText()
266 assertEquals(expected, tv.getText().toString()); in testAccessText()
268 tv.setText(null); in testAccessText()
269 assertEquals("", tv.getText().toString()); in testAccessText()
1463 TextView tv = findTextView(R.id.textview_text); in testGetEditableText() local
1466 tv.setText(text, BufferType.EDITABLE); in testGetEditableText()
1467 assertEquals(text, tv.getText().toString()); in testGetEditableText()
1468 assertTrue(tv.getText() instanceof Editable); in testGetEditableText()
1469 assertEquals(text, tv.getEditableText().toString()); in testGetEditableText()
[all …]
DTabHostCtsActivity.java50 final TextView tv = new TextView(getApplicationContext()); in createTabContent() local
51 tv.setText(INITIAL_VIEW_TEXT); in createTabContent()
52 return tv; in createTabContent()
DTextViewPrecomputedTextTest.java173 final TextView tv = new TextView(getContext()); in setText() local
174 final Params tvParams = tv.getTextMetricsParams(); in setText()
180 tv.setText(pct); in setText()
187 tv.setTextMetricsParams(pctParams); in setText()
188 tv.setText(pct); in setText()
/cts/tests/tests/text/src/android/text/util/cts/
DLinkifyTest.java139 TextView tv = new TextView(mContext); in testAddLinksToTextView() local
140 tv.setText(text); in testAddLinksToTextView()
142 assertTrue(Linkify.addLinks(tv, Linkify.WEB_URLS)); in testAddLinksToTextView()
143 URLSpan[] spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextView()
148 tv.setText(spannable); in testAddLinksToTextView()
149 assertTrue(Linkify.addLinks(tv, Linkify.EMAIL_ADDRESSES)); in testAddLinksToTextView()
150 spans = ((Spannable) tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinksToTextView()
167 TextView tv = new TextView(mContext); in testAddLinksToTextViewWithScheme() local
168 tv.setText(text); in testAddLinksToTextViewWithScheme()
170 Linkify.addLinks(tv, LINKIFY_TEST_PATTERN, "Test:"); in testAddLinksToTextViewWithScheme()
[all …]
/cts/tests/tests/content/src/android/content/res/cts/
DResources_ThemeTest.java178 final TypedValue tv = new TypedValue(); in testEmptyDoesNotGetOverriden() local
179 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden()
180 assertEquals(TypedValue.TYPE_NULL, tv.type); in testEmptyDoesNotGetOverriden()
181 assertEquals(TypedValue.DATA_NULL_EMPTY, tv.data); in testEmptyDoesNotGetOverriden()
185 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden()
186 assertEquals(TypedValue.TYPE_NULL, tv.type); in testEmptyDoesNotGetOverriden()
187 assertEquals(TypedValue.DATA_NULL_EMPTY, tv.data); in testEmptyDoesNotGetOverriden()
191 assertTrue(theme.resolveAttribute(R.attr.type1, tv, false)); in testEmptyDoesNotGetOverriden()
192 assertNotSame(TypedValue.TYPE_NULL, tv.type); in testEmptyDoesNotGetOverriden()
/cts/tests/app/app/src/android/app/stubs/
DActivityManagerStubFooActivity.java28 final TextView tv = new TextView(this); in onCreate() local
29 tv.setText("Hello, Android"); in onCreate()
30 setContentView(tv); in onCreate()
DActivityManagerStubCrashActivity.java28 final TextView tv = new TextView(this); in onCreate() local
29 tv.setText("Hello, Android but crash"); in onCreate()
30 setContentView(tv); in onCreate()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/src/com/android/cts/splitapp/
DBaseActivity.java28 TextView tv = new TextView(this); in onCreate() local
30 tv.setText("2 + 3 = " + Integer.toString(sum)); in onCreate()
31 setContentView(tv); in onCreate()
/cts/suite/audio_quality/lib/src/
DClientSocket.cpp101 struct timeval tv; in readData() local
102 tv.tv_sec = timeInSec; in readData()
103 tv.tv_usec = timeInUs; in readData()
106 if (select(mSocket + 1, &rfds, NULL, NULL, &tv) == -1) { in readData()
/cts/hostsidetests/tv/app/src/com/android/cts/tv/hostside/
DStubTvInputService.java17 package com.android.cts.tv.hostside;
20 import android.media.tv.TvInputService;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DMockTvInputSetupActivity.java17 package com.android.cts.verifier.tv;
26 import android.media.tv.TvContract;
27 import android.media.tv.TvContract.Programs;
28 import android.media.tv.TvInputInfo;
DParentalControlTestActivity.java17 package com.android.cts.verifier.tv;
22 import android.media.tv.TvContentRating;
23 import android.media.tv.TvContract;
24 import android.media.tv.TvInputManager;
DMultipleTracksTestActivity.java17 package com.android.cts.verifier.tv;
22 import android.media.tv.TvContract;
23 import android.media.tv.TvTrackInfo;
/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/
DScreenPinningTestActivity.java102 TextView tv = new TextView(this); in show() local
103 tv.setPadding(10, 10, 10, 30); in show()
104 tv.setText(id); in show()
106 mInstructions.addView(tv); in show()
/cts/hostsidetests/tv/app2/src/com/android/cts/tv/hostside/app2/
DTvViewMonitorActivity.java17 package com.android.cts.tv.hostside.app2;
22 import android.media.tv.TvInputManager;
/cts/tests/openglperf2/jni/graphics/
DGLUtils.cpp193 struct timeval tv; in currentTimeMillis() local
194 gettimeofday(&tv, (struct timezone *) NULL); in currentTimeMillis()
195 return tv.tv_sec * 1000.0 + tv.tv_usec / 1000.0; in currentTimeMillis()

12345