Home
last modified time | relevance | path

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

12345678910>>...25

/cts/tools/dasm/src/dasm/
Dparser.java901 java_cup.runtime.symbol CUP$result; in CUP$do_action()
909 CUP$result = new symbol(/*ss_table_end*/76); in CUP$do_action()
912 return CUP$result; in CUP$do_action()
917 CUP$result = new symbol(/*ss_table_entry*/75); in CUP$do_action()
920 return CUP$result; in CUP$do_action()
925 CUP$result = new symbol(/*ss_table_entry*/75); in CUP$do_action()
928 return CUP$result; in CUP$do_action()
933 CUP$result = new symbol(/*ss_table_list*/74); in CUP$do_action()
936 return CUP$result; in CUP$do_action()
941 CUP$result = new symbol(/*ss_table_list*/74); in CUP$do_action()
[all …]
DUtils.java37 String[] result = null; in splitRegList() local
39 result = list.split("[\\s]*,[\\s]*|[\\s]*\\.\\.[\\s]*"); in splitRegList()
40 return result; in splitRegList()
87 String result[] = new String[3]; in getClassMethodSignatureFromString() local
108 result[0] = signature.substring(0, mpos); in getClassMethodSignatureFromString()
109 result[1] = signature.substring(mpos + 1, sigpos); in getClassMethodSignatureFromString()
110 result[2] = signature.substring(sigpos); in getClassMethodSignatureFromString()
115 return result; in getClassMethodSignatureFromString()
124 String result[] = new String[2]; in getClassFieldFromString() local
128 result[0] = null; in getClassFieldFromString()
[all …]
/cts/tools/dasm/src/java_cup/
Dparser.java435 java_cup.runtime.symbol CUP$result; in CUP$do_action()
443 CUP$result = new java_cup.runtime.symbol(/*empty*/27); in CUP$do_action()
446 return CUP$result; in CUP$do_action()
451 CUP$result = new java_cup.runtime.str_token(/*label_id*/30); in CUP$do_action()
452 …((java_cup.runtime.str_token)CUP$result).str_val = (/*the_id*/(java_cup.runtime.str_token)CUP$stac… in CUP$do_action()
454 return CUP$result; in CUP$do_action()
459 CUP$result = new java_cup.runtime.str_token(/*symbol_id*/29); in CUP$do_action()
460 …((java_cup.runtime.str_token)CUP$result).str_val = (/*the_id*/(java_cup.runtime.str_token)CUP$stac… in CUP$do_action()
462 return CUP$result; in CUP$do_action()
467 CUP$result = new java_cup.runtime.str_token(/*nt_id*/28); in CUP$do_action()
[all …]
Dlalr_item.java149 lalr_item result; in shift() local
156 result = new lalr_item(the_production(), dot_pos()+1, in shift()
160 add_propagate(result); in shift()
162 return result; in shift()
175 terminal_set result; in calc_lookahead() local
186 result = new terminal_set(); in calc_lookahead()
201 result.add((terminal)sym); in calc_lookahead()
202 return result; in calc_lookahead()
207 result.add(((non_terminal)sym).first_set()); in calc_lookahead()
211 return result; in calc_lookahead()
[all …]
Dparse_reduce_table.java58 String result; in toString() local
62 result = "-------- REDUCE_TABLE --------\n"; in toString()
65 result += "From state #" + row + "\n"; in toString()
75 result += col + ":"; in toString()
76 result += goto_st.index(); in toString()
82 result += "\n"; in toString()
88 if (cnt != 0) result += "\n"; in toString()
90 result += "-----------------------------"; in toString()
92 return result; in toString()
Dsymbol_set.java134 boolean result = false; in add()
140 result = add((symbol)e.nextElement()) || result; in add()
142 return result; in add()
192 int result = 0; in hashCode() local
198 result ^= ((symbol)e.nextElement()).hashCode(); in hashCode()
200 return result; in hashCode()
208 String result; in toString() local
211 result = "{"; in toString()
216 result += ", "; in toString()
220 result += ((symbol)e.nextElement()).name(); in toString()
[all …]
/cts/libs/vogar-expect/src/vogar/util/
DTimeUtilities.java36 StringBuilder result = new StringBuilder("P"); in msToIsoString() local
38 result.append(hours); in msToIsoString()
39 result.append('H'); in msToIsoString()
41 if (result.length() > 1 || minutes != 0) { in msToIsoString()
42 result.append(minutes); in msToIsoString()
43 result.append('M'); in msToIsoString()
45 result.append(seconds); in msToIsoString()
47 result.append('.'); in msToIsoString()
48 result.append(milliseconds); in msToIsoString()
50 result.append('S'); in msToIsoString()
[all …]
DStrings.java44 StringBuilder result = new StringBuilder(); in readStream() local
48 result.append(line); in readStream()
49 result.append('\n'); in readStream()
52 return result.toString(); in readStream()
81 StringBuilder result = new StringBuilder(); in join() local
82 result.append(i.next()); in join()
84 result.append(delimiter).append(i.next()); in join()
86 return result.toString(); in join()
90 String[] result = new String[objects.length]; in objectsToStrings() local
93 result[i++] = o.toString(); in objectsToStrings()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DCharacterStyleTest.java32 CharacterStyle result = CharacterStyle.wrap(metricAffectingSpan); in testWrap() local
33 assertNotNull(result); in testWrap()
34 assertSame(metricAffectingSpan, result.getUnderlying()); in testWrap()
35 assertNotSame(metricAffectingSpan, result); in testWrap()
39 result = CharacterStyle.wrap(characterStyle); in testWrap()
40 assertNotNull(result); in testWrap()
41 assertTrue(result instanceof CharacterStyle); in testWrap()
42 assertSame(characterStyle, result.getUnderlying()); in testWrap()
43 assertNotSame(characterStyle, result); in testWrap()
45 result = CharacterStyle.wrap((MetricAffectingSpan) null); in testWrap()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DSimpleExpandableListAdapterTest.java168 View result = mSimpleExpandableListAdapter.getChildView(0, 0, false, null, mAdapterHost); in testGetChildView() local
169 assertTrue(result instanceof TextView); in testGetChildView()
170 assertEquals("child00", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetChildView()
172 result = mSimpleExpandableListAdapter.getChildView(3, 3, true, null, mAdapterHost); in testGetChildView()
173 assertTrue(result instanceof TextView); in testGetChildView()
174 assertEquals("child30", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetChildView()
183 result = mSimpleExpandableListAdapter.getChildView(0, 0, false, null, mAdapterHost); in testGetChildView()
184 assertTrue(result instanceof TextView); in testGetChildView()
185 assertEquals("child00", ((TextView) result.findViewById(R.id.text1)).getText().toString()); in testGetChildView()
187 result = mSimpleExpandableListAdapter.getChildView(3, 3, true, null, mAdapterHost); in testGetChildView()
[all …]
DResourceCursorAdapterTest.java78 View result = mResourceCursorAdapter.newView(null, null, mParent); in testSetViewResource() local
79 assertNotNull(result); in testSetViewResource()
80 assertEquals(R.id.cursorAdapter_item0, result.getId()); in testSetViewResource()
84 result = mResourceCursorAdapter.newView(null, null, mParent); in testSetViewResource()
85 assertNotNull(result); in testSetViewResource()
86 assertEquals(R.id.cursorAdapter_item1, result.getId()); in testSetViewResource()
94 View result = mResourceCursorAdapter.newDropDownView(null, null, mParent); in testSetDropDownViewResource() local
95 assertNotNull(result); in testSetDropDownViewResource()
97 assertEquals(R.id.cursorAdapter_item0, result.getId()); in testSetDropDownViewResource()
103 result = mResourceCursorAdapter.newDropDownView(null, null, mParent); in testSetDropDownViewResource()
[all …]
DSimpleAdapterTest.java149 View result = mSimpleAdapter.getView(0, null, mAdapterHost); in testGetView() local
150 assertTrue(result instanceof TextView); in testGetView()
151 assertEquals("01", ((TextView) result).getText().toString()); in testGetView()
153 result = mSimpleAdapter.getView(19, null, mAdapterHost); in testGetView()
154 assertTrue(result instanceof TextView); in testGetView()
155 assertEquals("191", ((TextView) result).getText().toString()); in testGetView()
159 TextView convertView = (TextView) result; in testGetView()
160 result = mSimpleAdapter.getView(0, convertView, mAdapterHost); in testGetView()
161 assertEquals("01", ((TextView) result).getText().toString()); in testGetView()
162 assertSame(convertView, result); in testGetView()
[all …]
DRemoteViewsActivityTest.java57 View result = r.apply(mActivity, parent); in testGood() local
61 assertTrue("LinearLayout not inflated", result.findViewById(R.id.linear) != null); in testGood()
62 assertTrue("TextView not inflated", result.findViewById(R.id.text) != null); in testGood()
63 assertTrue("ImageView not inflated", result.findViewById(R.id.image) != null); in testGood()
64 assertTrue("FrameLayout not inflated", result.findViewById(R.id.frame) != null); in testGood()
65 assertTrue("RelateiveLayout not inflated", result.findViewById(R.id.relative) != null); in testGood()
66 assertTrue("AbsoluteLayout not inflated", result.findViewById(R.id.absolute) != null); in testGood()
67 assertTrue("ProgressBar not inflated", result.findViewById(R.id.progress) != null); in testGood()
68 assertTrue("ImageButton not inflated", result.findViewById(R.id.image_button) != null); in testGood()
69 assertTrue("Button not inflated", result.findViewById(R.id.button) != null); in testGood()
[all …]
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/result/
DTestSummaryXmlTest.java17 package com.android.cts.tradefed.result;
42 TestSummaryXml result = new TestSummaryXml(1, "2011-11-01"); in testConstructor() local
43 assertEquals(1, result.getId()); in testConstructor()
44 assertEquals("2011-11-01", result.getTimestamp()); in testConstructor()
51 TestSummaryXml result = new TestSummaryXml(1, "2011-11-01"); in testParse() local
52 result.parse(getStringAsReader(TEST_DATA)); in testParse()
54 assertEquals(5, result.getNumFailed()); in testParse()
55 assertEquals(2, result.getNumIncomplete()); in testParse()
56 assertEquals(3, result.getNumPassed()); in testParse()
63 TestSummaryXml result = new TestSummaryXml(1, "2011-11-01"); in testParse_missing() local
[all …]
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DTestAccountAuthenticator.java70 Bundle result = new Bundle(); in addAccount() local
72 new AddAccountTx(accountType, authTokenType, requiredFeatures, options, result)); in addAccount()
75 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
76 result.putString(AccountManager.KEY_ACCOUNT_TYPE, mAccountType); in addAccount()
87 result.putParcelable(AccountManager.KEY_INTENT, intent); in addAccount()
96 result.putInt(AccountManager.KEY_ERROR_CODE, errorCode); in addAccount()
97 result.putString(AccountManager.KEY_ERROR_MESSAGE, errorMsg); in addAccount()
101 return (isCallbackRequired) ? null : result; in addAccount()
104 response.onResult(result); in addAccount()
117 Bundle result = new Bundle(); in confirmCredentials() local
[all …]
/cts/tests/tests/jni/libjnitest/
Dmacroized_tests.c136 jmethodID result = CALL(GetStaticMethodID, StaticFromNative, in findStaticMethod() local
139 if (result == NULL) { in findStaticMethod()
144 return result; in findStaticMethod()
152 jmethodID result = CALL(GetMethodID, InstanceFromNative, name, sig); in findInstanceMethod() local
154 if (result == NULL) { in findInstanceMethod()
159 return result; in findInstanceMethod()
198 jboolean result; in help_CallBooleanMethod() local
202 result = CALL(CallBooleanMethod, o, method); in help_CallBooleanMethod()
206 result = CALL(CallBooleanMethodA, o, method, NULL); in help_CallBooleanMethod()
210 result = CALL(CallBooleanMethodV, o, method, args); in help_CallBooleanMethod()
[all …]
Dhelper.c29 char *result; in failure() local
36 int count = vasprintf(&result, format, args); in failure()
43 return result; in failure()
49 char *result = NULL; in runJniTests() local
67 (result == NULL) ? "" : result, in runJniTests()
69 free(result); in runJniTests()
74 result = newResult; in runJniTests()
86 return result; in runJniTests()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsample.rs30 float4 result = rsSample(alloc1D, gNearest, location, lod);
31 _RS_ASSERT(compare(expected0, result));
33 result = rsSample(alloc1D, gLinear, location, lod);
34 _RS_ASSERT(compare(expected1, result));
36 result = rsSample(alloc1D, gMipNearest, location, lod);
37 _RS_ASSERT(compare(expected2, result));
39 result = rsSample(alloc1D, gMipLinear, location, lod);
40 _RS_ASSERT(compare(expected3, result));
47 float4 result = rsSample(alloc2D, gNearest, location, lod);
48 _RS_ASSERT(compare(expected0, result));
[all …]
DAllocationCopyPaddedTest.java41 boolean result = true; in test_AllocationPadded_Byte3_1D()
44 result = false; in test_AllocationPadded_Byte3_1D()
49 result); in test_AllocationPadded_Byte3_1D()
69 boolean result = true; in test_AllocationPadded_Byte3_2D()
72 result = false; in test_AllocationPadded_Byte3_2D()
77 result); in test_AllocationPadded_Byte3_2D()
98 boolean result = true; in test_AllocationPadded_Byte3_3D()
101 result = false; in test_AllocationPadded_Byte3_3D()
106 result); in test_AllocationPadded_Byte3_3D()
128 boolean result = true; in test_AllocationPadded_Short3_1D()
[all …]
/cts/tests/tests/app/src/android/app/cts/
DNotificationTest.java97 Notification result = new Notification(parcel);
98 assertEquals(mNotification.icon, result.icon);
99 assertEquals(mNotification.when, result.when);
100 assertEquals(mNotification.number, result.number);
101 assertNotNull(result.contentIntent);
102 assertNotNull(result.deleteIntent);
103 assertEquals(mNotification.tickerText, result.tickerText);
104 assertNotNull(result.contentView);
105 assertEquals(mNotification.defaults, result.defaults);
106 assertEquals(mNotification.flags, result.flags);
[all …]
/cts/apps/CtsVerifier/jni/audio_loopback/
Dsles.cpp81 SLresult result; in recorderCallback() local
115 result = (*(pSles->recorderBufferQueue))->Enqueue(pSles->recorderBufferQueue, buffer, in recorderCallback()
117 ASSERT_EQ(SL_RESULT_SUCCESS, result); in recorderCallback()
142 SLresult result; in playerCallback() local
180 result = (*(pSles->playerBufferQueue))->Enqueue(pSles->playerBufferQueue, buffer, in playerCallback()
182 ASSERT_EQ(SL_RESULT_SUCCESS, result); in playerCallback()
325 SLresult result; in slesCreateServer() local
329 result = slCreateEngine(&(pSles->engineObject), 0, NULL, 0, NULL, NULL); in slesCreateServer()
330 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
331 result = (*(pSles->engineObject))->Realize(pSles->engineObject, SL_BOOLEAN_FALSE); in slesCreateServer()
[all …]
/cts/libs/vogar-expect/src/vogar/
DOutcome.java34 private final Result result; field in Outcome
38 public Outcome(String outcomeName, Result result, List<String> outputLines) { in Outcome() argument
40 this.result = result; in Outcome()
45 public Outcome(String outcomeName, Result result, String outputLine, Date date) { in Outcome() argument
47 this.result = result; in Outcome()
52 public Outcome(String outcomeName, Result result, String outputLine) { in Outcome() argument
54 this.result = result; in Outcome()
59 public Outcome(String outcomeName, Result result, Throwable throwable) { in Outcome() argument
61 this.result = result; in Outcome()
87 return result; in getResult()
[all …]
/cts/tests/tests/nativeopengl/standalone/jni/
DGLTestHelper.cpp68 virtual void OnTestPartResult(const TestPartResult& result) { in OnTestPartResult() argument
69 if (result.type() == TestPartResult::kSuccess) { in OnTestPartResult()
74 result.file_name(), result.line_number(), result.message()); in OnTestPartResult()
81 const char * result = test_info.result()->Passed() ? in OnTestEnd() local
85 result, test_info.test_case_name(), test_info.name(), in OnTestEnd()
86 test_info.result()->elapsed_time()); in OnTestEnd()
132 virtual void OnTestPartResult(const TestPartResult& result) { in OnTestPartResult() argument
133 if (result.type() == TestPartResult::kSuccess) { in OnTestPartResult()
137 LOGI("%s:%i: Failure\n%s\n", result.file_name(), result.line_number(), in OnTestPartResult()
138 result.message()); in OnTestPartResult()
[all …]
/cts/suite/cts/deviceTests/simplecpu/src/com/android/cts/simplecpu/
DSimpleCpuTest.java98 double[] result = new double[numberRepeat]; in doTestSort() local
100 result[i] = CpuNative.runSort(arrayLength, numberRepeatInEachCall); in doTestSort()
102 getReportLog().printArray("sorting time", result, ResultType.LOWER_BETTER, in doTestSort()
104 Stat.StatResult stat = Stat.getStatWithOutlierRejection(result, OUTLIER_THRESHOLD); in doTestSort()
105 if (stat.mDataCount != result.length) { in doTestSort()
106 Log.w(TAG, "rejecting " + (result.length - stat.mDataCount) + " outliers"); in doTestSort()
120 double[] result = new double[numberRepeat]; in doMatrixMultiplication() local
122 result[i] = CpuNative.runMatrixMultiplication(n, numberRepeatInEachCall); in doMatrixMultiplication()
124 getReportLog().printArray("matrix mutiplication time", result, ResultType.LOWER_BETTER, in doMatrixMultiplication()
126 Stat.StatResult stat = Stat.getStatWithOutlierRejection(result, OUTLIER_THRESHOLD); in doMatrixMultiplication()
[all …]
/cts/tests/tests/accounts/src/android/accounts/cts/
DMockAccountAuthenticator.java133 Bundle result = new Bundle(); in createResultBundle() local
134 result.putString(AccountManager.KEY_ACCOUNT_NAME, AccountManagerTest.ACCOUNT_NAME); in createResultBundle()
135 result.putString(AccountManager.KEY_ACCOUNT_TYPE, AccountManagerTest.ACCOUNT_TYPE); in createResultBundle()
136 result.putString( in createResultBundle()
139 return result; in createResultBundle()
193 Bundle result = new Bundle(); in confirmCredentials() local
197 result.putParcelable(AccountManager.KEY_INTENT, intent); in confirmCredentials()
199 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true); in confirmCredentials()
202 return result; in confirmCredentials()
220 Bundle result = new Bundle(); in getAuthToken() local
[all …]

12345678910>>...25