/development/vndk/tools/header-checker/src/repr/symbol/ |
D | version_script_parser_test.cpp | 48 std::unique_ptr<ExportedSymbolSet> result(parser.Parse(stream)); in TEST() local 49 ASSERT_TRUE(result); in TEST() 51 const ExportedSymbolSet::FunctionMap &funcs = result->GetFunctions(); in TEST() 57 const ExportedSymbolSet::VarMap &vars = result->GetVars(); in TEST() 87 std::unique_ptr<ExportedSymbolSet> result(parser.Parse(stream)); in TEST() local 88 ASSERT_TRUE(result); in TEST() 90 const ExportedSymbolSet::FunctionMap &funcs = result->GetFunctions(); in TEST() 93 const ExportedSymbolSet::VarMap &vars = result->GetVars(); in TEST() 103 std::unique_ptr<ExportedSymbolSet> result(parser.Parse(stream)); in TEST() local 104 ASSERT_TRUE(result); in TEST() [all …]
|
D | version_script_parser.cpp | 58 ParsedTags result; in ParseSymbolTags() local 63 return result; in ParseSymbolTags() 74 result.has_excluded_tags_ = true; in ParseSymbolTags() 79 result.has_var_tag_ = true; in ParseSymbolTags() 85 result.has_arch_tags_ = true; in ParseSymbolTags() 86 result.has_current_arch_tag_ = true; in ParseSymbolTags() 92 result.has_arch_tags_ = true; in ParseSymbolTags() 105 result.has_introduced_tags_ = true; in ParseSymbolTags() 106 result.introduced_ = intro.getValue(); in ParseSymbolTags() 119 result.has_introduced_tags_ = true; in ParseSymbolTags() [all …]
|
/development/gsi/gsi_util/gsi_util/utils/tests/ |
D | cmd_utils_unittest.py | 49 result = cmd_utils.run_command(['echo', '123']) 50 self.assertEqual((0, None, None), result) 55 result = cmd_utils.run_command('echo uses shell', shell=True) 56 self.assertEqual((0, None, None), result) 61 result = cmd_utils.run_command(['echo', '456'], raise_on_error=False, 63 self.assertEqual((0, None, None), result) 71 result = cmd_utils.run_command(error_cmd, shell=True, raise_on_error=False, 73 self.assertEqual((3, None, None), result) 82 result = cmd_utils.run_command(error_cmd, shell=True, raise_on_error=False, 84 self.assertEqual((5, None, None), result) [all …]
|
/development/tools/findunused/ |
D | find_unused_resources.rb | 36 result = Array.new 40 result << path 46 result 76 result = Array.new 81 result << matchData[1].to_s 86 result 160 result = UnusedResources.new 161 result.appDir = dir 162 result.unusedLayoutIds = layouts 163 result.unusedStringIds = strings [all …]
|
/development/testrunner/tests/ |
D | am_instrument_parser_tests.py | 27 result="""INSTRUMENTATION_RESULT: performance.java_size=4871 34 am_instrument_parser._ParseInstrumentationFinishedBundle(result) 76 result = am_instrument_parser.TestResult(segment1) 77 map = result.GetResultFields() 83 self.assertEquals(1, result.GetStatusCode()) 85 result = am_instrument_parser.TestResult(segment2) 86 map = result.GetResultFields() 94 self.assertEquals(0, result.GetStatusCode()) 96 result = am_instrument_parser.TestResult(segment3) 97 map = result.GetResultFields() [all …]
|
/development/tools/bugreport/src/com/android/bugreport/stacks/ |
D | ThreadSnapshotParser.java | 93 final ThreadSnapshot result = new ThreadSnapshot(); in parse() local 130 result.type = ThreadSnapshot.TYPE_UNMANAGED; in parse() 131 result.name = beginUnmanagedThreadRe.group(1); in parse() 132 result.priority = -1; in parse() 133 result.tid = -1; in parse() 134 result.sysTid = Integer.parseInt(beginUnmanagedThreadRe.group(2)); in parse() 136 result.type = ThreadSnapshot.TYPE_MANAGED; in parse() 137 result.name = beginManagedThreadRe.group(1); in parse() 138 result.daemon = beginManagedThreadRe.group(2); in parse() 139 result.priority = Utils.getInt(beginManagedThreadRe, 3, -1); in parse() [all …]
|
D | ProcessSnapshotParser.java | 54 final ProcessSnapshot result = new ProcessSnapshot(); in parse() local 75 result.pid = Integer.parseInt(beginProcessRe.group(1)); in parse() 76 result.date = beginProcessRe.group(2); in parse() 92 result.cmdLine = cmdLineRe.group(1); in parse() 112 result.threads.add(snapshot); in parse() 129 System.out.println("pid=" + result.pid); in parse() 130 System.out.println("date=" + result.date); in parse() 131 System.out.println("threads=" + result.threads.size()); in parse() 132 System.out.println("cmdLine=" + result.cmdLine); in parse() 135 return result; in parse()
|
/development/tools/logblame/ |
D | ps.py | 82 result = self._processes.get(pid) 83 if not result: 85 result = self._processes.get(pid) 86 if not result: 89 result = Process(uid, pid, None, None) 90 self._processes[pid] = result 91 return result 94 result = self._uids.get(uid) 95 if not result: 97 result = self._uids.get(uid) [all …]
|
D | analyze_logs.py | 46 result = self.data() 47 result.sort(lambda a, b: -cmp(a[1].count, b[1].count)) 48 return result 51 result = self.data() 52 result.sort(lambda a, b: -cmp(a[1].memory, b[1].memory)) 53 return result 90 result = "" 94 result += "%dw" % weeks 98 result += "%dd" % days 102 result += "%dh" % hours [all …]
|
/development/tools/checkcolor/src/test/java/com/google/checkcolor/lint/ |
D | HardcodedColorDetectorTest.java | 61 …String result = lintProject(xml("res/layout/selector.xml", "<?xml version=\"1.0\" encoding=\"utf-8… 68 assertEquals(expected, result); 80 …String result = lintProject(xml("res/layout/layout_battery.xml", "<?xml version=\"1.0\" encoding=\… 106 assertEquals(expected, result); 118 …String result = lintProject(xml("res/values/pxsp.xml", "<?xml version=\"1.0\" encoding=\"utf-8\"?>… 127 assertEquals(expected, result); 142 …String result = lintProject(xml("res/layout/layout_battery.xml", "<?xml version=\"1.0\" encoding=\… 167 assertEquals(expected, result); 176 String result = lintProject(xml("res/values/colors.xml", "<resources>\n" + 181 assertEquals(expected, result); [all …]
|
/development/samples/browseable/NetworkConnect/src/com.example.android.networkconnect/ |
D | NetworkFragment.java | 163 Result result = null; in doInBackground() local 170 result = new Result(resultString); in doInBackground() 175 result = new Result(e); in doInBackground() 178 return result; in doInBackground() 196 protected void onPostExecute(Result result) { in onPostExecute() argument 197 if (result != null && mCallback != null) { in onPostExecute() 198 if (result.mException != null) { in onPostExecute() 199 mCallback.updateFromDownload(result.mException.getMessage()); in onPostExecute() 200 } else if (result.mResultValue != null) { in onPostExecute() 201 mCallback.updateFromDownload(result.mResultValue); in onPostExecute() [all …]
|
/development/samples/ApiDemos/src/com/example/android/apis/view/ |
D | LabelView.java | 138 int result = 0; in measureWidth() local 144 result = specSize; in measureWidth() 147 result = (int) mTextPaint.measureText(mText) + getPaddingLeft() in measureWidth() 151 result = Math.min(result, specSize); in measureWidth() 155 return result; in measureWidth() 164 int result = 0; in measureHeight() local 171 result = specSize; in measureHeight() 174 result = (int) (-mAscent + mTextPaint.descent()) + getPaddingTop() in measureHeight() 178 result = Math.min(result, specSize); in measureHeight() 181 return result; in measureHeight()
|
/development/vndk/tools/sourcedr/blueprint/tests/ |
D | test_evaluate_default.py | 39 result = evaluate_default(attrs, default_attrs) 41 self.assertEqual(len(result), 3) 42 self.assertEqual(result['a'], 'specified_a') 43 self.assertEqual(result['b'], 'specified_b') 44 self.assertEqual(result['c'], 'default_c') 53 result = evaluate_default(attrs, default_attrs) 55 self.assertEqual(len(result), 1) 56 self.assertEqual(len(result['c']), 2) 57 self.assertEqual(result['c']['a'], 'specified_a') 58 self.assertEqual(result['c']['b'], 'default_b')
|
/development/tools/bugreport/src/com/android/bugreport/ |
D | Options.java | 79 final Options result = new Options(args); in parseArgs() local 85 if (result.monkey != null || !argParser.hasData(1)) { in parseArgs() 89 result.monkey = new File(argParser.nextData()); in parseArgs() 91 if (result.html != null || !argParser.hasData(1)) { in parseArgs() 95 result.html = new File(argParser.nextData()); in parseArgs() 97 if (result.logcat != null || !argParser.hasData(1)) { in parseArgs() 101 result.logcat = new File(argParser.nextData()); in parseArgs() 111 result.bugreport = new File(argParser.nextData()); in parseArgs() 113 return result; in parseArgs()
|
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/ |
D | SignatureSourcerTest.java | 49 String result = mSourcer.getReturnType().toString(); in testReturnMapNoArgs() local 53 result); in testReturnMapNoArgs() 61 String result = mSourcer.getReturnType().toString(); in testReturnVoid() local 65 result); in testReturnVoid() 91 String result = mSourcer.formalsToString(); in testFormalParameters1() local 94 result); in testFormalParameters1() 104 String result = mSourcer.formalsToString(); in testFormalParameters2() local 107 result); in testFormalParameters2() 122 String result = mSourcer.getReturnType().toString(); in testManyArgs() local 125 result); in testManyArgs()
|
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
D | AsyncTask.java | 334 private void postResultIfNotInvoked(Result result) { in postResultIfNotInvoked() argument 337 postResult(result); in postResultIfNotInvoked() 341 private Result postResult(Result result) { in postResult() argument 344 new AsyncTaskResult<Result>(this, result)); in postResult() 346 return result; in postResult() 398 protected void onPostExecute(Result result) { in onPostExecute() argument 429 protected void onCancelled(Result result) { in onCancelled() argument 653 private void finish(Result result) { in finish() argument 655 onCancelled(result); in finish() 657 onPostExecute(result); in finish() [all …]
|
/development/tools/bugreport/src/com/android/bugreport/util/ |
D | Utils.java | 92 final GregorianCalendar result = new GregorianCalendar(UTC); in parseCalendar() local 95 result.set(Calendar.YEAR, Integer.parseInt(matcher.group(startGroup + 0))); in parseCalendar() 97 result.set(Calendar.MONTH, Integer.parseInt(matcher.group(startGroup + 1))); in parseCalendar() 98 result.set(Calendar.DAY_OF_MONTH, Integer.parseInt(matcher.group(startGroup + 2))); in parseCalendar() 99 result.set(Calendar.HOUR_OF_DAY, Integer.parseInt(matcher.group(startGroup + 3))); in parseCalendar() 100 result.set(Calendar.MINUTE, Integer.parseInt(matcher.group(startGroup + 4))); in parseCalendar() 101 result.set(Calendar.SECOND, Integer.parseInt(matcher.group(startGroup + 5))); in parseCalendar() 103 result.set(Calendar.MILLISECOND, Integer.parseInt(matcher.group(startGroup + 6))); in parseCalendar() 106 return result; in parseCalendar()
|
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/ |
D | Authenticator.java | 95 final Bundle result = new Bundle(); in getAuthToken() local 96 result.putString(AccountManager.KEY_ERROR_MESSAGE, "invalid authTokenType"); in getAuthToken() 97 return result; in getAuthToken() 107 final Bundle result = new Bundle(); in getAuthToken() local 108 result.putString(AccountManager.KEY_ACCOUNT_NAME, account.name); in getAuthToken() 109 result.putString(AccountManager.KEY_ACCOUNT_TYPE, Constants.ACCOUNT_TYPE); in getAuthToken() 110 result.putString(AccountManager.KEY_AUTHTOKEN, authToken); in getAuthToken() 111 return result; in getAuthToken() 141 final Bundle result = new Bundle(); in hasFeatures() local 142 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, false); in hasFeatures() [all …]
|
/development/samples/browseable/ElizaChat/src/com.example.android.wearable.elizachat/ |
D | ElizaResponder.java | 117 String result = ""; in elzTalk() local 160 result += question; in elzTalk() 161 if (result.endsWith("*")) { in elzTalk() 162 result = result.substring(0, result.length() - 1); in elzTalk() 163 result += " " + afterKeyword; in elzTalk() 166 return result; in elzTalk()
|
/development/tools/bugreport/src/com/android/bugreport/cpuinfo/ |
D | CpuUsageParser.java | 44 final CpuUsageSnapshot result = new CpuUsageSnapshot(); in parse() local 71 System.out.println("totalPercent=" + result.totalPercent); in parse() 72 System.out.println("totalUser=" + result.totalUser); in parse() 73 System.out.println("totalKernel=" + result.totalKernel); in parse() 74 System.out.println("totalIoWait=" + result.totalIoWait); in parse() 75 System.out.println("totalSoftIrq=" + result.totalSoftIrq); in parse() 78 return result; in parse()
|
/development/samples/browseable/BasicMediaDecoder/src/com.example.android.common.media/ |
D | MediaCodecWrapper.java | 141 MediaCodecWrapper result = null; in fromVideoFormat() local 158 result = new MediaCodecWrapper(videoCodec); in fromVideoFormat() 162 return result; in fromVideoFormat() 190 boolean result = false; in writeSample() 217 result = true; in writeSample() 219 return result; in writeSample() 246 boolean result = false; in writeSample() 268 result = true; in writeSample() 270 return result; in writeSample() 284 boolean result = false; in peekSample() [all …]
|
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/ |
D | MediaCodecWrapper.java | 141 MediaCodecWrapper result = null; in fromVideoFormat() local 158 result = new MediaCodecWrapper(videoCodec); in fromVideoFormat() 162 return result; in fromVideoFormat() 190 boolean result = false; in writeSample() 217 result = true; in writeSample() 219 return result; in writeSample() 246 boolean result = false; in writeSample() 268 result = true; in writeSample() 270 return result; in writeSample() 284 boolean result = false; in peekSample() [all …]
|
/development/samples/browseable/BasicRenderScript/src/com.example.android.common.media/ |
D | MediaCodecWrapper.java | 141 MediaCodecWrapper result = null; in fromVideoFormat() local 158 result = new MediaCodecWrapper(videoCodec); in fromVideoFormat() 162 return result; in fromVideoFormat() 190 boolean result = false; in writeSample() 217 result = true; in writeSample() 219 return result; in writeSample() 246 boolean result = false; in writeSample() 268 result = true; in writeSample() 270 return result; in writeSample() 284 boolean result = false; in peekSample() [all …]
|
/development/vndk/tools/sourcedr/files/ |
D | list_app_shared_uid.py | 35 result = {} 40 result[name] = module['path'][0] 43 return result 80 result = [] 106 result.append(AppInfo( 109 return result 127 result = collect_apps_with_shared_uid(args.product_out, module_paths) 135 result.sort(key=_generate_sort_key) 140 for app in result:
|
/development/tools/bugreport/src/com/android/bugreport/logcat/ |
D | Logcat.java | 36 final ArrayList<LogLine> result = new ArrayList<LogLine>(); in filter() local 39 result.add(line); in filter() 42 return result; in filter() 49 final ArrayList<LogLine> result = new ArrayList<LogLine>(); in filter() local 52 result.add(line); in filter() 55 return result; in filter()
|