/tools/test/connectivity/acts_tests/acts_contrib/test_utils_tests/ |
D | audio_quality_measurement_integrationtest.py | 159 result = audio_quality_measurement.quality_measurement(self.y, 161 self.assertTrue(len(result['artifacts']['noise_before_playback']) == 0) 162 self.assertTrue(len(result['artifacts']['noise_after_playback']) == 0) 163 self.assertTrue(len(result['artifacts']['delay_during_playback']) == 0) 164 self.assertTrue(len(result['artifacts']['burst_during_playback']) == 0) 165 self.assertTrue(len(result['volume_changes']) == 0) 166 self.assertTrue(result['equivalent_noise_level'] < 0.005) 171 result = audio_quality_measurement.quality_measurement(self.y, 173 self.assertTrue(len(result['artifacts']['noise_before_playback']) == 0) 174 self.assertTrue(len(result['artifacts']['noise_after_playback']) == 0) [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 101 ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify() local 105 V3SchemeConstants.APK_SIGNATURE_SCHEME_V3_BLOCK_ID, result); in verify() 127 result); in verify() 128 return result; in verify() 148 ApkSigningBlockUtils.Result result) in verify() argument 151 parseSigners(apkSignatureSchemeV3Block, contentDigestsToVerify, result); in verify() 153 if (result.containsErrors()) { in verify() 157 executor, beforeApkSigningBlock, centralDir, eocd, contentDigestsToVerify, result); in verify() 163 for (ApkSigningBlockUtils.Result.SignerInfo signer : result.signers) { in verify() 173 List<SigningCertificateLineage> lineages = new ArrayList<>(result.signers.size()); in verify() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 183 Result result = new Result(); in verify() local 215 result.mergeFrom(v3Result); in verify() 222 if (result.containsErrors()) { in verify() 223 return result; in verify() 243 result.mergeFrom(v2Result); in verify() 250 if (result.containsErrors()) { in verify() 251 return result; in verify() 261 result.mergeFrom(v4Result); in verify() 262 if (result.containsErrors()) { in verify() 263 return result; in verify() [all …]
|
D | SourceStampVerifier.java | 141 Result result = new Result(); in verifySourceStamp() 142 result.addVerificationError(ApkVerificationIssue.UNEXPECTED_EXCEPTION, e); in verifySourceStamp() 143 return result; in verifySourceStamp() 163 Result result = new Result(); in verifySourceStamp() local 189 result.addVerificationError(stampSigningBlockFound in verifySourceStamp() 192 return result; in verifySourceStamp() 206 result.addVerificationError( in verifySourceStamp() 209 return result; in verifySourceStamp() 227 apkContentDigests, result); in verifySourceStamp() 246 apkContentDigests, result); in verifySourceStamp() [all …]
|
/tools/test/connectivity/acts_tests/tests/google/wifi/ |
D | WifiRoamingPerformanceTest.py | 94 def pass_fail_traffic_continuity(self, result): argument 104 len(result['roam_transitions']))) 105 for event in result['roam_transitions']: 109 result['roam_counts'])) 112 round(gap, 2) for gap in result['traffic_disruption'] 115 len(result['traffic_disruption']), formatted_traffic_gaps)) 117 if result['total_roams'] > 0: 118 disruption_percentage = (len(result['traffic_disruption']) / 119 result['total_roams']) * 100 120 max_disruption = max(result['traffic_disruption']) [all …]
|
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/ |
D | vecmath.cpp | 324 Mat4 result; in Perspective() local 325 result.f_[0] = n2 / width; in Perspective() 326 result.f_[4] = 0; in Perspective() 327 result.f_[8] = 0; in Perspective() 328 result.f_[12] = 0; in Perspective() 329 result.f_[1] = 0; in Perspective() 330 result.f_[5] = n2 / height; in Perspective() 331 result.f_[9] = 0; in Perspective() 332 result.f_[13] = 0; in Perspective() 333 result.f_[2] = 0; in Perspective() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 97 ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify() local 101 V2SchemeConstants.APK_SIGNATURE_SCHEME_V2_BLOCK_ID , result); in verify() 119 result); in verify() 120 return result; in verify() 142 ApkSigningBlockUtils.Result result) in verify() argument 152 result); in verify() 153 if (result.containsErrors()) { in verify() 157 executor, beforeApkSigningBlock, centralDir, eocd, contentDigestsToVerify, result); in verify() 158 if (!result.containsErrors()) { in verify() 159 result.verified = true; in verify() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/stamp/ |
D | SourceStampVerifier.java | 80 ApkSignerInfo result, in verifyV1SourceStamp() argument 88 sourceStampBlockData, certFactory, sourceStampCertificateDigest, result); in verifyV1SourceStamp() 89 if (result.containsWarnings() || result.containsErrors()) { in verifyV1SourceStamp() 100 result); in verifyV1SourceStamp() 115 ApkSignerInfo result, in verifyV2SourceStamp() argument 123 sourceStampBlockData, certFactory, sourceStampCertificateDigest, result); in verifyV2SourceStamp() 124 if (result.containsWarnings() || result.containsErrors()) { in verifyV2SourceStamp() 141 result.addWarning(ApkVerificationIssue.SOURCE_STAMP_NO_SIGNATURE); in verifyV2SourceStamp() 150 result); in verifyV2SourceStamp() local 151 if (result.containsWarnings() || result.containsErrors()) { in verifyV2SourceStamp() [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/tel/ |
D | tel_ims_utils.py | 47 result = True 53 result = False 57 result = False 58 return result 62 result = True 69 result = False 73 result = False 74 return result 78 result = True 85 result = False [all …]
|
/tools/test/connectivity/acts_tests/tests/google/fuchsia/bt/ |
D | command_input.py | 438 result = self.pri_dut.ble_lib.bleStartBleAdvertising( 440 self.log.info("Result of starting advertisement: {}".format(result)) 1372 result = self.pri_dut.gatts_lib.closeServer() 1373 self.log.info(result) 1481 result = self.test_dut.init_pair( 1487 self.log.info(result) 1542 result = self.pri_dut.bts_lib.acceptPairing( 1544 self.log.info(result) 1563 result = self.pri_dut.bts_lib.forgetDevice(self.unique_mac_addr_id) 1564 self.log.info(result) [all …]
|
/tools/test/connectivity/acts_tests/tests/google/fuchsia/backlight/ |
D | BacklightTest.py | 74 result = self.fd.backlight_lib.setStateNormalized( 76 asserts.assert_true(result['error'] is None, 79 result = self.fd.backlight_lib.getStateNormalized() 80 asserts.assert_true(result['error'] is None, 83 asserts.assert_true(result['result']['backlight_on'], 86 float_near(result['result']['brightness'], ONE_QUARTER_BRIGHTNESS), 92 result = self.fd.backlight_lib.setStateNormalized( 94 asserts.assert_true(result['error'] is None, 97 result = self.fd.backlight_lib.getStateNormalized() 98 asserts.assert_true(result['error'] is None, [all …]
|
/tools/dexter/slicer/export/slicer/ |
D | dex_leb128.h | 30 u4 result = *(ptr++); in ReadULeb128() local 32 if (result > 0x7f) { in ReadULeb128() 34 result = (result & 0x7f) | ((cur & 0x7f) << 7); in ReadULeb128() 37 result |= (cur & 0x7f) << 14; in ReadULeb128() 40 result |= (cur & 0x7f) << 21; in ReadULeb128() 46 result |= cur << 28; in ReadULeb128() 53 return result; in ReadULeb128() 60 s4 result = *(ptr++); in ReadSLeb128() local 62 if (result <= 0x7f) { in ReadSLeb128() 63 result = (result << 25) >> 25; in ReadSLeb128() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/zip/ |
D | CentralDirectoryRecord.java | 199 ByteBuffer result = ByteBuffer.allocate(mData.remaining()); in createWithModifiedLocalFileHeaderOffset() local 200 result.put(mData.slice()); in createWithModifiedLocalFileHeaderOffset() 201 result.flip(); in createWithModifiedLocalFileHeaderOffset() 202 result.order(ByteOrder.LITTLE_ENDIAN); in createWithModifiedLocalFileHeaderOffset() 203 ZipUtils.setUnsignedInt32(result, LOCAL_FILE_HEADER_OFFSET_OFFSET, localFileHeaderOffset); in createWithModifiedLocalFileHeaderOffset() 205 result, in createWithModifiedLocalFileHeaderOffset() 230 ByteBuffer result = ByteBuffer.allocate(recordSize); in createWithDeflateCompressedData() local 231 result.order(ByteOrder.LITTLE_ENDIAN); in createWithDeflateCompressedData() 232 result.putInt(RECORD_SIGNATURE); in createWithDeflateCompressedData() 233 ZipUtils.putUnsignedInt16(result, 0x14); // Version made by in createWithDeflateCompressedData() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4SchemeVerifier.java | 77 final ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify() local 81 result.addError(Issue.V4_SIG_NO_SIGNATURES, in verify() 83 return result; in verify() 87 result.addWarning(Issue.V4_SIG_VERSION_NOT_CURRENT, signature.version, in verify() 101 result.signers.add(signerInfo); in verify() 102 if (result.containsErrors()) { in verify() 103 return result; in verify() 108 if (!result.containsErrors()) { in verify() 109 result.verified = true; in verify() 112 return result; in verify() [all …]
|
/tools/test/connectivity/acts_tests/tests/google/tel/live/ |
D | TelLiveGFTDSDSSupplementaryServiceTest.py | 651 result = three_phone_call_waiting_short_seq( 663 result = three_phone_call_forwarding_short_seq( 672 if not result: 686 return result 903 result = True 905 result = False 907 result = False 908 return result 1209 result = True 1217 result = False [all …]
|
D | TelLiveVoiceTest.py | 135 result = True 139 result = False 143 result = False 147 result = False 150 result = False 151 if result: 182 result = two_phone_call_short_seq(self.log, ads[0], None, None, ads[1], 184 self.tel_logger.set_result(result.result_value) 185 if not result: 187 extras={"fail_reason": str(result.result_value)}) [all …]
|
D | TelLiveConnectivityMonitorBaseTest.py | 362 for result in results: 363 if "count" in result[0] or "num_calls" in result[0]: 364 troubleshooter_database[result[0]] = int(result[1]) 366 troubleshooter_database[result[0]] = result[1] 380 for result in results: 381 call_summary_info[result[0]] = int(result[2]) 382 call_summary_info["%s_dropped" % result[0]] = int(result[1]) 383 if result[3] == "NaN": 384 call_summary_info["%s_dropped_percentage" % result[0]] = 0 386 call_summary_info["%s_dropped_percentage" % result[0]] = float( [all …]
|
/tools/test/connectivity/acts/framework/tests/metrics/loggers/ |
D | bounded_metrics_test.py | 52 result = Mock() 53 mock_metric.return_value = result 63 self.assertEqual(result.test_class, 'Class') 64 self.assertEqual(result.test_method, 'test') 65 self.assertEqual(result.value, 123) 66 self.assertEqual(result.lower_limit.value, 1) 67 self.assertEqual(result.upper_limit.value, 2) 68 self.assertEqual(result.metric, 'towels_metric') 69 self.assertEqual(result.unit, 'towels') 76 result = Mock() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/asn1/ |
D | Asn1DerEncoder.java | 217 List<AnnotatedField> result = new ArrayList<>(declaredFields.length); in getAnnotatedFields() local 238 result.add(annotatedField); in getAnnotatedFields() 240 return result; in getAnnotatedFields() 260 byte[] result = new byte[1]; in toBoolean() 262 result[0] = 0; in toBoolean() 264 result[0] = 1; in toBoolean() 266 … return createTag(BerEncoding.TAG_CLASS_UNIVERSAL, false, BerEncoding.TAG_NUMBER_BOOLEAN, result); in toBoolean() 452 byte[] result; in createTag() 456 result = new byte[contentsPosInResult + contentsLength]; in createTag() 457 result[0] = firstIdentifierByte; in createTag() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/ |
D | connection.py | 40 def __init__(self, result): argument 45 self.result = result 49 self.result.command, self.result.stdout, self.result.stderr) 207 result = job.run(terminal_command, 211 output = result.stdout 224 result = job.Result(command=result.command, 226 stderr=result._raw_stderr, 227 exit_status=result.exit_status, 228 duration=result.duration, 229 did_timeout=result.did_timeout, [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v1/ |
D | V1SchemeVerifier.java | 116 Result result = new Result(); in verify() local 120 Set<String> cdEntryNames = checkForDuplicateEntries(cdRecords, result); in verify() 121 if (result.containsErrors()) { in verify() 122 return result; in verify() 135 result); in verify() 137 return result; in verify() 145 List<CentralDirectoryRecord> cdRecords, Result result) { in checkForDuplicateEntries() argument 156 result.addError(Issue.JAR_SIG_DUPLICATE_ZIP_ENTRY, entryName); in checkForDuplicateEntries() 174 byte[] manifestBytes, Set<String> cdEntryNames, Result result) { in parseManifest() argument 185 result.addError(Issue.JAR_SIG_UNNNAMED_MANIFEST_SECTION, manifestSectionNumber); in parseManifest() [all …]
|
/tools/test/connectivity/acts_tests/tests/google/bt/sdp/ |
D | SdpSetupTest.py | 56 result = self.dut.sdp_init() 57 if result.get("error") is None: 61 "Failed to initialize SDP with {}".format(result.get("error"))) 65 result = self.dut.sdp_add_service(sdp_pts_record_list[0]) 66 if result.get("error") is not None: 69 result.get("error"))) 76 result = self.dut.sdp_add_service(malformed_record) 77 if result.get("error") is not None: 79 result.get("error"))) 95 result = self.dut.sdp_add_search(attributes, profile_id) [all …]
|
/tools/ndkports/src/test/kotlin/com/android/ndkports/ |
D | ResultTest.kt | 26 val result = Result.Error("foo") in onFailure executes block on failure() constant 27 result.onFailure { in onFailure executes block on failure() 36 val result = Result.Ok(Unit) in onFailure does not execute block on success() constant 37 result.onFailure { fail() } in onFailure does not execute block on success() 41 fun `onFailure returns same result object`() { in onFailure returns same result object() 42 val result = Result.Error(Unit) in onFailure returns same result object() constant 43 assertEquals(result, result.onFailure {}) in onFailure returns same result object() 48 val result = Result.Ok("foo") in onSuccess executes block on success() constant 49 result.onSuccess { in onSuccess executes block on success() 58 val result = Result.Error(Unit) in onSuccess does not execute block on failure() constant [all …]
|
/tools/trebuchet/core/common/src/test/kotlin/trebuchet/extractors/ |
D | SystraceExtractorTest.kt | 35 val result = extract(buffers) in <lambda>() constant 36 assertEquals(1, result.size) in <lambda>() 37 assertEquals("one", result[0].toString()) in <lambda>() 43 val result = extract(buffers) in <lambda>() constant 44 assertEquals(3, result.size) in <lambda>() 45 assertEquals("first", result[0].toString()) in <lambda>() 46 assertEquals("second", result[1].toString()) in <lambda>() 47 assertEquals("third", result[2].toString()) in <lambda>() 54 val result = extract(buffers) in <lambda>() constant 56 assertEquals("1", result[0].toString()) in <lambda>() [all …]
|
/tools/repohooks/rh/ |
D | utils.py | 306 result = CompletedProcess() 373 result.args = cmd 392 (result.stdout, result.stderr) = proc.communicate(input) 401 result.stdout = popen_stdout.read() 408 result.stderr = popen_stderr.read() 411 result.returncode = proc.returncode 418 result.returncode, result.cmd, stdout=result.stdout, 419 stderr=result.stderr, msg=msg) 425 result = CompletedProcess( 429 result.returncode, result.cmd, stdout=result.stdout, [all …]
|