/cts/tests/tests/text/src/android/text/method/cts/ |
D | TouchTest.java | 56 final TextView tv = new TextView(mActivity); in testScrollTo() local 59 mActivity.setContentView(tv); in testScrollTo() 60 tv.setSingleLine(true); in testScrollTo() 61 tv.setLines(2); in testScrollTo() 65 TextPaint paint = tv.getPaint(); in testScrollTo() 66 final Layout layout = tv.getLayout(); in testScrollTo() 70 tv.setText(LONG_TEXT); in testScrollTo() 80 Touch.scrollTo(tv, layout, width - tv.getWidth() - 1, 0); in testScrollTo() 84 assertEquals(width - tv.getWidth() - 1, tv.getScrollX()); in testScrollTo() 85 assertEquals(0, tv.getScrollY()); in testScrollTo() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | TypedValueTest.java | 32 TypedValue tv = new TypedValue(); in testGetFloat() local 33 tv.data = 99; in testGetFloat() 34 assertEquals(EXPECTED, tv.getFloat()); in testGetFloat() 74 TypedValue tv = new TypedValue(); in testGetFraction() local 75 tv.data = 10; in testGetFraction() 76 assertEquals(EXPECTED, tv.getFraction(1.1f, 2.1f)); in testGetFraction() 115 TypedValue tv = new TypedValue(); in testToString() local 116 tv.assetCookie = 1; in testToString() 117 tv.changingConfigurations = 2; in testToString() 118 tv.data = 3; in testToString() [all …]
|
/cts/tests/tests/text/src/android/text/util/cts/ |
D | LinkifyTest.java | 114 TextView tv = new TextView(mContext); in testAddLinks2() local 115 tv.setText(text); in testAddLinks2() 117 assertTrue(Linkify.addLinks(tv, Linkify.WEB_URLS)); in testAddLinks2() 118 URLSpan[] spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks2() 123 tv.setText(spannable); in testAddLinks2() 124 assertTrue(Linkify.addLinks(tv, Linkify.EMAIL_ADDRESSES)); in testAddLinks2() 125 spans = ((Spannable)tv.getText()).getSpans(0, text.length(), URLSpan.class); in testAddLinks2() 141 TextView tv = new TextView(mContext); in testAddLinks3() local 142 tv.setText(text); in testAddLinks3() 144 Linkify.addLinks(tv, LINKIFY_TEST_PATTERN, "Test:"); in testAddLinks3() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewTest.java | 164 TextView tv = findTextView(R.id.textview_text); in testAccessText() local 167 tv.setText(expected); in testAccessText() 168 assertEquals(expected, tv.getText().toString()); in testAccessText() 170 tv.setText(null); in testAccessText() 171 assertEquals("", tv.getText().toString()); in testAccessText() 1094 TextView tv = findTextView(R.id.textview_text); in testGetEditableText() local 1097 tv.setText(text, BufferType.EDITABLE); in testGetEditableText() 1098 assertEquals(text, tv.getText().toString()); in testGetEditableText() 1099 assertTrue(tv.getText() instanceof Editable); in testGetEditableText() 1100 assertEquals(text, tv.getEditableText().toString()); in testGetEditableText() [all …]
|
D | TabHostCtsActivity.java | 51 final TextView tv = new TextView(getApplicationContext()); in createTabContent() local 52 tv.setText(INITIAL_VIEW_TEXT); in createTabContent() 53 return tv; in createTabContent()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | HardwareSessionTest.java | 17 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.TvInputService; 27 import android.media.tv.TvView; 28 import android.media.tv.cts.HardwareSessionTest.HardwareProxyTvInputService.CountingSession; 32 import com.android.cts.tv.R;
|
D | BundledTvInputServiceTest.java | 17 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.TvView; 30 import com.android.cts.tv.R;
|
D | TvViewStubActivity.java | 17 package android.media.tv.cts; 22 import com.android.cts.tv.R;
|
D | StubTunerTvInputService.java | 17 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;
|
D | StubTvInputService.java | 17 package android.media.tv.cts; 20 import android.media.tv.TvInputService;
|
D | TvInputInfoTest.java | 17 package android.media.tv.cts; 23 import android.media.tv.TvContract; 24 import android.media.tv.TvInputInfo; 25 import android.media.tv.TvInputManager;
|
D | NoPermissionTvInputService.java | 17 package android.media.tv.cts;
|
D | NoMetadataTvInputService.java | 17 package android.media.tv.cts;
|
D | TvInputManagerTest.java | 17 package android.media.tv.cts; 23 import android.media.tv.TvContentRating; 24 import android.media.tv.TvInputInfo; 25 import android.media.tv.TvInputManager;
|
D | TvInputSetupActivityStub.java | 17 package android.media.tv.cts;
|
/cts/tests/app/src/android/app/cts/ |
D | ActivityManagerStubFooActivity.java | 28 final TextView tv = new TextView(this); in onCreate() local 29 tv.setText("Hello, Android"); in onCreate() 30 setContentView(tv); in onCreate()
|
D | ActivityManagerStubCrashActivity.java | 28 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/ |
D | BaseActivity.java | 28 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/cts/deviceTests/dram/jni/ |
D | MemoryNativeJni.cpp | 24 struct timeval tv; in currentTimeMillis() local 25 gettimeofday(&tv, (struct timezone *) NULL); in currentTimeMillis() 26 return tv.tv_sec * 1000.0 + tv.tv_usec / 1000.0; in currentTimeMillis()
|
/cts/suite/audio_quality/lib/src/ |
D | ClientSocket.cpp | 101 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/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | MultipleTracksTestActivity.java | 17 package com.android.cts.verifier.tv; 23 import android.media.tv.TvContentRating; 24 import android.media.tv.TvContract; 25 import android.media.tv.TvInputManager; 26 import android.media.tv.TvTrackInfo;
|
D | MockTvInputSetupActivity.java | 17 package com.android.cts.verifier.tv; 23 import android.media.tv.TvContract; 24 import android.media.tv.TvContract.Programs; 25 import android.media.tv.TvInputInfo;
|
D | ParentalControlTestActivity.java | 17 package com.android.cts.verifier.tv; 23 import android.media.tv.TvContentRating; 24 import android.media.tv.TvContract; 25 import android.media.tv.TvInputManager;
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/screenpinning/ |
D | ScreenPinningTestActivity.java | 104 TextView tv = new TextView(this); in show() local 105 tv.setPadding(10, 10, 10, 30); in show() 106 tv.setText(id); in show() 108 mInstructions.addView(tv); in show()
|
/cts/tests/tests/tv/src/android/tv/settings/cts/ |
D | SettingsLeanbackStubActivity.java | 17 package android.tv.settings.cts;
|