Searched refs:source (Results 1 - 25 of 2218) sorted by relevance

1234567891011>>

/cts/tools/signature-tools/test/signature/converter/util/
H A DCompilationUnit.java23 private String source; field in class:CompilationUnit
25 public CompilationUnit(String name, String source) { argument
27 this.source = source;
35 return source;
/cts/tests/tests/widget/src/android/widget/cts/
H A DTextView_SaveStateTest.java40 Parcel source = creatTestParcel(0, 0, true, "This is content");
41 TextView.SavedState state = TextView.SavedState.CREATOR.createFromParcel(source);
45 source = creatTestParcel(5, 10, false, "This is another content");
46 state = TextView.SavedState.CREATOR.createFromParcel(source);
57 Parcel source = creatTestParcel(0, 0, true, "This is content");
58 TextView.SavedState state = TextView.SavedState.CREATOR.createFromParcel(source);
72 Parcel source = Parcel.obtain();
74 source.writeParcelable(AbsSavedState.EMPTY_STATE, 0);
75 source.writeInt(start);
76 source
[all...]
/cts/tests/src/android/app/cts/
H A DIBinderParcelable.java25 public IBinderParcelable(IBinder source) { argument
26 binder = source;
40 public IBinderParcelable createFromParcel(Parcel source) {
41 return new IBinderParcelable(source);
49 private IBinderParcelable(Parcel source) { argument
50 binder = source.readStrongBinder();
/cts/tests/tests/text/src/android/text/method/cts/
H A DDigitsKeyListenerTest.java95 String source = "123456";
100 assertNull(digitsKeyListener.filter(source, 0, source.length(),
104 source = "a1b2c3d";
105 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(),
109 source = "-a1.b2c3d";
110 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(),
115 Spannable spannableSource = new SpannableString(source);
[all...]
H A DNumberKeyListenerTest.java80 String source = "Android test";
82 assertEquals("", mNumberKeyListener.filter(source, 0, source.length(),
85 source = "12345";
87 assertNull(mNumberKeyListener.filter(source, 0, source.length(), dest, 0, dest.length()));
89 source = "";
91 assertNull(mNumberKeyListener.filter(source, 0, source.length(), dest, 0, dest.length()));
93 source
[all...]
/cts/tests/src/android/provider/cts/
H A DFileCopyHelper.java60 InputStream source = null;
64 source = mContext.getResources().openRawResource(resId);
68 for (int len = source.read(buffer); len > 0; len = source.read(buffer)) {
75 if (source != null) {
76 source.close();
/cts/tests/tests/text/src/android/text/cts/
H A DAlteredCharSequenceTest.java40 CharSequence source = "abcdefgh";
41 mAlteredCharSequence = AlteredCharSequence.make(source, sub, 0, sub.length);
45 // chars in source.
109 CharSequence source = SOURCE_STR;
111 source = source + "a";
112 mAlteredCharSequence = AlteredCharSequence.make(source, sub, 0, sub.length);
113 assertEquals(source.length(), mAlteredCharSequence.length());
126 CharSequence source = SOURCE_STR;
127 mAlteredCharSequence = AlteredCharSequence.make(source, su
[all...]
H A DEditable_FactoryTest.java34 notes = "Test newEditable(CharSequence source)",
40 CharSequence source = "abc";
42 Editable expected = new SpannableStringBuilder(source);
46 Editable actual = mFactory.newEditable(source);
H A DInputFilter_LengthFilterTest.java46 CharSequence source;
53 // cut off the source CharSequence from beginning to fit the filter length.
54 source = "abc";
58 dest.insert(1, source);
62 dest.replace(5, 8, source);
H A DInputFilter_AllCapsTest.java41 CharSequence source = "Caps";
48 dest.insert(3, source);
52 dest.replace(7, 11, source);
/cts/tests/tests/view/src/android/view/cts/
H A DAbsSavedStateTest.java59 Parcel source = Parcel.obtain();
60 new MockAbsSavedState(source);
62 MockAbsSavedState savedState = new MockAbsSavedState(source);
107 public MockAbsSavedState(Parcel source) { argument
108 super(source);
/cts/tools/dex-tools/test/dex/reader/
H A DLargeDexTests.java44 JavaSource source = new JavaSource(CLASS_NAME, b.toString());
45 DexFile dexFile = javaToDexUtil.getFrom(source);
/cts/tests/tests/text/src/android/text/format/cts/
H A DDateFormatTest.java140 String source = dateFormat.format(date);
141 Date parseDate = dateFormat.parse(source);
148 source = dateFormat.format(date);
149 assertTrue(source.indexOf("December") >= 0);
152 source = dateFormat.format(date);
153 assertTrue(source.indexOf("Dec") >= 0);
154 assertTrue(source.indexOf("December") < 0);
156 source = dateFormat.format(date);
157 assertTrue(source.indexOf("5") >= 0);
158 assertTrue(source
[all...]
/cts/tools/vm-tests/src/dot/junit/opcodes/return_object/d/
H A 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/drawable/cts/
H A DBitmapDrawableTest.java136 InputStream source = mContext.getResources().openRawResource(R.raw.testimage);
137 BitmapDrawable bitmapDrawable = new BitmapDrawable(source);
157 InputStream source = mContext.getResources().openRawResource(R.raw.testimage);
158 BitmapDrawable bitmapDrawable = new BitmapDrawable(source);
175 InputStream source = mContext.getResources().openRawResource(R.raw.testimage);
176 BitmapDrawable bitmapDrawable = new BitmapDrawable(source);
193 InputStream source = mContext.getResources().openRawResource(R.raw.testimage);
194 BitmapDrawable bitmapDrawable = new BitmapDrawable(source);
234 InputStream source = mContext.getResources().openRawResource(R.raw.testimage);
235 BitmapDrawable bitmapDrawable = new BitmapDrawable(source);
[all...]
/cts/tools/dex-tools/test/dex/reader/util/
H A DJavaSourceToDexUtil.java43 public dex.structure.DexFile getFrom(JavaSource source) throws IOException{ argument
44 return getAllFrom(Collections.singleton(source));
47 public dex.structure.DexFile getFrom(JavaSource... source) throws IOException{ argument
48 return getAllFrom(new HashSet<JavaSource>(Arrays.asList(source)));
56 * Converts java source code to a {@link dex.structure.DexFile} loaded by
86 public Set<MemoryByteCode> compileToByteCode(Set<JavaSource> source) { argument
94 .asList(new String[] {"-classpath", "."}), null, source);
/cts/tools/signature-tools/test/signature/converter/
H A DConvertWildcardTest.java42 String source =
47 IApi api = convert(new CompilationUnit("a.A", source));
71 String source =
76 IApi api = convert(new CompilationUnit("a.A", source));
/cts/tools/vm-tests/src/dot/junit/opcodes/new_instance/d/
H A DTestAbstractClass.d15 .source TestAbstractClass.java
19 .source TestAbstractClass.java
/cts/tools/vm-tests/src/dot/junit/opcodes/if_eq/d/
H A DT_if_eq_1.d1 .source T_if_eq_1.java
H A DT_if_eq_10.d1 .source T_if_eq_10.java
H A DT_if_eq_11.d1 .source T_if_eq_11.java
H A DT_if_eq_12.d1 .source T_if_eq_12.java
H A DT_if_eq_2.d1 .source T_if_eq_2.java
H A DT_if_eq_4.d1 .source T_if_eq_4.java
H A DT_if_eq_5.d1 .source T_if_eq_5.java

Completed in 1027 milliseconds

1234567891011>>