/development/vndk/tools/header-checker/src/repr/symbol/ |
D | version_script_parser_test.cpp | 53 std::unique_ptr<ExportedSymbolSet> result(parser.Parse(stream)); in TEST() local 54 ASSERT_TRUE(result); in TEST() 56 const ExportedSymbolSet::FunctionMap &funcs = result->GetFunctions(); in TEST() 59 const ExportedSymbolSet::VarMap &vars = result->GetVars(); in TEST() 86 std::unique_ptr<ExportedSymbolSet> result(parser.Parse(stream)); in TEST() local 87 ASSERT_TRUE(result); in TEST() 89 const ExportedSymbolSet::FunctionMap &funcs = result->GetFunctions(); in TEST() 92 const ExportedSymbolSet::VarMap &vars = result->GetVars(); in TEST() 101 std::unique_ptr<ExportedSymbolSet> result(parser.Parse(stream)); in TEST() local 102 ASSERT_TRUE(result); in TEST() [all …]
|
/development/tools/winscope/src/parsers/window_manager/ |
D | custom_query_utils.ts | 30 result: WindowsTokenAndTitle, 39 result.push({token, title}); 42 result, 48 result: WindowsTokenAndTitle, 57 result, 61 result, 65 result, 67 WmCustomQueryUtils.parseTaskProto(windowContainerChildProto.task, result); 70 result, 74 result, [all …]
|
/development/tools/winscope/src/common/ |
D | array_utils.ts | 75 let result: number | undefined = undefined; 83 if (result === undefined || result > mid) { 84 result = mid; 88 result = mid; 93 return result; property in ArrayUtils 107 let result: number | undefined = undefined; variable 115 if (result === undefined || result > mid) { 116 result = mid; 124 return result; 132 let result = 0n; variable [all …]
|
D | string_utils.ts | 28 const result: string[] = []; constant 37 result.push('_'); 38 result.push(currChar.toLowerCase()); 40 result.push(currChar); 45 return result.join(''); 55 let result = inputStartsWithUnderscore ? '_' : ''; 56 result += tokens[0]; 59 result += '_'; 61 result += token; 64 return result;
|
/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/tools/winscope/src/app/ |
D | trace_file_filter_test.ts | 81 const result = await filter.filter( constant 85 expect(result.perfetto).toBeUndefined(); 88 const actualLegacy = new Set(result.legacy); 110 const result = await filter.filter(bugreportFiles, notificationListener); constant 111 expect(result.perfetto).toEqual(perfettoSystemTrace); 112 expect(result.legacy).toEqual([]); 129 const result = await filter.filter(bugreportFiles, notificationListener); constant 130 expect(result.perfetto).toBeUndefined(); 131 expect(result.legacy).toEqual([]); 145 const result = await filter.filter(bugreportFiles, notificationListener); constant [all …]
|
/development/tools/winscope/src/trace_processor/ |
D | bigint_math.ts | 22 let result = 1n; 23 while (result < n) { 24 result <<= 1n; 26 return result; 32 let result = 1n; 33 while ((result << 1n) <= n) { 34 result <<= 1n; 36 return result; 41 let result = 1n; 43 while ((result << 1n) <= n) { [all …]
|
/development/samples/AconfigDemo/src/ |
D | lib.rs | 31 let mut result = String::new(); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printRustFlag() localVariable 33 result.push_str("flag name : append_static_content\n"); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printRustFlag() 34 result.push_str("use pattern : static method\n"); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printRustFlag() 35 result.push_str(&get_flag_via_static_interface()); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printRustFlag() 37 result.push_str("\n\n"); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printRustFlag() 39 result.push_str("flag name : append_injected_content\n"); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printRustFlag() 40 result.push_str("use pattern : injection\n"); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printRustFlag() 41 result.push_str(&get_flag_via_injection_interface(&aconfig_demo_flags_rust::PROVIDER)); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printRustFlag() 43 let output = env.new_string(result).expect("Couldn't create java string!"); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printRustFlag()
|
D | example_cpp_lib.cc | 23 auto result = std::string("flag name : append_static_content\n"); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printCFlag() local 24 result += "use pattern : static method\n"; in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printCFlag() 25 result += get_flag_via_static_interface(); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printCFlag() 27 result += "\n\n"; in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printCFlag() 29 result += "flag name : append_injected_content\n"; in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printCFlag() 30 result += "use pattern : injection\n"; in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printCFlag() 31 result += get_flag_via_injection_interface(demo_flags::provider_.get()); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printCFlag() 33 return env->NewStringUTF(result.c_str()); in Java_com_example_android_aconfig_demo_AconfigDemoActivity_printCFlag()
|
/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 …]
|
/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/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/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/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/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/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/scripts/ |
D | symbol.py | 227 result = {} 238 result[addr] = [(source_symbol, source_location, object_symbol_with_offset) 241 return result 263 result = {} 273 result[next_addr] = addr_cache[next_addr] 280 return result 313 result[addr] = records 315 return result 331 result = {} 342 result[next_addr] = addr_cache[next_addr] [all …]
|
/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/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()
|
/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/winscope/src/trace/ |
D | parser_mock.ts | 74 let result = this.customQueryResult.get(type); 75 if (result === undefined) { 80 if (Array.isArray(result)) { 81 result = result.slice(entriesRange.start, entriesRange.end); 83 return Promise.resolve(result) as Promise<
|