/cts/tests/tests/animation/src/android/animation/cts/ |
D | EvaluatorTest.java | 54 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/hostsidetests/media/src/android/media/metrics/cts/ |
D | MediaMetricsAtomTests.java | 84 AtomsProto.MediaPlaybackStateChanged result = in testPlaybackStateEvent_default() local 86 assertThat(result.getPlaybackState().toString()).isEqualTo("NOT_STARTED"); in testPlaybackStateEvent_default() 87 assertThat(result.getTimeSincePlaybackCreatedMillis()).isEqualTo(-1L); in testPlaybackStateEvent_default() 104 AtomsProto.MediaPlaybackStateChanged result = in testPlaybackStateEvent() local 106 assertThat(result.getPlaybackState().toString()).isEqualTo("JOINING_FOREGROUND"); in testPlaybackStateEvent() 107 assertThat(result.getTimeSincePlaybackCreatedMillis()).isEqualTo(1763L); in testPlaybackStateEvent() 124 AtomsProto.MediaPlaybackErrorReported result = in testPlaybackErrorEvent_default() local 127 assertThat(result.getTimeSincePlaybackCreatedMillis()).isEqualTo(-1L); in testPlaybackErrorEvent_default() 128 assertThat(result.getErrorCode().toString()).isEqualTo("ERROR_CODE_UNKNOWN"); in testPlaybackErrorEvent_default() 129 assertThat(result.getSubErrorCode()).isEqualTo(0); in testPlaybackErrorEvent_default() [all …]
|
/cts/tests/tests/media/libndkaudio/ |
D | AudioRecorder.cpp | 92 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 …]
|
D | AudioPlayer.cpp | 54 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/location/location_gnss/src/android/location/cts/gnss/asn1/base/ |
D | PerAlignedUtils.java | 62 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 …]
|
D | Asn1UTCTime.java | 117 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 …]
|
D | PerUnalignedUtils.java | 54 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/packagemanager/parsing/host/src/android/content/pm/parsing/cts/host/ |
D | UsesSdkTest.kt | 64 val result = ApkGenerator.install(device, xml, tempFolder) in defaultsNoTag() constant 65 assertThat(result.error).isEmpty() in defaultsNoTag() 66 assertSdks(result, min = 1, target = 0) in defaultsNoTag() 79 val result = ApkGenerator.install(device, xml, tempFolder) in defaultsWithTag() constant 80 assertThat(result.error).isEmpty() in defaultsWithTag() 81 assertSdks(result, min = 1, target = 1) in defaultsWithTag() 94 val result = ApkGenerator.install(device, xml, tempFolder) in missingMinDefaults() constant 95 assertThat(result.error).isEmpty() in missingMinDefaults() 96 assertSdks(result, min = 1, target = 29) in missingMinDefaults() 109 val result = ApkGenerator.install(device, xml, tempFolder) in missingTargetCoercedToMin() constant [all …]
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_AImageDecoderTest.cpp | 48 int result = AImageDecoder_createFromAAsset(asset, outDecoder); in testEmptyCreate() local 49 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testEmptyCreate() 56 int result = AImageDecoder_createFromFd(fd, outDecoder); in testEmptyCreate() local 57 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testEmptyCreate() 64 int result = AImageDecoder_createFromBuffer(buffer, length, outDecoder); in testEmptyCreate() local 65 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testEmptyCreate() 99 int result = AImageDecoder_createFromAAsset(asset, nullptr); in testNullDecoder() local 100 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testNullDecoder() 107 int result = AImageDecoder_createFromBuffer(buffer, AAsset_getLength(asset), nullptr); in testNullDecoder() local 108 ASSERT_EQ(ANDROID_IMAGE_DECODER_BAD_PARAMETER, result); in testNullDecoder() [all …]
|
/cts/hostsidetests/gputools/apps/jni/ |
D | android_gputools_cts_RootlessGpuDebug.cpp | 43 std::stringstream result; in initVulkan() local 83 result << "vkCreateInstance succeeded."; in initVulkan() 85 result << "vkCreateInstance failed with VkResult: " << vkResult; in initVulkan() 88 return result.str(); in initVulkan() 92 std::string result = ""; in initGLES() local 110 result = "Did not find EGL_ANDROID_GLES_layers extension"; in initGLES() 111 return result; in initGLES() 115 result = "eglGetDisplay() returned error " + std::to_string(eglGetError()); in initGLES() 116 return result; in initGLES() 120 result = "eglInitialize() returned error " + std::to_string(eglGetError()); in initGLES() [all …]
|
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/ |
D | TestAccountAuthenticator.java | 74 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/hostsidetests/appsecurity/test-apps/rro/OverlayApp/src/com/android/cts/overlay/app/ |
D | OverlayableTest.java | 94 String result = context.getResources().getString(R.string.not_overlayable); in testOverlayPolicyAll() local 95 assertEquals(NOT_OVERLAID, result); in testOverlayPolicyAll() 97 result = context.getResources().getString(R.string.policy_public); in testOverlayPolicyAll() 98 assertEquals(OVERLAID, result); in testOverlayPolicyAll() 100 result = context.getResources().getString(R.string.policy_product); in testOverlayPolicyAll() 101 assertEquals(NOT_OVERLAID, result); in testOverlayPolicyAll() 103 result = context.getResources().getString(R.string.policy_system); in testOverlayPolicyAll() 104 assertEquals(NOT_OVERLAID, result); in testOverlayPolicyAll() 106 result = context.getResources().getString(R.string.policy_vendor); in testOverlayPolicyAll() 107 assertEquals(NOT_OVERLAID, result); in testOverlayPolicyAll() [all …]
|
/cts/tests/tests/time/shell_utils/common/android/app/time/cts/shell/ |
D | DeviceShellCommandExecutor.java | 30 String result = parseBytesAsString(bytes); in executeToString() local 31 log("Executed '" + command + "': Result='" + result + "'"); in executeToString() 32 return result; in executeToString() 39 String result = parseBytesAsString(bytes).trim(); in executeToTrimmedString() local 40 log("Executed '" + command + "': Result='" + result + "'"); in executeToTrimmedString() 41 return result; in executeToTrimmedString() 51 boolean result = parseBytesAsBoolean(bytes); in executeToBoolean() 52 log("Executed '" + command + "': Result='" + result + "'"); in executeToBoolean() 53 return result; in executeToBoolean() 74 public static boolean parseBytesAsBoolean(@NonNull byte[] result) { in parseBytesAsBoolean() argument [all …]
|
/cts/tests/tests/jni/libjnitest/ |
D | helper.c | 30 char *result; in failure() local 37 int count = vasprintf(&result, format, args); in failure() 44 return result; in failure() 50 char *result = NULL; in runJniTests() local 68 (result == NULL) ? "" : result, in runJniTests() 70 free(result); in runJniTests() 76 result = newResult; in runJniTests() 88 return result; in runJniTests() 97 int result = (*env)->RegisterNatives(env, clazz, methods, numMethods); in registerJniMethods() local 99 if (result == 0) { in registerJniMethods() [all …]
|
D | macroized_tests.c | 137 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/renderscript/src/android/renderscript/cts/ |
D | Float16Utils.java | 82 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 …]
|
D | sample.rscript | 30 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 …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SimpleExpandableListAdapterTest.java | 182 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 …]
|
D | ResourceCursorAdapterTest.java | 92 View result = mResourceCursorAdapter.newView(null, null, mParent); in testSetViewResource() local 93 assertNotNull(result); in testSetViewResource() 94 assertEquals(R.id.cursorAdapter_item0, result.getId()); in testSetViewResource() 98 result = mResourceCursorAdapter.newView(null, null, mParent); in testSetViewResource() 99 assertNotNull(result); in testSetViewResource() 100 assertEquals(R.id.cursorAdapter_item1, result.getId()); in testSetViewResource() 109 View result = mResourceCursorAdapter.newDropDownView(null, null, mParent); in testSetDropDownViewResource() local 110 assertNotNull(result); in testSetDropDownViewResource() 112 assertEquals(R.id.cursorAdapter_item0, result.getId()); in testSetDropDownViewResource() 118 result = mResourceCursorAdapter.newDropDownView(null, null, mParent); in testSetDropDownViewResource() [all …]
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | ZygotePreload.java | 86 boolean result = true; in doPreload() 89 result &= testSetResUidGidBlocked(0, 0, 0); in doPreload() 91 result &= testSetResUidGidBlocked(Process.SYSTEM_UID, Process.SYSTEM_UID, in doPreload() 94 result &= testSetResUidGidBlocked(0, Process.SYSTEM_UID, in doPreload() 100 result &= testSetResUidGidBlocked(appStart, appStart, appStart); in doPreload() 102 result &= testSetResUidGidBlocked(appEnd, appEnd, appEnd); in doPreload() 108 result &= testSetResUidGidBlocked(regularIsolatedStart, regularIsolatedStart, in doPreload() 111 result &= testSetResUidGidBlocked(regularIsolatedEnd, regularIsolatedEnd, in doPreload() 130 result = false; in doPreload() 136 result &= testSetResUidGidBlocked(i - 1, i - 1, i - 1); in doPreload() [all …]
|
/cts/libs/vogar-expect/src/vogar/expect/util/ |
D | Strings.java | 44 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/apps/CtsVerifier/jni/megaaudio/common/ |
D | OboeStream.cpp | 60 oboe::Result result = oboe::Result::OK; in teardownStream_l() local 61 result = mAudioStream->stop(); in teardownStream_l() 62 if (result == oboe::Result::OK) { in teardownStream_l() 63 result = mAudioStream->close(); in teardownStream_l() 66 return OboeErrorToMegaAudioError(result); in teardownStream_l() 78 oboe::Result result = oboe::Result::ErrorInternal; in startStream() local 80 result = mAudioStream->requestStart(); in startStream() 81 if (result != oboe::Result::OK){ in startStream() 85 "requestStart failed. Error: %s", convertToText(result)); in startStream() 91 mStreamStarted = result == oboe::Result::OK; in startStream() [all …]
|
/cts/tests/tests/voiceinteraction/testapp/src/android/voiceinteraction/testapp/ |
D | DirectActionsActivity.java | 79 final Bundle result = new Bundle(); in onResume() local 80 result.putParcelable(Utils.VOICE_INTERACTION_KEY_CONTROL, control); in onResume() 81 Log.v(TAG, "onResume(): result=" + Utils.toBundleString(result)); in onResume() 82 callBack.sendResult(result); in onResume() 146 final Bundle result = new Bundle(); in detectDestroyedInteractor() local 147 result.putBoolean(Utils.DIRECT_ACTIONS_KEY_RESULT, true); in detectDestroyedInteractor() 148 Log.v(TAG, "detectDestroyedInteractor(): " + Utils.toBundleString(result)); in detectDestroyedInteractor() 149 callback.sendResult(result); in detectDestroyedInteractor() 154 final Bundle result = new Bundle(); in invalidateDirectActions() local 155 result.putBoolean(Utils.DIRECT_ACTIONS_KEY_RESULT, true); in invalidateDirectActions() [all …]
|
/cts/tests/tests/accounts/src/android/accounts/cts/ |
D | MockAccountAuthenticator.java | 147 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/appsearch/src/com/android/cts/appsearch/external/exceptions/ |
D | AppSearchExceptionCtsTest.java | 32 AppSearchResult<?> result = e.toAppSearchResult(); in testNoMessageException() local 33 assertThat(result.isSuccess()).isFalse(); in testNoMessageException() 34 assertThat(result.getResultCode()).isEqualTo(AppSearchResult.RESULT_IO_ERROR); in testNoMessageException() 35 assertThat(result.getErrorMessage()).isNull(); in testNoMessageException() 43 AppSearchResult<?> result = e.toAppSearchResult(); in testExceptionWithMessage() local 44 assertThat(result.isSuccess()).isFalse(); in testExceptionWithMessage() 45 assertThat(result.getResultCode()).isEqualTo(AppSearchResult.RESULT_NOT_FOUND); in testExceptionWithMessage() 46 assertThat(result.getErrorMessage()).isEqualTo("ERROR!"); in testExceptionWithMessage() 58 AppSearchResult<?> result = e.toAppSearchResult(); in testExceptionWithThrowable() local 59 assertThat(result.isSuccess()).isFalse(); in testExceptionWithThrowable() [all …]
|