Home
last modified time | relevance | path

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

12345678910>>...54

/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 …]
/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java54 float result = floatEvaluator.evaluate(0, start, end); in testFloatEvaluator() local
55 assertEquals(start, result, EPSILON); in testFloatEvaluator()
57 result = floatEvaluator.evaluate(fraction, start, end); in testFloatEvaluator()
58 assertEquals(.5f, result, EPSILON); in testFloatEvaluator()
60 result = floatEvaluator.evaluate(1, start, end); in testFloatEvaluator()
61 assertEquals(end, result, EPSILON); in testFloatEvaluator()
79 float[] result = evaluator.evaluate(0, start, end); in floatArrayEvaluatorTestImpl() local
80 assertEquals(start[0], result[0], EPSILON); in floatArrayEvaluatorTestImpl()
81 assertEquals(start[1], result[1], EPSILON); in floatArrayEvaluatorTestImpl()
83 result = evaluator.evaluate(fraction, start, end); in floatArrayEvaluatorTestImpl()
[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/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/location/src/android/location/cts/asn1/base/
DPerAlignedUtils.java62 BitStream result = new BitStream(); in encodeNormalizedSmallConstrainedWholeNumber() local
64 return result; in encodeNormalizedSmallConstrainedWholeNumber()
67 result.appendLowBits(leastBitsToEncode((byte) range), in encodeNormalizedSmallConstrainedWholeNumber()
69 return result; in encodeNormalizedSmallConstrainedWholeNumber()
72 result.setBeginByteAligned(); in encodeNormalizedSmallConstrainedWholeNumber()
75 result.appendByte((byte) (normalizedValue)); in encodeNormalizedSmallConstrainedWholeNumber()
76 return result; in encodeNormalizedSmallConstrainedWholeNumber()
78 result.appendByte((byte) ((normalizedValue & 0xFF00) >>> 8)); in encodeNormalizedSmallConstrainedWholeNumber()
79 result.appendByte((byte) (normalizedValue & 0x00FF)); in encodeNormalizedSmallConstrainedWholeNumber()
80 return result; in encodeNormalizedSmallConstrainedWholeNumber()
[all …]
DAsn1UTCTime.java117 Asn1IA5String result = new Asn1IA5String(); in encodeToIA5String() local
118 result.setMaxSize(255); in encodeToIA5String()
119 result.setValue(builder.toString()); in encodeToIA5String()
120 return result; in encodeToIA5String()
152 Asn1IA5String result = new Asn1IA5String(); in decodeBerValue() local
153 result.setMaxSize(255); in decodeBerValue()
154 result.decodeBerValue(buf); in decodeBerValue()
155 retrieveResult(result); in decodeBerValue()
160 Asn1IA5String result = encodeToIA5String(); in encodePerAligned() local
161 return result.encodePerAligned(); in encodePerAligned()
[all …]
DPerUnalignedUtils.java54 BitStream result = new BitStream(); in encodeNormalizedConstrainedWholeNumber() local
57 result.appendBit((normalizedValue >> i & 1) != 0); in encodeNormalizedConstrainedWholeNumber()
59 return result; in encodeNormalizedConstrainedWholeNumber()
81 long result = 0; in decodeNormalizedConstrainedWholeNumber() local
84 result <<= 1; in decodeNormalizedConstrainedWholeNumber()
85 result |= reader.readBit() ? 1 : 0; in decodeNormalizedConstrainedWholeNumber()
87 return result; in decodeNormalizedConstrainedWholeNumber()
101 BitStream result = new BitStream(); in encodeNormallySmallWholeNumber() local
102 result.appendBit(false); in encodeNormallySmallWholeNumber()
103 result.appendLowBits(6, (byte) value); in encodeNormallySmallWholeNumber()
[all …]
/cts/hostsidetests/gputools/apps/jni/
Dandroid_gputools_cts_RootlessGpuDebug.cpp40 std::string result = ""; in initVulkan() local
64 result = "vkCreateInstance failed, meaning layers could not be chained."; in initVulkan()
66 result = "vkCreateInstance succeeded."; in initVulkan()
69 return result; in initVulkan()
73 std::string result = ""; in initGLES() local
91 result = "Did not find EGL_ANDROID_GLES_layers extension"; in initGLES()
92 return result; in initGLES()
96 result = "eglGetDisplay() returned error " + std::to_string(eglGetError()); in initGLES()
97 return result; in initGLES()
101 result = "eglInitialize() returned error " + std::to_string(eglGetError()); in initGLES()
[all …]
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DTestAccountAuthenticator.java74 Bundle result = new Bundle(); in addAccount() local
76 new AddAccountTx(accountType, authTokenType, requiredFeatures, options, result)); in addAccount()
79 result.putString(AccountManager.KEY_ACCOUNT_NAME, accountName); in addAccount()
80 result.putString(AccountManager.KEY_ACCOUNT_TYPE, mAccountType); in addAccount()
91 result.putParcelable(AccountManager.KEY_INTENT, intent); in addAccount()
94 fillDefaultError(result, options); in addAccount()
98 return (isCallbackRequired) ? null : result; in addAccount()
101 response.onResult(result); in addAccount()
114 Bundle result = new Bundle(); in confirmCredentials() local
116 new ConfirmCredentialsTx(account, options, result)); in confirmCredentials()
[all …]
/cts/tests/tests/text/src/android/text/style/cts/
DCharacterStyleTest.java43 CharacterStyle result = CharacterStyle.wrap(metricAffectingSpan); in testWrap() local
44 assertNotNull(result); in testWrap()
45 assertSame(metricAffectingSpan, result.getUnderlying()); in testWrap()
46 assertNotSame(metricAffectingSpan, result); in testWrap()
50 result = CharacterStyle.wrap(characterStyle); in testWrap()
51 assertNotNull(result); in testWrap()
52 assertTrue(result instanceof CharacterStyle); in testWrap()
53 assertSame(characterStyle, result.getUnderlying()); in testWrap()
54 assertNotSame(characterStyle, result); in testWrap()
56 result = CharacterStyle.wrap((MetricAffectingSpan) null); in testWrap()
[all …]
/cts/tests/tests/jni/libjnitest/
Dmacroized_tests.c137 jmethodID result = CALL(GetStaticMethodID, StaticFromNative, in findStaticMethod() local
140 if (result == NULL) { in findStaticMethod()
145 return result; in findStaticMethod()
153 jmethodID result = CALL(GetMethodID, InstanceFromNative, name, sig); in findInstanceMethod() local
155 if (result == NULL) { in findInstanceMethod()
160 return result; in findInstanceMethod()
200 jboolean result; in help_CallBooleanMethod() local
204 result = CALL(CallBooleanMethod, o, method); in help_CallBooleanMethod()
208 result = CALL(CallBooleanMethodA, o, method, NULL); in help_CallBooleanMethod()
212 result = CALL(CallBooleanMethodV, o, method, args); in help_CallBooleanMethod()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DSimpleExpandableListAdapterTest.java182 View result = mSimpleExpandableListAdapter.getChildView(0, 0, false, null, mAdapterHost); in testGetChildView() local
183 assertTrue(result instanceof TextView); in testGetChildView()
184 assertEquals("child00", ((TextView) result).getText().toString()); in testGetChildView()
186 result = mSimpleExpandableListAdapter.getChildView(3, 3, true, null, mAdapterHost); in testGetChildView()
187 assertTrue(result instanceof TextView); in testGetChildView()
188 assertEquals("child30", ((TextView) result).getText().toString()); in testGetChildView()
197 result = mSimpleExpandableListAdapter.getChildView(0, 0, false, null, mAdapterHost); in testGetChildView()
198 assertTrue(result instanceof TextView); in testGetChildView()
199 assertEquals("child00", ((TextView) result).getText().toString()); in testGetChildView()
201 result = mSimpleExpandableListAdapter.getChildView(3, 3, true, null, mAdapterHost); in testGetChildView()
[all …]
/cts/hostsidetests/appsecurity/test-apps/rro/OverlayApp/src/com/android/cts/overlay/app/
DOverlayableTest.java91 String result = context.getResources().getString(R.string.not_overlayable); in testOverlayPolicyAll() local
92 assertEquals(NOT_OVERLAID, result); in testOverlayPolicyAll()
94 result = context.getResources().getString(R.string.policy_public); in testOverlayPolicyAll()
95 assertEquals(OVERLAID, result); in testOverlayPolicyAll()
97 result = context.getResources().getString(R.string.policy_product); in testOverlayPolicyAll()
98 assertEquals(NOT_OVERLAID, result); in testOverlayPolicyAll()
100 result = context.getResources().getString(R.string.policy_system); in testOverlayPolicyAll()
101 assertEquals(NOT_OVERLAID, result); in testOverlayPolicyAll()
103 result = context.getResources().getString(R.string.policy_vendor); in testOverlayPolicyAll()
104 assertEquals(NOT_OVERLAID, result); in testOverlayPolicyAll()
[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/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 …]
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 …]
/cts/hostsidetests/appsecurity/test-apps/UsePermissionApp29/src/com/android/cts/usepermission/
DUsePermissionTest29.java66 private static void assertPermissionRequestResult(BasePermissionActivity.Result result,
68 BasePermissionsTest.assertPermissionRequestResult(result, REQUEST_CODE_PERMISSIONS,
82 BasePermissionActivity.Result result = requestPermissions(permissions,
84 assertPermissionRequestResult(result, permissions, true);
94 BasePermissionActivity.Result result = requestPermissions(permissions);
95 assertPermissionRequestResult(result, permissions, false);
105 BasePermissionActivity.Result result = requestPermissions(permissions,
107 assertPermissionRequestResult(result, permissions, true, true);
118 BasePermissionActivity.Result result = requestPermissions(permissions,
120 assertPermissionRequestResult(result, permissions, true);
[all …]
/cts/tests/tests/voiceinteraction/testapp/src/android/voiceinteraction/testapp/
DDirectActionsActivity.java75 final Bundle result = new Bundle(); in onResume() local
76 result.putParcelable(Utils.DIRECT_ACTIONS_KEY_CONTROL, control); in onResume()
77 Log.v(TAG, "onResume(): result=" + Utils.toBundleString(result)); in onResume()
78 callBack.sendResult(result); in onResume()
119 final Bundle result = new Bundle(); in detectDestroyedInteractor() local
125 result.putBoolean(Utils.DIRECT_ACTIONS_KEY_RESULT, true); in detectDestroyedInteractor()
132 callback.sendResult(result); in detectDestroyedInteractor()
137 final Bundle result = new Bundle(); in invalidateDirectActions() local
138 result.putBoolean(Utils.DIRECT_ACTIONS_KEY_RESULT, true); in invalidateDirectActions()
139 Log.v(TAG, "invalidateDirectActions(): " + Utils.toBundleString(result)); in invalidateDirectActions()
[all …]
/cts/tests/tests/accounts/src/android/accounts/cts/
DMockAccountAuthenticator.java147 Bundle result = new Bundle(); in createResultBundle() local
148 result.putString(AccountManager.KEY_ACCOUNT_NAME, AccountManagerTest.ACCOUNT_NAME); in createResultBundle()
149 result.putString(AccountManager.KEY_ACCOUNT_TYPE, AccountManagerTest.ACCOUNT_TYPE); in createResultBundle()
150 result.putString( in createResultBundle()
153 return result; in createResultBundle()
207 Bundle result = new Bundle(); in confirmCredentials() local
211 result.putParcelable(AccountManager.KEY_INTENT, intent); in confirmCredentials()
213 result.putBoolean(AccountManager.KEY_BOOLEAN_RESULT, true); in confirmCredentials()
216 return result; in confirmCredentials()
234 Bundle result = new Bundle(); in getAuthToken() local
[all …]
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/
DDeviceConfigApiTests.java124 String result = DeviceConfig.getProperty(EMPTY_NAMESPACE, KEY1); in getProperty_empty() local
126 + "while " + result + " was returned", result); in getProperty_empty()
135 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in setAndGetProperty_sameNamespace() local
137 result); in setAndGetProperty_sameNamespace()
147 String result = DeviceConfig.getProperty(NAMESPACE2, KEY1); in setAndGetProperty_differentNamespace() local
148 assertNull("Value for same keys written to different namespaces must not clash", result); in setAndGetProperty_differentNamespace()
158 String result = DeviceConfig.getProperty(NAMESPACE1, KEY1); in setAndGetProperty_multipleNamespaces() local
160 result); in setAndGetProperty_multipleNamespaces()
161 result = DeviceConfig.getProperty(NAMESPACE2, KEY1); in setAndGetProperty_multipleNamespaces()
163 result); in setAndGetProperty_multipleNamespaces()
[all …]

12345678910>>...54