Home
last modified time | relevance | path

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

12345678910>>...86

/cts/tests/tests/text/src/android/text/method/cts/
DDigitsKeyListenerTest.java48 String source = "123456"; in testFilter1() local
53 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
57 source = "a1b2c3d"; in testFilter1()
58 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
62 source = "-a1.b2c3d"; in testFilter1()
63 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
67 source = "+a1.b2c3d"; in testFilter1()
68 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1()
73 Spannable spannableSource = new SpannableString(source); in testFilter1()
105 String source = "-123456"; in testFilter2() local
[all …]
DNumberKeyListenerTest.java45 String source = "Android test"; in testFilter() local
47 assertEquals("", mMockNumberKeyListener.filter(source, 0, source.length(), in testFilter()
50 source = "12345"; in testFilter()
52 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
55 source = ""; in testFilter()
57 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
60 source = "12345 Android"; in testFilter()
62 assertEquals("12345", mMockNumberKeyListener.filter(source, 0, source.length(), in testFilter()
/cts/tests/leanbackjank/src/android/cts/leanbackjank/
DCtsJankTestBase.java34 private void printIntValueWithKey(String source, Bundle metrics, String key, in printIntValueWithKey() argument
39 mLog.printValue(source, key, metrics.getInt(key), resultType, resultUnit); in printIntValueWithKey()
42 private void printDoubleValueWithKey(String source, Bundle metrics, String key, in printDoubleValueWithKey() argument
47 mLog.printValue(source, key, metrics.getDouble(key), resultType, resultUnit); in printDoubleValueWithKey()
52 String source = String.format("%s#%s", getClass().getCanonicalName(), getName()); in afterTest() local
53 printDoubleValueWithKey(source, metrics, WindowContentFrameStatsMonitor.KEY_AVG_FPS, in afterTest()
55 printDoubleValueWithKey(source, metrics, in afterTest()
58 printIntValueWithKey(source, metrics, WindowContentFrameStatsMonitor.KEY_MAX_NUM_JANKY, in afterTest()
64 printDoubleValueWithKey(source, metrics, GfxMonitor.KEY_AVG_NUM_JANKY, in afterTest()
66 printDoubleValueWithKey(source, metrics, GfxMonitor.KEY_AVG_FRAME_TIME_90TH_PERCENTILE, in afterTest()
[all …]
/cts/tools/signature-tools/test/signature/converter/util/
DCompilationUnit.java23 private String source; field in CompilationUnit
25 public CompilationUnit(String name, String source) { in CompilationUnit() argument
27 this.source = source; in CompilationUnit()
35 return source; in getSource()
/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/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/tests/tests/text/src/android/text/cts/
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.java96 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testAccessGravity() local
97 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testAccessGravity()
112 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetAntiAlias() local
113 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testSetAntiAlias()
125 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetFilterBitmap() local
126 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testSetFilterBitmap()
138 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testIsFilterBitmap() local
139 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testIsFilterBitmap()
154 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetDither() local
155 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testSetDither()
[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/suite/cts/deviceTests/jank2/src/android/cts/jank/
DCtsJankTestBase.java35 String source = String.format("%s#%s", getClass().getCanonicalName(), getName()); in afterTest() local
36 mLog.printValue(source, WindowContentFrameStatsMonitor.KEY_AVG_FPS, in afterTest()
39 mLog.printValue(source, WindowContentFrameStatsMonitor.KEY_AVG_LONGEST_FRAME, in afterTest()
42 mLog.printValue(source, WindowContentFrameStatsMonitor.KEY_MAX_NUM_JANKY, 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/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/tests/media/src/android/media/cts/
DCodecUtils.java110 public native static void copyFlexYUVImage(CodecImage target, CodecImage source); in copyFlexYUVImage() argument
112 public static void copyFlexYUVImage(Image target, CodecImage source) { in copyFlexYUVImage() argument
113 copyFlexYUVImage(ImageWrapper.createFromImage(target), source); in copyFlexYUVImage() local
115 public static void copyFlexYUVImage(Image target, Image source) { in copyFlexYUVImage() argument
118 ImageWrapper.createFromImage(source)); in copyFlexYUVImage()
/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/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/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>>...86