Home
last modified time | relevance | path

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

12345678910>>...91

/cts/tests/tests/text/src/android/text/method/cts/
DDigitsKeyListenerTest.java84 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 …]
DNumberKeyListenerTest.java57 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/
DColorSpaceTest.java415 float[] source = { 0.75f, 0.5f, 0.25f }; in testRGBtoXYZ() local
418 float[] r1 = cs.toXyz(source[0], source[1], source[2]); in testRGBtoXYZ()
421 assertArrayNotEquals(source, r1, 1e-5f); in testRGBtoXYZ()
424 float[] r3 = { source[0], source[1], source[2] }; in testRGBtoXYZ()
434 float[] source = { 0.3012f, 0.2679f, 0.0840f }; in testXYZtoRGB() local
437 float[] r1 = cs.fromXyz(source[0], source[1], source[2]); in testXYZtoRGB()
440 assertArrayNotEquals(source, r1, 1e-5f); in testXYZtoRGB()
443 float[] r3 = { source[0], source[1], source[2] }; in testXYZtoRGB()
480 float[] source = { 1.0f, 0.5f, 0.0f }; in testConnector() local
483 float[] r1 = connector.transform(source[0], source[1], source[2]); in testConnector()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DAbsSavedStateTest.java65 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 …]
DView_BaseSavedStateTest.java64 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/libs/deviceutillegacy/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java41 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/leanbackjank/src/android/leanbackjank/cts/
DCtsJankTestBase.java37 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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFileCopyHelper.java64 InputStream source = mContext.getResources().openRawResource(resId); in copy() local
66 copyFile(source, target); in copy()
72 InputStream source = new FileInputStream(res); in copyToExternalStorage() local
74 copyFile(source, target); in copyToExternalStorage()
78 InputStream source = mContext.getResources().openRawResource(resId); in copyToExternalStorage() local
80 copyFile(source, target); in copyToExternalStorage()
83 private void copyFile(InputStream source, OutputStream target) throws IOException { in copyFile() argument
86 for (int len = source.read(buffer); len > 0; len = source.read(buffer)) { in copyFile()
90 if (source != null) { in copyFile()
91 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/
DInputFilter_AllCapsTest.java45 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 …]
DHtmlTest.java60 final String source = "<b>hello</b>"; in testSingleTagOnWhileString() local
62 Spanned spanned = Html.fromHtml(source); in testSingleTagOnWhileString()
64 spanned = Html.fromHtml(source, null, null); in testSingleTagOnWhileString()
83 final String source = "Hello <b>b<i>bi</b>i</i>"; in testBadHtml() local
85 Spanned spanned = Html.fromHtml(source); in testBadHtml()
87 spanned = Html.fromHtml(source, null, null); in testBadHtml()
102 final String source = "&copy; &gt; &lt"; in testSymbols() local
105 String spanned = Html.fromHtml(source).toString(); in testSymbols()
107 spanned = Html.fromHtml(source, null, null).toString(); in testSymbols()
453 String source = String.format("Hello <%s>struck</%s> world", tag, tag); in testMarkupFromHtml() local
[all …]
DAlteredCharSequenceTest.java101 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 …]
DStaticLayoutLineBreakingTest.java79 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 …]
DInputFilter_LengthFilterTest.java37 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/hostsidetests/securitybulletin/securityPatch/CVE-2017-13194/
Dpoc.cpp84 unsigned char *source = (unsigned char *)memalign(16, (ENCODE_WIDTH * ENCODE_HEIGHT * 3 / 2)); in main() local
85 if (!source) { in main()
88 memset(source, 0, (ENCODE_WIDTH * ENCODE_HEIGHT * 3 / 2)); in main()
95 free(source); in main()
98 (*func_ptr4)(&raw_frame, VPX_IMG_FMT_I420, ENCODE_WIDTH, ENCODE_HEIGHT, 1, source); in main()
105 free(source); in main()
112 free(source); in main()
119 free(source); in main()
125 free(source); in main()
/cts/tests/tests/externalservice/common/src/android/externalservice/common/
DRunningServiceInfo.java52 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/tests/graphics/src/android/graphics/drawable/cts/
DBitmapDrawableTest.java125 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/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/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/
DTestResult.java116 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/hostsidetests/hdmicec/src/android/hdmicec/cts/
DHdmiCecClientWrapper.java223 public void sendCecMessage(LogicalAddress source, CecOperand message) in sendCecMessage() argument
225 sendCecMessage(source, targetDevice, message, ""); in sendCecMessage()
232 public void sendCecMessage(LogicalAddress source, CecOperand message, String params) in sendCecMessage() argument
234 sendCecMessage(source, targetDevice, message, params); in sendCecMessage()
242 LogicalAddress source, LogicalAddress destination, CecOperand message) in sendCecMessage() argument
244 sendCecMessage(source, destination, message, ""); in sendCecMessage()
251 public void broadcastActiveSource(LogicalAddress source) throws CecClientWrapperException { in broadcastActiveSource() argument
252 int sourcePa = (source == selfDevice) ? physicalAddress : 0xFFFF; in broadcastActiveSource()
254 source, in broadcastActiveSource()
264 public void broadcastActiveSource(LogicalAddress source, int physicalAddressOfActiveDevice) in broadcastActiveSource() argument
[all …]
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/common/
DHdmiCecInvalidMessagesTest.java63 private LogicalAddress source; field in HdmiCecInvalidMessagesTest
75 source = (hasDeviceType(HdmiCecConstants.CEC_DEVICE_TYPE_TV)) ? LogicalAddress.RECORDER_1 in setupLogicalAddresses()
116 source, in cect_12_1_BroadcastReceivedAsDirectlyAddressed()
134 hdmiCecClient.sendCecMessage(source, LogicalAddress.BROADCAST, CecOperand.GET_CEC_VERSION); in cect_12_2_DirectlyAddressedReceivedAsBroadcast_getCecVersion()
135 hdmiCecClient.checkOutputDoesNotContainMessage(source, CecOperand.CEC_VERSION); in cect_12_2_DirectlyAddressedReceivedAsBroadcast_getCecVersion()
148 source, LogicalAddress.BROADCAST, CecOperand.GIVE_PHYSICAL_ADDRESS); in cect_12_2_DirectlyAddressedReceivedAsBroadcast_givePhysicalAddress()
162 source, LogicalAddress.BROADCAST, CecOperand.GIVE_POWER_STATUS); in cect_12_2_DirectlyAddressedReceivedAsBroadcast_givePowerStatus()
163 hdmiCecClient.checkOutputDoesNotContainMessage(source, CecOperand.REPORT_POWER_STATUS); in cect_12_2_DirectlyAddressedReceivedAsBroadcast_givePowerStatus()
176 source, LogicalAddress.BROADCAST, CecOperand.GIVE_DEVICE_VENDOR_ID); in cect_12_2_DirectlyAddressedReceivedAsBroadcast_giveDeviceVendorId()
189 hdmiCecClient.sendCecMessage(source, LogicalAddress.BROADCAST, CecOperand.GIVE_OSD_NAME); in cect_12_2_DirectlyAddressedReceivedAsBroadcast_giveOsdName()
[all …]
DHdmiCecSystemStandbyTest.java84 for (LogicalAddress source : mLogicalAddresses) { in cect_HandleBroadcastStandby()
85 if (!hasLogicalAddress(source)) { in cect_HandleBroadcastStandby()
87 hdmiCecClient.sendCecMessage(source, LogicalAddress.BROADCAST, CecOperand.STANDBY); in cect_HandleBroadcastStandby()
101 for (LogicalAddress source : mLogicalAddresses) { in cect_HandleAddressedStandby()
102 if (!hasLogicalAddress(source)) { in cect_HandleAddressedStandby()
104 hdmiCecClient.sendCecMessage(source, CecOperand.STANDBY); in cect_HandleAddressedStandby()
DHdmiCecPowerStatusTest.java303 LogicalAddress source = hasDeviceType(HdmiCecConstants.CEC_DEVICE_TYPE_TV) in cect_hf4_6_8_userControlPressed_powerOn() local
310 hdmiCecClient.sendUserControlPressAndRelease(source, operand, false); in cect_hf4_6_8_userControlPressed_powerOn()
332 LogicalAddress source = hasDeviceType(HdmiCecConstants.CEC_DEVICE_TYPE_TV) in cect_hf4_6_10_userControlPressed_powerOff() local
340 hdmiCecClient.sendUserControlPressAndRelease(source, operand, false); in cect_hf4_6_10_userControlPressed_powerOff()
417 LogicalAddress source = hdmiCecClient.getSelfDevice(); in cect_hf_4_6_28_testPowerUcpHandling() local
419 source, HdmiCecConstants.CEC_KEYCODE_POWER_TOGGLE_FUNCTION, false); in cect_hf_4_6_28_testPowerUcpHandling()
424 source, HdmiCecConstants.CEC_KEYCODE_POWER_TOGGLE_FUNCTION, false); in cect_hf_4_6_28_testPowerUcpHandling()
429 source, HdmiCecConstants.CEC_KEYCODE_POWER_ON_FUNCTION, false); in cect_hf_4_6_28_testPowerUcpHandling()
436 source, HdmiCecConstants.CEC_KEYCODE_POWER_OFF_FUNCTION, false); in cect_hf_4_6_28_testPowerUcpHandling()
443 source, HdmiCecConstants.CEC_KEYCODE_POWER_OFF_FUNCTION, false); in cect_hf_4_6_28_testPowerUcpHandling()
[all …]
/cts/tests/tests/rscpp/librscpptest/
Dsetelementat.rscript33 int source = 10;
36 rsSetElementAt(array, &source, i);
42 int source = 10;
46 rsSetElementAt(array, &source, xtemp, y);
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsetelementat.rscript34 int source = 10;
37 rsSetElementAt(array, &source, i);
43 int source = 10;
47 rsSetElementAt(array, &source, xtemp, y);

12345678910>>...91