/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/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | SimplePerfStatResultParserTest.java | 32 List<String> result = SimplePerfStatResultParser.parseSingleLine(emptyString); in testParseSingleLineWithEmptyString() local 33 Assert.assertTrue(result.size() == 0); in testParseSingleLineWithEmptyString() 38 List<String> result = SimplePerfStatResultParser.parseSingleLine(nullString); in testParseSingleLineWithNullString() local 39 Assert.assertTrue(result.size() == 0); in testParseSingleLineWithNullString() 44 List<String> result = SimplePerfStatResultParser.parseSingleLine(headerString); in testParseSingleLineWithHeaderString() local 45 Assert.assertTrue(result.size() == 0); in testParseSingleLineWithHeaderString() 50 List<String> result = SimplePerfStatResultParser.parseSingleLine(returnString); in testParseSingleLineWithReturnString() local 51 Assert.assertTrue(result.size() == 0); in testParseSingleLineWithReturnString() 56 List<String> result = SimplePerfStatResultParser.parseSingleLine(randomString); in testParseSingleLineWithRandomString() local 57 Assert.assertTrue(result.size() == 0); in testParseSingleLineWithRandomString() [all …]
|
D | RunUtilFuncTest.java | 101 CommandResult result = in testRunTimedCmd_repeatedOutput() local 104 CommandStatus.SUCCESS.equals(result.getStatus())); in testRunTimedCmd_repeatedOutput() 105 CLog.d(result.getStdout()); in testRunTimedCmd_repeatedOutput() 106 assertTrue(result.getStdout().trim().equals("hello")); in testRunTimedCmd_repeatedOutput() 116 CommandResult result = RunUtil.getDefault().runTimedCmd(0l, "sleep", "35"); in testRunTimedCmd_noTimeout() local 117 assertTrue(CommandStatus.SUCCESS.equals(result.getStatus())); in testRunTimedCmd_noTimeout() 118 assertTrue(result.getStdout().isEmpty()); in testRunTimedCmd_noTimeout() 140 CommandResult result = in testRunTimedCmd_largeOutput() local 146 result.getStatus(), result.getStdout(), result.getStderr()), in testRunTimedCmd_largeOutput() 148 result.getStatus()); in testRunTimedCmd_largeOutput() [all …]
|
/tools/test/connectivity/acts/framework/tests/ |
D | audio_quality_measurement_unittest.py | 154 result = audio_quality_measurement.quality_measurement(self.y, 156 self.assertTrue(len(result['artifacts']['noise_before_playback']) == 0) 157 self.assertTrue(len(result['artifacts']['noise_after_playback']) == 0) 158 self.assertTrue(len(result['artifacts']['delay_during_playback']) == 0) 159 self.assertTrue(len(result['artifacts']['burst_during_playback']) == 0) 160 self.assertTrue(len(result['volume_changes']) == 0) 161 self.assertTrue(result['equivalent_noise_level'] < 0.005) 166 result = audio_quality_measurement.quality_measurement(self.y, 168 self.assertTrue(len(result['artifacts']['noise_before_playback']) == 0) 169 self.assertTrue(len(result['artifacts']['noise_after_playback']) == 0) [all …]
|
D | acts_job_test.py | 67 result = job.run('echo TEST') 68 self.assertTrue(result.stdout.startswith('TEST')) 75 result = job.run('echo TEST 1>&2') 76 self.assertEqual(len(result.stdout), 0) 77 self.assertTrue(result.stderr.startswith('TEST')) 78 self.assertFalse(result.stdout) 92 result = job.run('exit 1', ignore_status=True) 93 self.assertEqual(result.exit_status, 1) 107 result = job.run(['echo', 'TEST']) 108 self.assertTrue(result.stdout.startswith('TEST')) [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/result/ |
D | TestRunResultTest.java | 16 package com.android.tradefed.result; 44 TestRunResult result = new TestRunResult(); in testGetNumTestsInState() local 45 assertEquals(0, result.getNumTestsInState(TestStatus.PASSED)); in testGetNumTestsInState() 46 result.testStarted(test); in testGetNumTestsInState() 47 assertEquals(0, result.getNumTestsInState(TestStatus.PASSED)); in testGetNumTestsInState() 48 assertEquals(1, result.getNumTestsInState(TestStatus.INCOMPLETE)); in testGetNumTestsInState() 49 result.testEnded(test, new HashMap<String, Metric>()); in testGetNumTestsInState() 50 assertEquals(1, result.getNumTestsInState(TestStatus.PASSED)); in testGetNumTestsInState() 51 assertEquals(0, result.getNumTestsInState(TestStatus.INCOMPLETE)); in testGetNumTestsInState() 53 assertNotNull(result.getTestResults().get(test)); in testGetNumTestsInState() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/ |
D | V3SchemeVerifier.java | 102 ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify() local 106 APK_SIGNATURE_SCHEME_V3_BLOCK_ID, result); in verify() 127 result); in verify() 128 return result; in verify() 147 ApkSigningBlockUtils.Result result) in verify() argument 150 parseSigners(apkSignatureSchemeV3Block, contentDigestsToVerify, result); in verify() 152 if (result.containsErrors()) { in verify() 156 beforeApkSigningBlock, centralDir, eocd, contentDigestsToVerify, result); in verify() 162 for (ApkSigningBlockUtils.Result.SignerInfo signer : result.signers) { in verify() 172 List<SigningCertificateLineage> lineages = new ArrayList<>(result.signers.size()); in verify() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | SimplePerfStatResultParser.java | 56 List<String> result = new ArrayList<>(); in parseSingleLine() local 59 return result; in parseSingleLine() 64 return result; in parseSingleLine() 71 result.add(matcher.group(1)); in parseSingleLine() 72 return result; in parseSingleLine() 78 result.add(matcher.group(1)); in parseSingleLine() 79 result.add(matcher.group(3)); in parseSingleLine() 80 result.add(matcher.group(4)); in parseSingleLine() 82 return result; in parseSingleLine() 92 SimplePerfResult result = new SimplePerfResult(); in parseRawOutput() local [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 …]
|
D | EocdRecord.java | 36 ByteBuffer result = ByteBuffer.allocate(original.remaining()); in createWithModifiedCentralDirectoryInfo() local 37 result.order(ByteOrder.LITTLE_ENDIAN); in createWithModifiedCentralDirectoryInfo() 38 result.put(original.slice()); in createWithModifiedCentralDirectoryInfo() 39 result.flip(); in createWithModifiedCentralDirectoryInfo() 41 result, CD_RECORD_COUNT_ON_DISK_OFFSET, centralDirectoryRecordCount); in createWithModifiedCentralDirectoryInfo() 43 result, CD_RECORD_COUNT_TOTAL_OFFSET, centralDirectoryRecordCount); in createWithModifiedCentralDirectoryInfo() 44 ZipUtils.setUnsignedInt32(result, CD_SIZE_OFFSET, centralDirectorySizeBytes); in createWithModifiedCentralDirectoryInfo() 45 ZipUtils.setUnsignedInt32(result, CD_OFFSET_OFFSET, centralDirectoryOffset); in createWithModifiedCentralDirectoryInfo() 46 return result; in createWithModifiedCentralDirectoryInfo()
|
/tools/tradefederation/contrib/src/com/android/media/tests/ |
D | AudioJitterTest.java | 23 import com.android.tradefed.result.ITestInvocationListener; 24 import com.android.tradefed.result.TestDescription; 52 Map<String, String> result = new HashMap<String, String>(); in createMetricsKeyMap() local 53 result.put("min_jitter_ticks", "min_jitter_ticks"); in createMetricsKeyMap() 54 result.put("min_jitter_ms", "min_jitter_ms"); in createMetricsKeyMap() 55 result.put("min_jitter_period_id", "min_jitter_period_id"); in createMetricsKeyMap() 56 result.put("max_jitter_ticks", "max_jitter_ticks"); in createMetricsKeyMap() 57 result.put("max_jitter_ms", "max_jitter_ms"); in createMetricsKeyMap() 58 result.put("max_jitter_period_id", "max_jitter_period_id"); in createMetricsKeyMap() 59 result.put("mark_jitter_ticks", "mark_jitter_ticks"); in createMetricsKeyMap() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/ |
D | V2SchemeVerifier.java | 98 ApkSigningBlockUtils.Result result = new ApkSigningBlockUtils.Result( in verify() local 102 APK_SIGNATURE_SCHEME_V2_BLOCK_ID , result); in verify() 119 result); in verify() 120 return result; in verify() 141 ApkSigningBlockUtils.Result result) in verify() argument 151 result); in verify() 152 if (result.containsErrors()) { in verify() 156 beforeApkSigningBlock, centralDir, eocd, contentDigestsToVerify, result); in verify() 157 if (!result.containsErrors()) { in verify() 158 result.verified = true; in verify() [all …]
|
/tools/tradefederation/core/util-apps/WifiUtil/src/com/android/tradefed/utils/wifi/ |
D | WifiUtil.java | 68 Bundle result = new Bundle(); in fail() local 69 result.putString("error", errMsg); in fail() 70 finish(Activity.RESULT_CANCELED, result); in fail() 156 final Bundle result = new Bundle(); in onStart() local 172 result.putBoolean("result", wifiManager.setWifiEnabled(true)); in onStart() 174 result.putBoolean("result", wifiManager.setWifiEnabled(false)); in onStart() 179 result.putInt("result", connector.addNetwork(ssid, null, scanSsid)); in onStart() 186 result.putInt("result", connector.addNetwork(ssid, psk, scanSsid)); in onStart() 191 result.putBoolean("result", in onStart() 195 result.putBoolean("result", wifiManager.disconnect()); in onStart() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | InclusiveIntRange.java | 58 List<InclusiveIntRange> result = null; in getValuesNotIn() local 66 if (result == null) { in getValuesNotIn() 67 result = new ArrayList<>(); in getValuesNotIn() 69 result.add(fromTo(testValue, rangeMin - 1)); in getValuesNotIn() 72 return (result != null) ? result : Collections.emptyList(); in getValuesNotIn() 77 if (result == null) { in getValuesNotIn() 78 result = new ArrayList<>(1); in getValuesNotIn() 80 result.add(fromTo(testValue, max)); in getValuesNotIn() 82 return (result != null) ? result : Collections.emptyList(); in getValuesNotIn()
|
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/ |
D | connection.py | 41 def __init__(self, result): argument 46 self.result = result 49 return 'cmd: %s\nstdout: %s\nstderr: %s' % (self.result.command, 50 self.result.stdout, 51 self.result.stderr) 204 result = job.run( 206 output = result.stdout 214 real_output = output[line_index + 1:].encode(result._encoding) 216 result = job.Result( 217 command=result.command, [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/command/remote/ |
D | RemoteManager.java | 247 JSONObject result = new JSONObject(); in processClientOperations() local 254 processAdd((AddCommandOp)rc, result); in processClientOperations() local 257 processAddCommandFile((AddCommandFileOp)rc, result); in processClientOperations() local 260 processClose((CloseOp)rc, result); in processClientOperations() local 263 processAllocate((AllocateDeviceOp)rc, result); in processClientOperations() local 266 processFree((FreeDeviceOp)rc, result); in processClientOperations() local 269 postOp = processStartHandover((StartHandoverOp)rc, result); in processClientOperations() 272 processHandoverInitComplete((HandoverInitCompleteOp)rc, result); in processClientOperations() local 275 postOp = processHandoverComplete((HandoverCompleteOp)rc, result); in processClientOperations() 278 processListDevices((ListDevicesOp)rc, result); in processClientOperations() local [all …]
|
/tools/tradefederation/core/prod-tests/src/com/android/framework/tests/ |
D | BandwidthMicroBenchMarkTestTest.java | 38 Map<String, String> result = BandwidthMicroBenchMarkTest.parseServerResponse( in testParseCorrectResponse() local 40 assertNotNull(result); in testParseCorrectResponse() 41 assertEquals(3, result.size()); in testParseCorrectResponse() 42 assertTrue(result.containsKey("foo")); in testParseCorrectResponse() 43 assertEquals("bar", result.get("foo")); in testParseCorrectResponse() 44 assertEquals("red", result.get("blue")); in testParseCorrectResponse() 45 assertEquals("google", result.get("android")); in testParseCorrectResponse()
|
D | BandwidthStats.java | 94 CompareResult result = new CompareResult(); in compareAll() local 95 result.addRecord(this.compareRb(stats), mDifferenceThreshold); in compareAll() 96 result.addRecord(this.compareRp(stats), mDifferenceThreshold); in compareAll() 97 result.addRecord(this.compareTb(stats), mDifferenceThreshold); in compareAll() 98 result.addRecord(this.compareTp(stats), mDifferenceThreshold); in compareAll() 99 return result; in compareAll() 106 ComparisonRecord result = new ComparisonRecord("Tp", this.mTxPackets, stats.mTxPackets, in compareTp() local 109 return result; in compareTp() 116 ComparisonRecord result = new ComparisonRecord("Tb", this.mTxBytes, stats.mTxBytes, in compareTb() local 119 return result; in compareTb() [all …]
|
/tools/apksig/src/main/java/com/android/apksig/ |
D | ApkVerifier.java | 186 Result result = new Result(); in verify() local 204 result.mergeFrom(v3Result); in verify() 208 if (result.containsErrors()) { in verify() 209 return result; in verify() 228 result.mergeFrom(v2Result); in verify() 232 if (result.containsErrors()) { in verify() 233 return result; in verify() 248 result.addError( in verify() 268 result.mergeFrom(v1Result); in verify() 270 if (result.containsErrors()) { in verify() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/suite/checker/ |
D | ActivityStatusChecker.java | 22 import com.android.tradefed.result.ITestLoggerReceiver; 23 import com.android.tradefed.result.InputStreamSource; 24 import com.android.tradefed.result.LogDataType; 41 StatusCheckerResult result = new StatusCheckerResult(); in isFrontActivityLauncher() local 47 result.setStatus(CheckStatus.SUCCESS); in isFrontActivityLauncher() 48 return result; in isFrontActivityLauncher() 57 result.setStatus(CheckStatus.FAILED); in isFrontActivityLauncher() 58 result.setErrorMessage("Launcher activity is not in front."); in isFrontActivityLauncher() 59 return result; in isFrontActivityLauncher()
|
/tools/repohooks/rh/ |
D | results.py | 68 def __init__(self, hook, project, commit, result, files=(), argument 71 result.error if result.error else result.output, 73 self.result = result 76 return self.result.returncode not in (None, 0) 79 return self.result.returncode == 77
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | RemoteAndroidDevice.java | 124 CommandResult result = getRunUtil().runTimedCmd(DEFAULT_SHORT_CMD_TIMEOUT, "adb", in adbTcpConnect() local 126 if (CommandStatus.SUCCESS.equals(result.getStatus()) && in adbTcpConnect() 127 result.getStdout().contains(ADB_SUCCESS_CONNECT_TAG)) { in adbTcpConnect() 129 result.getStatus(), result.getStdout(), result.getStderr()); in adbTcpConnect() 136 } else if (CommandStatus.SUCCESS.equals(result.getStatus()) && in adbTcpConnect() 137 result.getStdout().contains(ADB_CONN_REFUSED)) { in adbTcpConnect() 142 result.getStatus(), result.getStdout(), result.getStderr()); in adbTcpConnect() 174 CommandResult result = getRunUtil().runTimedCmd(DEFAULT_SHORT_CMD_TIMEOUT, "adb", in adbTcpDisconnect() local 177 return CommandStatus.SUCCESS.equals(result.getStatus()); in adbTcpDisconnect()
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | HexEncoding.java | 42 StringBuilder result = new StringBuilder(len * 2); in encode() local 45 result.append(HEX_DIGITS[(b >>> 4) & 0x0f]); in encode() 46 result.append(HEX_DIGITS[b & 0x0f]); in encode() 48 return result.toString(); in encode() 64 byte[] result = new byte[resultLengthBytes]; in decode() 69 result[resultOffset++] = in decode() 74 result[resultOffset++] = (byte) in decode() 78 return result; in decode()
|
/tools/test/connectivity/acts/tests/google/power/tel/lab/temp/ |
D | iperf_server.py | 74 self.result = json.loads(iperf_string) 80 self.result = json.loads(''.join(lines)) 88 return ('end' in self.result) and ('sum_received' in self.result["end"] 89 or 'sum' in self.result["end"]) 96 return self.result 100 if 'error' not in self.result: 102 return self.result['error'] 114 if not self._has_data() or 'sum' not in self.result['end']: 116 bps = self.result['end']['sum']['bits_per_second'] 126 if not self._has_data() or 'sum_received' not in self.result['end']: [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiPreFlightTest.py | 102 result = wutils.match_networks(net, scanned_networks) 103 if result and result[0]['level'] > self.MIN_SIGNAL_LEVEL: 105 elif result: 107 % (net, result[0]['level'])) 126 result = wutils.match_networks(target_network, scanned_networks) 127 if not result: 159 result = self._find_reference_networks_no_attn() 160 asserts.assert_true(not result, 162 "for the following reference networks\n%s\n" % result) 174 result = self._find_network_after_setting_attn(target_network) [all …]
|