Home
last modified time | relevance | path

Searched refs:s (Results 1 – 25 of 200) sorted by relevance

12345678

/cts/tests/tests/text/src/android/text/cts/
DHtmlTest.java95 Spanned s = Html.fromHtml("<font color=\"#00FF00\">something</font>"); in testColor() local
96 int end = s.length(); in testColor()
97 colors = s.getSpans(start, end, type); in testColor()
101 s = Html.fromHtml("<font color=\"navy\">something</font>"); in testColor()
102 end = s.length(); in testColor()
103 colors = s.getSpans(start, end, type); in testColor()
107 s = Html.fromHtml("<font color=\"gibberish\">something</font>"); in testColor()
108 end = s.length(); in testColor()
109 colors = s.getSpans(start, end, type); in testColor()
114 SpannableString s = new SpannableString("Hello world"); in testParagraphs() local
[all …]
/cts/tests/tests/rscpp/librscpptest/
Drs_jni_allocation.cpp434 for (int s = 8; s <= elemsToTest; s += 2) { in Java_android_cts_rscpp_RSAllocationTest_test1DCopy() local
435 passed &= helperCopy1D<float>(rs, s, 0, s, false, RS_TYPE_FLOAT_32); in Java_android_cts_rscpp_RSAllocationTest_test1DCopy()
436 passed &= helperCopy1D<char>(rs, s, 0, s, false, RS_TYPE_SIGNED_8); in Java_android_cts_rscpp_RSAllocationTest_test1DCopy()
437 passed &= helperCopy1D<short>(rs, s, 0, s, false, RS_TYPE_SIGNED_16); in Java_android_cts_rscpp_RSAllocationTest_test1DCopy()
438 passed &= helperCopy1D<int>(rs, s, 0, s, false, RS_TYPE_SIGNED_32); in Java_android_cts_rscpp_RSAllocationTest_test1DCopy()
439 passed &= helperCopy1D<double>(rs, s, 0, s, false, RS_TYPE_FLOAT_64); in Java_android_cts_rscpp_RSAllocationTest_test1DCopy()
442 for (int off = 0; off < s; off ++) { in Java_android_cts_rscpp_RSAllocationTest_test1DCopy()
443 for (int count = 1; count <= s - off; count ++) { in Java_android_cts_rscpp_RSAllocationTest_test1DCopy()
444 passed &= helperCopy1D<float>(rs, s, off, count, true, RS_TYPE_FLOAT_32); in Java_android_cts_rscpp_RSAllocationTest_test1DCopy()
445 passed &= helperCopy1D<char>(rs, s, off, count, true, RS_TYPE_SIGNED_8); in Java_android_cts_rscpp_RSAllocationTest_test1DCopy()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DComputeTest.java205 private boolean initializeGlobals(ScriptC_primitives s) { in initializeGlobals() argument
206 float pF = s.get_floatTest(); in initializeGlobals()
210 s.set_floatTest(2.99f); in initializeGlobals()
212 double pD = s.get_doubleTest(); in initializeGlobals()
216 s.set_doubleTest(3.05); in initializeGlobals()
218 byte pC = s.get_charTest(); in initializeGlobals()
222 s.set_charTest((byte)-16); in initializeGlobals()
224 short pS = s.get_shortTest(); in initializeGlobals()
228 s.set_shortTest((short)-32); in initializeGlobals()
230 int pI = s.get_intTest(); in initializeGlobals()
[all …]
DrsAllocationCopyTest.java45 ScriptC_rsallocationcopy s = new ScriptC_rsallocationcopy(mRS); in test_rsAllocationCopy1D_Byte() local
46 s.set_aIn1D(aIn); in test_rsAllocationCopy1D_Byte()
47 s.set_aOut1D(aOut); in test_rsAllocationCopy1D_Byte()
48 s.set_xOff(offset); in test_rsAllocationCopy1D_Byte()
49 s.set_xCount(count); in test_rsAllocationCopy1D_Byte()
50 s.invoke_test1D(); in test_rsAllocationCopy1D_Byte()
92 ScriptC_rsallocationcopy s = new ScriptC_rsallocationcopy(mRS); in test_rsAllocationCopy1D_Short() local
93 s.set_aIn1D(aIn); in test_rsAllocationCopy1D_Short()
94 s.set_aOut1D(aOut); in test_rsAllocationCopy1D_Short()
95 s.set_xOff(offset); in test_rsAllocationCopy1D_Short()
[all …]
Dstruct_pad.rs7 } s;
11 _RS_ASSERT(s.i == 7);
12 _RS_ASSERT(s.f4.x == 1.0f);
13 _RS_ASSERT(s.f4.y == 2.0f);
14 _RS_ASSERT(s.f4.z == 3.0f);
15 _RS_ASSERT(s.f4.w == 4.0f);
16 _RS_ASSERT(s.j == 9);
/cts/apps/CameraITS/tools/
Dvalidate_scene.py29 for s in sys.argv[1:]:
30 if s[:7] == "camera=" and len(s) > 7:
31 camera_id = s[7:]
32 elif s[:4] == "out=" and len(s) > 4:
33 out_path = s[4:]
34 elif s[:6] == "scene=" and len(s) > 6:
35 scene_desc = s[6:]
Dget_camera_ids.py24 for s in sys.argv[1:]:
25 if s[:4] == "out=" and len(s) > 4:
26 out_path = s[4:]
/cts/tests/tests/content/src/android/content/cts/
DSearchRecentSuggestionsProviderTest.java47 final MockSRSProvider s = new MockSRSProvider(); in testSearchRecentSuggestionsProvider() local
50 assertFalse(s.isOnCreateCalled()); in testSearchRecentSuggestionsProvider()
51 s.attachInfo(mProviderContext, null); in testSearchRecentSuggestionsProvider()
52 assertTrue(s.isOnCreateCalled()); in testSearchRecentSuggestionsProvider()
54 assertNotNull(s.getType(TEST_URI)); in testSearchRecentSuggestionsProvider()
60 Cursor c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
63 s.insert(TEST_URI, new ContentValues()); in testSearchRecentSuggestionsProvider()
64 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
67 s.insert(TEST_URI, new ContentValues()); in testSearchRecentSuggestionsProvider()
68 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
[all …]
/cts/tests/tests/net/src/android/net/ipv6/cts/
DPingTest.java90 FileDescriptor s = Os.socket(AF_INET6, SOCK_DGRAM, IPPROTO_ICMPV6); in createPingSocket() local
91 Os.setsockoptTimeval(s, SOL_SOCKET, SO_RCVTIMEO, StructTimeval.fromMillis(100)); in createPingSocket()
92 return s; in createPingSocket()
98 private void sendPing(FileDescriptor s, in sendPing() argument
104 int ret = Os.sendto(s, ByteBuffer.wrap(packet), 0, address, port); in sendPing()
111 private void checkResponse(FileDescriptor s, InetAddress dest, in checkResponse() argument
119 bytesRead = Os.recvfrom(s, responseBuffer, 0, from); in checkResponse()
128 bytesRead = Os.read(s, responseBuffer); in checkResponse()
141 int id = ((InetSocketAddress) Os.getsockname(s)).getPort(); in checkResponse()
162 FileDescriptor s = createPingSocket(); in testLoopbackPing() local
[all …]
/cts/apps/CtsVerifier/jni/verifier/
Dcom_android_cts_verifier_os_FileUtils.cpp45 struct stat s; in com_android_cts_verifier_os_FileUtils_getFileStatus() local
47 int res = statLinks == true ? lstat(pathStr, &s) : stat(pathStr, &s); in com_android_cts_verifier_os_FileUtils_getFileStatus()
52 env->SetIntField(fileStatus, gFileStatusDevFieldID, s.st_dev); in com_android_cts_verifier_os_FileUtils_getFileStatus()
53 env->SetIntField(fileStatus, gFileStatusInoFieldID, s.st_ino); in com_android_cts_verifier_os_FileUtils_getFileStatus()
54 env->SetIntField(fileStatus, gFileStatusModeFieldID, s.st_mode); in com_android_cts_verifier_os_FileUtils_getFileStatus()
55 env->SetIntField(fileStatus, gFileStatusNlinkFieldID, s.st_nlink); in com_android_cts_verifier_os_FileUtils_getFileStatus()
56 env->SetIntField(fileStatus, gFileStatusUidFieldID, s.st_uid); in com_android_cts_verifier_os_FileUtils_getFileStatus()
57 env->SetIntField(fileStatus, gFileStatusGidFieldID, s.st_gid); in com_android_cts_verifier_os_FileUtils_getFileStatus()
58 env->SetLongField(fileStatus, gFileStatusSizeFieldID, s.st_size); in com_android_cts_verifier_os_FileUtils_getFileStatus()
59 env->SetIntField(fileStatus, gFileStatusBlksizeFieldID, s.st_blksize); in com_android_cts_verifier_os_FileUtils_getFileStatus()
[all …]
/cts/apps/CameraITS/tests/scene1/
Dtest_latching.py40 e, s = its.target.get_target_exposure_combos(cam)["midExposureTime"]
48 its.objects.manual_capture_request(s, e, True, props),
49 its.objects.manual_capture_request(s, e, True, props),
50 its.objects.manual_capture_request(s*2,e, True, props),
51 its.objects.manual_capture_request(s*2,e, True, props),
52 its.objects.manual_capture_request(s, e, True, props),
53 its.objects.manual_capture_request(s, e, True, props),
54 its.objects.manual_capture_request(s, e*2, True, props),
55 its.objects.manual_capture_request(s, e, True, props),
56 its.objects.manual_capture_request(s*2,e, True, props),
[all …]
Dtest_linearity.py53 e,s = its.target.get_target_exposure_combos(cam)["midSensitivity"]
54 s /= 2
56 sensitivities = [s*1.0/3.0, s*2.0/3.0, s, s*4.0/3.0, s*5.0/3.0]
57 sensitivities = [s for s in sensitivities
58 if s > sens_range[0] and s < sens_range[1]]
Dtest_crop_region_raw.py66 e, s = its.target.get_target_exposure_combos(cam)["minSensitivity"]
67 req = its.objects.manual_capture_request(s,e, True, props)
80 for s, cap, cr_expected, err_delta in [
88 its.image.write_image(img, "%s_%s.jpg" % (NAME, s))
89 imgs[s] = img
96 print "Crop reported on %s: (%d,%d %dx%d)" % (s, x, y, w, h)
115 for s,img in imgs.iteritems():
117 if s in ["yuv_full", "yuv_crop"]:
120 imgs2[s] = img
132 for s,img in imgs2.iteritems():
[all …]
Dtest_raw_burst_sensitivity.py53 for s in range(sens_min, sens_max, sens_step):
54 e = int(s_e_prod / float(s))
55 req = its.objects.manual_capture_request(s, e)
57 settings.append((s,e))
63 (s,e) = settings[i]
73 its.image.write_image(img, "%s_s=%05d_var=%f.jpg" % (NAME,s,var))
74 print "s=%d, e=%d, var=%e"%(s,e,var)
/cts/libs/deviceutil/jni/
Dandroid_cts_FileUtils.cpp53 struct stat s; in android_cts_FileUtils_getFileStatus() local
55 int res = statLinks == true ? lstat(pathStr, &s) : stat(pathStr, &s); in android_cts_FileUtils_getFileStatus()
60 env->SetIntField(fileStatus, gFileStatusDevFieldID, s.st_dev); in android_cts_FileUtils_getFileStatus()
61 env->SetIntField(fileStatus, gFileStatusInoFieldID, s.st_ino); in android_cts_FileUtils_getFileStatus()
62 env->SetIntField(fileStatus, gFileStatusModeFieldID, s.st_mode); in android_cts_FileUtils_getFileStatus()
63 env->SetIntField(fileStatus, gFileStatusNlinkFieldID, s.st_nlink); in android_cts_FileUtils_getFileStatus()
64 env->SetIntField(fileStatus, gFileStatusUidFieldID, s.st_uid); in android_cts_FileUtils_getFileStatus()
65 env->SetIntField(fileStatus, gFileStatusGidFieldID, s.st_gid); in android_cts_FileUtils_getFileStatus()
66 env->SetLongField(fileStatus, gFileStatusSizeFieldID, s.st_size); in android_cts_FileUtils_getFileStatus()
67 env->SetIntField(fileStatus, gFileStatusBlksizeFieldID, s.st_blksize); in android_cts_FileUtils_getFileStatus()
[all …]
/cts/apps/CameraITS/tests/dng_noise_model/
Ddng_noise_model.py115 s = sens_min
120 while s <= sens_max + 1:
121 print "ISO %d" % round(s)
124 plt_s.set_title("ISO %d" % round(s))
131 e = int(math.pow(2, b)*auto_e/float(s))
132 req = its.objects.manual_capture_request(round(s), e)
171 measured_models.append([round(s), S, O])
172 print "Sensitivity %d: %e*y + %e (R=%f)" % (round(s), S, O, R)
175 samples.extend([(round(s), mean, var) for (mean, var) in samples_s])
183 fig.savefig("%s_samples_iso%04d.png" % (NAME, round(s)))
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java94 Shape s = mShape.getShape(); in setWidth() local
95 s.resize(width, s.getHeight()); in setWidth()
103 Shape s = mShape.getShape(); in setHeight() local
104 s.resize(s.getWidth(), height); in setHeight()
107 public ShapeHolder(ShapeDrawable s) { in ShapeHolder() argument
108 mShape = s; in ShapeHolder()
/cts/common/util/src/com/android/compatibility/common/util/
DKeyValueArgsParser.java33 for (String s : args) { in parse()
35 if (!s.startsWith("-")) { in parse()
36 throw new RuntimeException("Invalid Key: " + s); in parse()
38 key = s; in parse()
40 map.put(key, s); in parse()
/cts/tests/tests/os/jni/seccomp-tests/
Dlocal-modifications-android.diff6 if (!s->tid)
8 if (pthread_kill(s->tid, 0)) {
9 - pthread_cancel(s->tid);
10 + //pthread_cancel(s->tid); // ANDROID
11 pthread_join(s->tid, &status);
44 - fprintf(TH_LOG_STREAM, "%s:%d:%s:" fmt "\n", \
45 + __android_log_print(ANDROID_LOG_ERROR, "SeccompBpfTest-KernelUnit", "%s:%d:%s:" fmt "\n", \
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DHceUtils.java53 public static byte[] hexStringToBytes(String s) { in hexStringToBytes() argument
54 if (s == null || s.length() == 0) return null; in hexStringToBytes()
55 int len = s.length(); in hexStringToBytes()
57 s = '0' + s; in hexStringToBytes()
62 data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) in hexStringToBytes()
63 + Character.digit(s.charAt(i+1), 16)); in hexStringToBytes()
/cts/tests/tests/telephony/src/android/telephony/cts/
DServiceStateTest.java76 private void checkOffStatus(ServiceState s) { in checkOffStatus() argument
77 assertFalse(s.getRoaming()); in checkOffStatus()
78 assertNull(s.getOperatorAlphaLong()); in checkOffStatus()
79 assertNull(s.getOperatorAlphaShort()); in checkOffStatus()
80 assertNull(s.getOperatorNumeric()); in checkOffStatus()
81 assertFalse(s.getIsManualSelection()); in checkOffStatus()
86 protected void copyFrom(ServiceState s) { in copyFrom() argument
87 super.copyFrom(s); in copyFrom()
/cts/tests/tests/permission/jni/
Dandroid_permission_cts_FileUtils.cpp57 struct stat s; in android_permission_cts_FileUtils_getFileStatus() local
59 int res = statLinks == true ? lstat(cPath.c_str(), &s) in android_permission_cts_FileUtils_getFileStatus()
60 : stat(cPath.c_str(), &s); in android_permission_cts_FileUtils_getFileStatus()
65 env->SetIntField(fileStatus, gFileStatusDevFieldID, s.st_dev); in android_permission_cts_FileUtils_getFileStatus()
66 env->SetIntField(fileStatus, gFileStatusInoFieldID, s.st_ino); in android_permission_cts_FileUtils_getFileStatus()
67 env->SetIntField(fileStatus, gFileStatusModeFieldID, s.st_mode); in android_permission_cts_FileUtils_getFileStatus()
68 env->SetIntField(fileStatus, gFileStatusNlinkFieldID, s.st_nlink); in android_permission_cts_FileUtils_getFileStatus()
69 env->SetIntField(fileStatus, gFileStatusUidFieldID, s.st_uid); in android_permission_cts_FileUtils_getFileStatus()
70 env->SetIntField(fileStatus, gFileStatusGidFieldID, s.st_gid); in android_permission_cts_FileUtils_getFileStatus()
71 env->SetLongField(fileStatus, gFileStatusSizeFieldID, s.st_size); in android_permission_cts_FileUtils_getFileStatus()
[all …]
/cts/tools/signature-tools/src/signature/model/
DModifier.java42 StringBuilder s = new StringBuilder(); in toString() local
46 s.append(modifier.printableName); in toString()
47 s.append(" "); in toString()
51 return s.toString(); in toString()
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DMonkeyTest.java43 Scanner s = new Scanner(logs); in assertIsUserAMonkey() local
45 while (s.hasNextLine()) { in assertIsUserAMonkey()
46 String line = s.nextLine(); in assertIsUserAMonkey()
53 s.close(); in assertIsUserAMonkey()
/cts/libs/vogar-expect/src/vogar/util/
DLog.java29 public static void verbose(String s) { in verbose() argument
31 sLogoutput.verbose(s); in verbose()
50 public static void info(String s) { in info() argument
52 sLogoutput.info(s); in info()

12345678