/cts/tests/tests/text/src/android/text/cts/ |
D | HtmlTest.java | 167 Spanned s = Html.fromHtml(html); in testColor() local 168 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testColor() 202 Spanned s = Html.fromHtml(html); in testColorInvalid() local 203 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testColorInvalid() 216 Spanned s = Html.fromHtml("<font color=\"green\">GREEN</font>", flags); in testUseCssColor() local 217 ForegroundColorSpan[] colors = s.getSpans(0, s.length(), type); in testUseCssColor() 220 s = Html.fromHtml("<font color=\"gray\">GRAY</font>", flags); in testUseCssColor() 221 colors = s.getSpans(0, s.length(), type); in testUseCssColor() 224 s = Html.fromHtml("<font color=\"grey\">GREY</font>", flags); in testUseCssColor() 225 colors = s.getSpans(0, s.length(), type); in testUseCssColor() [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/os/src/android/os/cts/ |
D | PerformanceHintManagerTest.java | 76 Session s = createSession(); in testUpdateTargetWorkDuration() local 77 assumeNotNull(s); in testUpdateTargetWorkDuration() 78 s.updateTargetWorkDuration(100); in testUpdateTargetWorkDuration() 83 Session s = createSession(); in testUpdateTargetWorkDurationWithNegativeDuration() local 84 assumeNotNull(s); in testUpdateTargetWorkDurationWithNegativeDuration() 86 s.updateTargetWorkDuration(-1); in testUpdateTargetWorkDurationWithNegativeDuration() 92 Session s = createSession(); in testReportActualWorkDuration() local 93 assumeNotNull(s); in testReportActualWorkDuration() 94 s.updateTargetWorkDuration(100); in testReportActualWorkDuration() 95 s.reportActualWorkDuration(1); in testReportActualWorkDuration() [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 | 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 | 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 | 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);
|
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 …]
|
/cts/tests/security/src/android/keystore/cts/ |
D | Attestation.java | 151 StringBuilder s = new StringBuilder(); in toString() local 152 s.append("Extension type: " + getClass()); in toString() 153 s.append("\nAttest version: " + attestationVersion); in toString() 154 s.append("\nAttest security: " + securityLevelToString(getAttestationSecurityLevel())); in toString() 155 s.append("\nKM version: " + keymasterVersion); in toString() 156 s.append("\nKM security: " + securityLevelToString(keymasterSecurityLevel)); in toString() 158 s.append("\nChallenge"); in toString() 162 s.append(": [" + stringChallenge + "]"); in toString() 164 s.append(" (base64): [" + BaseEncoding.base64().encode(attestationChallenge) + "]"); in toString() 167 s.append("\nUnique ID (base64): [" + BaseEncoding.base64().encode(uniqueId) + "]"); 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/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/apps/CameraITS/tools/ |
D | run_all_tests.py | 357 for s in list(sys.argv[1:]): 358 if 'scenes=' in s: 359 scenes = s.split('=')[1].split(',') 360 elif 'camera=' in s: 361 camera_id_combos = s.split('=')[1].split(',') 397 for i, s in enumerate(scenes): 398 if (not s.startswith('scene') and 399 not s.startswith(('sensor_fusion', '<scene-name>'))): 403 scenes = [_GROUPED_SCENES[s] if s in _GROUPED_SCENES else s for s in scenes] 435 for s in scenes: [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/hostsidetests/media/app/MediaMetricsTest/src/android/media/metrics/cts/ |
D | MediaMetricsAtomHostSideTests.java | 90 PlaybackSession s = manager.createPlaybackSession(); in testPlaybackStateEvent_default() local 93 s.reportPlaybackStateEvent(e); in testPlaybackStateEvent_default() 103 PlaybackSession s = manager.createPlaybackSession(); in testPlaybackStateEvent() local 110 s.reportPlaybackStateEvent(e); in testPlaybackStateEvent() 119 PlaybackSession s = manager.createPlaybackSession(); in testPlaybackErrorEvent_default() local 124 s.reportPlaybackErrorEvent(e); in testPlaybackErrorEvent_default() 133 PlaybackSession s = manager.createPlaybackSession(); in testPlaybackErrorEvent() local 142 s.reportPlaybackErrorEvent(e); in testPlaybackErrorEvent() 151 PlaybackSession s = manager.createPlaybackSession(); in testTrackChangeEvent_default() local 154 s.reportTrackChangeEvent(e); in testTrackChangeEvent_default() [all …]
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | ShapeHolder.java | 94 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/apps/CameraITS/utils/ |
D | capture_request_utils.py | 158 s for s in out_sizes if s[0] <= max_size[0] and s[1] <= max_size[1] 163 s for s in out_sizes if abs(ar - s[0] / float(s[1])) <= ar_tolerance 165 out_sizes.sort(reverse=True, key=lambda s: s[0]) # 1st pass, sort by width 166 out_sizes.sort(reverse=True, key=lambda s: s[0] * s[1]) # sort by area 217 s = min(props['android.sensor.info.sensitivityRange']) 219 req = manual_capture_request(s, e)
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-10229/ |
D | poc.c | 30 int s; in udp_send() local 33 s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP); in udp_send() 38 sendto(s, "data", 4, 0, (struct sockaddr*)&addr, sizeof(addr)); in udp_send() 41 sendto(s, data, sizeof(data), 0, (struct sockaddr*)&addr, sizeof(addr)); in udp_send() 47 int s; in udp_recv() local 53 s = socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP); in udp_recv() 58 bind(s, (struct sockaddr*)&addr, 128); in udp_recv() 71 recvmsg(s, &msg, 0); in udp_recv() 82 recvmsg(s, &msg, MSG_PEEK); // No refrence to buf2 in this call. in udp_recv()
|
/cts/tests/sensor/sensorratepermission/ReturnedRateInfo/src/android/sensorratepermission/cts/returnedrateinfo/ |
D | ReturnedRateInfoTest.java | 68 Sensor s = mSensorManager.getDefaultSensor(sensorType); in testGetMinDelayMethod() local 69 if (s == null) { in testGetMinDelayMethod() 72 int minDelay = s.getMinDelay(); in testGetMinDelayMethod() 87 for (Sensor s : allSensorList) { in testGetSensorListMethod() 89 s.getMinDelay() >= cappedMinDelayUs); in testGetSensorListMethod() 95 Sensor s = mSensorManager.getDefaultSensor(sensorType); in testGetHighestDirectReportRateLevelMethod() local 96 if (s == null) { in testGetHighestDirectReportRateLevelMethod() 99 int obtainedHighestRateLevel = s.getHighestDirectReportRateLevel(); in testGetHighestDirectReportRateLevelMethod()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | HceUtils.java | 56 public static byte[] hexStringToBytes(String s) { in hexStringToBytes() argument 57 if (s == null || s.length() == 0) return null; in hexStringToBytes() 58 int len = s.length(); in hexStringToBytes() 60 s = '0' + s; in hexStringToBytes() 65 data[i / 2] = (byte) ((Character.digit(s.charAt(i), 16) << 4) in hexStringToBytes() 66 + Character.digit(s.charAt(i+1), 16)); in hexStringToBytes()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | StackTraceIncidentTest.java | 26 for (BackTraceProto.Stack s : dump.getTracesList()) { in verifyBackTraceProto() 28 assertTrue(s.getPid() == 0); in verifyBackTraceProto() 29 assertTrue(s.getDump().isEmpty()); in verifyBackTraceProto() 31 assertTrue(s.getDumpDurationNs() == 0); in verifyBackTraceProto()
|
/cts/tests/tests/permission/jni/ |
D | android_permission_cts_FileUtils.cpp | 57 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/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 99 Stats s = evaluateLightBarBitmap(bitmap, LIGHT_BG_COLOR, 0); in testLightStatusBarIcons() local 100 assertStats(bitmap, s, true /* light */); in testLightStatusBarIcons() 126 Stats s = evaluateDarkBarBitmap(bitmap, LIGHT_BG_COLOR, 0); in testAppearanceCanOverwriteLegacyFlags() local 127 assertStats(bitmap, s, false /* light */); in testAppearanceCanOverwriteLegacyFlags() 153 Stats s = evaluateDarkBarBitmap(bitmap, LIGHT_BG_COLOR, 0); in testLegacyFlagsCannotOverwriteAppearance() local 154 assertStats(bitmap, s, false /* light */); in testLegacyFlagsCannotOverwriteAppearance() 173 Stats s = evaluateLightBarBitmap(bitmap, LIGHT_BG_COLOR, activity.getBottom()); in testLightNavigationBar() local 174 assertStats(bitmap, s, true /* light */); in testLightNavigationBar() 216 Stats s = evaluateDarkBarBitmap(bitmap, Color.BLACK, 0); in testLightBarIsNotAllowed_fitStatusBar() local 217 assertStats(bitmap, s, false /* light */); in testLightBarIsNotAllowed_fitStatusBar() [all …]
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | IccUtils.java | 49 public static byte[] hexStringToBytes(String s) { in hexStringToBytes() argument 52 if (s == null) return null; in hexStringToBytes() 54 int sz = s.length(); in hexStringToBytes() 59 ret[i / 2] = (byte) ((hexCharToInt(s.charAt(i)) << 4) | hexCharToInt(s.charAt(i + 1))); in hexStringToBytes()
|