/cts/tests/tests/text/src/android/text/method/cts/ |
D | DigitsKeyListenerTest.java | 84 String source = "123456"; in testFilter1() local 89 assertNull(digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 93 source = "a1b2c3d"; in testFilter1() 94 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 98 source = "-a1.b2c3d"; in testFilter1() 99 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 103 source = "+a1.b2c3d"; in testFilter1() 104 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 109 Spannable spannableSource = new SpannableString(source); in testFilter1() 142 String source = "-123456"; in testFilter2() local [all …]
|
D | NumberKeyListenerTest.java | 57 String source = "Android test"; in testFilter() local 59 assertEquals("", mMockNumberKeyListener.filter(source, 0, source.length(), in testFilter() 62 source = "12345"; in testFilter() 64 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter() 67 source = ""; in testFilter() 69 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter() 72 source = "12345 Android"; in testFilter() 74 assertEquals("12345", mMockNumberKeyListener.filter(source, 0, source.length(), in testFilter()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorSpaceTest.java | 412 float[] source = { 0.75f, 0.5f, 0.25f }; in testRGBtoXYZ() local 415 float[] r1 = cs.toXyz(source[0], source[1], source[2]); in testRGBtoXYZ() 418 assertArrayNotEquals(source, r1, 1e-5f); in testRGBtoXYZ() 421 float[] r3 = { source[0], source[1], source[2] }; in testRGBtoXYZ() 431 float[] source = { 0.3012f, 0.2679f, 0.0840f }; in testXYZtoRGB() local 434 float[] r1 = cs.fromXyz(source[0], source[1], source[2]); in testXYZtoRGB() 437 assertArrayNotEquals(source, r1, 1e-5f); in testXYZtoRGB() 440 float[] r3 = { source[0], source[1], source[2] }; in testXYZtoRGB() 477 float[] source = { 1.0f, 0.5f, 0.0f }; in testConnector() local 480 float[] r1 = connector.transform(source[0], source[1], source[2]); in testConnector() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | AbsSavedStateTest.java | 65 Parcel source = Parcel.obtain(); in testConstructor() local 66 source.writeParcelable(superState, 0); in testConstructor() 67 source.setDataPosition(0); in testConstructor() 68 s = new AbsSavedStateImpl(source, AbsSavedStateImpl.class.getClassLoader()); in testConstructor() 71 source = Parcel.obtain(); in testConstructor() 72 s = new AbsSavedStateImpl(source); in testConstructor() 75 source = Parcel.obtain(); in testConstructor() 76 source.writeParcelable(superState, 0); in testConstructor() 77 source.setDataPosition(0); in testConstructor() 78 s = new AbsSavedStateImpl(source, AbsSavedStateImpl.class.getClassLoader()); in testConstructor() [all …]
|
D | View_BaseSavedStateTest.java | 64 Parcel source = Parcel.obtain(); in testConstructors() local 65 source.writeParcelable(superState, 0); in testConstructors() 66 source.setDataPosition(0); in testConstructors() 67 s = new BaseSavedState(source); in testConstructors() 71 source = Parcel.obtain(); in testConstructors() 72 source.writeParcelable(superState, 0); in testConstructors() 73 source.setDataPosition(0); in testConstructors() 74 s = new BaseSavedState(source, loader); in testConstructors()
|
/cts/tests/leanbackjank/src/android/leanbackjank/cts/ |
D | CtsJankTestBase.java | 37 private void printIntValueWithKey(String source, Bundle metrics, String key, in printIntValueWithKey() argument 42 … mLog.addValue(source, formatKeyForTestMetrics(key), metrics.getInt(key), resultType, resultUnit); in printIntValueWithKey() 45 private void printDoubleValueWithKey(String source, Bundle metrics, String key, in printDoubleValueWithKey() argument 50 mLog.addValue(source, formatKeyForTestMetrics(key), metrics.getDouble(key), resultType, in printDoubleValueWithKey() 60 String source = String.format("%s#%s", getClass().getCanonicalName(), getName()); in afterTest() local 61 printDoubleValueWithKey(source, metrics, WindowContentFrameStatsMonitor.KEY_AVG_FPS, in afterTest() 63 printDoubleValueWithKey(source, metrics, in afterTest() 66 printIntValueWithKey(source, metrics, WindowContentFrameStatsMonitor.KEY_MAX_NUM_JANKY, in afterTest() 72 printDoubleValueWithKey(source, metrics, GfxMonitor.KEY_AVG_NUM_JANKY, in afterTest() 74 printDoubleValueWithKey(source, metrics, GfxMonitor.KEY_AVG_FRAME_TIME_90TH_PERCENTILE, in afterTest() [all …]
|
/cts/libs/deviceutillegacy/src/com/android/compatibility/common/util/ |
D | SynchronousPixelCopy.java | 41 public int request(Surface source, Bitmap dest) { in request() argument 43 PixelCopy.request(source, dest, this, sHandler); in request() 48 public int request(Surface source, Rect srcRect, Bitmap dest) { in request() argument 50 PixelCopy.request(source, srcRect, dest, this, sHandler); in request() 55 public int request(SurfaceView source, Bitmap dest) { in request() argument 57 PixelCopy.request(source, dest, this, sHandler); in request() 62 public int request(SurfaceView source, Rect srcRect, Bitmap dest) { in request() argument 64 PixelCopy.request(source, srcRect, dest, this, sHandler); in request() 69 public int request(Window source, Bitmap dest) { in request() argument 71 PixelCopy.request(source, dest, this, sHandler); in request() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | HtmlTest.java | 56 final String source = "<b>hello</b>"; in testSingleTagOnWhileString() local 58 Spanned spanned = Html.fromHtml(source); in testSingleTagOnWhileString() 60 spanned = Html.fromHtml(source, null, null); in testSingleTagOnWhileString() 79 final String source = "Hello <b>b<i>bi</b>i</i>"; in testBadHtml() local 81 Spanned spanned = Html.fromHtml(source); in testBadHtml() 83 spanned = Html.fromHtml(source, null, null); in testBadHtml() 98 final String source = "© > <"; in testSymbols() local 101 String spanned = Html.fromHtml(source).toString(); in testSymbols() 103 spanned = Html.fromHtml(source, null, null).toString(); in testSymbols() 395 String source = String.format("Hello <%s>struck</%s> world", tag, tag); in testMarkupFromHtml() local [all …]
|
D | InputFilter_AllCapsTest.java | 45 CharSequence source = "Caps"; in testFilter() local 52 dest.insert(3, source); in testFilter() 56 dest.replace(7, 11, source); in testFilter() 92 final String source = "i"; in testFilter_turkish() local 97 assertEquals("I", usAllCaps.filter(source, 0, source.length(), dest, 0, 0)); in testFilter_turkish() 98 assertEquals("İ", turkishAllCaps.filter(source, 0, source.length(), dest, 0, 0)); in testFilter_turkish() 103 final String source = "Lj"; // U+01C8 LATIN CAPITAL LETTER L WITH SMALL LETTER J in testFilter_titlecase() local 108 allCaps.filter(source, 0, source.length(), dest, 0, 0)); in testFilter_titlecase() 117 final SpannableString source = new SpannableString(lowerString); in testFilter_greekWithSpans() local 119 source.setSpan(span, 0, 2, Spanned.SPAN_INCLUSIVE_INCLUSIVE); // around "ί" in testFilter_greekWithSpans() [all …]
|
D | StaticLayoutLineBreakingTest.java | 79 private static StaticLayout getStaticLayout(CharSequence source, int width, in getStaticLayout() argument 81 return StaticLayout.Builder.obtain(source, 0, source.length(), sTextPaint, width) in getStaticLayout() 89 private static int[] getBreaks(CharSequence source) { in getBreaks() argument 90 return getBreaks(source, WIDTH, Layout.BREAK_STRATEGY_SIMPLE); in getBreaks() 93 private static int[] getBreaks(CharSequence source, int width, int breakStrategy) { in getBreaks() argument 94 final StaticLayout staticLayout = getStaticLayout(source, width, breakStrategy); in getBreaks() 103 private static void debugLayout(CharSequence source, StaticLayout staticLayout) { in debugLayout() argument 106 Log.i("SLLBTest", "\"" + source.toString() + "\": " in debugLayout() 112 + lineEnd + "]\t" + source.subSequence(lineStart, lineEnd)); in debugLayout() 117 private static void layout(CharSequence source, int[] breaks) { in layout() argument [all …]
|
D | AlteredCharSequenceTest.java | 101 CharSequence source = SOURCE_STR; in testLength() local 103 source = source + "a"; in testLength() 104 mAlteredCharSequence = AlteredCharSequence.make(source, sub, 0, sub.length); in testLength() 105 assertEquals(source.length(), mAlteredCharSequence.length()); in testLength() 113 CharSequence source = SOURCE_STR; in testMake() local 114 mAlteredCharSequence = AlteredCharSequence.make(source, sub, 0, sub.length); in testMake() 116 assertEquals(source.toString(), mAlteredCharSequence.toString()); in testMake() 131 CharSequence source = SOURCE_STR; in testSubSequence() local 132 mAlteredCharSequence = AlteredCharSequence.make(source, sub, 0, sub.length); in testSubSequence() 146 CharSequence source = SOURCE_STR; in testToString() local [all …]
|
D | InputFilter_LengthFilterTest.java | 37 CharSequence source; in testFilter() local 47 source = "abc"; in testFilter() 51 dest.insert(1, source); in testFilter() 55 dest.replace(5, 8, source); in testFilter()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | BitmapDrawableTest.java | 125 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testAccessGravity() local 126 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testAccessGravity() 142 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testBitmapDrawableOpticalInset() local 143 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testBitmapDrawableOpticalInset() 159 Bitmap source = BitmapFactory.decodeResource(mContext.getResources(), R.raw.testimage); in testAccessMipMap() local 160 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testAccessMipMap() 163 assertTrue(source.hasMipMap()); in testAccessMipMap() 166 assertFalse(source.hasMipMap()); in testAccessMipMap() 171 InputStream source = mContext.getResources().openRawResource(R.raw.testimage); in testSetAntiAlias() local 172 BitmapDrawable bitmapDrawable = new BitmapDrawable(source); in testSetAntiAlias() [all …]
|
/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()
|
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-axt/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()
|
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/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | HdmiCecClientWrapper.java | 117 public void sendCecMessage(LogicalAddress source, CecOperand message) throws Exception { in sendCecMessage() argument 118 sendCecMessage(source, targetDevice, message, ""); in sendCecMessage() 125 public void sendCecMessage(LogicalAddress source, LogicalAddress destination, in sendCecMessage() argument 127 sendCecMessage(source, destination, message, ""); in sendCecMessage() 134 public void sendCecMessage(LogicalAddress source, LogicalAddress destination, in sendCecMessage() argument 137 mOutputConsole.write("tx " + source + destination + ":" + message + params); in sendCecMessage() 146 public void sendUserControlPressAndRelease(LogicalAddress source, LogicalAddress destination, in sendUserControlPressAndRelease() argument 148 sendUserControlPress(source, destination, keycode, holdKey); in sendUserControlPressAndRelease() 151 mOutputConsole.write("tx " + source + destination + ":" + in sendUserControlPressAndRelease() 161 public void sendUserControlPress(LogicalAddress source, LogicalAddress destination, in sendUserControlPress() argument [all …]
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/ |
D | TestResult.java | 116 public TestResult createFromParcel(Parcel source) { 117 return new TestResult(source); 124 private TestResult(Parcel source) { in TestResult() argument 125 mPackageName = source.readString(); in TestResult() 126 mComponentName = source.readString(); in TestResult() 127 mMethodName = source.readString(); in TestResult() 128 mStatus = source.readString(); in TestResult() 129 mException = source.readString(); in TestResult() 130 mIntent = source.readParcelable(Object.class.getClassLoader()); in TestResult() 131 mInstantAppPackageInfoExposed = source.readInt() != 0; in TestResult()
|
/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/externalservice/common/src/android/externalservice/common/ |
D | RunningServiceInfo.java | 52 public RunningServiceInfo createFromParcel(Parcel source) { 54 info.uid = source.readInt(); 55 info.pid = source.readInt(); 56 info.packageName = source.readString(); 57 info.zygotePid = source.readInt(); 58 info.zygotePackage = source.readString();
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | BaseInputConnectionTest.java | 196 private static BaseInputConnection createConnectionWithSelection(CharSequence source) { in createConnectionWithSelection() argument 197 final int selectionStart = Selection.getSelectionStart(source); in createConnectionWithSelection() 198 final int selectionEnd = Selection.getSelectionEnd(source); in createConnectionWithSelection() 199 final Editable editable = Editable.Factory.getInstance().newEditable(source); in createConnectionWithSelection() 212 final CharSequence source = InputConnectionTestUtils.formatString(initialState); 213 final BaseInputConnection ic = createConnectionWithSelection(source); 222 final int retrievalLength = source.length(); 290 final CharSequence source = InputConnectionTestUtils.formatString(initialState); 291 final BaseInputConnection ic = createConnectionWithSelection(source); 301 final int retrievalLength = source.length(); [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | EnvironmentTest.java | 63 final String source = fields[0]; in testNoAtime() local 66 if (source.startsWith("/dev/block/") && !options.startsWith("ro,") in testNoAtime() 68 fail("Found device mounted at " + source + " without 'noatime' option, " in testNoAtime() 83 final String source = fields[0]; in testHidePid2() local 86 if (source.equals("proc") && !options.contains("hidepid=2")) { in testHidePid2()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | setelementat.rscript | 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.rscript | 33 int source = 10; 36 rsSetElementAt(array, &source, i); 42 int source = 10; 46 rsSetElementAt(array, &source, xtemp, y);
|