/cts/tests/tests/text/src/android/text/cts/ |
D | HtmlTest.java | 111 Spanned s = Html.fromHtml("<font color=\"#00FF00\">something</font>"); in testColor() local 112 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testColor() 115 s = Html.fromHtml("<font color=\"navy\">NAVY</font>"); in testColor() 116 colors = s.getSpans(0, s.length(), type); in testColor() 119 s = Html.fromHtml("<font color=\"gibberish\">something</font>"); in testColor() 120 colors = s.getSpans(0, s.length(), type); in testColor() 124 s = Html.fromHtml("<font color=\"green\">GREEN</font>"); in testColor() 125 colors = s.getSpans(0, s.length(), type); in testColor() 128 s = Html.fromHtml("<font color=\"gray\">GRAY</font>"); in testColor() 129 colors = s.getSpans(0, s.length(), type); in testColor() [all …]
|
/cts/tests/tests/slice/src/android/slice/cts/ |
D | SliceBuilderTest.java | 52 Slice s = new Slice.Builder(BASE_URI, SPEC) in testInt() local 55 assertEquals(BASE_URI, s.getUri()); in testInt() 56 assertEquals(1, s.getItems().size()); in testInt() 58 SliceItem item = s.getItems().get(0); in testInt() 64 verifySlice(s); in testInt() 70 Slice s = new Slice.Builder(BASE_URI, SPEC) in testIcon() local 73 assertEquals(BASE_URI, s.getUri()); in testIcon() 74 assertEquals(1, s.getItems().size()); in testIcon() 76 SliceItem item = s.getItems().get(0); in testIcon() 82 verifySlice(s); in testIcon() [all …]
|
D | SliceBindingTest.java | 79 Slice s = mSliceManager.bindSlice(BASE_URI, in testSliceUri() local 81 assertEquals(BASE_URI, s.getUri()); in testSliceUri() 88 Slice s = mSliceManager.bindSlice(uri, Collections.emptySet()); in testSubSlice() local 89 assertEquals(uri, s.getUri()); in testSubSlice() 90 assertEquals(1, s.getItems().size()); in testSubSlice() 92 SliceItem item = s.getItems().get(0); in testSubSlice() 104 Slice s = mSliceManager.bindSlice(uri, in testText() local 106 assertEquals(uri, s.getUri()); in testText() 107 assertEquals(1, s.getItems().size()); in testText() 109 SliceItem item = s.getItems().get(0); in testText() [all …]
|
/cts/tests/tests/rscpp/librscpptest/ |
D | rs_jni_allocation.cpp | 434 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/ |
D | ComputeTest.java | 205 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 …]
|
D | RsAllocationCopyTest.java | 45 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 …]
|
D | SingleSourceAllocationTest.java | 30 private ScriptC_single_source_alloc s; field in SingleSourceAllocationTest 40 s = new ScriptC_single_source_alloc(mRS); in setUp() 41 s.set_gDimX(dimX); in setUp() 42 s.set_gDimY(dimY); in setUp() 43 s.set_gDimZ(dimZ); in setUp() 44 s.set_gStart(start); in setUp() 49 s.destroy(); in tearDown() 54 s.invoke_TestElementCreation(); in testElementCreation() 60 s.invoke_TestTypeCreation(); in testTypeCreation() 66 s.invoke_TestAllocationCreationWithUsage(); in testAllocationCreationWithUsage() [all …]
|
D | SingleSourceForEachTest.java | 38 private ScriptC_single_source_script s; field in SingleSourceForEachTest 56 s = new ScriptC_single_source_script(mRS); in setUp() 73 s.destroy(); in tearDown() 78 s.forEach_foo(testInputAlloc, baselineOutputAlloc); in testSingleInputKernelLaunch() 79 s.invoke_testSingleInput(testInputAlloc, testOutputAlloc); in testSingleInputKernelLaunch() 86 s.forEach_goo(testInputAlloc, testInputAlloc2, in testMultiInputKernelLaunch() 88 s.invoke_testMultiInput(testInputAlloc, testInputAlloc2, in testMultiInputKernelLaunch() 105 s.forEach_foo(testInputAlloc, baselineOutputAlloc, sc); in testKernelLaunchWithOptions() 106 s.invoke_testLaunchOptions(testInputAlloc, testOutputAlloc, X, Y); in testKernelLaunchWithOptions() 119 s.set_gAllocOut(baselineOutputAlloc); in testAllocationlessKernelLaunch() [all …]
|
D | struct_pad.rscript | 7 } 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/ |
D | run_sensor_fusion_box.py | 69 for s in sys.argv[1:]: 70 if s[:7] == 'camera=' and len(s) > 7: 71 camera_id = s[7:] 72 if s[:4] == 'fps=' and len(s) > 4: 73 fps = s[4:] 74 elif s[:9] == 'img_size=' and len(s) > 9: 75 img_size = s[9:] 76 elif s[:9] == 'num_runs=' and len(s) > 9: 77 num_runs = int(s[9:]) 78 elif s[:8] == 'rotator=' and len(s) > 8: [all …]
|
D | load_scene.py | 28 for s in sys.argv[1:]: 29 if s[:6] == 'scene=' and len(s) > 6: 30 scene = s[6:] 31 elif s[:7] == 'screen=' and len(s) > 7: 32 screen_id = s[7:] 33 elif s[:5] == 'dist=' and len(s) > 5: 34 chart_distance = float(re.sub('cm', '', s[5:])) 35 elif s[:4] == 'fov=' and len(s) > 4: 36 camera_fov = float(s[4:])
|
D | validate_scene.py | 30 for s in sys.argv[1:]: 31 if s[:7] == "camera=" and len(s) > 7: 32 camera_id = s[7:] 33 elif s[:4] == "out=" and len(s) > 4: 34 out_path = s[4:] 35 elif s[:6] == "scene=" and len(s) > 6: 36 scene_desc = s[6:] 37 elif s[:5] == "doAF=" and len(s) > 5: 38 do_af = s[5:] == "True"
|
D | run_all_tests.py | 249 for s in list(sys.argv[1:]): 250 if s[:7] == "camera=" and len(s) > 7: 251 camera_ids = s[7:].split(',') 253 one_camera_argv.remove(s) 254 elif s[:7] == "scenes=" and len(s) > 7: 255 scenes = s[7:].split(',') 256 elif s[:6] == 'chart=' and len(s) > 6: 257 chart_host_id = s[6:] 258 elif s[:7] == 'result=' and len(s) > 7: 259 result_device_id = s[7:] [all …]
|
D | run_parallel_tests.py | 43 for s in sys.argv[1:]: 44 if s[:8] == "device0=" and len(s) > 8: 45 device0_id = s[8:] 46 elif s[:8] == "device1=" and len(s) > 8: 47 device1_id = s[8:] 48 elif s[:7] == "scenes=" and len(s) > 7: 49 scenes = s[7:].split(',') 50 elif s[:6] == 'chart=' and len(s) > 6: 51 chart_host_id = s[6:]
|
/cts/tests/security/src/android/keystore/cts/ |
D | Attestation.java | 137 StringBuilder s = new StringBuilder(); in toString() local 138 s.append("Attest version: " + attestationVersion); in toString() 139 s.append("\nAttest security: " + securityLevelToString(attestationSecurityLevel)); in toString() 140 s.append("\nKM version: " + keymasterVersion); in toString() 141 s.append("\nKM security: " + securityLevelToString(keymasterSecurityLevel)); in toString() 143 s.append("\nChallenge"); in toString() 146 s.append(": [" + stringChallenge + "]"); in toString() 148 s.append(" (base64): [" + BaseEncoding.base64().encode(attestationChallenge) + "]"); in toString() 151 s.append("\nUnique ID (base64): [" + BaseEncoding.base64().encode(uniqueId) + "]"); in toString() 154 s.append("\n-- SW enforced --"); in toString() [all …]
|
D | AuthorizationList.java | 620 StringBuilder s = new StringBuilder(); in toString() local 623 s.append("\nAlgorithm: ").append(algorithmToString(algorithm)); in toString() 627 s.append("\nKeySize: ").append(keySize); in toString() 631 s.append("\nPurposes: ").append(purposesToString(purposes)); in toString() 635 s.append("\nDigests: ").append(digestsToString(digests)); in toString() 639 s.append("\nPadding modes: ").append(paddingModesToString(paddingModes)); in toString() 643 s.append("\nEC Curve: ").append(ecCurveAsString()); in toString() 648 s.append(label).append(rsaPublicExponent); in toString() 652 s.append("\nActive: ").append(formatDate(activeDateTime)); in toString() 656 s.append("\nOrigination expire: ").append(formatDate(originationExpireDateTime)); in toString() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | SearchRecentSuggestionsProviderTest.java | 46 final MockSRSProvider s = new MockSRSProvider(); in testSearchRecentSuggestionsProvider() local 49 assertFalse(s.isOnCreateCalled()); in testSearchRecentSuggestionsProvider() 50 s.attachInfo(mProviderContext, null); in testSearchRecentSuggestionsProvider() 51 assertTrue(s.isOnCreateCalled()); in testSearchRecentSuggestionsProvider() 53 assertNotNull(s.getType(TEST_URI)); in testSearchRecentSuggestionsProvider() 59 Cursor c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider() 62 s.insert(TEST_URI, new ContentValues()); in testSearchRecentSuggestionsProvider() 63 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider() 66 s.insert(TEST_URI, new ContentValues()); in testSearchRecentSuggestionsProvider() 67 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider() [all …]
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | BatteryStatsIncidentTest.java | 109 private static void testSystemProto(SystemProto s) throws Exception { in testSystemProto() argument 111 assertNotNull(s); in testSystemProto() 113 SystemProto.Battery b = s.getBattery(); in testSystemProto() 142 SystemProto.BatteryDischarge bd = s.getBatteryDischarge(); in testSystemProto() 165 assertTrue(-1 <= s.getChargeTimeRemainingMs()); in testSystemProto() 166 assertTrue(-1 <= s.getDischargeTimeRemainingMs()); in testSystemProto() 168 for (SystemProto.BatteryLevelStep bls : s.getChargeStepList()) { in testSystemProto() 171 for (SystemProto.BatteryLevelStep bls : s.getDischargeStepList()) { in testSystemProto() 175 for (SystemProto.DataConnection dc : s.getDataConnectionList()) { in testSystemProto() 184 testControllerActivityProto(s.getGlobalBluetoothController()); in testSystemProto() [all …]
|
/cts/tests/tests/net/src/android/net/ipv6/cts/ |
D | PingTest.java | 90 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/CameraITS/tests/scene1/ |
D | test_latching.py | 42 e, s = its.target.get_target_exposure_combos(cam)['midExposureTime'] 50 its.objects.manual_capture_request(s, e, 0.0, True, props), 51 its.objects.manual_capture_request(s, e, 0.0, True, props), 52 its.objects.manual_capture_request(s*2, e, 0.0, True, props), 53 its.objects.manual_capture_request(s*2, e, 0.0, True, props), 54 its.objects.manual_capture_request(s, e, 0.0, True, props), 55 its.objects.manual_capture_request(s, e, 0.0, True, props), 56 its.objects.manual_capture_request(s, e*2, 0.0, True, props), 57 its.objects.manual_capture_request(s, e, 0.0, True, props), 58 its.objects.manual_capture_request(s*2, e, 0.0, True, props), [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2014-3145/ |
D | poc.c | 63 static int send_receive_packet(int s[2], const void* pkt, int len) in send_receive_packet() 68 ret = send(s[1], pkt, len, 0); in send_receive_packet() 73 ret = recv(s[0], tmp, len, MSG_DONTWAIT); in send_receive_packet() 93 int s[2], ret; in main() local 95 ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, s); in main() 100 ret = setsockopt(s[0], SOL_SOCKET, SO_ATTACH_FILTER, in main() 106 ret = send_receive_packet(s, &chksz, sizeof(chksz)); in main() 112 ret = setsockopt(s[0], SOL_SOCKET, SO_ATTACH_FILTER, in main() 118 ret = send_receive_packet(s, &chksz, sizeof(chksz)); in main() 124 ret = setsockopt(s[0], SOL_SOCKET, SO_ATTACH_FILTER, in main() [all …]
|
/cts/common/device-side/util/jni/ |
D | android_cts_FileUtils.cpp | 53 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/pymodules/its/ |
D | objects.py | 177 out_sizes = [s for s in out_sizes if 178 s[0] <= max_size[0] and s[1] <= max_size[1]] 181 out_sizes = [s for s in out_sizes if 182 abs(ar - s[0] / float(s[1])) <= AR_TOLERANCE] 183 out_sizes.sort(reverse=True, key=lambda s: s[0]) # 1st pass, sort by width 184 out_sizes.sort(reverse=True, key=lambda s: s[0]*s[1]) # sort by area 257 s = min(props['android.sensor.info.sensitivityRange']) 259 req = manual_capture_request(s,e)
|
D | device.py | 192 for s in sys.argv[1:]: 193 if s[:6] == "reboot": 195 if len(s) > 7 and s[6] == "=": 196 duration = int(s[7:]) 281 for s in sys.argv[1:]: 282 if s[:7] == "camera=" and len(s) > 7: 283 camera_ids = s[7:].split(',') 581 formats = [s if s != 'jpg' else 'jpeg' for s in formats] 769 formats = [s if s != "jpg" else "jpeg" for s in formats] 784 for i,s in enumerate(cmd["outputSurfaces"]): [all …]
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 99 Stats s = evaluateLightBarBitmap(bitmap, Color.RED /* background */, 0); in testLightStatusBarIcons() local 100 assertLightStats(bitmap, s); in testLightStatusBarIcons() 121 Stats s = evaluateLightBarBitmap(bitmap, Color.RED /* background */, activity.getBottom()); in testLightNavigationBar() local 122 assertLightStats(bitmap, s); in testLightNavigationBar() 154 private void assertLightStats(Bitmap bitmap, Stats s) { in assertLightStats() argument 157 assumeNavigationBarChangesColor(s.backgroundPixels, s.totalPixels()); in assertLightStats() 160 (float) s.iconPixels / (float) s.foregroundPixels(), in assertLightStats() 165 (float) s.sameHueLightPixels / (float) s.foregroundPixels(), in assertLightStats() 169 (float) s.unexpectedHuePixels / (float) s.foregroundPixels(), in assertLightStats() 234 Stats s = new Stats(); in evaluateLightBarBitmap() local [all …]
|