Home
last modified time | relevance | path

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

12345678910>>...28

/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()
/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java42 float result = floatEvaluator.evaluate(0, start, end); in testFloatEvaluator() local
43 assertEquals(start, result, .001f); in testFloatEvaluator()
45 result = floatEvaluator.evaluate(fraction, start, end); in testFloatEvaluator()
46 assertEquals(.5f, result, .001f); in testFloatEvaluator()
48 result = floatEvaluator.evaluate(1, start, end); in testFloatEvaluator()
49 assertEquals(end, result, .001f); in testFloatEvaluator()
58 float[] result = evaluator.evaluate(0, start, end); in testFloatArrayEvaluator() local
59 assertEquals(start[0], result[0], .001f); in testFloatArrayEvaluator()
60 assertEquals(start[1], result[1], .001f); in testFloatArrayEvaluator()
62 result = evaluator.evaluate(fraction, start, end); in testFloatArrayEvaluator()
[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/media/libndkaudio/
DAudioRecorder.cpp92 SLresult result; in Open() local
102 result = slCreateEngine(&engineObj_, 1, EngineOption, 0, NULL, NULL); in Open()
103 assert(SL_RESULT_SUCCESS == result); in Open()
107 result = (*engineObj_)->Realize(engineObj_, SL_BOOLEAN_FALSE); in Open()
108 assert(SL_RESULT_SUCCESS == result); in Open()
111 result = (*engineObj_)->GetInterface(engineObj_, SL_IID_ENGINE, (void*)&engineItf_); in Open()
112 assert(SL_RESULT_SUCCESS == result); in Open()
149 result = (*engineItf_)->CreateAudioRecorder(engineItf_, &recorderObj_, &recSource, &recDest, in Open()
151 assert(SL_RESULT_SUCCESS == result); in Open()
162 SLresult result; in RealizeRecorder() local
[all …]
DAudioPlayer.cpp54 SLresult result; in OpenSLEngine() local
57 result = slCreateEngine(&engineObject, 0, NULL, 0, NULL, NULL); in OpenSLEngine()
58 assert(SL_RESULT_SUCCESS == result); in OpenSLEngine()
62 result = (*engineObject)->Realize(engineObject, SL_BOOLEAN_FALSE); in OpenSLEngine()
64 assert(SL_RESULT_SUCCESS == result); in OpenSLEngine()
67 result = (*engineObject)->GetInterface(engineObject, SL_IID_ENGINE, &engineItf); in OpenSLEngine()
69 assert(SL_RESULT_SUCCESS == result); in OpenSLEngine()
72 result = (*engineItf)->CreateOutputMix(engineItf, &outputMixObject, 0, 0, 0); in OpenSLEngine()
74 assert(SL_RESULT_SUCCESS == result); in OpenSLEngine()
77 result = (*outputMixObject)->Realize(outputMixObject, SL_BOOLEAN_FALSE); in OpenSLEngine()
[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/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 …]
/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/renderscript/src/android/renderscript/cts/
DFloat16Utils.java82 float result; in convertFloat16ToFloat() local
84 result = 0.0f; in convertFloat16ToFloat()
86 result = java.lang.Float.POSITIVE_INFINITY; in convertFloat16ToFloat()
88 result = java.lang.Float.NaN; in convertFloat16ToFloat()
91 result = Math.scalb(1, -14) * mantissaAsFloat; in convertFloat16ToFloat()
95 result = Math.scalb(1, exponent - 15) * (1 + mantissaAsFloat); in convertFloat16ToFloat()
99 result = -result; in convertFloat16ToFloat()
100 return result; in convertFloat16ToFloat()
133 double[] result = new double[2]; in roundToFloat16() local
136 result[0] = value; in roundToFloat16()
[all …]
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_Helper()
[all …]
/cts/apps/CtsVerifier/jni/audio_loopback/
Dsles.cpp83 SLresult result; in recorderCallback() local
128 result = (*(pSles->recorderBufferQueue))->Enqueue(pSles->recorderBufferQueue, buffer, in recorderCallback()
130 ASSERT_EQ(SL_RESULT_SUCCESS, result); in recorderCallback()
155 SLresult result; in playerCallback() local
193 result = (*(pSles->playerBufferQueue))->Enqueue(pSles->playerBufferQueue, buffer, in playerCallback()
195 ASSERT_EQ(SL_RESULT_SUCCESS, result); in playerCallback()
345 SLresult result; in slesCreateServer() local
348 result = slCreateEngine(&(pSles->engineObject), 0, NULL, 0, NULL, NULL); in slesCreateServer()
349 ASSERT_EQ(SL_RESULT_SUCCESS, result); in slesCreateServer()
350 result = (*(pSles->engineObject))->Realize(pSles->engineObject, SL_BOOLEAN_FALSE); in slesCreateServer()
[all …]
/cts/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/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/graphics/jni/
Dandroid_graphics_cts_VulkanFeaturesTest.cpp38 VkResult result; in getVkJSON() local
54 result = vkCreateInstance(&instance_info, nullptr, &instance); in getVkJSON()
55 if (result != VK_SUCCESS) { in getVkJSON()
56 ALOGE("vkCreateInstance failed: %d", result); in getVkJSON()
57 return result; in getVkJSON()
61 result = vkEnumeratePhysicalDevices(instance, &ngpu, nullptr); in getVkJSON()
62 if (result != VK_SUCCESS) { in getVkJSON()
63 ALOGE("vkEnumeratePhysicalDevices failed: %d", result); in getVkJSON()
65 return result; in getVkJSON()
68 result = vkEnumeratePhysicalDevices(instance, &ngpu, gpus.data()); in getVkJSON()
[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 …]

12345678910>>...28