Home
last modified time | relevance | path

Searched refs:source (Results 1 – 25 of 2287) sorted by relevance

12345678910>>...92

/cts/tests/tests/text/src/android/text/method/cts/
DDigitsKeyListenerTest.java57 String source = "123456"; in testFilter1() local
62 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
66 source = "a1b2c3d"; in testFilter1()
67 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
71 source = "-a1.b2c3d"; in testFilter1()
72 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
76 source = "+a1.b2c3d"; in testFilter1()
77 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
82 Spannable spannableSource = new SpannableString(source); in testFilter1()
114 String source = "-123456"; in testFilter2() local
[all …]
DNumberKeyListenerTest.java51 String source = "Android test"; in testFilter() local
53 assertEquals("", mMockNumberKeyListener.filter(source, 0, source.length(), in testFilter()
56 source = "12345"; in testFilter()
58 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
61 source = ""; in testFilter()
63 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
66 source = "12345 Android"; in testFilter()
68 assertEquals("12345", mMockNumberKeyListener.filter(source, 0, source.length(), in testFilter()
/cts/tests/leanbackjank/src/android/leanbackjank/cts/
DCtsJankTestBase.java36 private void printIntValueWithKey(String source, Bundle metrics, String key, in printIntValueWithKey() argument
41 mLog.addValue(source, key, metrics.getInt(key), resultType, resultUnit); in printIntValueWithKey()
44 private void printDoubleValueWithKey(String source, Bundle metrics, String key, in printDoubleValueWithKey() argument
49 mLog.addValue(source, key, metrics.getDouble(key), resultType, resultUnit); in printDoubleValueWithKey()
54 String source = String.format("%s#%s", getClass().getCanonicalName(), getName()); in afterTest() local
55 printDoubleValueWithKey(source, metrics, WindowContentFrameStatsMonitor.KEY_AVG_FPS, in afterTest()
57 printDoubleValueWithKey(source, metrics, in afterTest()
60 printIntValueWithKey(source, metrics, WindowContentFrameStatsMonitor.KEY_MAX_NUM_JANKY, in afterTest()
66 printDoubleValueWithKey(source, metrics, GfxMonitor.KEY_AVG_NUM_JANKY, in afterTest()
68 printDoubleValueWithKey(source, metrics, GfxMonitor.KEY_AVG_FRAME_TIME_90TH_PERCENTILE, in afterTest()
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DFileCopyHelper.java63 InputStream source = mContext.getResources().openRawResource(resId); in copy() local
65 copyFile(source, target); in copy()
71 InputStream source = mContext.getResources().openRawResource(resId); in copyToExternalStorage() local
73 copyFile(source, target); in copyToExternalStorage()
76 private void copyFile(InputStream source, OutputStream target) throws IOException { in copyFile() argument
79 for (int len = source.read(buffer); len > 0; len = source.read(buffer)) { in copyFile()
83 if (source != null) { in copyFile()
84 source.close(); in copyFile()
/cts/libs/deviceutil/src/android/cts/util/
DFileCopyHelper.java63 InputStream source = mContext.getResources().openRawResource(resId); in copy() local
65 copyFile(source, target); in copy()
71 InputStream source = mContext.getResources().openRawResource(resId); in copyToExternalStorage() local
73 copyFile(source, target); in copyToExternalStorage()
76 private void copyFile(InputStream source, OutputStream target) throws IOException { in copyFile() argument
79 for (int len = source.read(buffer); len > 0; len = source.read(buffer)) { in copyFile()
83 if (source != null) { in copyFile()
84 source.close(); in copyFile()
DIBinderParcelable.java25 public IBinderParcelable(IBinder source) { in IBinderParcelable() argument
26 binder = source; in IBinderParcelable()
40 public IBinderParcelable createFromParcel(Parcel source) {
41 return new IBinderParcelable(source);
49 private IBinderParcelable(Parcel source) { in IBinderParcelable() argument
50 binder = source.readStrongBinder(); in IBinderParcelable()
/cts/tests/tests/text/src/android/text/cts/
DHtmlTest.java49 final String source = "<b>hello</b>"; in testSingleTagOnWhileString() local
51 Spanned spanned = Html.fromHtml(source); in testSingleTagOnWhileString()
53 spanned = Html.fromHtml(source, null, null); in testSingleTagOnWhileString()
71 final String source = "Hello <b>b<i>bi</b>i</i>"; in testBadHtml() local
73 Spanned spanned = Html.fromHtml(source); in testBadHtml()
75 spanned = Html.fromHtml(source, null, null); in testBadHtml()
89 final String source = "&copy; &gt; &lt"; in testSymbols() local
92 String spanned = Html.fromHtml(source).toString(); in testSymbols()
94 spanned = Html.fromHtml(source, null, null).toString(); in testSymbols()
360 String source = String.format("Hello <%s>struck</%s> world", tag, tag); in testMarkupFromHtml() local
[all …]
DAlteredCharSequenceTest.java31 CharSequence source = "abcdefgh"; in testCharAt() local
32 mAlteredCharSequence = AlteredCharSequence.make(source, sub, 0, sub.length); in testCharAt()
90 CharSequence source = SOURCE_STR; in testLength() local
92 source = source + "a"; in testLength()
93 mAlteredCharSequence = AlteredCharSequence.make(source, sub, 0, sub.length); in testLength()
94 assertEquals(source.length(), mAlteredCharSequence.length()); in testLength()
102 CharSequence source = SOURCE_STR; in testMake() local
103 mAlteredCharSequence = AlteredCharSequence.make(source, sub, 0, sub.length); in testMake()
105 assertEquals(source.toString(), mAlteredCharSequence.toString()); in testMake()
120 CharSequence source = SOURCE_STR; in testSubSequence() local
[all …]
DStaticLayoutLineBreakingTest.java98 private static StaticLayout getStaticLayout(CharSequence source, int width) { in getStaticLayout() argument
99 return new StaticLayout(source, mTextPaint, width, ALIGN, SPACE_MULTI, SPACE_ADD, false); in getStaticLayout()
102 private static int[] getBreaks(CharSequence source) { in getBreaks() argument
103 return getBreaks(source, WIDTH); in getBreaks()
106 private static int[] getBreaks(CharSequence source, int width) { in getBreaks() argument
107 StaticLayout staticLayout = getStaticLayout(source, width); in getBreaks()
116 private static void debugLayout(CharSequence source, StaticLayout staticLayout) { in debugLayout() argument
119 Log.i("StaticLayoutLineBreakingTest", "\"" + source.toString() + "\": " + in debugLayout()
125 lineEnd + "]\t" + source.subSequence(lineStart, lineEnd)); in debugLayout()
130 private static void layout(CharSequence source, int[] breaks) { in layout() argument
[all …]
DInputFilter_LengthFilterTest.java28 CharSequence source; in testFilter() local
36 source = "abc"; in testFilter()
40 dest.insert(1, source); in testFilter()
44 dest.replace(5, 8, source); in testFilter()
DEditable_FactoryTest.java30 CharSequence source = "abc"; in testNewEditable() local
32 Editable expected = new SpannableStringBuilder(source); in testNewEditable()
36 Editable actual = mFactory.newEditable(source); in testNewEditable()
DInputFilter_AllCapsTest.java29 CharSequence source = "Caps"; in testFilter() local
36 dest.insert(3, source); in testFilter()
40 dest.replace(7, 11, source); in testFilter()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioRecordHelper.java29 private final int source; field in AudioRecordHelper
39 for (int source : SOURCE) { in AudioRecordHelper()
42 AudioRecord testAudioRecord = new AudioRecord(source, rate, CHANNEL, ENCODING, in AudioRecordHelper()
47 tmpSource = source; in AudioRecordHelper()
57 source = tmpSource; in AudioRecordHelper()
59 + source + " (VOICE_RECOGNITION = 6 , MIC = 1)"); in AudioRecordHelper()
76 audioRecord = new AudioRecord(source, sampleRate, CHANNEL, ENCODING, bufferSize); in start()
128 return source; in getAudioSource()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java112 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testAccessGravity() local
113 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testAccessGravity()
128 Bitmap source = BitmapFactory.decodeResource(mContext.getResources(), R.raw.testimage); in testAccessMipMap() local
129 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testAccessMipMap()
132 assertTrue(source.hasMipMap()); in testAccessMipMap()
135 assertFalse(source.hasMipMap()); in testAccessMipMap()
139 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetAntiAlias() local
140 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testSetAntiAlias()
152 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetFilterBitmap() local
153 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testSetFilterBitmap()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DAbsSavedStateTest.java34 Parcel source = Parcel.obtain(); in testConstructor() local
35 new MockAbsSavedState(source); in testConstructor()
37 MockAbsSavedState savedState = new MockAbsSavedState(source); in testConstructor()
70 public MockAbsSavedState(Parcel source) { in MockAbsSavedState() argument
71 super(source); in MockAbsSavedState()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsetelementat.rs34 int source = 10;
37 rsSetElementAt(array, &source, i);
43 int source = 10;
47 rsSetElementAt(array, &source, xtemp, y);
/cts/tests/tests/rscpp/librscpptest/
Dsetelementat.rs33 int source = 10;
36 rsSetElementAt(array, &source, i);
42 int source = 10;
46 rsSetElementAt(array, &source, xtemp, y);
/cts/tools/dex-tools/test/dex/reader/util/
DJavaSourceToDexUtil.java43 public dex.structure.DexFile getFrom(JavaSource source) throws IOException{ in getFrom() argument
44 return getAllFrom(Collections.singleton(source)); in getFrom()
47 public dex.structure.DexFile getFrom(JavaSource... source) throws IOException{ in getFrom() argument
48 return getAllFrom(new HashSet<JavaSource>(Arrays.asList(source))); in getFrom()
86 public Set<MemoryByteCode> compileToByteCode(Set<JavaSource> source) { in compileToByteCode() argument
94 .asList(new String[] {"-classpath", "."}), null, source); in compileToByteCode()
/cts/tests/tests/text/src/android/text/style/cts/
DImageSpanTest.java78 String source = "cts test."; in testGetSource() local
79 imageSpan = new ImageSpan(d, source); in testGetSource()
80 assertEquals(source, imageSpan.getSource()); in testGetSource()
82 source = "content://user/a/b"; in testGetSource()
83 imageSpan = new ImageSpan(mContext, Uri.parse(source)); in testGetSource()
84 assertEquals(source, imageSpan.getSource()); in testGetSource()
/cts/tests/jank/src/android/jank/cts/
DCtsJankTestBase.java36 String source = String.format("%s#%s", getClass().getCanonicalName(), getName()); in afterTest() local
37 mLog.addValue(source, "frame_fps", in afterTest()
40 mLog.addValue(source, "frame_max_frame_duration", in afterTest()
43 mLog.addValue(source, "frame_max_jank", in afterTest()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DCommandApdu.java31 public CommandApdu createFromParcel(Parcel source) {
32 String apdu = source.readString();
33 boolean reachable = source.readInt() != 0 ? true : false;
/cts/tests/tests/graphics/src/android/graphics/cts/
DMovieTest.java76 InputStream source = null; in writeSampleImage() local
80 source = getActivity().getResources().openRawResource(MOVIE); in writeSampleImage()
84 for (int len = source.read(buffer); len > 0; len = source in writeSampleImage()
89 if (source != null) { in writeSampleImage()
90 source.close(); in writeSampleImage()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/return_object/d/
DTestStubs.d15 .source TestStubs.java
18 .source TestStubs.java
29 .source TestStubs.java
39 .source TestStubs.java
50 .source TestStubs.java
/cts/common/util/src/com/android/compatibility/common/util/
DReportLog.java64 Metric(String source, String message, double value, ResultType type, ResultUnit unit) { in Metric() argument
65 this(source, message, new double[] { value }, type, unit); in Metric()
79 Metric(String source, String message, double[] values, ResultType type, ResultUnit unit) { in Metric() argument
80 int sourceLength = source.length(); in Metric()
83 mSource = source.substring(sourceLength - MAX_SOURCE_LENGTH); in Metric()
85 mSource = source; in Metric()
143 String source = parser.getAttributeValue(null, SOURCE_ATTR); in parse() local
161 return new Metric(source, message, values, type, unit); in parse()
184 public void addValues(String source, String message, double[] values, ResultType type, in addValues() argument
199 public void addValue(String source, String message, double value, ResultType type, in addValue() argument
/cts/tools/tradefed-host/
DREADME29 http://source.android.com/compatibility/downloads.html
44 Or else if you are working from the Android source tree and have run make cts,
67 See http://source.android.com for instructions on obtaining the Android
68 platform source code and setting up a build environment.
70 The source for the CTS extensions for tradefed can be found at
71 <android source root>/cts/tools/tradefed-host
73 The source for the tradefed framework can be found on the 'tradefed' branch.
77 cd <path to android source root>

12345678910>>...92