Home
last modified time | relevance | path

Searched refs:result (Results 1 – 25 of 253) sorted by relevance

1234567891011

/development/gsi/gsi_util/gsi_util/utils/tests/
Dcmd_utils_unittest.py49 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/
Dfind_unused_resources.rb36 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/
Dam_instrument_parser_tests.py27 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/logblame/
Dps.py82 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/checkcolor/src/test/java/com/google/checkcolor/lint/
DHardcodedColorDetectorTest.java61 …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/tools/bugreport/src/com/android/bugreport/stacks/
DThreadSnapshotParser.java93 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 …]
DProcessSnapshotParser.java54 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/bugreport/src/com/android/bugreport/
DOptions.java79 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/vndk/tools/sourcedr/sourcedr/blueprint/tests/
Dtest_evaluate_default.py39 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/samples/ApiDemos/src/com/example/android/apis/view/
DLabelView.java138 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/tools/bugreport/src/com/android/bugreport/util/
DUtils.java92 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/
DSignatureSourcerTest.java49 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/tools/bugreport/src/com/android/bugreport/logcat/
DLogcat.java36 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/tools/bugreport/src/com/android/bugreport/cpuinfo/
DCpuUsageParser.java44 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/NetworkConnect/src/com.example.android.networkconnect/
DNetworkFragment.java163 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/browseable/ElizaChat/src/com.example.android.wearable.elizachat/
DElizaResponder.java117 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/samples/SampleSyncAdapter/src/com/example/android/samplesync/authenticator/
DAuthenticator.java95 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/BasicRenderScript/src/rs/
Dsaturation.rs31 float3 result = dot(f4.rgb, gMonoMult);
32 result = mix( result, f4.rgb, saturationValue );
34 return rsPackColorTo8888(result);
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/
DAsyncTask.java334 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/samples/Home/src/com/example/android/home/
DApplicationInfo.java78 int result; in hashCode() local
79 result = (title != null ? title.hashCode() : 0); in hashCode()
81 result = 31 * result + (name != null ? name.hashCode() : 0); in hashCode()
82 return result; in hashCode()
/development/samples/SimpleJNI/jni/
Dnative.cpp32 int result = a + b; in add() local
33 ALOGI("%d + %d = %d", a, b, result); in add()
34 return result; in add()
95 jint result = -1; in JNI_OnLoad() local
111 result = JNI_VERSION_1_4; in JNI_OnLoad()
114 return result; in JNI_OnLoad()
/development/vndk/tools/sourcedr/sourcedr/tests/
Dtest_map.py58 result = link_build_dep_and_review_data(dep, data)
60 self.assertIn('liba.so', result)
61 self.assertIn('libb.so', result)
62 self.assertIn('libc.so', result)
64 self.assertEqual(['libx.so'], result['liba.so'])
65 self.assertEqual(['libx.so'], result['libb.so'])
/development/samples/browseable/MediaRecorder/src/com.example.android.common.media/
DMediaCodecWrapper.java141 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/
DMediaCodecWrapper.java141 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/BasicMediaDecoder/src/com.example.android.common.media/
DMediaCodecWrapper.java141 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 …]

1234567891011