/cts/tests/tests/text/src/android/text/method/cts/ |
D | DigitsKeyListenerTest.java | 48 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 …]
|
D | NumberKeyListenerTest.java | 45 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/ |
D | CtsJankTestBase.java | 34 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/ |
D | CompilationUnit.java | 23 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/ |
D | FileCopyHelper.java | 63 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()
|
D | IBinderParcelable.java | 25 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/ |
D | FileCopyHelper.java | 63 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/ |
D | AlteredCharSequenceTest.java | 31 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 …]
|
D | StaticLayoutLineBreakingTest.java | 98 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 …]
|
D | InputFilter_LengthFilterTest.java | 28 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()
|
D | Editable_FactoryTest.java | 30 CharSequence source = "abc"; in testNewEditable() local 32 Editable expected = new SpannableStringBuilder(source); in testNewEditable() 36 Editable actual = mFactory.newEditable(source); in testNewEditable()
|
D | InputFilter_AllCapsTest.java | 29 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/ |
D | AudioRecordHelper.java | 29 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/ |
D | BitmapDrawableTest.java | 96 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/ |
D | AbsSavedStateTest.java | 34 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/ |
D | setelementat.rs | 34 int source = 10; 37 rsSetElementAt(array, &source, i); 43 int source = 10; 47 rsSetElementAt(array, &source, xtemp, y);
|
/cts/tests/tests/rscpp/librscpptest/ |
D | setelementat.rs | 33 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/ |
D | CtsJankTestBase.java | 35 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/ |
D | CommandApdu.java | 31 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/ |
D | JavaSourceToDexUtil.java | 43 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/ |
D | ImageSpanTest.java | 78 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/ |
D | CodecUtils.java | 110 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/ |
D | TestStubs.d | 15 .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/ |
D | MovieTest.java | 76 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/ |
D | README | 29 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>
|